Sonoff RF Bridge with Tasmota, how to compile Portisch firmware

I am 2 days busy to get this working
I have made this mqtt

switch:

  • platform: mqtt
    name: “gang”
    command_topic: “cmnd/rf_bridge/rfcode”
    state_topic: “stat/rf_bridge/rfcode”
    availability_topic: “tele/rf_bridge/LWT”
    payload_available: “Online”
    payload_not_available: “Offline”
    payload_on: “#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55”
    payload_off: “#A B0 4E 05 08 0168 0AF0 00D2 04F6 28FA 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283828383828283828383828 55”
    optimistic: true

When i click i hasio template switch on and check the rf bridge console it get this message
stat/rf_bridge/RESULT = {“RfCode”:“#0000AA”}

When i past the payload code in the rf bridge tasmota console with rfraw before it then the led goes on in my room.

Big quastion why my payload is send but wrong recieved

try

command_topic: “cmnd/rf_bridge/rfraw”
state_topic: “stat/rf_bridge/rfraw”

like this:

switch:
service: mqtt.publish
data:
topic:
command_topic: “cmnd/rf_bridge/rfraw”
state_topic: “stat/rf_bridge/rfraw”
payload: ‘B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55’

    switch:
      platform: mqtt
      name: 'gang'
      command_topic: 'cmnd/rf_bridge/rfcode'
      state_topic: 'stat/rf_bridge/rfcode'
      availability_topic: 'tele/rf_bridge/LWT'
      payload_available: 'Online'
      payload_not_available: 'Offline'
      payload_on: '#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55'
      payload_off: '#A B0 4E 05 08 0168 0AF0 00D2 04F6 28FA 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283828383828283828383828 55'
      optimistic: true


Then i recieve this in the RF bridge tasmota console
16:02:42 MQT: tele/rf_bridge/RESULT = {“Time”:“2020-01-31T16:02:42”,“RfRaw”:{“Data”:“AAA055”}}
16:04:41 MQT: stat/rf_bridge/RESULT = {“RfCode”:“#0000AA”}
16:04:42 MQT: tele/rf_bridge/RESULT = {“Time”:“2020-01-31T16:04:42”,“RfRaw”:{“Data”:“AAA055”}}
16:04:52 MQT: stat/rf_bridge/RESULT = {“RfCode”:“#00000A”}
16:04:52 MQT: tele/rf_bridge/RESULT = {“Time”:“2020-01-31T16:04:52”,“RfRaw”:{“Data”:“AAA055”}}

Sorry, forgot to change

    switch:
      platform: mqtt
      name: 'gang'
      command_topic: 'cmnd/rf_bridge/rfraw'
      state_topic: 'stat/rf_bridge/rfraw'
      availability_topic: 'tele/rf_bridge/LWT'
      payload_available: 'Online'
      payload_not_available: 'Offline'
      payload_on: '#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55'
      payload_off: '#A B0 4E 05 08 0168 0AF0 00D2 04F6 28FA 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283828383828283828383828 55'
      optimistic: true



When i change on or off this is the only message tasmota console shows
16:09:17 MQT: stat/rf_bridge/RESULT = {“RfRaw”:“ON”}
16:09:29 MQT: stat/rf_bridge/RESULT = {“RfRaw”:“ON”}

if you use developer tools -> mqtt -> mqtt publish with topic

cmnd/rf_bridge/rfcode

and payload

#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55

What do you get ?

Also try payload

'#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55'

first code

16:15:44 MQT: stat/rf_bridge/RESULT = {“RfCode”:“#0000AA”}

second code 16:16:25 MQT: stat/rf_bridge/RESULT = {“RfCode”:170}

#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55

then
16:16:55 MQT: stat/rf_bridge/RESULT = {“RfCode”:“#0000AA”}

i am new so i need to edit posts

first code: 16:36:24 MQT: stat/rf_bridge/RESULT = {“RfRaw”:“ON”}
Send code:
16:36:49 MQT: stat/rf_bridge/RESULT = {“RfRaw”:“ON”}
16:36:50 MQT: tele/rf_bridge/RESULT = {“Time”:“2020-01-31T16:36:50”,“RfRaw”:{“Data”:“AAA055”}}

this code works, just so thankfull for your help @francisp
switch:
platform: mqtt
name: ‘gang’
command_topic: ‘cmnd/rf_bridge/Backlog’
state_topic: ‘stat/rf_bridge/rfraw’
availability_topic: ‘tele/rf_bridge/LWT’
payload_available: ‘Online’
payload_not_available: ‘Offline’
payload_on: ‘RfRaw AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55’
payload_off: ‘RfRaw AA B0 4E 05 08 0168 0AF0 00D2 04F6 28FA 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283828383828283828383828 55’
optimistic: true

Now i need to find out how to add a second switch on same rf bridge

@francisp aah yes i see it, that is easy, next step is adding a dimm function and what i miss, when i switch the normal switch in my house, hassio don’t change the function that i fysicly activated the switch
My the rfbridge dont see then a code

I don’t know, I don’t have portish firmware myself. You could try to ask the question also here :
https://groups.google.com/forum/#!forum/sonoffusers

Forgot again to change:
if you use developer tools -> mqtt -> mqtt publish with topic

cmnd/rf_bridge/rfraw

and payload

#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55


What do you get ?

Also try payload

#AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55’

According to https://translate.google.com/translate?hl=en&sl=de&u=https://forum.creationx.de/forum/index.php%3Fthread/2378-sonoff-rfbridge-state-topic-f%C3%BCr-rfraw/&prev=search

you need to do this

topic : cmnd/rf_bridge/Backlog

payload : RfRaw AA B0 4E 05 08 0168 0AE6 00D2 04F6 28BE 481828383828382838283828283828383808382828383828283828383828283838082838283828382838283828382838283838283828283838283828283828383828 55

1 Like

Just the same. Use another name and different payloads.

@francisp

All is working now, 6 lamps are controlled in my home from klikaanklikuit.
now i have also a normal rf switch in my house from the (action)
possible to use channel D to send the code to the rf bridge and the mqtt send a message back to activate a klikaanklikuit lamp?

If you can catch the code with the rf bridge it will work. Just as the others.

only when using rfraw 177, i get this code for ON:

AA B0 4C 04 08 012C 097E 047E 28D2 381828082808082828082808082808280828280828082808280828080828082808280828082808280828082808280828082808280828082828080828280808280828 55

sorry i am so new in this that i need to see how i need to setup for all next projects, many thanks for your help

made this in automation, only nothing appear on the RF Bridge console

  • id: ‘1580558061648’
    alias: Tes
    description: ‘’
    trigger:
    • payload: RfRaw AA B0 4C 04 08 0118 09A6 04CE 28E6 381828082808082828082808082808280828280828082808280828080828082808280828082808280828082808280828082808280828082828080828280808280828
      55
      platform: mqtt
      topic: cmnd/rf_bridge/Backlog
      condition:
    • condition: state
      entity_id: switch.slaapkamer
      state: ‘ON’
      action:
    • entity_id: switch.slaapkamer
      service: switch.turn_on

Please use this when pasting code :

What do you want this automation to do ? The trigger will never work, since topic cmnd/rf_bridge/Backlog is used for sending code to the bridge, but a mqtt trigger is used for listening to messages coming from te bridge.

i want my action remote channel D send to rf bridge and activate a lamp

The condition is of no use, condition -> light on, action switch on. It will never turn on this way.


 id: '1580558061648'
 alias: Tes
 description: ''
 trigger:
   payload: 'AA B0 4C 04 08 0118 09A6 04CE 28E6 381828082808082828082808082808280828280828082808280828080828082808280828082808280828082808280828082808280828082828080828280808280828 55'
   platform: mqtt
   topic: stat/rf_bridge/rfraw
 action:
   entity_id: switch.slaapkamer
   service: switch.turn_on


The part what i understand is that my remote when i push D ON it recieve data when i type RFRAW 177, but when RFRAW 177 is not types nothing disappear in the log from the console, i am stuck how to get the remote working on the rf bridge to trigger a lamp