homebridge-mqtt-contact-sensor-battery
v0.2.4
Published
MQTT contact sensor plugin for HomeBridge with battery level and low battery status.
Downloads
10
Maintainers
Readme
homebridge-mqtt-contact-sensor-battery
Get Contact Sensor status via MQTT in Homebridge
batteryLowPercentage - Value when battery reach that percentage show status Battery Low chargingStatus - Optional
Installation
sudo npm install -g homebridge-mqtt-contact-sensor-battery
Sample HomeBridge Configuration
{
"bridge": {
"name": "HomeBridge",
"username": "CC:12:3B:D3:CE:11",
"port": 51826,
"pin": "321-45-223"
},
"description": "",
"accessories": [
{
"accessory": "mqtt-contact-sensor",
"name": "Contact",
"url": "mqtt://localhost",
"batteryLowPercentage":"20",
"topics": {
"sensor": "room/contactSensor",
"batteryLevel": "room/contactSensor/level",
"chargingStatus": "room/contactSensor/charging"
},
"username": "username",
"password": "password"
}
],
"platforms": []
}