homebridge-switchbee
v1.2.2
Published
Homebridge plugin for SwitchBee - Smart Home
Downloads
247
Maintainers
Readme
homebridge-switchbee
Homebridge plugin for SwitchBee - Smart Home
Requirements
check with: node -v
& homebridge -V
and update if needed
How to Get Password?
In order to work with this plugin you need to set up a user with the appropriate permissions, and setup a password for this user which will be used to authenticate the user through the SwitchBee plugin.
To do so, connect with an Administrator user using the SwitchBee App. Select “Users” from the menu and click the user which you want to use through this plugin (create a new user if nessesary).
Then click the “Edit” button. Type the desired password and click the “Set Password” button.
Now the system is ready for connecting through the SwitchBee Open API.
Installation
- Install homebridge using:
sudo npm install -g homebridge --unsafe-perm
- Install this plugin using:
sudo npm install -g homebridge-switchbee
- Update your configuration file. See
config-sample.json
in this repository for a sample.
* install from git: sudo npm install -g git+https://github.com/nitaybz/homebridge-switchbee.git
Config file
Easy config (required):
"platforms": [
{
"platform": "SwitchBee",
"ip": "10.0.0.x",
"username": "******@*******.***",
"password": "*******",
}
]
Advanced config (optional):
"platforms": [
{
"platform": "SwitchBee",
"ip": "10.0.0.x",
"username": "******@*******.***",
"password": "*******",
"statePollingInterval": 5,
"debug": false,
"devices": [
{
"id": 1,
"accessoryType": "valve",
"defaultDuration": 90
},
{
"id": 22,
"accessoryType": "outlet"
},
{
"id": 23,
"accessoryType": "switch"
},
{
"id": 23,
"accessoryType": "lock"
},
{
"id": 4,
"hide": true
}
]
}
]