Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

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

Closed
linchen4000 opened this issue May 15, 2019 · 8 comments
Closed

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

linchen4000 opened this issue May 15, 2019 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@linchen4000
Copy link

  • Roomba Model: 980 & 675
  • Roomba Software Version: latest (both)

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

@linchen4000 linchen4000 changed the title Logic behind refreshing interval of all states Logic behind refreshing interval of all states (too slow) May 15, 2019
@Zefau Zefau added the enhancement New feature or request label May 15, 2019
@Zefau Zefau self-assigned this May 15, 2019
@Zefau
Copy link
Owner

Zefau commented May 15, 2019

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

@Zefau
Copy link
Owner

Zefau commented May 15, 2019

@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
Copy link
Author

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
Copy link
Owner

Zefau commented May 16, 2019

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

Screenshot_2019-05-16 instances - ioBroker

@linchen4000
Copy link
Author

roomba1
roomba2

@linchen4000
Copy link
Author

I'm running Chrome on a 4K Display.

@Zefau
Copy link
Owner

Zefau commented May 16, 2019

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

Zefau added a commit that referenced this issue May 16, 2019
@Zefau
Copy link
Owner

Zefau commented May 16, 2019

fixed with v1.0.1

@Zefau Zefau closed this as completed May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants