Sonoff RF bridge recent tasmota, door sensor -- only some events

A year or two ago I got sonoff rf bridge (black box, model says just “RF Bridge”). Finally got to “deploy” it. Flushed recent tasmota (generic tasmota.bin) on it using tasmotizer while following some generic instructions on howto via USB, chose

But for the door sensor, I get only one type of event (Data is the same), so can’t tell when “opens” vs “closes”, and seems not consistently really:

15:18:40.526 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:18:40","RfReceived":{"Sync":7970,"Low":270,"High":790,"Data":"D18651","RfKey":"None"}}
15:18:50.870 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:18:50","RfReceived":{"Sync":7960,"Low":280,"High":780,"Data":"D18651","RfKey":"None"}}
15:18:59.323 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:18:59","RfReceived":{"Sync":7940,"Low":280,"High":780,"Data":"D18651","RfKey":"None"}}
15:19:17.258 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:19:17","RfReceived":{"Sync":7980,"Low":270,"High":790,"Data":"D18651","RfKey":"None"}}

The sensor is ATM very close (1ft) to RF bridge.
any guidance/clues on what to do to get it reliably detect events?

Fuller log after reboot:

00:00:00.001 HDW: ESP8285N08
00:00:00.050 CFG: Loaded from flash at F5, Count 55
00:00:00.055 SER: Set to 8N1 19200 bit/s
00:00:00.056 QPC: Count 1
00:00:00.067 SER: Set to 8N1 19200 bit/s
00:00:00.070 Project tasmota - tasmota-rf-bridge Version 14.4.1(release-tasmota)-2_7_8(2024-12-15T13:29:54)
00:00:01.001 WIF: Connecting to AP1 ESCAPE-HA Channel 7 BSSId 08:BF:B8:4D:FA:43 in mode 11g as tasmota-sonoff-7889...
00:00:02.586 WIF: Connected
00:00:02.838 HTP: Web server active on tasmota-sonoff-7889 with IP address 192.168.3.6
15:25:03.634 MQT: Attempting connection...
15:25:04.097 MQT: Connect failed to 192.168.2.2:1883, rc -2. Retry in 10 sec
15:25:06.112 QPC: Reset
15:25:14.872 MQT: Attempting connection...
15:25:15.014 MQT: Connected
15:25:15.017 MQT: tele/tasmota_sonoff/LWT = Online (retained)
15:25:15.019 MQT: cmnd/tasmota_sonoff/POWER = 
15:25:15.025 MQT: tele/tasmota_sonoff/INFO1 = {"Info1":{"Module":"Sonoff Bridge","Version":"14.4.1(release-tasmota)","FallbackTopic":"cmnd/DVES_EE1ED1_fb/","GroupTopic":"cmnd/tasmotas/"}}
15:25:15.032 MQT: tele/tasmota_sonoff/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"tasmota-sonoff-7889","IPAddress":"192.168.3.6"}}
15:25:15.038 MQT: tele/tasmota_sonoff/INFO3 = {"Info3":{"RestartReason":"Power On","BootCount":16}}
15:25:16.459 MQT: stat/tasmota_sonoff/STATUS1 = {"StatusPRM":{"Baudrate":19200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Power On","Uptime":"0T00:00:18","StartupUTC":"2025-02-24T14:24:58","Sleep":50,"CfgHolder":4617,"BootCount":15,"BCResetTime":"2025-02-17T04:46:40","SaveCount":57,"SaveAddress":"FB000"}}
15:25:16.509 MQT: stat/tasmota_sonoff/STATUS11 = {"StatusSTS":{"Time":"2025-02-24T15:25:16","Uptime":"0T00:00:18","UptimeSec":18,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":20,"MqttCount":1,"Wifi":{"AP":1,"SSId":"ESCAPE-HA","BSSId":"08:BF:B8:4D:FA:43","Channel":8,"Mode":"11g","RSSI":96,"Signal":-52,"LinkCount":1,"Downtime":"0T00:00:04"}}}
15:25:19.069 MQT: tele/tasmota_sonoff/STATE = {"Time":"2025-02-24T15:25:19","Uptime":"0T00:00:21","UptimeSec":21,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"ESCAPE-HA","BSSId":"08:BF:B8:4D:FA:43","Channel":8,"Mode":"11g","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:04"}}
15:26:12.165 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:26:12","RfReceived":{"Sync":7970,"Low":270,"High":790,"Data":"D18651","RfKey":"None"}}
15:26:22.325 MQT: tele/tasmota_sonoff/RESULT = {"Time":"2025-02-24T15:26:22","RfReceived":{"Sync":7970,"Low":270,"High":790,"Data":"D18651","RfKey":"None"}}

Hello Yaroslav Halchenko,

The Data: portion will tell you what the action is.

You can look at mine to see how I do it. I use a python script based on option 2 in the bottom link, My HA configuration is here:

the problem I have is that I observe only 1 value for the Data so would not be able to tell on either it is about door getting opened or closed. Seems to appearing on when the sensor disconnects (door opens), but not when reconnects (door closes down).

A lot of 433Mhz door sensors only send a message when the door opens, not when it closes. Those are primary meant for intrusion detection, not for home automation.

2 Likes

This 433Mhz model sends distinct open & close messages (Imagesearch on Aliexpress for sellers)

Works perfectly and the single AAA battery lasts forever.

I use OMG on the Sonoff RF Bridge but you can use the same logic with Tasmota:

  # DOOR SENSORS

  - name: 2E walk-in door sensor
    unique_id: 2e_walk_in_door_sensor
    value_template: >-
      {% if value_json.value == 589506 %}
        {{'ON'}}
      {% elif value_json.value == 589510 %}
        {{'OFF'}}          
      {% endif %}
    off_delay: 1800
    <<: &doorsensors
      state_topic: "OMG/OMG_RFBRIDGE/SRFBtoMQTT"
      device_class: door
      device:
        identifiers: door_sensors
        name: "DOOR SENSORS"
        model: "RF"
        manufacturer: "DOOR SENSORS"

  - name: EX shed door sensor
    unique_id: ex_shed_door_sensor
    value_template: >-
      {% if value_json.value == 217010 %}
        {{'ON'}}
      {% elif value_json.value == 217014 %}
        {{'OFF'}}          
      {% endif %}
    <<: *doorsensors

  - name: SS bar storage door sensor
    unique_id: ss_bar_storage_door_sensor
    value_template: >-
      {% if value_json.value == 931946 %}
        {{'ON'}}
      {% elif value_json.value == 931950 %}
        {{'OFF'}}          
      {% endif %}
    off_delay: 1800
    <<: *doorsensors

  - name: RC patio door sensor
    unique_id: rc_patio_door_sensor
    value_template: >-
      {% if value_json.value == 979778 %}
        {{'ON'}}
      {% elif value_json.value == 979782 %}
        {{'OFF'}}          
      {% endif %}
    <<: *doorsensors

  - name: RC side hall door sensor
    unique_id: rc_side_hall_door_sensor
    value_template: >-
      {% if value_json.value == 230266 %}
        {{'ON'}}
      {% elif value_json.value == 230270 %}
        {{'OFF'}}          
      {% endif %}
    off_delay: 1800
    <<: *doorsensors

  - name: RC front hall door sensor
    unique_id: rc_front_hall_door_sensor
    value_template: >-
      {% if value_json.value == 1507722 %}
        {{'ON'}}
      {% elif value_json.value == 1502726 %}
        {{'OFF'}}          
      {% endif %}
    off_delay: 1800
    <<: *doorsensors
1 Like

I can confirm that the Sonoff RF 433 Door/Window sensor ONLY sends an open event.
There is NO event from closing the sensor.
The Zigbee and WiFi sensors do not have this limitation.

I ran into the same issue and I still have 7 door/window sensors laying in my drawer and probably soon thrown out.

And be careful with the Chinese products.
The listed specs does not always correlate that well with the reality.
This is one of the places where it is often wrong.

1 Like