Doorbell button state from RF Bridge Tasmota

I tested your code but it does not change a state of the doorbell button sensor.

That’s odd because it works perfectly for me.

1 Like

Can you check if you are receiving anything under the topic tele/RF_bridge/RESULT from the mqtt integration, pressing the button?

In the MQTT integration I went to configure and the type the topic tele/RF_bridge/RESULT below Listen to a topic and I pressed ‘listen’. Then i pressed the doorbell button and nothing was received.

Ok that means the your broker is not receiving any payloads from the tasmota rf bridge. please go to tasmota console and check if the mqtt configurations are correct.

How was it possible for you to claim bitrip’s example works if Home Assistant is not receiving anything from tele/RF_bridge/RESULT?

  - platform: mqtt
    name: 'CH4'
    state_topic: 'sonoff/RESULT'
    value_template: >-
      {% if value_json.RfReceived.Data == '015055' %}
        {{'ON'}}
      {% else %}
        {{states('binary_sensor.ch4') | upper}}
      {% endif %}
    off_delay: 15
    device_class: motion

This is the code I use to for an IR sensor that is paired to my Tasmota.
The raw data is something like:

19:37:54 MQT: sonoff/RESULT = {“RfReceived”:{“Sync”:12540,“Low”:420,“High”:1210,“Data”:“015055”,“RfKey”:3}}