jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
39 stars 8 forks source link

Don't update sensors to unavailable on uplink timeout (?) #96

Open elden1337 opened 3 months ago

elden1337 commented 3 months ago

A couple of times a day I get timeout from myuplink. Given the prev instructions on set update freq I interpreted mine as being ok for 60s, so that's what its at. And if the issue was temp overusage it would say that, right?

So, my question is, wouldnt it be better to not update the sensors to unavailable when these timeouts occur, but rather keep the latest known and continue fetching again later?

abbamust commented 2 months ago

I have same problem. Not all sensor at once, but after some time many sensors are unavailible. I can load the integration agian, and every sensor is ok again...

fsedarkalex commented 2 months ago

Also having the issue here, that myuplink seems to be timeouting from time to time. Maybe the "unavailable" flag can be delayd to for example only if it fails X times in a row?