Sonoff RF Bridge with Tasmota, how to compile Portisch firmware

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

If you have to type every time rfraw 177 in the console to be able to receive your remote, it probably won’t work. I use rflink for my KAKU protocols.

Basically just registered to respond, but would have done so inevitably :stuck_out_tongue:

I added a switch to my config.yaml

switch:
  - platform: mqtt
    name: "Remotebutton_B"
    command_topic: "SonoffBridge/cmnd/backlog"

    payload_on: "rfraw **myRemotesSniffedCodeHere**; rfraw **myRemotesSniffedCodeHere**; rfraw 0"

    payload_off: "rfraw **myRemotesSniffedCodeHere**; rfraw **myRemotesSniffedCodeHere**; rfraw 0"

    qos: 0

Apparently sending with RFRAW turns it to state 1. Hence the last command to revert to state 0.
I haven’t adapted my other devices to run in state 1, yet. Since I haven’t delved deeper into my sniffed code I registered two working “sniffs” and have my bridge send out both to make sure the receiving end atleast gets one right.

There are probably other ways to do this, I have about 10h experience with HA/Tasmota… so still alot to learn.
Add the code above, replace with your sniffed, b0 translated code, check config and reboot HA.
Then you can add the switch to frontend.

Hello,

I have a Sonoff Bridge 433 MHz (Tasmota / Portisch) running via MQTT on the HA. I want to use it to switch my shutters. If I set option RfRaw 166 I get the following code:

tele / tasmota_C3B1F5 / RESULT = {“Time”: “2020-11-02T09: 15: 30”, “RfRaw”: {“Data”: “AAA606012CFF86713355”}}

How can I send that now? If I copy it into the command line, nothing happens.

If I set the RfRaw 177 option, I unfortunately don’t receive anything …

I have already received several other codes with the RfRaw 177 option and have also converted them, so they can be switched with Home Assistant without any problems.

I currently have the following command:

cover:

  • platform: “mqtt”

name: “Rolladen HWR”

command_topic: “cmnd/tasmota_C3B1F5/Backlog”

payload_open: “RfRaw AAA420F80110033001232355; RfRaw 0”

payload_close: “RfRaw AAA606012CFF86713355; RfRaw 0”

payload_stop: “RfRaw AAA606012CFF86715555; RfRaw 0”

But unfortunately it doesn’t work !!!

Best regards
Marcel

I define a cover, not a switch and it works perfectly with home assistant :slight_smile:

cover:
  - platform: mqtt
    name: 'Store'
    command_topic: 'RF_Bridge/cmnd/backlog'
    #state_topic: 'stat/RF_Bridge/rfraw'
    #availability_topic: 'tele/RF_Bridge/LWT'
    #payload_available: 'Online'
    #payload_not_available: 'Offline'
    payload_open:  "rfraw AA B0 4C 04 08 13B0 0280 0118 13A6 38192A192A1A1A19292A192A1A1A1A1A192A192A1A192A19292A192A192A192A192A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A1A1A1A192A19292929292A19292A1929 55 ; rfraw 0"  # UP
    payload_stop:  "rfraw AA B0 4C 04 08 13B0 0280 0118 13CE 38192A192A1A1A19292A192A1A1A1A1A192A192A1A192A19292A192A192A192A192A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A1A192A1A1A19292A1A1A1A1A192A1929 55 ; rfraw 0" # Stop
    payload_close: "rfraw AA B0 4C 04 08 13B0 0280 0118 13E2 38192A192A1A1A19292A192A1A1A1A1A192A192A1A192A19292A192A192A192A192A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A192A1A1A1A19292A1A192A1A192A1929 55 ; rfraw 0" # Down
    state_open: "open"
    state_opening: "opening"
    state_closed: "closed"
    state_closing: "closing"
    payload_available: "online"
    payload_not_available: "offline"
    optimistic: true

Hello i am trying to achieve the same for my shades. kind of a newbie here hope you can help out.
I already got all of my codes on the console

I also can get it to work if i put the code manually on the console:

 cmnd/RF_bridge_raw/rfraw AAB04C0408139C0276011813A638192A192A1A1A19292A1929292A1A1929292A192929292A192A1A192A192A1A1A1A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A192A1A1A1A1929292A1A1929292A1A1955

I have also tried to configure something as you to star simple:

