[Problem]: Hue wall switch binding issue
What happened?
The Hue wall switch binds succesfully to a lamp, however it doesn't operate the lamp as expected (nothing happens).
What did you expect to happen?
I expected that (as I did before with the Hue dimmer switches) after binding, I would be able to operate the light directly.
How to reproduce it (minimal and precise)
Zigbee2MQTT version
1.22.2
Adapter firmware version
20211217
Adapter
Slaesh's CC2652RB stick
Debug log
Hello
Did you try without the coordinator in the binding list, like for the 324131092621? https://www.zigbee2mqtt.io/devices/324131092621.html#philips-324131092621
Antoine
Unbinding the coordinator doesn't seem to do anything :/
Sniffer shows that binding a light get a "Success" reply and unbinding twice returns "No Entry" the second time - so it does update its binding table, but never sends any commands.
The device simply doesn't seem to support binding.
Related threads:
- https://github.com/Koenkk/zigbee-herdsman-converters/issues/2393
- https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4566
- https://github.com/zigpy/zha-device-handlers/issues/858
Not sure if it's related, but a dimmer switch has two endpoint (attached screenshots of the dimmer switch clusters and wall switch (1 endpoint). When binding the dimmer switch, the second endpoint is used.
Could you check if this issue has been fixed with the following external converter:
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('../lib/tuya');
const definition = {
zigbeeModel: ['RDM001', '9290030171'],
model: '929003017102',
vendor: 'Philips',
description: 'Hue wall switch module CUSTOM',
fromZigbee: [fz.battery, fz.hue_wall_switch_device_mode, fz.hue_wall_switch],
exposes: [e.battery(), e.action(['left_press', 'left_press_release', 'right_press', 'right_press_release']),
exposes.enum('device_mode', ea.ALL, ['single_rocker', 'single_push_button', 'dual_rocker', 'dual_push_button'])],
toZigbee: [tz.hue_wall_switch_device_mode],
configure: async (device, coordinatorEndpoint, logger) => {
// const endpoint = device.getEndpoint(1);
// await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff', 'manuSpecificPhilips']);
// await reporting.batteryPercentageRemaining(endpoint);
// const options = {manufacturerCode: 0x100B, disableDefaultResponse: true};
// await endpoint.write('genBasic', {0x0034: {value: 0, type: 48}}, options);
},
};
module.exports = definition;
- save this as file next to
configuration.yamlasext_converter.js - add it to
configuration.yaml:
external_converters:
- ext_converter.js
- start z2m, go to the frontend, verify that the description of the device ends with CUSTOM (this means that external converter has been loaded correctly)
- now factory reset the hue wall switch (repair it)
- try to bind it.
- does it work now?
CC2652P Stick with firmware 20211217
I use mqtt server adapter in ioBroker to collect datapoints, but there is no usable to work with.

@Koenkk
Thanks! So, this is interesting.
Added the external converter, paired the switch and confirmed that it loads the CUSTOM converter.
The device continues to ignore the binding config - it maintains a binding table and I can bind/unbind things, it just doesn't do anything. However, when looking with a sniffer, you can see that it actually does send OnOff broadcasts regardless of binds, but to a hardcoded group 0xd31d (I haven't tested whether this happens only with the custom converter):
And indeed, creating a group with that ID and adding lights to it works perfectly! Even dimming works (with single_push_button).
When setting mode to dual_rocker, both channels work, but use the same group ID (not terribly useful). Presumably, the Hue bridge uses vendor-specific commands to properly configure these as well as things like scenes.
Switching lights on/off via the switch also won't update the entity status in z2m, presumably because it doesn't know anything about the "binding" and hasn't set up the right reportings. For my use case, this is the only thing that's missing. Manually configuring reportings on the two Surface Light TW in the group fixes status:
Worth trying to remove the custom converter? What is the commented-out code supposed to do originally (other than configuring battery status reporting, which indeed doesn't work)?
(actually switched from zha to z2m so I can try this - I'm definitely keeping z2m, it's so smooth - thanks!)
@leoluk
Worth trying to remove the custom converter? What is the commented-out code supposed to do originally (other than configuring battery status reporting, which indeed doesn't work)?
Yes please check if this doesn't change the binding behaviour.
@Koenkk - you were right
Can confirm that without the custom converter, it's back to sending key presses to the coordinator after a reset and no longer sends anything to the group:
(different NWK since this is a spare)
@leoluk can you switch back to the external converter and remove the comments line-by-line to see what statement is stopping the switch from sending commands to the group? (https://github.com/Koenkk/zigbee2mqtt/issues/10740#issuecomment-1013833937)
@Koenkk Binding the reporting endpoints makes the difference. With this config, it still sends group commands:
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
//await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff', 'manuSpecificPhilips']);
await reporting.batteryPercentageRemaining(endpoint);
const options = {manufacturerCode: 0x100B, disableDefaultResponse: true};
await endpoint.write('genBasic', {0x0034: {value: 0, type: 48}}, options);
},
@leoluk can you find out which cluster? Start with await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
Anyhow, I can support here?
Also trying to bind the Hue Wall Switch with a Hue Light Group with success, however, no effect while pressing.
same problem....
Hello, same problem. I can Bind, but no effect when action
From the other thread, it looks like the group address changes on each reset, anyone knows an easy way to get the last known group address, or do we need a sniffer for it?
https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4566#issuecomment-1030950892
Right, so I hooked up to one a group, and the switch can indeed turn on an off a group.
Ended up with these reports in the convertor
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff'/*, 'manuSpecificPhilips'*/]);
After removing the device from the network, resetting and rejoining. The following messages can be observer in debug mode on the logging when pressing a button:

The 15204 group id is the group that's gets toggled in this case, but it changes on every reset of the switch. There is also no difference between switch 1 and 2; both seem to trigger the same message towards the 15204 group id.
Does it help if I try to do a sniff when it's connected to a Hue bridge? I don't have a setup yet to do that, but I think I can get that arranged.
So, I started sniffing on the Hue Bridge. Some key take away's:
- The Hue bridge doesn't use binding as far as I can tell, If I simply unplug the bridge the switch stops working. All messages from the switch also have as destination the bridge.
- There is a difference in payload for the p1 port and the p2 port, but not if it's connecting or disconnecting.
| Action | Sequence |
|---|---|
| Connect P1 | 0100003000210000 -> 50ms -> 0100003002210100 |
| Disconnect P1 | 0100003000210000 -> 50ms -> 0100003002210100 |
| Connect P2 | 0200003000210000 -> 50ms -> 0200003002210100 |
| Disconnect P2 | 0200003000210000 -> 50ms -> 0200003002210100 |
Payload doesn't change between single rocker and dual rocker mode; except that in single rocker mode the p2 port simply doesn't do anything.
As the bridge doesn't do binding, will it even ever work?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Still relevant
Are there any updates to this? I would like to remove ControllerX from my setup and just have these Hue modules talk natively via bindings.