-
-
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
Hue dimmer switch #36
Comments
@Trakkasure can you check the logs and post some messages from there? Are there any WARN? |
This device is not supported yet, so you have to follow: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices |
So, i did that. This does not happen.
|
Zigate has a list of parameters available for a number of devices that are not supported by zigbee2mqtt yet including the dimmer switch. Is it possible to port them over? |
This looks like the same problem as with the TRADFRI remote control: #14 |
@Koenkk Yes, you are correct. The Hue Dimmer Switch can also directly control the bulbs. Same issue as the Ikea remote. |
We need to find a way to send commands to the coordinator (CC2531): https://github.com/ebaauw/homebridge-hue/wiki/ZigBee-Devices#hue-dimmer-switch |
Do you mean this type of Switch ? |
I do |
I was playing around with this today because I would also like to be able to use the Hue remotes. Obviously it doesn't work, I get the same behavior. I'm a little fuzzy on what's going on, you're saying that it's because the remote sends commands directly to a bulb, not through the hub even when it's paired? I know the dimmers support standalone operation where it directly controls a bulb without a hub, but I thought it also supported passing events through the hub. If you can point me in the right direction I can hack on this. |
Reading https://github.com/ebaauw/homebridge-hue/wiki/ZigBee-Devices#hue-dimmer-switch. 'The Hue dimmer switch uses standard ZigBee attribute reporting for the FC00 cluster, to send button events to the Hue bridge. In addition, it sends commands from the 0006 and 0008 clusters, to interact directly with lights.' Can you check if anything happens when running with |
Found this, looks promising! rogro82/com.hue.zigbee@4e2c8ae |
There's still no output even with debug when pressing buttons. If I hold down the setup button on the remote to pair it I get a message that it has paired. Shortly after, if I press a button it gives me the standard device connecting message, but subsequent button presses have no effect. If you let it sit for a bit and then press a button again you get the connecting message, so it's obviously waking from sleep, but there's no actual actions triggered otherwise. If you I can post a log of this if you want, but I don't see much useful in there. |
Then we need to dive a little bit more in the athom implementation as they are also using zigbee-shepherd (a modified version). |
I'll have a look and try and learn up too, I'm still pretty new to Zigbee on a technical level, if you have recommended reading I'm keen to know more. The Hue remotes are perfect for what I want to do and I already have a couple, so getting them working would be very nice, plus it's something fun to hack on. What I'm not really understanding is why there aren't any events triggered when pressing buttons. From looking at the code in the project you linked, it doesn't look like they are doing anything special or different to parse. It kinda makes me think that the remotes are using a different underlying protocol that zigbee-shepherd is ignoring. On the bright side, it does seem to be at least possible to get them working. |
Hi i got my dimmer device today: Pairing bringout this log entry:
My ModelID is another one as the original author post by opening! And my database.db contain this two entrys:
@Koenkk: Do you could use this info ? If I could help you could give me some hints and maybe some code to test and debug :) |
@tb-killa That's better than what I get, I don't even get the "device not supported" message. I wonder if they have changed how the dimmer's work in the later models. Do you get any messages when pressing buttons on the remote? |
@jasonmhite At this time No because i have to modifiy the "converter" first. |
@tb-killa if you have access to your host I can help you hot-patch your container to modify the converter. Just ping me on discord. |
@ciotlosm I follow the guide from the wiki but after insert the needing Code Segment
nothing return.... like the author of the issue get. |
@Koenkk : My configuration.yaml file contain "permit_join: false" on startup.
|
Do you see anything in the log right after pressing the buttons? |
Sadly No ... |
Can this remote be used without a gateway? (so directly paired to a bulb) |
Yes but i buy it standalone. Maybe someone use it in combination. |
That's possible using: https://github.com/zigbeer/zigbee-shepherd/wiki#API_bind |
Give some sample Code or Fragments and i will test it :) |
Can you add this to // TEMP: Bind Hue dimmer to coordinator.
let hueremote = '0x0017880103caab06';
hueremote = this.shepherd.find(hueremote, 1);
let coordinator = this.shepherd.list().find((d) => d.type === 'Coordinator');
coordinator = this.shepherd.find(coordinator.ieeeAddr, 1);
hueremote.bind('genOnOff', coordinator, (err) => {
if (err) {
console.log('FAILED TO BIND :(');
} else {
console.log('GOOD!');
}
}); |
Added but after Restarting in Debbing Mode:
Another question: as you could see i got entrys in my database and insert the dummy converter.
Do you analyse my database entrys ? There we find two EP ID´s insert . |
@tb-killa so that means |
@Koenkk If we change 200 dec to hex it returns: C8 so if i check via official document it means 100%. |
@Koenkk This seems to work and its valid:
|
Damn: I got the Messages Drops again.
|
@tb-killa could it be a battery problem? |
@Koenkk Maybe, has to check this. |
As some seem to have it and some not, could it be the model? Because we have: 'RWL020', 'RWL021' |
Yes it thought about this too.
Could we check why this happened ? |
@Koenkk the remote I tested with is an RWL021 and I didn't notice this issue when I was testing it out yesterday. I have another but I think it's also a '21. I only played with it for 10 minutes or so though, does this error show up immediately or do I need to test for longer? |
You need some more time. |
i have here 2x RWL021 .. no problems .. since 3 days.. |
@Koenkk: Does we should do some more Tests or could we close this and bring in the Device Support as official ;) ? |
@tb-killa it's already supported in the dev branch: https://github.com/Koenkk/zigbee2mqtt/tree/dev Can this issue be closed? |
If nobody will bring in changes we should close it and merge to Master. |
|
|
is there any noob "How to get it work" to try them out before i return the remote ? |
The remote control 324131092621 does not respond to button presses. After pairing came only the answer about the connection and battery status. 2019-6-14 20:15:27 - info: Starting zigbee2mqtt version 1.4.0 (commit #927c4db) only once message |
In my case the the hue dimmer switch remote control does respond to button press. In mqtt it reports the following: |
I hit the setup button on the back of the switch, and successfully paired the switch.
Pressing any button on the switch does nothing.
Interestingly, no light shows in the upper left corner on the device (like it usually does) when a button is pressed.
Is there additional support required in the sniffer firmware required to support this device? It would be great to be able to drop the hue hub all together and use my own home grown solution.
Below is the addition to the devices.js file:
The text was updated successfully, but these errors were encountered: