The power command listed in Activity's startup settings is a judgment-based macro command.
Examples are as follows.
Activity 1, contains device A+B;
Activity 2: Contains device A+ C
If you switch from Activity 1 to Actyvty 2, the devices already included in the Activity will not execute the switch command
The switch status of each device in the system.
If A is turned on, the command to turn on device A is not sent.
If C is not on, the command to power on device C will be sent.
As for the power off command, you can set it in the device's Edit---power settings,choose "Turn off when not in use" i.e. after the Activity switch, when it is not used in the new Activity, the device will turn off