RF bridge tasmota and binary sensors

Hello, I have a Sonnof RF Bridge flashed with Tasmota in Home Assistant. In Node Red, I see, that is connected. In MQTT settings when I Listen to a topic I see:

Topic to subscribe to
Tile/ref-bridge/RESULT

Message 4 received on tele/ref-bridge/RESULT at 6:23 PM:
{“Time”: “2022-12-19T18:20:20”,
“RfReceived”: {“Sync”: 12510,
“Low”: 440,
“High”: 1240,
“Data”: “FD2B1E”,
“RfKey”: “None”}}

In mqtt. Yaml file I have:

  • name: “SENZOR 1 TESTNI”
    state_topic: “tele/rf-bridge/RESULT”
    value_template: ‘{{value_json.RfReceived.Data}}’
    payload_on: “FD2B1E”
    payload_off: “FD2B1E_off”
    device_class: motion
    off_delay: 5
    qos: 1

Where or how can I get binary sensors? What I am doing wrong?

This is not a direct answer to your question, but maybe another way to get the wanted result.

I have a Sonoff RF Bridge R1 (The black one) and I used MQTT earlier, but I have no switched to ESPHome on the all my Sonoff devices.
The ESPHome integrate directly into HA, so there is no middleware, like MQTT, and this setup is a lot more responsive. With MQTT you have a noticeable delay on actions, which will be gone with ESPHome.
Because you already have Tasmotized your bridge you can do an OTA flash to Tasmota-minimal and then an OTA flash to ESPHome by simple uploading the ESPHome as a Tasmota flash file in the Tasmota menu.
ESPHome is captured in the HA event bus, so you will need to change your way you capture events in your scripts, which of course can be many, but I think it is worth it.

1 Like

My configuration.yaml has:

mqtt: !include includes/mqtt.yaml

I’ve configured my smoke-detector as follows in includes/mqtt.yaml:

# BINARY SENSORS
binary_sensor:

# ROOKMELDER GANG BENEDEN
  - name: "gang beneden"
    unique_id: alarm.rookmelder.beneden
    icon: mdi:smoke-detector
    off_delay: 30
    payload_on: "7C6D64"
#    payload_off: "7C6D64off"
    device_class: smoke
    state_topic: "tele/74/RESULT"
    value_template: '{{ value_json.RfReceived.Data }}'

... etc. etc. etc.
  • My RF-bridge (Sonoff RF-Bridge, running Tasmota) is 74
  • payload_off is commented out because of the ‘off_delay’ and because the detector doesn’t send an off signal).

I think I’ve found it.

Your MQTT subscription is on tele/ref-bridge/

Message 4 received on tele/ref-bridge/RESULT at 6:23 PM:

And your config is looking for tele/rf-bridge

state_topic: “tele/rf-bridge/RESULT”

Than you! I will try as soon as possible.

1 Like