HI,
trying this:
- wait_template: >
{{ is_state('binary_sensor.poort_buiten_motion_sensor_timed','off')}}
using this template binary_sensor
poort_buiten_motion_sensor_timed:
friendly_name: 'Poort buiten motion sensor timed'
value_template: >
{{ is_state('binary_sensor.poort_buiten_motion_sensor','on')}}
delay_off:
seconds: >
{{states('input_number.presence_timer')|int }}
device_class: motion
errors on the binary_sensor expecting an int
. Apparently the template binary_sensor doesn’t accept a template for the delay_off? Not sure this is it though, so I’ve asked on current issue on Github for a template binary sensor also, but maybe anyone here knows what to do?
If it is not yet accepting a template yet, guess I need to create a feature request…though it feels to be an issue/bug considering the other delay possiblities, so reported that here: https://github.com/home-assistant/home-assistant/issues/26843
should be as simple as copying the template option for regular delay we already can use in scripts/automations as documented here?
please have a look, thanks