-
Notifications
You must be signed in to change notification settings - Fork 300
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
Friends of Hue Smart Switch #22
Comments
These are green power devices which are currently not supported by zigbee-herdsman, note that if you want to experiment with this, you need z-stack 3 (z-stack 1.2 doesn't support green power). I've also done some investigations into green power but didn't manage to configure it correctly yet. |
Many thx for comeback so fast. |
Hi i set the pan_id to 0xffff and got this, if i press the button:
|
I testest yesterday a bit more. And the Z-Stack 3.0 CC2531 sadly stops working completly after around 4-5 Received messages from the Switch. |
I've also experienced this with my Hue Tap. I think that the device needs to be commissioned into the network, but it's unclear for me how to do this (that's where I got stuck). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any news? Issue should not be closed by the bot. |
I've did some initial implementation but I need your help guys to test (very experimental). On a bare metal install: # Go to zigbee2mqtt directory
cd node_modules
rm -rf zigbee-herdsman
git clone https://github.com/Koenkk/zigbee-herdsman.git -b feature/greenpower
cd zigbee-herdsman
npm install
npm run build # this will give 3 errors but can be ignored After this start zigbee2mqtt and start sniffing the network (https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html). Also make sure that there is at least one Hue bulb in the network (this will act as the green power proxy). Now reset the device, on the Hue tap I needed to hold either buttton 1, 2 or 3 depending on the channel (1=15, 2=20, 3=25) for 10 seconds. After this zigbee2mqtt should log output when pressing a button on the device. If it doesn't work please share the sniffer logs. |
Does this mean that only Hue bulbs can act as a sink? Or do the CC253x or
any other router have this capability, too?
|
@cmorlok I haven't seen any other devices providing this yet. |
Could the CC253x coordinator/router act as a sink? Or is it a hardware
limitation?
|
@cmorlok it's not a hardware limitation, hopefully in the future we might be able to adapt the firmware correctly. |
@Koenkk great work so far, is my assumption correct that:
|
I don't know anything about how it works with the hue bridge, but when connected with zigbee2mqtt, the hue hub is completely out of the picture. |
@Koenkk would a powered router also suffice like you have described in your documentation? Or can only a Hue bulb act as a 'sink' (excuse the terminology knowledge gap)? |
@webunity for know only Hue bulbs provide this, but could possibly be added to a CC2531 router firmware later. (but I first want to know if this feature works at all). |
@Koenkk I will test your instructions as soon as I get my CC2531 and set everything up. I will also contribute 1 or 2 new lights. I just found out about this possibility to connect more Zigbee devices than with my Hue and must say I love the fact that contributing to it is so easy! |
Can we sponsor hardware to Koen so he can work on this directly (without any promisses regarding suport for said device!!) |
@Koenkk I've just tried to test this but I've got the following compilation error:
I've tried it with the release and master branch but always got those errors. What am I doing wrong? Edit: I just read that those errors are normal. I was able to start the software but I didn't receive any messages from my Hue Tap. I checked if the packets are sent with the SmartRF Sniffer from Texas Instruments and I could see the packages from the Hue Tap on my channel. Any idea what could be missing? Do I need a newer firmware to get this to work? (I've installed the CC1352P_2_20191106 firmware) By the way, the Hue Tap has 4 buttons to set channels. (1=11, 2=15, 3=20, 4=25) |
@TheNetStriker can you share the sniffer logs? |
@Koenkk No problem, I've uploaded a capture file from the SmartRF Packet Sniffer to my Dropbox: https://www.dropbox.com/s/i0o42ibaelqim3a/HueTap.psd?dl=0 There are three packets for every button press. I pressed every button on the Hue tap, so there are 12 packets captured. |
@TheNetStriker sorry but could you please sniff with wireshark? https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html |
@Koenkk I've just uploaded the Wireshark capture here: https://www.dropbox.com/s/pk1jt5h5yvtkb36/HueTap.pcapng?dl=0 I could not register for the ZBOSS software because I didn't get the activation e-mail, so I created a capture using the zsmartsystems sniffer. I hope this also works for you. |
@TheNetStriker do you also have a hue bulb in range of the hue tap? Can you provide the sniffer logs when starting with:
|
@Koenkk I have several models a double rocker for HUE only and GENERIC Zigbee switches single and double rocker. The HUE switch is currently in The Netherlands. I propose to send you one of each. |
Thanks to @Josov I've got an initial implementation. Demo: |
I really want to install battery-less Switches at home to use them via zigbee and iobroker. Do you recommend the friends of hue smart switch or which one do you plan to support? I've read that the Philips hue tap ist not very good in haptic. |
@Koenkk Looks great! Is it already possible to test this myself? |
@TheNetStriker The branch where the development happens was mentioned above: https://github.com/Koenkk/zigbee-herdsman/commits/feature/greenpower |
Soon it will be available. |
Absolutely amazing! Will it instantly support all GreenPower devices, or only the two mentioned above? I've got the Gira Friends of Hue Switch which i'd love to integrate... |
Probably all of these friends of hue switch will be supported (only tested with a Niko but I expect others will also work). |
Implemented, discussion: Koenkk/zigbee2mqtt#3322 |
I haven't tested it yet because i a had other big troubles with my Installation, but i could test it tomorrow! |
@mdhom thanks that would be nice. Look forward to hear from you, take your time, no rush. |
@Koenkk is there already a docker image available containing the new Feature? |
@mdhom green power support is available in the latest release (zigbee2mqtt 1.13.0) |
It somehow worked and somehow didn't 😅 Tested it with the Senic Friends of Hue Smart Switch. I was prepared to keep the up right button pressed for some time for pairing (read that anywhere), but exactly when i pressed that button, the following error appeared (but only in console, not in log file):
Shortly after that error message, the following log appeared, looking like actually pairing was successfull:
Now, when i press one of the four buttons, i can see these logs:
And then, after some playing around with the switch, suddenly my only light bulb switched on (on a completely blank installation, no clue how that could happen?!). And shortly after that, i got error log:
The content of that log file can be found here: https://pastebin.com/vz0cMgyk |
@mdhom what firmware are you running? Have you been able to start it after this? |
Hey Koenkk. I have an EnOcean switch here (Senic & Gira 4 button switch) but don't have any Hue devices yet. Am I correct in assuming this is why I see nothing in my zigbee2mqtt logs? |
@hb0nes probably yes, you will need a green power proxy (which I know hue devices are capable of) |
Hi Koen, I've paired the Gira Senic switch (Seen as EnOcean PTM 215Z) but no action/clicks are being registered. I'm running zigbee2mqtt 1.22. Do I maybe need to update the router/stick? |
@bamaas do you see anything in the debug log when clicking? See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging. |
@Koenkk No. I only see the device being configured in the logging. I've attached the debug log for your reference. IEEE address: 0x000000000174d06f (0xD06F) Coordinator type: zStack3x0 |
I see this info is not listed on the |
Ow great! I've finally get it to work. The missing step was indeed the confirm channel. |
Hi,
i have these:
https://new.abb.com/low-voltage/products/residential-product/remote-control/friends-of-hue-smart-switch
and it seams not supported in zigbee2mqtt, that i will try in the next step.
I started to figure out how it works.
First I found it is not able to pair at all.
Than I made a PacketSniffing on zigbee, and found out that the device sends Broadcast if it is pressed and released.
Yesterday i dived into the sourcecode to do an "Proove of Concept" how to support that kind of device. But after hours of reading i figured out that I knew not enough about the CC2531 API how to get broadcast packets at all.
It would be very helpful if somebody could give me a hint how to capture broadcast packets with the "zigbee-herdsman"?
I will attach the packet trace later today.
thx in advance
meno
The text was updated successfully, but these errors were encountered: