why is not the option of a condition template for x time? example:
condition: template
value_template: '{{ state_attr ("sensor.home", "assistant")
> 1 }}'
for: "xx:xx:xx"
why is not the option of a condition template for x time? example:
condition: template
value_template: '{{ state_attr ("sensor.home", "assistant")
> 1 }}'
for: "xx:xx:xx"
Conditions only test what is currently known. To test something over time requires a trigger.
In the next release we’re introducing wait_for_trigger
that will allow you to do such things, among others.
I’ve implemented a hacky workaround: condition test, delay 5 minutes, then repeat condition test. Its not perfect but it is good enough for what I use it for.