How to Toggle Group Lights with a Single Button Press (Aqara App)

When creating group lights in the Aqara App, you’ll notice there’s no built-in automation to toggle a group on and off with a single button press—only separate options for “On” and “Off.” While it’s possible to create a scene that toggles each light individually, this can lead to inconsistent results, with lights potentially falling out of sync.

The Best Solution: Two Linked Automations

The most reliable method involves creating two separate automations that work together to toggle the group lights. This setup uses the “Trigger Once” option to ensure only one automation is active at a time.


Step-by-Step Setup

1. Create Two Automations

  • Enable “Trigger Once” in both automations.
  • This ensures that once an automation runs, it disables itself and enables the other, effectively toggling between “on” and “off” states.

Automation 1: “Group Light On”

  • Trigger: Single button press
  • Action:
    • Turn on the group lights
    • Enable the “Group Light Off” automation
  • This automation will disable itself after triggering, due to the “Trigger Once” setting.


Automation 2: “Group Light Off”

  • Trigger: Same single button press
  • Action:
    • Turn off the group lights
    • Enable the “Group Light On” automation
  • This automation will also disable itself after triggering.


Optional: Syncing with External Controls

If you use Google Home, Alexa, or other third-party apps to control your lights, you may need two additional automations to keep the toggle logic in sync.

These additional automations detect when an individual light is manually turned on or off and re-enable the appropriate toggle automation to maintain consistency. I refer to this as the “Group Light Follow” automation.

Let me know if you’d like help setting that up—I’d be happy to walk you through it.

6 Likes

@david Thank you for sharing this detailed method for toggling group lights in the Aqara App. It’s insightful and certainly valuable for those looking to streamline their smart home lighting setup. The approach of using two linked automations with the “Trigger Once” feature is an ingenious workaround to the app’s current limitations, and it effectively prevents the lights from falling out of sync.

Your suggestion to add additional automations for syncing with third-party apps like Google Home or Alexa is also quite helpful, ensuring a smooth integration across different platforms.

Feel free to share more of your smart home optimization tips. The community will surely benefit from your expertise!

1 Like

@david Thanks for sharing this detailed and practical solution! It’s a smart workaround for the lack of a built-in group toggle in the Aqara App, and the “Trigger Once” setup ensures reliability—definitely a go-to method for users struggling with inconsistent scene toggles. The step-by-step breakdown, including the optional sync with external controls, is super helpful for anyone looking to replicate this. Community contributions like this make the forum such a valuable resource. If you have more tips or refinements, feel free to share—we’d love to hear them! :blush: