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

Restarting HA creates dublicate entries with wrong timestamp in the InFlux DB #336

Open
VasMan opened this issue Jun 3, 2024 · 2 comments

Comments

@VasMan
Copy link

VasMan commented Jun 3, 2024

Problem/Motivation

I use InFluxDB and Grafana to store and visualise multiple data from sensors and external feeds (e.g. Apple Health Data). However, every time HA restarts it creates a duplicate entry of the last data that came in but with the wrong timestamp, the newtime stamp is the one when HA was restarted and not when the data first came in.

Expected behavior

When HA restarts it should not reload the old data with a different timestamp.

Actual behavior

As per problem description above, I see loads of duplicates with wrong timestamp that completely bias and distorts my statistics

Steps to reproduce

Check the data in the database for any input, e.g. Apple Health Data or Strava, see if you have any numbers showing for today, and when was the last number. If you have no data from today but had data yesterday, then restart HA and observe that the today's value will change from no data to what was the last value yesterday.

Proposed changes

As per description when HA restarts do not auto-reload all the data with new timestamp, either dont load at all or use the timestamp when the data first entered.

Copy link

github-actions bot commented Jul 4, 2024

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jul 4, 2024
@VasMan
Copy link
Author

VasMan commented Jul 4, 2024

No problem is still there

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jul 5, 2024
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

1 participant