Harmony Home Control

That will loop if it’s a binary switch.

Instead, use two momentary switches. One for activity on, one for activity off. That way each switch is always ready to use the next time, and no loops. Much discussed in the echo and harmony topics.

Same switch selection protocol applies no matter how you’re getting to the harmony activity.