UNPKG

homebridge-mcp-contact-sensor

Version:

a homebridge(https://github.com/nfarina/homebridge) plugin for a contact sensor and motion sensor via mcp23017 i2c port for Raspberry Pi.

42 lines (41 loc) 1.29 kB
{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "This is an example configuration file. You can use this as a template for creating your own configuration file.", "platforms": [ { "platform": "mcpSensors", "name": "mcpSensors20", "addresses": [ "0x20", "0x21" ], "updateInterval": 500, "url": "<url of MQTT server (optional)>", "username": "<username for MQTT (optional)>", "password": "<password for MQTT (optional)>", "pins": [ { "address": "0x20", "port": "A", "pin": 0, "name": "Contact Sensor", "topic": "<optional topic to publish state to mqtt>" }, { "address": "0x21", "port": "B", "pin": 0, "name": "Motion", "topic": "<optional topic to publish state to mqtt>", "kind": "motion" } ] } ], "accessories": [] }