Hey everyone.
I am trying to use an input number for my motion lights automation instead of saying like no motion for 10 minutes I wanna use an input number. So I can change all my automation with one variable.
I tried this, but it is not working. Anyone any idea how I could do this?
Thanks for the help!
type: no_motion
platform: device
device_id: 22abf3d61c76a649ddd9bedf5e7d5793
entity_id: binary_sensor.bed_room_motion_sensor
domain: binary_sensor
for:
hours: 0
minutes: |
{{ states('input_number.automatic_lights_off_time') }}
seconds: 0
milliseconds: 0