Integrating RF devices with sonoff rf bridge on Tasmota Firmware

Trying to upgrade to 6.4.1 (from Version 6.3.0-2_3_0) but it does not.

Nevertheless, your code seems to work (see log below) also with firmware 6.3.0, but the software switch does not trigger …

10:14:38 CMD: SetOption28 ON
10:14:38 MQT: stat/rf-bridge/RESULT = {"SetOption28":"ON"}
10:14:44 CMD: rule1 on
10:14:44 MQT: stat/rf-bridge/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":432,"Rules":"on RfReceived#data do publish stat/Bridge/RESULT {“RfCode”:"%value%"} endon"}
10:14:52 CMD: rule on RfReceived#data do publish stat/Bridge/RESULT {“RfCode”:"%value%"} endon
10:14:52 MQT: stat/rf-bridge/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":432,"Rules":"on RfReceived#data do publish stat/Bridge/RESULT {“RfCode”:"%value%"} endon"}

this when I press the switch manually, so its all ok I think

10:16:29 RUL: RFRECEIVED#DATA performs "publish stat/Bridge/RESULT {“RfCode”:"9987858"}"
10:16:29 MQT: stat/Bridge/RESULT = {“RfCode”:"9987858"}

You named your sonoff bridge rf-bridge so where I say Bridge in my code replace that with rf-bridge that you named yours. You need to do that in command topic, state topic and rule.

To upgrade a Sonoff device firmware, log in to its local ip choose Firmware Upgrade => Choose file => Start upgrade. First you choose the sonoff-minimal.bin firmware. Flash it restart the device and then flash it again with sonoff.bin. Restart again the device and you are ready.

  1. Yep, that was, plus the code changed since yesterday I reset the siren (I forgot)

  2. Ahh got it, thanks.
    EDIT: ggrrrr I did the sonoff-minimal, now the website does not load …

EDIT it came back, but it does not upgrade. Anyway I am not interested in upgrading, also because the commands seems to work fine

The issue I have is that the switch works well first time (from off to on and the siren triggers), but then the switch does not go back to off (of course I do slide it to off, but it does not go from on to off, it stays on)

Maybe I have to change payload_off or state_off???

Correct, first make sure that your 433 device (siren here) has 2 states (on/off). If it provides you with 2 codes one for on and one for off use the RF Bridge to listen for them and use them in your HA switch as payloads/states.

I do not know how to check that. I think it has only one. The only command I see is when I trigger the remote button (that comes with the siren) and that has just one sending command (the 9987858), so I do not think the siren has 2 commands but just 1: basically the single commands makes the Siren sound for 1 second, a single chime (basically its ON, and OFF after 1 second) … that’s the whole point of me needing to send multiple 9987858.
But if the switch stays ON (does not go to OFF) I cannot send the multiple command from OFF to ON, OFF, to ON, OFF to ON … until the alarm stays triggered

Damned I didn’t think was so complicate lol

PS beside I think its correct that a 433MHz siren does NOT have a OFF signal, imagine a thief couls send that signal and turn off the chimes …

Can I just use a “fake” off? Like after the switch is ON go OFF immediately after …

433 devices with one code wont work correctly in HA states.

Either you need to find a 433 device with at least 2 codes (on/off),
or ideally get a plain dumb siren and control it with a wifi switch (i.e. Wemos D1 mini, Sonoff, Shelly).

HI.
i’ve been trying to set a socket that i bought to control a fan, the socket is RF controlled, have On and Off codes.
i’ve been following your explanation to Klagio but still no luck, i created a switch like you did and also made the changes in the RF bridge but no respond when i press the switch in HA.
can you please have a look at my settings, what am i’m doing wrong?

sorry for the long log, i thought it might be helpful

23:47:38 CMD: SetOption28 ON
23:47:38 MQT: stat/bridge5/RESULT = {“SetOption28”:“ON”}

23:48:09 CMD: rule1 on
23:48:09 MQT: stat/bridge5/RESULT = {“Rule1”:“ON”,“Once”:“OFF”,“StopOnError”:“OFF”,“Free”:431,“Rules”:“on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:”%value%“} endon”}

