/homebridge-domoticz-selector-switch

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

!!! Made correction to avoid "deprecated error" with Domoticz !!!

Old versions of the plugin causes problem with new node versions.

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

  1. Install homebridge

The plugin is compatible with the Homebridge UI

Manual installation

  1. Install this plugin: npm install -g homebridge-domoticz-selector-switch
  2. 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
       }
]