Sonoff RF Bridge R1 Random Command on Reconnect

Hi,

I have noticed recently that everything the Sonoff RF Bridge reconnects to Wifi, a random RF command will be sent. This is quite annoying, does anyone know how to prevent this from happening?

Below is the Sonoff RF Bridge Console Logs:

06:46:24.425 MQT: Connected
06:46:24.427 MQT: tele/rf_bridge/LWT = Online (retained)
06:46:24.429 MQT: cmnd/rf_bridge/POWER = 
06:46:24.434 MQT: tele/rf_bridge/INFO1 = {"Info1":{"Module":"Sonoff Bridge","Version":"14.6.0(release-tasmota)","FallbackTopic":"cmnd/DVES_456657_fb/","GroupTopic":"cmnd/tasmotas/"}}
06:46:24.437 MQT: tele/rf_bridge/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"Sonoff-RF-Bridge","IPAddress":"192.168.50.58"}}
06:46:24.439 MQT: tele/rf_bridge/INFO3 = {"Info3":{"RestartReason":"Software/System restart","BootCount":128}}
06:46:25.073 MQT: stat/rf_bridge/RESULT = {"RfRaw":"ON"}
06:46:25.492 MQT: tele/rf_bridge/RESULT = {"Time":"2025-05-19T06:46:25","RfRaw":{"Data":"AAA055"}}
06:46:29.318 MQT: tele/rf_bridge/STATE = {"Time":"2025-05-19T06:46:29","Uptime":"0T00:00:10","UptimeSec":10,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Azpcwork Mesh","BSSId":"64:64:4A:BC:14:76","Channel":7,"Mode":"11n","RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:04"}}
06:46:35.587 MQT: stat/rf_bridge/STATUS11 = {"StatusSTS":{"Time":"2025-05-19T06:46:35","Uptime":"0T00:00:16","UptimeSec":16,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"Azpcwork Mesh","BSSId":"64:64:4A:BC:14:76","Channel":7,"Mode":"11n","RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:04"}}}
06:46:35.637 MQT: stat/rf_bridge/STATUS1 = {"StatusPRM":{"Baudrate":19200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:00:16","StartupUTC":"2025-05-19T05:46:19","Sleep":50,"CfgHolder":4617,"BootCount":128,"BCResetTime":"2021-06-21T13:42:41","SaveCount":340,"SaveAddress":"F8000"}}

I think the key log is:

06:46:25.492 MQT: tele/rf_bridge/RESULT = {"Time":"2025-05-19T06:46:25","RfRaw":{"Data":"AAA055"}}

Appreciate any assistance that you can provide.

Values with the retain bit set will be resend on reconnect.
It is what the retain bit does in the MQTT standard

Not trying to be dismissive, but that is what it needs to do. It recieves a command via rf433, it relays it. The other stuff before that is the start-up to tell HA that is available and what it is, and after that is the 5 minute update telling Ha it’s still there.

If you want to prevent that, you need to unplug it.

(1)What are you expecting to happen and (2) why is this a problem?

Hey, thanks for the heads up. Is there any way to remove the retain?

I think that’s exactly the issue that I’m experiencing actually. Whenever it reconnects it resends the last command that was sent. In my case, it is a light toggle for my fan light (which is why it is so annoying that it happens so often whenever it reconnects.)

Appreciate any assistance you may have on this matter.

Hi,

As @WallyR has pointed out, the issue is the retained bit is being resent upon reconnection.

  1. What are you expecting to happen?
    For the retained bit not to be resent upon reconnection. (It disconnects & reconnects fairly frequently)

  2. Why is this a problem?
    The retained bit is an RF command that toggles my fan light, so every time the Sonoff RF Bridge disconnects & reconnects, my fan light is toggled off when I didn’t intend for it to.

It would be quite helpful, if you could provide a way to prevent the retained bit from being resent or if I could change a setting that could disable the bit from being retained completely.

Looking forward to hearing from you.

Ok, retain,
I fix those by going into the broker with MQTT Explorer and turning retain off. Also checking if anything is forcing retain when it sends the data, which your sonoff possibly could be. Are you using Tasmota firmware? There is a setting there to do it. If you are straight up Sonoff firmware I’ve never used it so I don’t know.

Troubleshooting MQTT? MQTT-Explorer can help you be successful!
If you have Add-ons available, try adding this Add-on repository to your Add-on list. GitHub - GollumDom/addon-repository.

1 Like

I am indeed using Tasmota + Portisch on the Sonoff RF Bridge. I have looked through the configurations menu, and have not been able to find an option to disable retain.

I did however manage to find an option to disable retain via console.

For all future references, you can send the following command in Tasmota’s Console:

SetOption4 0 

The above will disable retain and as @Sir_Goodenough has mentioned, please clear the retained MQTT messages in MQTT Explorer and that has worked flawlessly.

Thank you for the assistance!