23:49:13 CMD: rule on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:“%value%”} endon
23:49:13 MQT: stat/bridge5/RESULT = {“Rule1”:“ON”,“Once”:“OFF”,“StopOnError”:“OFF”,“Free”:431,“Rules”:“on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:”%value%“} endon”}

0:00:00 APP: Set Baudrate to 19200
00:00:00 Project sonoff Sonoff Version 6.4.1.9(sonoff)-2_4_2
00:00:00 WIF: Connecting to AP1 productionwifi in mode 11N as bridge5-0237…
00:00:04 WIF: Connected
00:00:04 HTP: Web server active on bridge5-0237 with IP address 192.168.10.147
00:00:05 RSL: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:05 RSL: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:04”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:05 RSL: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:05 RSL: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:05 RSL: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:26,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:05 RSL: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:05 RSL: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
00:00:05 RSL: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:05 1970”,“Local”:“Thu Jan 01 00:00:05 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
00:00:05 RSL: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“1970-01-01T00:00:05”}}
00:00:05 RSL: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“1970-01-01T00:00:05”,“Uptime”:“0T00:00:04”,“Vcc”:3.483,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:54}}}
00:00:07 MQT: Attempting connection…
00:00:07 MQT: Connected
00:00:07 MQT: tele/bridge5/LWT = Online (retained)
00:00:07 MQT: cmnd/bridge5/POWER =
00:00:07 MQT: tele/bridge5/INFO1 = {“Module”:“Sonoff Bridge”,“Version”:“6.4.1.9(sonoff)”,“FallbackTopic”:“cmnd/DVES_42C0ED_fb/”,“GroupTopic”:“sonoffs”}
00:00:07 MQT: tele/bridge5/INFO2 = {“WebServerMode”:“Admin”,“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”}
00:00:07 MQT: tele/bridge5/INFO3 = {“RestartReason”:“Software/System restart”}
00:00:08 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:08 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:06”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:08 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:08 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:08 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:24,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:08 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:09 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
00:00:09 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:09 1970”,“Local”:“Thu Jan 01 00:00:09 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
00:00:09 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“1970-01-01T00:00:09”}}
00:00:09 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“1970-01-01T00:00:09”,“Uptime”:“0T00:00:06”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:56,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
00:00:12 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:12 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:09”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:12 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:12 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:12 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:12 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:12 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:33 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:12 1970”,“Local”:“Thu Jan 01 00:00:12 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
23:44:33 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:33”}}
23:44:33 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“2019-04-08T23:44:33”,“Uptime”:“0T00:00:10”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
23:44:38 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
23:44:38 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
23:44:38 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:38 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Mon Apr 08 15:44:38 2019”,“Local”:“Mon Apr 08 23:44:38 2019”,“StartDST”:“Sun Mar 31 02:00:00 2019”,“EndDST”:“Sun Oct 27 03:00:00 2019”,“Timezone”:“+08:00”,“Sunrise”:“05:34”,“Sunset”:“18:17”}}
23:44:38 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:38”}}
23:44:38 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“2019-04-08T23:44:38”,“Uptime”:“0T00:00:15”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
23:44:38 MQT: tele/bridge5/STATE = {“Time”:“2019-04-08T23:44:38”,“Uptime”:“0T00:00:15”,“Vcc”:3.484,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}
23:44:39 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
23:44:39 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:16”,“StartupUTC”:“2019-04-08T15:44:23”,“Sleep”:50,“BootCount”:12,“SaveCount”:39,“SaveAddress”:“F5000”}}
23:44:40 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
23:44:40 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
23:44:40 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
23:44:40 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
23:44:40 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:40 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Mon Apr 08 15:44:40 2019”,“Local”:“Mon Apr 08 23:44:40 2019”,“StartDST”:“Sun Mar 31 02:00:00 2019”,“EndDST”:“Sun Oct 27 03:00:00 2019”,“Timezone”:“+08:00”,“Sunrise”:“05:34”,“Sunset”:“18:17”}}
23:44:40 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:40”}}

platform: mqtt
name: “Switch rf test”
command_topic: “cmnd/bridge5/RfCode”
payload_on: “948984”
payload_off: “948988”
state_topic: “stat/bridge5/RESULT”
value_template: ‘{{ value_json.RfCode }}’
state_on: “948984”
state_off: “948988”
retain: false
qos: 1

