-
Hello, I would like to have the runtime of my mts200 underfloor heating displayed per day. I have already created a sensor for this, which actually works: `
However, when I look at the graph, I see peaks that should not be there. The running time is about 2 hours every day. The peaks then sometimes go up to 10 hours, although the heating is not on. The graph then also falls back again within the day. At some point, the sensor is apparently wrongly processed. But I do not know where. Can anyone help? Is the error in my code? Or what could be the reason? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've just looked at the docs for history_stats and the example says you should put |
Beta Was this translation helpful? Give feedback.
-
Hi @krahabb Thank you very much for your answer.
And there you go, it looks good. |
Beta Was this translation helpful? Give feedback.
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)