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

History_stats integration: scan_interval not respected (anymore) #93529

Open
bcutter opened this issue May 25, 2023 · 9 comments
Open

History_stats integration: scan_interval not respected (anymore) #93529

bcutter opened this issue May 25, 2023 · 9 comments

Comments

@bcutter
Copy link

bcutter commented May 25, 2023

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

- platform: history_stats
  ...
  scan_interval: 900 # syntactically accepted, but effectively ignored/not working

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

@home-assistant
Copy link

@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@bcutter
Copy link
Author

bcutter commented Aug 25, 2023

Alive because still existing. Any workaround?

@github-actions github-actions bot removed the stale label Aug 25, 2023
@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@bcutter
Copy link
Author

bcutter commented Nov 23, 2023

Still an ISSUE.

@github-actions github-actions bot removed the stale label Nov 23, 2023
@issue-triage-workflows
Copy link

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.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@bcutter
Copy link
Author

bcutter commented Feb 21, 2024

Kept open forever.

@werdnum
Copy link

werdnum commented Mar 27, 2024

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)

@bcutter
Copy link
Author

bcutter commented Mar 27, 2024

Great insights thank you 😀
Are you able to submit a PR?

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

No branches or pull requests

2 participants