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

How to deal with history sensors #11

Closed
balloob opened this issue Feb 18, 2018 · 3 comments
Closed

How to deal with history sensors #11

balloob opened this issue Feb 18, 2018 · 3 comments

Comments

@balloob
Copy link
Member

balloob commented Feb 18, 2018

Definition: 2nd order components are components that take raw data available in Home Assistant and process it into new data.

We are getting more and more 2nd order components that show a statistic over a period in the history of an entity (example: history_average which allows calculating average value during last 2 hours)

The problem with these sensors is that their state is time based and thus they update the value on every update, which spams the state machine.

How can we solve this? One thing we can do is to set a minimal update interval to limit state updates.

But what else?

@andrey-git
Copy link

Limiting update interval for 2nd order components will make them inaccurate.
Unless they want time decay they only update when the "source" component updates, right?

@balloob
Copy link
Member Author

balloob commented Feb 20, 2018

Correct.

@frenck
Copy link
Member

frenck commented May 11, 2023

This architecture issue is old, stale, and possibly obsolete. Things changed a lot over the years. Additionally, we have been moving to discussions for these architectural discussions.

For that reason, I'm going to close this issue.

../Frenck

@frenck frenck closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2023
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

3 participants