Closed marthoc closed 6 years ago
Confirmed on Home Assistant 0.61.1. I will look into it.
Just pulling the cable on the Lutron box didn't have the same effect. Curious.
Added some re-connection code. If it loses the connection it will attempt a new connection every 60 seconds.
I tested it by unplugging the bridge for a few minutes and re-connecting. Works ok, but only downside is it does not update the state after re-connections. Not exactly sure how to access all the devices from that part of the code so there is definite room for improvement.
Also found if you unplug and re-plug with a minute or so, the timeouts may not occur because no exceptions are thrown. So a short disconnection may not re-connect properly. Only applies to power cut to the bridge. A loss of network connection is different and usually recovers.
When HA loses connection to the Pro Bridge (eg the bridge is restarted, after a power loss, etc), the following error appears in the HA log:
When trying to control a device, the following traceback is thrown:
So it appears as though HA isn’t trying to reestablish the telnet connection if it breaks. I’ve found that only restarting HA makes the Caseta devices reachable again.