I have a new component that I’ve written (copied from the Zoneminder component) and it’s working well so far… home-assistant/homeassistant/components/etherrain.py at dev · hpeyerl/home-assistant · GitHub
Unfortunately, after a day or two of uptime, I see this error message:
2017-08-09 06:01:41 WARNING (MainThread) [homeassistant.components.sensor] Updating etherrain sensor took longer than the scheduled update interval 0:00:30
…about every 30 seconds…
Now, the reason I have both a switch and a sensor is because it’s possible some other software (cron?) is controlling the irrigation valves so it’s nice to log when things are being watered… Is it possible (likely) that there is a deadlock between the switch/etherrain and sensor/etherrain because they’re both trying to issue http requests at the same time?
I don’t really know how HA scheduling is done nor why it takes a day or two for this to start happening…
When it’s in this state, everything appears to work ok except I can’t quit HA on a single SIGINT because clearly some thread is blocked …