#Input Select, multiple uses in one automation.

1 messages · Page 1 of 1 (latest)

rich hornet
#

Automations are still new to me, and so I have question:
I have dropdown list with three options. I wish them to trigger different actions (say action_1, action_2, action_3), but is it possible to do so in one automation? From UI I can find way to choose only one state of dropdown, so it's kind of 'if-else' way, while I'm looking for 'case' or 'select'. I think it might be possible in YAML, but I'm still beginner to this. Could anyone help me with this setup?

timid monolith
#

you can, just trigger on the state of the select changing

#

and then in the actions use a choose block

#

that lets you easily select state = option 1, state = option 2 etc

rich hornet
#

Oh! THAT! Thank you so much! And I guess in YAML mode I'll be able to see how it works then? 🙂

#

I mean by how it works -> how it's scripted

timid monolith
#

yeah it'll look something like this:

rich hornet
#

Thanks a lot! THat's what I was looking for 😳