-
Notifications
You must be signed in to change notification settings - Fork 506
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
Philips Hue Smart Button - Support Request #2077
Comments
Hm, it looks like a ZigBee 3.0 version of the Hue dimmer switch, with both endpoints combined. I see they have an EU version of this new switch as well (may only different wall plate?), but none of my regular webshops carry that (yet?). Whitelisting the device is simple, the trick will be to find out if it reports the buttons on the server 0xfc00 cluster (like the Hue dimmer when paired with the Hue bridge), on the client On/Off and Level Control clusters (like the Hue dimmer switch when paired directly to a light), or maybe both (with some magic setting of 0x0000/0x0031). We'd probably need a sniffer log of the device being paired to a Hue bridge. If you have a Hue bridge: could you please list the REST API resource(s) it creates for the switch? I asked the same question in the Hue developer's forum. |
Thank you for your quick reply. Here is the info from the bridge:
It looks like that additionnal virtual sensors are created to maintain the different states:
|
Thanks, that's very useful. Looking at the Could you try and (in deCONZ) create a group, add a light to that group, and then bind the client On/Off cluster to that group? With luck, the switch should be able to control the light directly, without help from the gateway.
Yes, these are created by the Hue labs formulae. You'll probably find matching rules and resourcelinks. Getting Hue labs (and more generally, the Hue app) to run on deCONZ is a different story (much related to API differences for groups and scenes). |
There is another "issue". After a few minutes, the Button goes in "deep sleep". It is not available in deCONZ and it's not possible to wake up it by pressing the button for a short or long period. A reset is mandatory and a new pairing must be done. |
Clusters come in pairs:
A binding tells a device (Source) where (Destination) to send messages associated with the cluster:
There's nothing magical about a binding, its just a configuration on the source device. Unfortunately, the deCONZ GUI doesn't support querying the binding table, so there's no easy way to check bindings. Most devices have limited (non-volatile) memory for the binding table, so a single binding to a group is preferred over multiple bindings to individual devices. Now here's the tricky part:
Now here's the really tricky part:
Now here's the really, really tricky part: The Hue dimmer and, I assume, the Hue smart button are hybrids:
This is reflected well by device types on the Hue dimmer endpoints: Non color scene controller on endpoint 0x01 (with the client On/Off and Level control clusters) vs Simple sensor on endpoint 0x02 (with the server 0xfc00 cluster). So you need the following bindings for the Hue dimmer and, I assume, the Hue smart button:
Once supported, the REST API plugin should setup these bindings on the switch. Sometimes this fails, and manually creating the bindings fixes this.
I've seen other switches (Trådfri) hibernate when no appropriate bindings have been setup. |
Hi, I would like to vote for this device request as well. I picked up a switch today, but couldn't make it properly work. Br, Botond |
Hi, I have this new smart button as well. With home-assistant I am able to configure the button using I patched deconz-rest-plugin to attempt to add support for the smart button, |
@ebaauw : Thank you so much for taking the time to explain it. Really appreciated. 👍 @b-cole : Thank you for the patch and good job! 🎉 Does the device have to be visible in Phoscon to be visible in HA? Or getting it recognized by deconz is enough to get the events in HA? From what I saw in other issues, the support for the device in Phoscon may require an update from @manup . It would be so great if Phoscon was open source to get pull requests from the community. 😄 |
@b-cole, cool can you please make a PR for the patch? I have a hue button here for testing (sadly still in the package). For the next release it can be made visible at least in the Phoscon App switches list, with a proper integration wizard and Phoscon App switch editor support following later on. |
Add support for Hue smart button, see #596 and dresden-elektronik/deconz-rest-plugin#2077.
Any update on this? Thank you in advance for the support. |
Hi Mincka, |
Thank you for the confirmation @derwolfk I think it's a bit complicated for me to patch it manually since I use Hassio and the Deconz integration (with the Docker image). I think I would have to access the container, install the dev package and recompile it. Still, it would be ephemeral. That's why I hope for an integration in deconz-rest-plugin so the Docker image that relies on the precompiled binaries will benefit from the update. |
any news on this? I'm having a real bad time to follow the developments on Deconz since the release pages have no updates since .71 release back in November... :( |
Hoping for Smart Button support to be added to deConz also. This issue tracker is a bit inconclusive on whether a solution was ever found |
It adds to the confusion the fact that the last 3 releases have no changelog.
|
I don't have the smart button myself, so cannot test, but I'll try to add support cf. the Hue dimmer switch. |
@ebaauw Is there a way I could ship you one from UK, for testing? Or maybe an Amazon code or Paypal so you can order one? |
Sure. The contribute shield on homebridge-hue should link to my Paypal account. It's still hard to get here in the Netherlands, but I can order it from store.meethue.com for EUR 25 (incl. delivery). If it's cheaper to send from the UK, please contact me by email for my address. |
@ ebaauw Awesome! Paypal on it's way :-) |
Cool, thank you. Ordered the button right away. Will report back here when I'll receive it. |
Above commit should add support for the smart button. It's quite a sophisticated device, so I expect to have made some errors and/or overlooked something. Of course, I'll test when I'll have received the button, but if some-one feels like testing in the meantime:
|
How to install this commit? When will be the next release including this Huw Button Commit? |
Is support likely to be added into Phoscon once it's working, or are you not associated with that project? I'm a little confused on whether I am even using the REST API plugin right now |
WIth above PR, the Hue smart button is fully supported in the REST API; button events as well as directly controlling lights through the associated group. There was quite some ancient and even dead code for the Hue dimmer switch. I refactored it to the latest patterns for ZB3 devices and uniform handling of the Hue dimmer and the Hue smart button.
You are; (web) apps (like Phoscon) and plugins for home automation systems connect to deCONZ through the REST API.
That's not an open source project, so it's up to dresden elektronik. |
@ebaauw Thanks for the explanation. I had assumed this was an official dresden-electronik repo, and so you were involved in the development of Phoscon too. I will start digging into accessing the REST API directly from Home Assistant, and perhaps find a way to avoid using Phoscon altogether. |
I hardly ever use Phoscon. I control my devices from HomeKit using homebridge-hue. I've created the rules in deCONZ using scripts, that interact directly with the API thru |
Hi! I am very happy to confirm that I was able to pair the button and get the events in HA. I unpaired the Hue button from the bridge and reset it with the button near the battery (held for 10 seconds, till the light blinks with all the colors). Nothing will appear in Phoscon but I was confident that the button was paired when I got the green light feedback on click. I can confirm the events and the delay of 800 ms between
Very good job to everyone! 🎉 Thanks @ebaauw @manup @carpii (for the donation) @stickpin (for the add-on update in HA) |
Not sure why but after playing a bit with the button (almost 1000 events... with short, long, very long presses), I get two green blinks instead of one for a single push and release. Do you have the same behavior @ebaauw ? I am going to reset it again. I don't think it was like this just after the pairing. Sometimes, during a long press sequence, I get intermittent 1002/1000 events between the 1001s. |
@Mincka I'm seeing this too. It blinks on button press, then button release. I have the events coming into Home Assistant, but not yet sure how to trigger an automation based on it |
I didn't really look at the led before, but indeed, two green blinks on press/release. I take it, it doesn't do that when connected to the Hue bridge?
I would expect to see a 1003/1000 before any 1002/1000. It does seem possible for the button to register intermittent contact while holding it, not pressing too hard (but still hard enough to prevent the button from "popping"). E.g. below, I managed to get three presses within 0.1 second. The wrong order is probably due to deCONZ handling events asynchronously (I didn't have the sniffer active to confirm).
|
|
I don't know why the Hue Button is not working in Phoscon? I have the newest Gateway Version, newest RaspBee Version and newest Button Version updated with Hue Bridge. Pairing is working in GUI, but 0xFC00 cluster is unknown. In Phoscon the button is not showing up. |
That's normal. I could add it to
dresden elektronik needs to add support for the button in Phoscon first. |
Just now I have added the Smart Button to Phoscon. What I've done is:
I've just checked, the presses are registered in NodeRed. Hope this helps. |
I was able to pair the smart button. I had 1 issue. Of i short press for on. It always set the dim level to 100% instead of the level i had turned off the light. Does somebody knows why? |
How do you control the lights? Directly by adding them to the associated group? Using deCONZ rules? Using some other Home Automation system? What type of lights are you using? |
Hello Can you please let me know if you have success in to pair this button as a swicth on the deconz Home Assistant ? I'm trying but without success for now I only see the battery as entity for this device and neither over the events I have the result of pressing the physical button ... Thank you |
My original button (firmware 2.21.0_r29784) is working fine. It does seem to take a few attempts to pair sometimes, although I've never had it where it exposes the battery entity yet sends no button events |
Having same issue as others. pairing it as other button after resetting it. Tried 3 times |
I also had this problem that the button paired correctly, but only the battery status was reported and button pressed were not being registered. Re-pairing and resetting the button didn't work but the following steps finally solved it for me:
|
Had the same issue /w HUE smart button. |
Hello,
I bought a Philips Hue Smart Button and I would like to use it with deCONZ / Home Assistant.
URL: https://www2.meethue.com/en-us/p/hue-smart-button/046677553715
It was a bit tricky to pair it with deConz / Conbee II (multiple resets where required) but I finally managed to do it.
I enabled the advanced log but I did not seen anything for the node address when pressing the button, only the following lines are referencing the address.
Let me know if I can provide any additional information about the device.
Thanks for your help. 😄
The text was updated successfully, but these errors were encountered: