homebridge-plugins / homebridge-roomba2

Homebridge plugin to connect iRobot Roomba devices with Homebridge/HomeKit.
MIT License
145 stars 17 forks source link

Status not updating unless you open the “home” app #79

Closed redeemer666 closed 2 years ago

redeemer666 commented 2 years ago

Hi Karl,

Don't know if this is an issue with the plug-in (I have beta 7) or the latest developer beta from Apple, but since the update from the latter roomba status and sensors doesn't update themselves in background, but only when you open the "home" app.

karlvr commented 2 years ago

@redeemer666 I have slowed down how often the plugin checks in on Roomba when the plugin doesn't think Homebridge is in use. But it should be checking once an hour at the most infrequent. Does that match what you're experiencing? Does it need to update more frequently to support what you're using it for?

redeemer666 commented 2 years ago

@karlvr Thanks for your answer. Yeah this is exactly what is happening. I use Roomba and Braava once per week, and everytime I start them takes a lot of time to start the automation connected, unless I open the home app (this is happens only on the first use after days of stand-by. After that it becomes pretty fast, maybe you shorten the time when the plugin knows I'm using them?).

I use the Roomba activity sensor to switch on some lights, because they starts in a pretty dark room and may have trouble "finding the way" out of it, so timing is essential. I think the best way is to re-add the possibility to choose when to check roomba status, so if you don't want to flood the system with requests you can leave "as is", otherwise you can set a fixed amount of time.

karlvr commented 2 years ago

@redeemer666 I've increased the default polling to once a minute (a huge increase from once per hour). Please upgrade to beta 8 and let me know how this goes for you. I'm not sure that once per minute is a sensible frequency... but maybe it's fine. If it doesn't end up being the default, I will make it configurable again.

redeemer666 commented 2 years ago

Thanks @karlvr

Just updated to beta 8. Will check and let you know. For the moment, I don't see any issue on memory or processor usage inside homebridge, or in the home app.

redeemer666 commented 2 years ago

Hi @karlvr

With the new setting, it works as expected with my automations. A little delay still remains, but it is manageable, so I think you can leave it as is.

Thanks really a lot for your support, great job with the plug-in!