Use time-based filters and add on_update trigger to make the default config work for all hardware revisions #200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds two things to improve the configuration for all hardware revisions:
throttle_average
filter let's us specify a time to average over compared to the sliding window average that depends on knowing the update frequency, so it doesn't matter which revision Emporia Vue you havethrottle
filter to the energy sensors so as to not publish updates too frequently; this sends the most recent value after the specified time has passed since last publishingthrottle_average
throttle_average
filter is applied after combining the internal sensors to reduce publishing rateson_update
automation trigger to the component that is called after all sensors have updated, improving total/balance power accuracyupdate_interval
of never, and they are instead updated only via this triggerupdate_interval
that relies on the hardware revision's internal update rateon_value
. Theon_update
trigger is guaranteed to execute once after every individual sensor in the component has updated. This allows the template sensors to simultaneously update after all the internal power sensors have finished publishing new values. In contrast, theon_value
trigger is executed after a specific individual sensor has updated.