Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docked state polling and redrawing entire map every 3 seconds on fresh page load #149

Open
codicusmaximus opened this issue Nov 2, 2023 · 0 comments

Comments

@codicusmaximus
Copy link

codicusmaximus commented Nov 2, 2023

https://github.com/Hypfer/lovelace-valetudo-map-card/blob/3ac4e80200b7afb3edee010b0ca77acab0189dac/src/valetudo-map-card.js#L25C38-L25C38

Since lastRobotState is initialized to "docked" but the pollInterval is initialized to 3 seconds ( POLL_INTERVAL_STATE_MAP["cleaning"] instead of POLL_INTERVAL_STATE_MAP["docked"] ) when the page is loaded when the vacuum is docked we have a 3 second hammering poll that is also killing the performance of my wall tablets when no cleaning is being performed. This should be POLL_INTERVAL_STATE_MAP["docked"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant