Basic hue scene activation from aqara switch

Hello all,

Went around the forum but couldn’t quite get what I was after.

Here is my situation:

  • one hue bridge pro with one room and one scene within that room (added to ha-can see the room and the scene within the room)
  • All the light bulbs in the room are hue lights
  • one aqara h2 1 channel switch (added to ha through z2m- I can see the actions from the switch) connected to neutral wire.

Now for what I would like to achieve and am a bit lost as to how:

  • the lights in that room should never have the current cut off (I.e be unreachable)
  • When the user presses the top button
    ** if some lights are on (could be a scene or not), turn the lights off
    ** if the lights are off, activate a specific scene
  • when the user presses the bottom button, cycle through the existing scenes of that room (order should be kept so user knows e.g 3 clicks gets scene blabla and 4 clicks gets scene bloblo)

Additional questions: how can I make sure that the lights are never unreachable? I tried moving the switch to decoupled but I’m not sure what this does actually !

Thank you very much for any help you could provide. Code is fine as I will need to industrialize the production of all this setup for the numerous rooms and switches in my house.

Hi, if this issue hasn’t been resolved yet, please feel free to email us at [email protected] for further assistance. We have dedicated technical support specialists who will try their best to help you.