Trying to setup an automation with timer triggered by door contact.
type: opened
platform: device
device_id: 0d8975....
entity_id: binary_sensor.mydoorsensor
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: '{{ states(''sensor.temp'') }}'
If I try to save this, I get an error: malformed data[‘for’][‘seconds’]. I tried different versions (with/out quotes ) but i got no solution. Is there any chance to set a value with a template?
Tom