calisro
(Rob)
15
The on and off is the ‘state’ of the entity. The ‘how many minutes ago’ is the last_changed fields.
You should look here for that info:
for example:
{{ as_timestamp(states.binary_sensor.garage_door.last_changed) }}
btw, something like this is going to get you where you need to go to determine how long the window was open…