Thanks for your post

1 Like

I have a smoke detector with only 1 code and this works fine.
When it detects smoke it just keeps in alarm in home assistant, untill I press a reset button which basically publisched another rfkey in mqtt (like 00000).

Same for switches with only 1 code, I made automations when the code is seen by home assistant, it toggles what I want and after that a new rfkey is published via mqtt. This way the switch can be used normally.

Mr. Sneezy, would you please share the code you used to capture the image from the IP camera when the binary sensor is triggered? Thanks!

I assume you want the automation block for that.

- alias: Capture Image Edimax Camera - SensorNode2 or 433Mhz PIR 1
  trigger:
  - entity_id: binary_sensor.rf_bridge_key_8
    from: 'off'
    platform: state
    to: 'on'
  - entity_id: binary_sensor.sensornode2_motion
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - after: 00:00:00
    before: 07:00:00
    condition: time
  action:
  - data:
      entity_id: camera.edimax_camera
      filename: /share/ipcamera/snapshot_{{ entity_id.entity_id }}.jpg
    service: camera.snapshot
  - delay: 00:00:02
  - data:
      data:
        file: /share/ipcamera/snapshot_camera.edimax_camera.jpg
      message: Edimax Camera Image
      title: Back Verandah triggers
    service: notify.martins_notifications
  initial_state: false

I’ll also paste the sensor code for rf_ bridge_key_8 as that has just been changed (literally last night) to a new fix for those lovely and totally fantastically useful warning logs messages thrust on us last year.
(and thank you Otto Winter for ESPhome, now eliminating mqtt use on 90% of my sensors).

  - platform: mqtt
    name: "RF bridge key 8"
    state_topic: "tele/sonoff_bridge/RESULT"
    value_template: >-
      {% if value_json.RfReceived.Data == 'F12345' %}
        {{'ON'}}
      {% else %}
        {{states('binary_sensor.rf_bridge_key_8') | upper}}
      {% endif %}
    off_delay: 3
    device_class: motion
1 Like

how? not all sensors can be converted to esphome afaik…

Sure not all Ahmad, but close enough for me (and I suspect any HA newbies). I have not found ANY of mine, including the Bruh Automation SensorNodes, Sonoff S20’s, Car battery monitor (my own design), ESP32 camera etc, that it didn’t support yet (other than that Sonoff RF Bridge in a full RF chipset mode).

As example of support I was stoked with how easy it was for me to add in a BMP180 to one of my Bruh sensornodes to get outdoor baro pressure, done in about ten minutes, no Arduino IDE work, no adding libraries, no fiddling mqtt BS cludges in the config.yaml, just done like dinner…
I suppose you will always find an example of what wont be supported though, and that’s always going to be the case with any system.

I think you’re mixing things up a bit :wink:
I wouldn’t call Sonoff RF Bridge/S20 a sensor. My question was primarily of that “sensor” word.
I use one of my Wemos D1 mini flashed with ESPHome in native mode and I like it.
On the other hand, my choice in terms of RF gateways is OMG@SRFB (direct hack) with pilight module, we only need support of some more sensors (as it supports my Kerui and other door sensors but does not support Sonoff PIR2 in this mode yet, but supports them all in RF mode).

Granted yes, I have 11 RF sensors on doors, gates etc plus some EV1527 chip PIR’s going into the Sonoff/Tasmota RF hub. I also control some RF devices like doorbells and locks. It would be nice to have all those via ESPhome somehow eventually. mqtt is working for me, I just leave it alone now, as I don’t enjoy it.

Thank you so much! I really appreciate it!

Hi Ahmad, can you link me to how to get omg onto the somoff RF bridge? RF is a majority of my use case for it too… additionally, Can you expand the srfb with Bluetooth/ir and zigbee support as per the omg project?

here it is

I can’t say that… use it just because it was gathering dust and for some reason my Wemos D1 mini was not very good at picking up signal… but I like the result :wink:

I’d recommend to visit this and this place.
I haven’t tried anything but RF in OMG, but possibly yes for IR and most likely no for BT.