How to turn grouped switches off in a specific order

Hi guys I’m needing to turn switches off in a specific order. For example I need my Main_AMP, Monitor_AMP, Sub_AMP to turn off first then my Main_EQ, Monitor_EQ, and Sound Board.
Does anyone have an idea about how to make this work? I’m currently using a group switch but because my stuff turns off out of order it creates a popping when I turn it off. Honestly it all could turn on at the same time because the amps have a couple seconds of delay. But I would like to stay with one button if I can.

I would suggest to chose another naming (ascending order for switch off) for the items and then use a rule like

...
then
    MyGroup.members.sortBy[g|g.name].forEach[m|
        m.sendCommand(OFF)
    ]
...

You even could add a Thread::sleep(500) to the forEach to give the amp time to switch off completely.

1 Like