homebridge-mqtt-sonoffrf-receiver-2
v0.9.0
Published
A HomeBridge plugin for MQTT motion sensors.
Downloads
6
Readme
homebridge-mqtt-sonoffrf-receiver-2
Get Motion Sensor status via MQTT in Homebridge using Sonoff RF Bridge 433 with TasmOTA firmware. Motion sensor is activated when received RF code matches for rfcode or RF key stored in Sonoff RF Bridge. Open Sonoff RF Bridge console to read out received RF codes as hexadecimal values in DATA field. Use these values in rfcode parameter or use rfkey if you have already defined RF codes in Sonoff RF Bridge. Value 'any' will activate the sensor if any RF code received. Use rfcodeon and rfcodeoff parameters if your sensor sends both on and off states. Sensor can be motion sensor or RF button, Contact sensor or any other RF sensor.
Installation
/* you might need to issue a "sudo su -" when you get errormessages during install!!! */
sudo npm install -g https://github.com/BluP62/homebridge-mqtt-sonoffrf-receiver-2
Sample HomeBridge Configuration
{
"accessory": "mqtt-sonoffrf-receiver-2",
"url": "mqtt://localhost",
"topic": "tele/rf-bridge/RESULT",
"username": "username",
"password": "password",
"rfcodeon": "2E1A11",
"rfcodeoff": "2E1A12",
"rfcodelowbattery": "2E1A14",
"accessoryservicetype": "ContactSensor",
"name": "Contact Sensor"
},
{
"accessory": "mqtt-sonoffrf-receiver-2",
"url": "mqtt://localhost",
"topic": "tele/rf-bridge/RESULT",
"username": "username",
"password": "password",
"rfcode": "2E1A21",
"ondelay": "30000",
"rfcodelowbattery": "2E1A22",
"accessoryservicetype": "MotionSensor",
"name": "Motion Sensor"
},
{
"accessory": "mqtt-sonoffrf-receiver-2",
"url": "mqtt://localhost",
"topic": "tele/rf-bridge/RESULT",
"username": "username",
"password": "password",
"rfcode": "2E1A21",
"ondelay": "10000",
"rfcodelowbattery": "2E1A22",
"accessoryservicetype": "LeakSensor",
"name": "Leak Sensor"
},
{
"accessory": "mqtt-sonoffrf-receiver-2",
"url": "mqtt://localhost",
"topic": "tele/rf-bridge/RESULT",
"username": "username",
"password": "password",
"rfcode": "2E1A21",
"ondelay": "60000",
"ondelaylowbattery": "120000",
"rfcodelowbattery": "2E1A22",
"accessoryservicetype": "SmokeSensor",
"name": "Smoke Sensor"
},
{
"accessory": "mqtt-sonoffrf-receiver-2",
"url": "mqtt://localhost",
"topic": "tele/rf-bridge/RESULT",
"username": "username",
"password": "password",
"rfcode": "2E1A21",
"ondelay": "10000",
"rfcodelowbattery": "2E1A22",
"accessoryservicetype": "StatelessProgrammableSwitch",
"name": "RF Button 433"
}
References
Use homebridge-mqtt-sonoffrf-transmitter to control RF devices in Homebridge.