I wonder how can I made this a little bit more fault tolerant?
I having problem when the port expander restarting or i2c line cut and recover.
After transient problem is gone it is sending frenetically sensor state ON – OFF until restart
[D][binary_sensor:036]: 'Living PIR': Sending state ON
[D][binary_sensor:036]: 'Living PIR': Sending state OFF
[D][binary_sensor:036]: 'Living PIR': Sending state ON
[D][binary_sensor:036]: 'Living PIR': Sending state OFF
[D][binary_sensor:036]: 'Living PIR': Sending state ON
[D][binary_sensor:036]: 'Living PIR': Sending state OFF
…………………………
Also I want to catch the event somehow if no connection and shut down some system until it is not recovered.
With a pull up resistor i was able to correct this behavior. So i am fine. I not closing this case just because you might want to document it. Thank you
Hello
I wonder how can I made this a little bit more fault tolerant? I having problem when the port expander restarting or i2c line cut and recover.
After transient problem is gone it is sending frenetically sensor state ON – OFF until restart
Also I want to catch the event somehow if no connection and shut down some system until it is not recovered.
This is my test code:
Thank you