HA misses RPi GPIO state changes

This has been a problem for a long time. There are some workarounds here: