I just added Broadlink RM-4 mini IR remote and over 100 IR commands to HA. Each command is a specific script, which sends corresponding IR command to selected device. e.q. "amplifier_input_dvd".
I just learned how to make drop-down list for Lovelace UI, via configuration.yaml - let’s call it “input_select.amp_mode”. I also tried to automation with trigger states - input_select.amp_mode
But how to form action, based on input selector, to fire corresponding script? If user select amplifier as input, it should fire amplifier_input_dvd script.
So basically I need as many automation scripts as I have items in drop down menu?
I’m going to implement this into AC controls as well and his has much more possibilities = much more automation scripts required. For development purposes I’m also looking a solution, where the “action” command is build using template (or smth) from drop down selection.