I have value template setup right now with a delay of 10 minutes, every time I want to change the time I’d have to restart HA, I tried to point the delay_off to an input_number but it didn’t work, what is the right way of doing this? still learning, and this is what I have now
- platform: template
sensors:
motion_in_bathroom:
friendly_name: Motion in Bathroom
value_template: >
{{ is_state("binary_sensor.bathroom_motion", "on")
or is_state("binary_sensor.shower_motion", "on") }}
or is_state("input_boolean.bathroom_on", "on") }}
delay_off: '{{ states(''input_number.bathroom_delay'') | int }}'