Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

goedh452/homebridge-domoticz-selector-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!!! Not maintained anymore !!!

Since I do not use Homebridge and Domoticz anymore, this module is not maintained. Feel free to fork it and make the changes you need.

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
       }
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published