Sending multiple commands with MQTT to Sonoff (Tasmota/Portisch) RF Bridge

Hi there,

a short introduction to my issue (quite HASS off-topic):
I have a Sonoff RF Bridge device which I successfully flashed with Tasmota (10.0.0) and Portisch firmware. I have sniffed the right 433-codes with the Tasmota console to send my roller shutter up and down (very old device with “jollymotor” remote), which I have already converted to B0 format.

For each action I need to send two rfraw commands. I already read through corresponding topics here, but I still got no solution for the behaviour of my system.

Homeassistant:
I set up an MQTT broker in homeassistant which my RF Bridge can connect to. Additionally I added a configuration to control the shutter:

cover:
  - platform: mqtt
    name: "Child room shutter left"
    icon: mdi:window-shutter
    command_topic: "cmnd/rf-bridge/backlog"
    payload_close: "rfraw AA B0 58 04 08 0154 0E1A 02DA 39F8 380808080808080808080808182A08282A082828282A0A08282A0A082828282A0A0A0A082A0A0A0A082A082A0A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A082A0A0828 55; rfraw AA B0 58 04 08 015E 0E24 02B2 3A66 3808080808080808080808081A08282A082A0A082A0A082A0828282A0A08282A0A0A0A082A0A082A08282A0A0A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A082A0A0828 55; rfraw 0"
    payload_open: "rfraw AA B0 58 04 08 015E 0E24 02B2 39E4 3808080808080808080808081A0A082A0A082A082A0A082A082828282A0A08282A0A082A0828282A082A08282A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A0A082A0828 55; rfraw AA B0 58 04 08 015E 0E24 02E4 39EE 3808080808080808080808081828282A0828282A0828282A08282A0A0A0A082A08282A0A0A0A0A082A0A082A0A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A0A082A0828 55; rfraw 0"

As you may notice, I send three commands in total per action (open/close). First the two codes, which my shutter needs to take action and finally the switch off rfraw.

I added the shutter entity to my lovelace and when I press “shutter down” for instance, the console of my RF Bridge shows the following

19:42:44.773 MQT: stat/rf-bridge/RESULT = {"RfRaw":"ON"}
19:42:44.971 MQT: stat/rf-bridge/RESULT = {"RfRaw":"ON"}
19:42:45.221 MQT: stat/rf-bridge/RESULT = {"RfRaw":"OFF"}

and nothing happens.

In different threads I read that the “Backlog” command will provide functionality to send commands in batch, but I am afraid, that I miss anything.

Is there anyone who may help me with that? Perhaps there might be totally different approaches? Or may I add some delay? Would that be possible within this kind of configuration or do I have to head to kind of automation (which I would be totally new to).

Thanks and best!

Did you convert the sniffed codes?

Dr ZZs talks about the sniffed codes needs to be converted on through some webpage.

Yes, as I mentioned in the part “which I have already converted to B0 format.”

You should be able to see the codes sent by the RF bridge in its console that are on its web-interface.

My guess is that you need a delay between the commands. I have a setup where if I press the same button twice on my remote within 1 or 2 seconds, then the second press is not acted on. I do not know if it is MQTT that skips it due to one command sort of overriding the previous if they are sent too fast or if it is the RF bridge that simple can handle the fast commands.

Yes, I guess it was the need of a delay between those commands. I set up scripts which I can easily provide to my Homey then, e.g.

child_room_shutter_left_down:
  alias: Child room shutter (left) DOWN
  sequence:
  - service: mqtt.publish
    data:
      topic: cmnd/rf-bridge/rfraw
      payload: AA B0 58 04 08 0154 0E1A 02DA 39F8 380808080808080808080808182A08282A082828282A0A08282A0A082828282A0A0A0A082A0A0A0A082A082A0A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A082A0A0828 55
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 200
  - service: mqtt.publish
    data:
      topic: cmnd/rf-bridge/rfraw
      payload: AA B0 58 04 08 015E 0E24 02B2 3A66 3808080808080808080808081A08282A082A0A082A0A082A0828282A0A08282A0A0A0A082A0A082A08282A0A0A0A08282A0A0A082A0A082A0A0A0A08282A0A0A0A0A0A0A0A0A0A0A0A082A0A0828 55
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 500
  - service: mqtt.publish
    data:
      topic: cmnd/rf-bridge/rfraw
      payload: '0'        
  mode: single
  icon: mdi:window-shutter

Thanks a lot for the hints!

Cheers…