Get difference from now() to last changed in minutes

By avoiding as_timestamp and using the datetime objects.

{{ (now() - states.binary_sensor.zugaengeeg.last_changed).total_seconds() // 60 }}
1 Like