cover:
  - platform: mqtt
    name: "Oficina"
    command_topic: "RF_bridge/cmnd/backlog"
    payload_open:  "rfraw AA B0 4C 04 08 13A6 0276 010E 13A6 38192A192A1A1A19292A1929292A1A1929292A192929292A192A1A192A192A1A1A1A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A1A1A1A192A19292A19292A1A192A1A19 55 ; rfraw 0"  # UP
    payload_stop:  "rfraw AA B0 4C 04 08 139C 0276 0118 13A6 38192A192A1A1A19292A1929292A1A1929292A192929292A192A1A192A192A1A1A1A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A192A1A1A1A1929292A1A1929292A1A19 55 ; rfraw 0" # Stop
    payload_close: "rfraw AA B0 4C 04 08 13A6 0280 0118 13B0 38192A192A1A1A19292A1929292A1A1929292A192929292A192A1A192A192A1A1A1A1A1A1A1A1A1A192A1A1A1A1A1A1A1A1A1A192A1A1A19292A19292929292A1A19 55 ; rfraw 0" # Down

i cant for the life of me figure out why i cant get this to work via mqtt but working on the console.

Any guidance would be appreciated

Not sure if it’s the same in tasmota, but with ESPHome on the sonoff I had to removed all the spaces from the raw code for it to work.
Looks like there were no spaces in the code you used in the console.

Thanks for the reply

Tried both with spaces and no spaces and both work .

I am starting to lean on maybe i am messing the topic and full topic kind of a newbie with tasmota and mqtt tbh.

Should i be sending the commands to the topic or the full topic?

Do you use esphome at all? I have a working config with that.

Nop but I don’t mind learning … I’m guessing I need to change the firmware on the device ?

As you’ve already got the Portiche firmware on the second chip and the needed RF codes you can skip down to the bottom.
Install the esphome add-on.
Add a device with the yaml code I posted, obviously with your passwords and raw codes. Click save, click compile, then save binary.
Then go to the tasmota web interface and click firmware upgrade.

I am trying to make a door sensor work as a binary sensor.
in Tasmota console, there are these information
01:55:03.532 CMD: RfRaw 177
01:55:03.538 MQT: stat/tasmota_EDF38A/RESULT = {“RfRaw”:“ON”}
01:55:04.024 MQT: tele/tasmota_EDF38A/RESULT = {“Time”:“2021-03-11T01:55:04”,“RfRaw”:{“Data”:“AAA055”}}
01:55:22.344 MQT: tele/tasmota_EDF38A/RESULT = {“Time”:“2021-03-11T01:55:22”,“RfRaw”:{“Data”:“AA B1 03 04B0 019A 2FF8 28181819090818190908190818190909081908190819090819 55”}}
01:55:23.266 MQT: tele/tasmota_EDF38A/RESULT = {“Time”:“2021-03-11T01:55:23”,“RfRaw”:{“Data”:“AA B1 03 04F6 015E 300C 28181819090818190908190818190909081908190819090819 55”}}

And my code in binary_sensor yaml is like so…

Copy to clipboard

  - platform: mqtt
    name: "test_door"
    state_topic: "tasmota_EDF38A/cmnd/Backlog"
    payload_on: "RfRaw AA B1 03 04F6 015E 300C 28181819090818190908190818190909081908190819090819 55;RfRaw 0"
    payload_off: "112CA6_off"
    device_class: door
    off_delay: 5      
    qos: 1

Incredibly the old configuration still works (without portisch)

Copy to clipboard

  - platform: mqtt
    name: "porta_social"
    state_topic: "tele/tasmota_EDF38A/RESULT"
    value_template: '{{value_json.RfReceived.Data}}'
    payload_on: "E658A9"
    payload_off: "E658A9_off"
    device_class: door
    off_delay: 20  
    qos: 1

Any suggestion to make my HA recognize the RfRaw mode?

Hi @thermseekr

Can you pass steps that you done to compile portish firmware project?

I’m confused how to open and build this project.

Hello,

Sorry I no longer use portisch or even the sonoff bridge. I only had simplicity studio installed for a few days to compile the firmware adding info for some sensors I have in my setup. But the thing was unstable and I just let it go. I now use a SDR receiver with rtl_433, way way better for my purposes. Also because it uses an external antenna with much more sensitivity.

Cheers