-
Notifications
You must be signed in to change notification settings - Fork 34
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
Connecting an ESP32-C6 with "Zigbee_Light_Bulb" example to the Philips Hue Bridge (TZ-919) #358
Comments
@m4nu-el , Which version of the library are you using in your project? I tested the |
@xieqinan, I haven't included the libraries by myself so they don't appear in the Library Manager. I was just using the example that was included in the esp32 Board Backage. I wanted to try it with the esp-idf in vs code but I haven't got it running yet. Still trying to understand it :-) |
have you figured something out? trying to and running the code but its till just displays "ZDO signal: ZDO Leave (0x3)" |
Nope, unfortunately nothing new. @MakMaciej have you used the Arduino IDE or the esp-idf? Maybe anyone who contributed to the arduino implementation got an idea? |
@m4nu-el I used the esp-idf. |
you got the wrong key mate. check out this post : https://blog.smartere.dk/2019/03/sniffing-philips-hue-zigbee-traffic-with-wireshark/ |
Thanks man for your answer, I already thought this issue is already dead. I checked out the post again and tried all the 3 different Key-Transport keys for the |
Hi @m4nu-el, I believe the issue is caused because |
so i need to get the Key-Transport Key? or what do you mean? use the first or third key? |
Question
Lately I was experimenting with a Waveshare ESP32-C6-DEV-KIT-N8 and zigbee communication. I got the communication working with another ESP32-C6 (loaded with
Zigbee_Light_Switch.ino
example). However I'd like to connect the ESP32-C6 with my Hue Bridge to later control a light connected to ESP32-C6. When I start searching for a new light with the hue bridge I get anZDO signal with ZDO Leave (0x3)
. As soon as the the Hue Bridge stops searching, this signal also disappeares (as shown in the logs).[ 278][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL [ 288][I][sketch_jun5d.ino:75] esp_zb_app_signal_handler(): Zigbee stack initialized [ 297][I][sketch_jun5d.ino:81] esp_zb_app_signal_handler(): Device started up in factory-reset mode [ 307][I][sketch_jun5d.ino:83] esp_zb_app_signal_handler(): Start network formation [ 2540][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 6311][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Leave (0x3), status: ESP_OK [ 6321][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 10093][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Leave (0x3), status: ESP_OK [ 10103][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 13875][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Leave (0x3), status: ESP_OK [ 13885][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 17719][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Leave (0x3), status: ESP_OK [ 17729][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 21498][I][sketch_jun5d.ino:107] esp_zb_app_signal_handler(): ZDO signal: ZDO Leave (0x3), status: ESP_OK [ 21508][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 24744][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 27981][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 31218][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL) [ 34455][I][sketch_jun5d.ino:103] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
I already read about this problem in this issue: #168 . However I haven't understood how to optain that key. I found some blogs online where people tried to optain that key by sniffing the connection with wireshark like here: https://www.hal9k.dk/sniffing-philips-hue-zigbee-traffic-with-wireshark/. I also found this resource https://moh-computer.de/zigbee-zll-master-key-fuer-philips-hue/. With the key from the last resource I modified the
esp_zb_task()
.However as commented in the code, the function
esp_zb_enable_joining_to_distributed(true)
is not declared in scope. I checked the docs here: components/esp-zigbee-lib/include/esp_zigbee_core.h and seems like the function is only declared when the constantZB_DISTRIBUTED_SECURITY_ON
is defined. But still with this constant defined in theZigbee_Light_Bulb.ino
the compiler throws the same error.To summarize I'd like to know what I'm doing wrong when trying to connect the ESP to the Hue Bridge.
Additional context.
I am using the Arduino IDE 2.3.2 and the esp32 3.0.0 Board Package
The text was updated successfully, but these errors were encountered: