Energenie Pi-mote plugin for the Homebridge project based on homebridge-platform-rcswitch.
- 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 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
}
}
]
}
]
}
Credit goes to
Published under the MIT License.