-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem]: Hue wall switch binding issue #10740
Comments
Hello Did you try without the coordinator in the binding list, like for the 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: |
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;
external_converters:
- ext_converter.js
|
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 And indeed, creating a group with that ID and adding lights to it works perfectly! Even dimming works (with When setting mode to 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!) |
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? (#10740 (comment)) |
@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 |
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? |
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 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 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:
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. |
The modified binding should still work - when the cluster isn't bound to the controller, it sends OnOff commands to a random group. Not sure how to figure out the ID though other than checking with a sniffer. |
have the same problem with ioBroker and zigbee .... @leoluk is there an easy way to find out the groupId, which is random and need to be found first |
Any updates on the direct binding possibilities of the Hue Wall Switch? |
<-Edit> Nvm, doesn't work for me either. (Had some automation running in HA that toggles the light) |
It always doesn't work for me.
Have u the directbinding AND the coordinator ? or just the directbinding ?
I try in the hue to bind with checkbox On/off
Le ven. 18 nov. 2022 à 11:02, bavo ***@***.***> a écrit :
… I can confirm this working for me on the Sonoff CC2652 stick
- zigbee2mqtt version: 1.28.2
- Coordinator type: zStack3x0
- Coordinator revision 20220219
Wall switch has a direct binding to a group of 3 hue spots
—
Reply to this email directly, view it on GitHub
<#10740 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOKQLH46FTMJGAX5KOOTNPLWI5H2LANCNFSM5LZWV6ZA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
See my edit, I was tricked by my Home Assistant setup into thinking this worked. It does not .... 😞 |
Are you referring the hue wall magnet mounted switch or do you mean the in-wall switches? We're talking about the inwalls that have two contact, nothing more. |
I was speaking of the on-wall vs the in-wall as evidenced by my description of the buttons. The tool I referenced above supports the in-wall as well. I haven't bought one as the in-wall has less functionality for my use case and is also battery dependent. If it had neutral support, I'd likely get some. I'm traveling a lot but if possible, I may get an in-wall to confirm the above outcome. Will circle back here if so. |
This is awesome dedication, @Koenkk! Thanks a lot for your efforts. While you now have the device, is it possible to also investigate why it, in many cases, depletes the battery in a manner of days, as in #12545 and at least another issue number which I can't find at the moment, as well as https://community.home-assistant.io/t/battery-drain-philips-hue-wall-switch-modules/518501. They are supposed to last 5 years, not 5 days.. :) |
As written earlier in this thread, it is possible to make this device send toggle commands to Zigbee groups. To enable this some fixes where required. These are available in the latest-dev branch now. I documented how to accomplish the group binding: https://github.com/Koenkk/zigbee2mqtt.io/blob/develop/docs/devices/929003017102.md#directly-control-zigbee-groups Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) Note: this will probably break the battery reporting, something in the frontend needs to be fixed first (since @bjornarfjelldal regarding battery, please create a new issue for this (to not clutter this topic) |
To clarify.. this only works for one of the input/side of switch, right? |
@martijn-brant yes, I've updated the docs with this.
This will be fixed after nurikk/zigbee2mqtt-frontend#1754 is merged (already updated the docs) I guess that after merging this issue can be closed. |
nurikk/zigbee2mqtt-frontend#1754 is merged now, so I assume I can close this now. |
I migrated from the Philips Hue bridge and a DECONZ Stick with Phoscon to Zigbee2MQTT on a Raspberry with a Zigbee 3.0 Sonoff USB Dongle. It works very well with the Hue wall switch module and the workaround above to bind the Hue wall switch module with a group of lamps. As you mentioned the binding does not work with two outputs if I use two inputs in the wall switch mondule. Is there a change to get it work in future? At the moment this is the only reason to keep my Philips Hue Bridge alive. This would be great! |
The current docs (https://www.zigbee2mqtt.io/devices/929003017102.html#directly-control-zigbee-groups) tells me to add the Hue Wall Switch to the created group, but in the past it was neccessary to create a group with the Group ID which was triggered by the Hue Wall Switch. When adding the Hue Wall Switch to the created group, I get an error (even after waking up the device by pressing it one or multiple times). Does anyone recognize this? |
Yes, the same happens for me, but if after this you check what group ID the device sends commands to, you'll see that it is now the group you tried to add the device to 🙂 Please confirm that it works also for you like this, and then I'll update the documentation! |
Yes, you are right. I do see the groupID of the created group (15) in the log when I trigger the Hue Wall Switch by pressing the button.
|
I can not get the module to add to a group, no matter what I do it always sends commands to groupID 0. Some info on my setup: The log message: Any idea what I am missing? |
Figured it out. I was checking the logs before I had gone through the bind procedure. After binding its all working! |
Is it possible that something has been changed in the RDM001 with version 1.36.1? I had to remove all my wall switches and reset them several times. The first attempt only worked for a short time. After the second reset, it is stable. I have noticed the error that all events are sent twice in direct succession. |
Hi, I am not sure if I am hitting the same issue but after updating to 1.36.1 I have an issue which looks like the above. I described it here: Now my lights do not work anymore :-( Any help/guidance greatly appreciated... |
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
The text was updated successfully, but these errors were encountered: