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

Feels Like sensor updates multiple times when input sensors are updated at the same time #86

Open
higbyk opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request.

Comments

@higbyk
Copy link

higbyk commented Aug 22, 2022

Is your feature request related to a problem? Please describe.

Yes. My temperature and humidity sensors update at the same time, but the calculation for the Feels Like Temperature happens twice, back-to-back. This causes strange spikes in the history where there are two values for the same point in time (one value is calculated with the current temperature and old humidity, the other is with current values for both)

Describe the solution you'd like

I'm not sure what the best solution is. Options are:

  • add an optional 1-second delay before calculating, and ignore any changes during that time (i.e. temp updates, triggering the calculation; humidity updates during the delay but does not trigger an additional calculation; sensor updates with 1-second-old temp and humidity values)
  • allow users to specify sensors to use as triggers. For example in my case I could have it only update the Feels Like Temperature when the humidity sensor is updated (but not necessarily changed).
  • allow users to specify a minimum age for sensor data. When triggered, check that all input sensors have been updated within that time frame, or don't update the Feels Like Temperature (or mark it unavailable)

Describe alternatives you've considered

I have not been able to find an alternative that resolves this issue.

Additional context

I have automations that trigger on a comparison of two Feels Like Temperature sensors, and it is triggered twice as often as it needs to be, with bad data for the first of each trigger. I can set it to restart mode but it still feels like there should be a solution to the sensors getting updated with old data half the time.

@higbyk higbyk added the enhancement New feature or request. label Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant