You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
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.
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?
The text was updated successfully, but these errors were encountered: