homebridge-platform-energenie
v0.1.5
Published
energenie plugin for homebridge: https://github.com/nfarina/homebridge
Downloads
3
Readme
homebridge-platform-energenie
Energenie Pi-mote plugin for the Homebridge project based on homebridge-platform-rcswitch.
Installation
- Install energenie
- Install homebridge using:
npm install -g homebridge
- Install this plugin using:
npm install -g homebridge-platform-energenie
- Update your configuration file. See the sample below.
Configuration
Configuration sample:
delay
is the time in milliseconds between each command. As Pi-mote can only send one command at the time, this allows things like scenes with multiple commands to work by queueing the commands.
switches
is the list of the commands to send for turning sockets on/off.
persist_dir
is a folder which Homebridge can write to, if you would like to keep track of switch state between Homebridge restarts.
Note: Some sockets may respond only to on
commands and turning on/off is done by using different socket id (usually when n
is for on then n+1
is for off).
{
"bridge": {
"name": "#####",
"username": "",
"port": 51826,
"pin": ""
},
"description": "",
"platforms": [
{
"platform": "Energenie",
"name": "Energenie Platform",
"persist_dir": "/homebridge/node-persist",
"delay": 500,
"switches": [
{
"name" : "Zap Plug Port 1",
"on": {
"command": "on",
"socket": 1
},
"off": {
"command": "off",
"socket": 1
}
}
]
}
]
}
Credits
Credit goes to
License
Published under the MIT License.