Hi,
I have Sonoff RF-bridge running with ESP Home and Portisch firmware.
I want to monitor/persist the Open/Close state of my door/window sensors and the state of my alarm in HA to add some automation rules and intelligence to my alarm.
The sensors and rf codes are set properly and I do receive event changes in HA some of the time. But these sensors (Binary switches) goes unavailable most of the time. And I loose state changes and I am left with wrong states in HA.
Here are some examples from my esp home code:
- platform: remote_receiver
name: Motion Family
id: motion_family
device_class: motion
rc_switch_raw:
code: '000111101010010101011100' #1EA55C
protocol: 2
filters:
delayed_off: 400s
- platform: remote_receiver
name: "OpenClose5_Opened"
id: open_close_5_opened
rc_switch_raw:
code: '111000001001001100001010' #E0930A
protocol: 2
filters:
- delayed_off: 5s
- platform: remote_receiver
name: "OpenClose5_Closed"
id: open_close_5_closed
rc_switch_raw:
code: '111000001001001100001110' #E0930E
protocol: 2
filters:
- delayed_off: 5s
I have about 40 of these code blocks (sensors).
I guess I read somewhere the issue is caused by the large amount of code in the RF bridge Esp code. I reduced this to the minimum but no significant difference.
Any idea what I can do?