Hue wall modules ship by default prepared to handle a single rocker. Momentary switches, when connected to the Hue module, generate two “left button pressed” events instead of one. This is obviously bad because now you need to add debouncing to your automations.
What you must configure is the ZigBee attribute mode (0x0034 or #52 in base ten) of the PhilipsBasicCluster cluster. For a single push button, the mode should be 1. For two push buttons connected to the module, the mode should be 3. Go to your ZHA device clusters page and set the attribute there. You may have to push the wall switch button right before you click on Set ZigBee attribute, otherwise your Hue module will be asleep and ignore the command.
I hope this saves other HA / ZHA users a lot of time. I literally racked my brains for days as I searched online for this information, and only reading source code got me to a point where I could finally fix the configuration in these (otherwise very nice) Hue modules.
This will not work if your Hue modules are integrated through the Hue integration. This is only meant for ZHA ZigBee integration users.
Hi Rudd-O,
first, thank you for documenting your work. I dont know if im blind or i am missing something, i have HomeAssistant with a few Wall modules connected and already have a problem with step4. i dont find any cluster settings like in your description. Can you give me a short nudge in the right direction? thank you.
Sorry but the screenshot you posted does not show the Hue module being used through the ZHA integration — this is a Hue integration device. This tutorial will not work for you. You need to either add your Hue modules via a ZHA-compatible ZigBee stick, or follow the official Hue instructions and use the app.
Thank you @Rudd-O. Found this just before I was about to move my wall modules from Hue app to HA and could immediately apply this.
Do you also happen to know if and if so which clusters need to be adjusted for other settings like double click and the way Philips configures these modules to either toggle on/of or change scenes?
When I had these connected to Hue app, multiple clicks changed scenes, but in HA I only everytime get the exact same events listening to events from zha_event so lights only toggle on every click now.
I’m not familiar with other clusters, but I do know that in HA I get distinct events “long release”, “short release” and “short press” which I can use to decide what to do when long pressing.
I was looking for this for a while now. Thank you for describing it.
The improve your blog post, please show a screenshot without “enum.undefined…” when changing the mode. Else it does not work when writing the updated mode.
im new to HA and I am working into moving my Hue devices to the SkyConnect Stick (via ZHA). I am facing the same issues with the Hue wall switch. I was able to connect it to the new Zigbee network but I allways get an error when I am trying to change the config to dual rocker mode. I can not set the value to 3.