I try to track heater usage on last 30 days. Some times it works but generally it gives values which are a way of from reality
I have following config
- platform: history_stats
name: ULkohuone lämmitys ON (viim. 30pv) h
entity_id: switch.ulkohuone
state: "on"
type: time
end: "{{ now().replace(hour=0, minute=0, second=0) }}"
duration:
days: 30
If i check it from Influxdb, there I see these spikes. What could be the cause?