Having a switch toggle between scenes?


I’ve just set up some xiaomi wireless switches, and wanted to assign a button to toggle between full and ambient light. I have an input_boolean which will know whether it’s full light or not. How can I script this? I basically need an IF inputboolean Then script1 Else script2…

Not quite sure if this is possible, but it must be… Any pointers? Thanks a lot!

It seems that the simplest way is to use two automations, and use conditions inside them to determine which one actually gets to run.

Or use a python script.