Hi there
I’ve flashed a Sonoff RF Bridge with Tasmota and want to use it with 433Mhz door sensors to tell me when my garage doors are open and to switch on a light when they open and close.
I’ve got the sensors paired and have added the config to my binarysensors.yaml file but it doesn’t seem to be working and I’m not sure where I’m going wrong, I’ve watched a bunch of YouTube videos, read tons of forum posts, chopped and changed the config but am unable to get it to work so hopefully someone smart out there can help me get on the right track.
My binarysensors.yaml file
-
platform: mqtt
name: ‘Garage Door Right’
state_topic: ‘tele/sonoff-rf-bridge/RESULT’
value_template: >-
{% if value_json.RfReceived.Data == ‘6A0103’ %}
{{‘ON’}}
{% elif value_json.RfReceived.Data == ‘6A010F’ %}
{{‘OFF’}}
{% else %}
{{states(‘binary_sensor.sonoff_rf_bridge_button1’) | upper}}
{% endif %}
device_class: door -
platform: mqtt
name: ‘Garage Door Left’
state_topic: ‘tele/sonoff-rf-bridge/RESULT’
value_template: >-
{% if value_json.RfReceived.Data == ‘DB0103’ %}
{{‘ON’}}
{% elif value_json.RfReceived.Data == ‘DB010F’ %}
{{‘OFF’}}
{% else %}
{{states(‘binary_sensor.sonoff_rf_bridge_button1’) | upper}}
{% endif %}
device_class: door -
platform: mqtt
name: ‘Garage Door Entrance’
state_topic: ‘tele/sonoff-rf-bridge/RESULT’
value_template: >-
{% if value_json.RfReceived.Data == ‘220803’ %}
{{‘ON’}}
{% elif value_json.RfReceived.Data == ‘22080F’ %}
{{‘OFF’}}
{% else %}
{{states(‘binary_sensor.sonoff_rf_bridge_button1’) | upper}}
{% endif %}
device_class: door
A copy and paste from my console on the RF Bridge with me opening and closing the sensors
09:13:30 MQT: homeassistant/light/C72BD1_LI_1/config = (retained)
09:13:30 MQT: homeassistant/switch/C72BD1_RL_1/config = (retained)
09:13:30 MQT: homeassistant/light/C72BD1_LI_2/config = (retained)
09:13:30 MQT: homeassistant/switch/C72BD1_RL_2/config = (retained)
09:13:30 MQT: homeassistant/light/C72BD1_LI_3/config = (retained)
09:13:30 MQT: homeassistant/switch/C72BD1_RL_3/config = (retained)
09:13:30 MQT: homeassistant/light/C72BD1_LI_4/config = (retained)
09:13:30 MQT: homeassistant/switch/C72BD1_RL_4/config = (retained)
09:13:30 MQT: homeassistant/light/C72BD1_LI_5/config = (retained)
09:13:31 MQT: homeassistant/switch/C72BD1_RL_5/config = (retained)
09:13:31 MQT: homeassistant/light/C72BD1_LI_6/config = (retained)
09:13:31 MQT: homeassistant/switch/C72BD1_RL_6/config = (retained)
09:13:31 MQT: homeassistant/light/C72BD1_LI_7/config = (retained)
09:13:31 MQT: homeassistant/switch/C72BD1_RL_7/config = (retained)
09:13:31 MQT: homeassistant/light/C72BD1_LI_8/config = (retained)
09:13:31 MQT: homeassistant/switch/C72BD1_RL_8/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_BTN_1/config = {“name”:“sonoff-rf-bridge Button1”,“stat_t”:"~stat/BUTTON1",“avty_t”:"~tele/LWT",“pl_avail”:“Online”,“pl_not_avail”:“Offline”,“uniq_id”:“C72BD1_BTN_1”,“device”:{“identifiers”:[“C72BD1”],“connections”:[[“mac”,“DC:4F:22:C7:2B:D1”]]},"~":“sonoff-rf-bridge/”,“value_template”:"{{value_json.STATE}}",“pl_on”:“TOGGLE”,“off_delay”:1} (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_BTN_2/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_BTN_3/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_BTN_4/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_1/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_2/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_3/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_4/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_5/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_6/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_7/config = (retained)
09:13:31 MQT: homeassistant/binary_sensor/C72BD1_SW_8/config = (retained)
09:13:31 MQT: homeassistant/sensor/C72BD1_status/config = {“name”:“sonoff-rf-bridge status”,“stat_t”:"~HASS_STATE",“avty_t”:"~LWT",“frc_upd”:true,“pl_avail”:“Online”,“pl_not_avail”:“Offline”,“json_attributes_topic”:"~HASS_STATE",“unit_of_meas”:" “,“val_tpl”:”{{value_json[‘RSSI’]}}",“ic”:“mdi:information-outline”,“uniq_id”:“C72BD1_status”,“device”:{“identifiers”:[“C72BD1”],“connections”:[[“mac”,“DC:4F:22:C7:2B:D1”]],“name”:“sonoff-rf-bridge”,“model”:“Sonoff Bridge”,“sw_version”:“8.1.0(tasmota)”,“manufacturer”:“Tasmota”},"~":“sonoff-rf-bridge/tele/”} (retained)
09:13:33 MQT: sonoff-rf-bridge/tele/STATE = {“Time”:“2020-01-31T09:13:33”,“Uptime”:“0T00:00:07”,“UptimeSec”:7,“Heap”:29,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:57,“MqttCount”:1,“Wifi”:{“AP”:1,“SSId”:“10A Fairview [2GHZ]”,“BSSId”:“64:D1:54:F6:27:D7”,“Channel”:1,“RSSI”:100,“Signal”:-47,“LinkCount”:1,“Downtime”:“0T00:00:01”}}
09:18:28 MQT: sonoff-rf-bridge/tele/HASS_STATE = {“Version”:“8.1.0(tasmota)”,“BuildDateTime”:“2019-12-25T12:33:25”,“Core”:“2_6_1”,“SDK”:“2.2.2-dev(38a443e)”,“Module”:“Sonoff Bridge”,“RestartReason”:“Software/System restart”,“Uptime”:“0T00:05:02”,“WiFi LinkCount”:1,“WiFi Downtime”:“0T00:00:01”,“MqttCount”:1,“BootCount”:12,“SaveCount”:26,“IPAddress”:“192.168.88.121”,“RSSI”:“100”,“LoadAvg”:19}
09:18:33 MQT: sonoff-rf-bridge/tele/STATE = {“Time”:“2020-01-31T09:18:33”,“Uptime”:“0T00:05:07”,“UptimeSec”:307,“Heap”:27,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:22,“MqttCount”:1,“Wifi”:{“AP”:1,“SSId”:“10A Fairview [2GHZ]”,“BSSId”:“64:D1:54:F6:27:D7”,“Channel”:1,“RSSI”:100,“Signal”:-47,“LinkCount”:1,“Downtime”:“0T00:00:01”}}
09:21:44 MQT: sonoff-rf-bridge/tele/RESULT = {“Time”:“2020-01-31T09:21:44”,“RfReceived”:{“Sync”:10700,“Low”:310,“High”:1060,“Data”:“6A0103”,“RfKey”:“None”}}
09:21:50 MQT: sonoff-rf-bridge/tele/RESULT = {“Time”:“2020-01-31T09:21:50”,“RfReceived”:{“Sync”:10740,“Low”:320,“High”:1050,“Data”:“6A010F”,“RfKey”:“None”}}
09:21:55 MQT: sonoff-rf-bridge/tele/RESULT = {“Time”:“2020-01-31T09:21:55”,“RfReceived”:{“Sync”:10720,“Low”:320,“High”:1040,“Data”:“DB0103”,“RfKey”:“None”}}
09:21:59 MQT: sonoff-rf-bridge/tele/RESULT = {“Time”:“2020-01-31T09:21:59”,“RfReceived”:{“Sync”:10670,“Low”:340,“High”:1020,“Data”:“DB010F”,“RfKey”:“None”}}
A copy and paste of my Entity ID under Device Info
binary_sensor.sonoff_rf_bridge_button1
Thanks in advance