Z2M - Philips Hue Switch RWL022 (choose all buttons)

This is a blueprint for the Philips Hue Switch RWL022 for use with Zigbee2MQTT.
You can choose what to execute with single press or hold.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Code: Z2M Philips Hue Switch RWL022 · GitHub

1 Like

It didn’t work before. It’s fixed now.

Hello
Does it work for the previous dimmer hue switch v1?

I think it should work, i belive the codes are the same.

Thank you for your blueprint!

I’ve had trouble getting the RWL022 to work again, maybe these steps are helpful for someone running in the same problems:

  1. The switch showed up correctly in Zigbee2MQTT and its action value got correctly updated but the action attribute didn’t show up in HA. I’ve had to switch on “Home Assistant legacy action sensors” in the Z2M settings (“Settings/Home Assistant Integration”). Then the action is available in HA.
  2. I’ve had to change the blueprint to choose the “action”-entity directly, revome the “attribute”-selector in the trigger and add a ‘from: “”’ to the trigger, as I only want the automation to trigger when Z2M sets the value to something meaningful.
  3. I’ve also changed the automation from “restart” to “parallel” as there seems to have been a change to HA/Z2M in this regard (see the issues starting in Nov 2024 here ZHA - Philips Hue Dimmer Switch (RWL020 & RWL021) - All buttons fully configurable - #24 by flavio61)

Here is my fork: Z2M Philips Hue Switch RWL022 · GitHub

I’m new to this, so please take anything here with a grain of salt. I’ve only treated the symptoms, maybe someone with more knowledge can investigate the issues further.

1 Like