Giter Club home page Giter Club logo

homebridge-switchmate-switch's Introduction

Homebridge Plugin for Switchmate Switch

This is a homebridge plugin for Switchmate Switches.

Currently supports:

Installation

Install bluetooth libraries

Ubuntu, Debian, Raspbian
sudo apt install bluetooth bluez libbluetooth-dev libudev-dev

See the document of the @abandonware/noble for other operating systems details.

Install package

sudo npm install -g homebridge-switchmate-switch

You can also install it on the homebridge plugins page.

Configuration

You can configure it using homebridge-config-ui-x or add below to config.json manually

{
    "discoverDelay": 15,
    "devices": [
        {
            "name": "Living Room Switch",
            "id": "CHANGE ME TO YOUR SWITCH MAC ADDRESS WITHOUT COLON"
        }
    ],
    "platform": "SwitchmateSwitch"
}

TODO

  • add refresh rate to config

Known Issue

TypeError: Cannot set property 'mtu' of undefined

See abandonware/noble#164

homebridge-switchmate-switch's People

Contributors

mylylyl avatar enumc avatar

Stargazers

 avatar Aaron J White avatar  avatar

Watchers

 avatar

Forkers

enumc

homebridge-switchmate-switch's Issues

Not seeing accessory

Describe Your Problem:
After installing the plugin and adding the switch I don't see the accessory added.
Logs:

[12/29/2020, 1:55:35 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[12/29/2020, 1:55:35 PM] [HB Supervisor] Started Homebridge v1.1.7 with PID: 35421
[12/29/2020, 1:55:36 PM] Loaded config.json with 1 accessories and 7 platforms.
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-bravia.BraviaPlatform'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-config-ui-x.config'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-nest.Nest'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-ring.Ring'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-samsungtv-control.SamsungTVControl'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:36 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:36 PM] Registering platform 'homebridge-switchmate-switch.SwitchmateSwitch'
[12/29/2020, 1:55:36 PM] ---
[12/29/2020, 1:55:37 PM] ---
[12/29/2020, 1:55:37 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:37 PM] Registering platform 'homebridge-tplink-smarthome.TplinkSmarthome'
[12/29/2020, 1:55:37 PM] ---
[12/29/2020, 1:55:37 PM] Loaded plugin: [email protected]
[12/29/2020, 1:55:37 PM] Registering platform 'homebridge-yamaha-receiver.YamahaReceiver'
[12/29/2020, 1:55:37 PM] ---
[12/29/2020, 1:55:37 PM] Loading 7 platforms...
[12/29/2020, 1:55:37 PM] [Config] Initializing config platform...
[12/29/2020, 1:55:37 PM] [Config] Running in Service Mode
[12/29/2020, 1:55:37 PM] [Ring] Initializing Ring platform...
[12/29/2020, 1:55:37 PM] [Nest] Initializing Nest platform...
[12/29/2020, 1:55:37 PM] [TplinkSmarthome] Initializing TplinkSmarthome platform...
[12/29/2020, 1:55:37 PM] [TplinkSmarthome] homebridge-tplink-smarthome v6.1.0, node v14.15.3, homebridge v1.1.7
[12/29/2020, 1:55:37 PM] [BraviaPlatform] Initializing BraviaPlatform platform...
[12/29/2020, 1:55:37 PM] [YamahaReceiver] Initializing YamahaReceiver platform...
[12/29/2020, 1:55:37 PM] [SwitchmateSwitch] Initializing SwitchmateSwitch platform...
[12/29/2020, 1:55:37 PM] Loading 1 accessories...
[12/29/2020, 1:55:37 PM] [BraviaPlatform] Restoring Family Room TV from HomeKit
[12/29/2020, 1:55:37 PM] [Nest] Fetching Nest devices.
[12/29/2020, 1:55:37 PM] Homebridge is running on port 51155.
[12/29/2020, 1:55:37 PM] [YamahaReceiver] Found AVR "Yamaha RX-A1070" at XX
HAP Warning: Characteristic E863F126-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10C-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F110-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10A-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10D-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F126-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10C-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F110-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10A-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic E863F10D-079E-48FF-8F27-9C2605A29F52 not in required or optional characteristics for service 00000047-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 000000E3-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
[12/29/2020, 1:55:37 PM] Yamaha AV is running on port 50906.
[12/29/2020, 1:55:37 PM] Please add [Yamaha AV] manually in Home app. Setup Code: XX
HAP Warning: Characteristic 000000E3-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
[12/29/2020, 1:55:37 PM] Zone2 is running on port 50907.
[12/29/2020, 1:55:37 PM] Please add [Zone2] manually in Home app. Setup Code:XX
[12/29/2020, 1:55:38 PM] [Ring] Configuring 1 cameras and 4 devices for location "Tampa" - locationId: XX
[12/29/2020, 1:55:40 PM] [Nest] initing thermostat "Downstairs Thermostat": deviceId: XX structureId:XX
[12/29/2020, 1:55:40 PM] [Nest] initing thermostat (P) "Upstairs Thermostat": deviceId: XX structureId: XX
[12/29/2020, 1:55:40 PM] [Nest] initing home_away_sensor "Home Occupied": deviceId:XX structureId: X
[12/29/2020, 1:55:40 PM] [Nest] initing protect "Upstairs": deviceId: XX structureId: XX
[12/29/2020, 1:55:40 PM] [Nest] initing protect "Downstairs": deviceId: XX structureId: XX

Plugin Config:

        {
            "devices": [
                {
                    "name": "Master Bedroom",
                    "id": "MAC ID (Double and triple checked)"
                }
            ],
            "platform": "SwitchmateSwitch"
        }

Environment:

  • Plugin Version: homebridge-switchmate-switch v1.1.0
  • Homebridge Version: 1.17
  • Node.js Version: v14.15.3
  • NPM Version: 6.14.9
  • Operating System: macOS

No MAC Address in Switchmate app for setup

Describe Your Problem:
I'm trying to set this up with a Switchmate Toggle Switch but I don't see a MAC address on the switch or in the app. I'm obviously missing something, what is it?

  • Plugin Version: homebridge-switchmate-switch v1.1.0
  • Homebridge Version: 1.17
  • Node.js Version: v14.15.3
  • NPM Version: 6.14.9
  • Operating System: macOS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.