Hello,
I’m looking solution or idea how to make button which will have run 2 scripts. Example: press button turn on first light, if press second time it turns on second light. Currently I have two different dashboard buttons ‘1 lamp’ and ‘2 lamp’, I want to make it in one. Any idea?
Sure, the script you call needs a choose action to determine which light to turn on depending on the condition of which light is already on (state condition).
https://www.home-assistant.io/docs/scripts/#choose-a-group-of-actions
1 Like