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
History_stats integration: scan_interval not respected (anymore) #93529
Comments
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Alive because still existing. Any workaround? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an ISSUE. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Kept open forever. |
Should be an easy fix. Currently update interval is hard-coded to 1 minute here Need to fix the constructor to accept an update interval, then read the config value and pass it here. (It's not actually defined as a config variable for this integration, but it is part of the default config schema defined here) |
Great insights thank you 😀 |
The problem
A long time ago someone (https://community.home-assistant.io/t/history-stats-integration-scan-interval-not-respected-anymore-how-to-configure-sensor-update-interval/480104) discovered that scan_interval: 900 option is not respected (anymore?) for the History Stats integration (History Stats - Home Assistant 5). Instead, sensors update every 60 seconds.
I thought about “so let’s just deactivate auto update in the UI and manually update the entities with my existing automation for that”. But: this integration is not available to be configured from the UI (yet) 😦
I have no idea when this started to not work - or to be honest - if it ever worked so the sensor gets updated only every 900 seconds. Currently the sensor is flooded on every regular sensor update (to be more precise: every 60 seconds, so not every default sensor update which is set to 30 seconds in my case).
Maybe the main question here at the end is:
How to set a scan interval for history_stats sensors?
What version of Home Assistant Core has the issue?
core-2022.12.9
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
history_stats
Link to integration documentation on our website
https://www.home-assistant.io/integrations/history_stats
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
https://community.home-assistant.io/t/history-stats-integration-scan-interval-not-respected-anymore-how-to-configure-sensor-update-interval/480104
The text was updated successfully, but these errors were encountered: