History stats keeps incrementing even though the switch is off. I’ve also unplugged the switch to ensure no rouge mqtt commands are being sent.
It was working well for a long time before I upgrade to 2022.5.4 (from 2022.4.x or 2022.3.x)
- platform: history_stats
name: Kids Water Heater on today
entity_id: switch.sonoff_kids_water_heater
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"