How to have one button do multiple actions (lights, alarm, etc...)?

I know this is probably simple but I am just not seeing where to do it.

What is the best way to have it that I can press one button and it will for example turn of multiple lights, set the alarm, etc…?

Thank you

The tap action on your button calls a script with all the actions:

Sorry to revive an old thread but what if one of the actions is to navigate to a subview?