Skip to content

Peaks at summed time statistics #263

Answered by krahabb
Cully81 asked this question in Q&A
Discussion options

You must be logged in to vote

I've just looked at the docs for history_stats and the example says you should put
start: "{{ now().replace(hour=0, minute=0, second=0) }}" to reset at the start of the day. I'd even say it would be better to also reset the microseconds part of the date and I guess this would be needed to avoid 'strange' behaviors when the stats get calculated by inspecting the recorder database for the entity. Maybe the implementation is not so straightforward as it could seem so I'd just try to be more strict on this (if you didn't already)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Cully81
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants