Zefau / ioBroker.roomba

Connect your iRobot Roomba to ioBroker
MIT License
13 stars 6 forks source link

Logic behind refreshing interval of all states (too slow) #19

Closed linchen4000 closed 5 years ago

linchen4000 commented 5 years ago

Hi, my Roomba 675 has no sensor which can measure whether the bin is full, so I wrote myself a script.

A measure the time the roomba is running over the status state, and trigger my "bin Is full" state after a few hours of running. So far so good.

After my "bin is full", I would also like to have the opportunity to reset this state back to "bin is empty". That's not possible currently.

A had the idea to look at the state "binInserted" of this adapter. If it's changing to false, I had emptied the bin.

That would be nice and logically. But the adapter refreshes the states too rarely. I noticed it's updating every 60 - 66 seconds. (Tracked over refreshedDateTime)

In general I'm faster than one minute to empty the bin, and the state "binInserted" will stay on true, although I removed the bin of the roomba, emptied it and inserted it again.

Could you please provide an option to raise the refreshing interval? Or maybe make it configurable to fast / medium / rare or even an option to set the interval in seconds by the user.

It would be nice, if it's frequently enough that my script is working well. Thanks for your work. Best regards from Hamburg

Zefau commented 5 years ago

Thanks for the request. I will have a look at this tomorrow.

Zefau commented 5 years ago

@linchen4000 just wondering: the adapter actually offers to reduce the refresh period in the settings (Refresh time (in sec.) preferences will be retrieved from robot). The standard is 60 seconds. Have you tried that?

linchen4000 commented 5 years ago

Oh... I didn't even know there was a possibility to scroll down there in the settings. Well, that's almost a little embarrassing. Thanks, thats exactly what I was loocking for.

But maybe you can move the "other" settings tab a little bit higher. At the moment it looks such as if nothing more would come under the authentication because of the large gap.

Zefau commented 5 years ago

What's the browser you're on? Looks like this to me:

Screenshot_2019-05-16 instances - ioBroker

linchen4000 commented 5 years ago

roomba1 roomba2

linchen4000 commented 5 years ago

I'm running Chrome on a 4K Display.

Zefau commented 5 years ago

I can reproduce this with Chrome (even though it's not a 4k display ;-D). I'll fix this soon then.

Zefau commented 5 years ago

fixed with v1.0.1