One button two scripts

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).

1 Like