0.1.1 • Published 3 years ago

homebridge-mqtt-contactsensor-delay v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

homebridge-mqtt-contactsensor-delay

Get Contact Sensor status via MQTT in Homebridge with delay

Installation

sudo npm install -g homebridge-mqtt-contactsensor-delay

Sample HomeBridge Configuration

{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:33:3B:D3:CE:32",
    "port": 51826,
    "pin": "321-45-123"
  },

  "description": "",

  "accessories": [
    {
      "accessory": "mqtt-contactsensor-delay",
      "name": "Main Door",
      "url": "mqtt://localhost",
      "topic": "home/livingroom/contactsensor",
      "username": "username",
      "password": "password",
      "delay": "15000",
      "openanddelay": false,
      "reversedetect": false,
      "debug": false
    }
  ],

  "platforms": []
}

Plugin Configuration

Required configuration

KeyDescription
accessoryThe type of accessory - has to be "mqtt-contactsensor-delay"
nameThe name of the device - used in HomeKit apps as well as Siri
urlURL to the mosquitto server, default "mqtt://localhost"
topicmqtt topic of monitoring device

Optional configuration

KeyDescription
usernamemosquitto server user, if required 
passwordmosquitto server password, if required
delaytime to delay in milliseconds, default 5000 
openanddelaycontact sensor is open, if "true" and then timer delay, if "false" timer delay and then contact sensor is open, default "false" 
reversedetectcontact sensor detection is reversed 
debugwrite debugmessages to log, default "false" 

Info about where the plugin comes from

This plugin is based on:

https://github.com/heisice/homebridge-mqtt-contactsensor

https://github.com/nitaybz/homebridge-delay-switch

0.1.1

3 years ago

0.1.0

4 years ago