Old versions of the plugin causes problem with new node versions.
This homebridge plugin exposes a web-based system to Apple's HomeKit and allows you to control a selector switch via HTTP requests. The device is displayed as a security service to be able to set if you are at home, away, etcetera.
This plugin only works with Domoticz and a selector switch. This plugin uses a selector switch with 4 states.
- Install homebridge
The plugin is compatible with the Homebridge UI
Manual installation
- Install this plugin:
npm install -g homebridge-domoticz-selector-switch
- Update your
config.json
file
Key | Description | Default |
---|---|---|
accessory |
Must be DomoticzSelector |
N/A |
name |
Name to appear in the Home app | Selector |
domoticzURL |
URL to Domoticz (eg. http://192.168.1.114) | N/A |
domoticzPort |
port Domoticz is listening on (eg. 8080) | N/A |
deviceIDX |
device idx of the selector switch | N/A |
Key | Description | Default |
---|---|---|
offValue (optional) |
Value for disarm when status is checked | 0 |
nightValue (optional) |
Value for armed night when status is checked | 10 |
awayValue (optional) |
Value for armed away when status is checked | 20 |
stayValue (optional) |
Value for armed home when status is checked | 30 |
pollingInterval (optional) |
If checkStatus is set to polling , this is the time (in ms) betwwen status checks |
3000 |
timeout (optional) |
Time (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable | 5000 |
"accessories": [
{
"accessory": "DomoticzSelector",
"name": "Selector",
"domoticzURL": "http://192.168.1.114",
"domoticzPort": 8080,
"deviceIDX": 1000,
"timeout": 5000,
"pollingInterval": 5000,
"offValue": 0,
"nightValue": 10,
"awayValue": 20,
"stayValue": 30
}
]