The script documentation (https://www.home-assistant.io/docs/scripts/#wait-for-a-trigger) says Wait for Trigger "can use the same triggers that are available in an automation's triggers section.
-
Is that documentation specific to scripts? Or does that still apply to using
wait_for_trigger:in a basic automation? -
Does that mean I can only wait for something that already trigger's the automation? Or is that intended to mean "You can wait for all the same things that can be used to trigger scripts"?
Lastly, in the triggers section I can give each trigger a named ID and then use condition:trigger. wait_for_trigger: supports multiple triggers (with logical or), and triggers added the GUI does let me assign IDs to triggers in a wait_for_trigger: block.
- Is there something like
condition: trigger; id: trigger_idto see which trigger was seen by thewait_for_trigger? From experimentation, it looks likecondition:triggeronly looks at what initially triggered the automation, not what caused thewait_for_triggerto complete.