I am using the history stats to give me a daily total of how long a switch has been open.
There seems to be a new issue in one of the recient updates which is causing the daily total to be incorrect.
The code I am using for the sensor is:
- platform: history_stats
name: Back Door Open Today
entity_id: binary_sensor.backdoor_contact
state: 'on'
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
The screen shot shows that the sensor is has been open for 11:43:12 but this is incorect.
The recoder is set to record the sensor.
Has anyone else had issues with the history stats showing incorrect time usage?