tlaukkan / zigbee4java

Zigbee API for Java provides simple Java interface to ZigBee network.
Apache License 2.0
144 stars 68 forks source link

Hue Tap support #107

Open TheNetStriker opened 7 years ago

TheNetStriker commented 7 years ago

I would like to react to Hue Tap switches using this library, but so far I didn't found out if this is possible. I've logged the packets my Hue Tap Switch is sending and uploaded a screenshot of the packets to my Dropbox: Link

Every button click sends three packets. In the screenshots are the packets of button 1, 2, 3 and 4. The Hue Tap switch sends all packets to the 0xFFFF pan id and the packets are not encrypted.

Is there a way to react to those packets using this library?

Edit: I also created a thread in the Texas Instruments forum: http://e2e.ti.com/support/wireless_connectivity/zigbee_6lowpan_802-15-4_mac/f/158/p/555986/2033599#2033599

tlaukkan commented 7 years ago

Hi, are the tap switches compatible with ZigBee Home Automation Profile and are you able to join them to network? If they do not join the network then as far as I know it is not possible to use them. If they join and send commands according to ZigBee HA profile then they can be utilized using this library.

TheNetStriker commented 7 years ago

I read somewhere that the Tap Switches are "ZigBee Green Power Stack" devices, but I'am no expert regarding ZigBee. I wasn't able to join them, but I was able to take over my whole existing Philipps Hue network with the help of the guy from this blog.

He found the key the Hue Hub is using to exchange the network key when joining new lamps. With this key and a sniffer I was able to discover the network key from my Hue system and was able to decode all ZigBee packets. After that I simply programmed the ZigBee usb stick to my existing network id and network key and started up your server example. My hue lights where automatically added when turning them on. (Also the older ones that doesn't support network join) But nothing happened when pressing one of the Tap buttons.

I read somewhere that Texas Instruments is trying to implement the "Green Stack" into the usb sticks firmware. Do you now something about that?

TheNetStriker commented 7 years ago

I just noticed that version 3.0.0 of Z-Stack was released where "support Green Power Proxy" is mentioned: http://www.ti.com/tool/Z-STACK

Is this maybe the key in getting the HUE Tap events?