Add wait_for_condition or allow wait_for_trigger to continue if the state has already been reached
#3554
Unanswered
mendess
asked this question in
Automations & scripts
Replies: 1 comment 1 reply
-
|
FYI, if you're using this alot, you can make a script that does this and wait for it. Then just use the scripts service name to wait for the script to complete |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When writing scripts I find myself writing the pattern
This is because wait for trigger will block if the state is already 'on' so I have to guard against that. Writing this is quite verbose and repetitive in the visual editor.
I think having a setting like
continue_if_state_matches(or a better name) on wait for trigger would help. Alternatively a new block calledwait_for_conditionwould also work.This can be worked around using
wait_templatebut that implies writing a template which goes against home assistant's goal of not requiring templatesBeta Was this translation helpful? Give feedback.
All reactions