joshjcarrier / homeassistant-litter-robot

The litter-robot component offers integration with the Litter-Robot WiFi enabled devices to Home Assistant.
82 stars 15 forks source link

status update is rather slow #12

Closed SonomaGTS closed 4 years ago

SonomaGTS commented 4 years ago

Does this component update every 30 seconds like the default for HA? Or is it something else? I noticed when I trigger the cycle command it's almost instant but the status and the waste status and even night light are severely delayed. Is there a way to increase the polling?

SonomaGTS commented 4 years ago

So after a little more poking around I finally found this timeout which seems to resolve part of the issue however I am not sure what the negative impact is reducing that timeout will have for the litter robot api. The default state polling in HA is every 30 seconds so i reduced that 5 min Throttle down to 30 seconds and so far not ran into a snag. Seemed to have updated the status of the little robot relatively quick for initializing a clean cycle but took a little long to reset back to ready but I think that's the slowness of the api getting the update from the litter robot.

I have noticed initializing a cycle through this component changes the waste gauge count starting from 110% went down to 24% with one cycle back to 26% next cycle. Not sure what causes that.

NightShaman commented 4 years ago

I agree, I set mine to 30 seconds as well, and it seems better. Especially when using a dashboard app to display status.

joshjcarrier commented 4 years ago

Cool is 30 sec the norm for these polling sensors? I can adjust that.

For the cycle reset I'll have to see if mine does the same thing

SonomaGTS commented 4 years ago

well it's been over a month and not ran into any snags. it's still not perfect but it catches the state changes even if delayed sometimes. Downside of having to fetch the status of the LR remotely from the api after it's updated remotely to the LR. Too bad there is no local api to bypass the cloud entirely.