Condition: duration ("for") in value_template

From what I understand, last_changed is not an attribute, it is a property of the state object so you need to use the state object method to access it:

{{ states.sensor.badunten_messwerte_temperature.last_changed }}
1 Like