homebridge-domoticz-selector-switch
v1.0.1
Published
Homebridge security device linking a selector switch in Domoticz
Downloads
5
Readme
homebridge-domoticz-selector-switch
Description
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.
Domoticz integration
This plugin only works with Domoticz and a selector switch. This plugin uses a selector switch with 4 states.
Installation
- 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
Configuration
Core
| 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 |
Optional fields
| 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
|
Configuration Examples
Sample config:
"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
}
]