Action switches are a combination of switch triggers and sequence actions that have points where the sequence pauses for trigger inputs.
To create an action switch, set the behaviour of the switch to "Action". For more information on how to do that see: https://support.zencontrol.com/hc/en-us/articles/360000504776
For multiple targets, its recommended to use a system address/variable as a target. See: https://support.zencontrol.com/hc/en-us/articles/360000741316
Setup a trigger for the action switch and use the type "Switch Only" for the system address/variable. For more information see: https://support.zencontrol.com/hc/en-us/articles/360000079535
The sequence that is run from the trigger is an action sequence. An action sequence is a set of actions with a post action set to "pause for trigger". Essentially, multiple actions can be executed before a "pause for trigger" post action occurs. Simply put, you could call go to scene 1 to one group and go to scene 2 to another group. At the end of the second action, "pause for trigger". Then 2 more actions afterwards could turn off the lights. A pushbutton would do the first 2 actions then pause, then on press again, would do the remaining 2 actions then ends. Pressing push buttton again would do the first actions again (a loop). For more information see: https://support.zencontrol.com/hc/en-us/articles/360000079916