lazcad / homeassistant

Home Assistant Development
249 stars 83 forks source link

retry if comms down or other failure #36

Open roscoe57 opened 7 years ago

roscoe57 commented 7 years ago

not sure exact problem, but we had electricity power problem I reckon HA rPi was okay and held up, but router & xiaomi gateway would have lost power and restarted anyways, HA python xiaomi stopped working (no ips changed) the gateway was fine, ending up rebooting rPi HA

just wondering if there is any robust reconnection/retry logic, or way of alerting in HA that no Gateway comms is taking place anymore ?

tam-wh commented 7 years ago

Not yet but I'm planning to implement that. Right now, a gateway can only be added when HA starts. My plan is to dynamically add or remove devices or gateway when HA is running

roscoe57 commented 7 years ago

I dont understand the inner workings of HA soz

but I do know there seems to be no alert when the Xiaomi sensor collection stops working, either failing in HA or python component, or Gateway or even individual failed sensor

Had some of these issues over the last 2w, only notice when I see a trend flat lining.