gadtad
(borto)
July 31, 2024, 3:15pm
1
Hi. I am constructing an automation with a wait for trigger action. I would like to use OR so I can have it wait for any of a number of triggers. But it only allows me to add both triggers as AND.
This is what i currently have:
wait_for_trigger:
type: power
platform: device
device_id: b330636bf7dbb61722ac447de29b7fd1
entity_id: 5f000442231ec85714c61e8ed7342820
domain: sensor
below: 500
type: current
platform: device
device_id: b330636bf7dbb61722ac447de29b7fd1
entity_id: 42c88af5c87225100cf3f2615c5ba2be
domain: sensor
below: 1
But I want it to be more like this:
wait_for_trigger:
But the current system doesn’t allow it. Could this be updated? Thanks.
123
(Taras)
July 31, 2024, 3:44pm
2
Multiple triggers are always logically ORed, not ANDed.
This doesn’t seem to be a feature request. Moving this to Configuration, seems more appropriate for a question.
And please, take the time to read up on how to post code in this forum. See here for more information:
Spaces at the beginning of the line are critical in yaml, and people trying to help you may want to copy your code so that they can try it out themselves, so please format it correctly when you are posting.
Use the preformatted text tool (</> in the edit post toolbar). If it is not immediately visible, it will be in the cogwheel menu.
[Code_format]
Alternatively you can use three backticks (the key is on the far left, 2nd row on en keyboards) on their own line above and below the code. That i…