Hey Tom,
I don’t use the template sensor data for the graph. I use the Rest sensor value. This was my mod from the original (and brilliant!!) idea.
Here is the raw sensor data from today:
And the corresponding graph:
Doesn’t give me any problems.
Worth a try.