Closed tarmor1 closed 1 year ago
Hey there @fabaff, @thomdietrich, mind taking a look at this issue as it has been labeled with an integration (statistics
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
statistics documentation statistics source (message by IssueLinks)
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (history
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
history documentation history source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Hi all! I have a history stats sensor calculating daily ON time for my domestic water pump on MQTT binary sensor (YAML for both of their configs attached below). That is, history time accrues when pump is ON and resets back to 0.00h at midnight. I have observed once that if the ON event starts right before midnight and ends after midnight (eg, being ON while the dates change), the history stats counts the ON time until the next event on observed entity, assuming ON the whole time. As you can observe from the screenshots attached from Log, the pump was switched on at 23:59:40, and off 00:00:05. Yet history wise, time was appended until 04:43:31, when the next plugged-in event happened.
What version of Home Assistant Core has the issue?
core-2022.12.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Statistics
Link to integration documentation on our website
https://www.home-assistant.io/integrations/statistics/
Diagnostics information
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response