Hello
I have a simple binary_sensor in my configuration.yaml.
Everything works as expected without delay.
But as soon as I comment-in delay_on the sensor never turns on.
I would expect the sensor to switch to on after about 10s after the power is bigger than 500.
But even after 10 minutes the sensor was off.
Without delay_on it turns on immediately after power is bigger than 500.
I already googled but everything I could find were discussions about delay_on and the sensor state being “unknown” but that is not my problem.
Any idea what is wrong here?
template:
- trigger:
- platform: time_pattern
seconds: "/10"
binary_sensor:
- name: Dishwasher Running
state: >-
{% if is_state('binary_sensor.dishwasher_running', 'off') %}
{{ states('sensor.dishwasher_power') | float > 500 }}
{% else %}
{{ states('sensor.dishwasher_power') | float > 5 }}
{% endif %}
#delay_on:
#seconds: 10