-
Notifications
You must be signed in to change notification settings - Fork 43
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
Zigbee2MQTT connection problem - ESP32-H2/C6 HA_on_off_light example (TZ-811) #328
Comments
@SCiunczyk Please Add an new device as the follow links: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html |
But I think that I can't add new device to Z2M with unknown model and manufacturer Let's assume that we are starting from examples/esp_zigbee_HA_sample/HA_on_off_light and the example code of
What is the recommended approach to define model and manufacturer property in code? |
@SCiunczyk Second, We also could use the already existing devices which match the function, eg: define model as |
First I have to pair device - but pairing failed - I have same symptoms as here: espressif/esp-idf#12657 Again: the problem exists only with Zigbee2MQTT. With ZHA (Zigbee Home Automation) demo works perfectly. |
I had the same issue and was able to cobble together the following from different snippets around the issues. Compiled with ESP-IDF 5.2.1 and works with my ESP32-C6 and HA via deCONZ.
|
@SCiunczyk What do you mean it paired failed when you changed the model as
If you want to use these |
At the moment zero success unfortunately, I have adapted the code to new zboss 1.2.3
The model as HLQDQ01LM and manufacturer as Xiaomi changed according to @lhespress suggestions. ZHA integrations works: But Zigbee2MQTT nor Zigbee2MQTTEdge is able to pair only joining: I have no sniffer handy, have to obtain one. Do you have recommendation for not expensive device? |
According to the docs, you can configure an esp32-c6 to work as a sniffer, if you have a second one on hand: https://docs.espressif.com/projects/esp-zigbee-sdk/en/latest/esp32c6/developing.html#sniffer-and-wireshark |
I have two H2 and two C6 boards so will try.... |
Please change
which match with HLQDQ01LM product. |
Will try, but now I'm travelling AFK. What coordinator do you have? |
@SCiunczyk I used ConBee II as coordinator. |
For anyone looking at this I managed to connect to a Conbee II network successfully using the code from above but slightly modified. When joining a new co-ordinator (or probably rejoining the exisiting one) make sure to erase NVRAM:
Working code:
|
Hello Gentlemen, This issue would be a none issue if the example would be written so that it would provide espressif as manufacturer and the example name from the start to comply with the zigbee standard right away. I do not quite understand why this is not the case? Shouldn't the goal be to get things started quick and easy? Instead of having nicely working code, we have to hack some code snippets that do almost the same thing but differently. I do not think this should be the goal here. The snippet OOHehir posted above does not work for me. The device builds, flashes and starts up, but it wouldn't start to interview with my zigbee network. The default version of the example does, but with undefined model and manufacturer. |
I find it interesting that you are trying to solve the problem in z2m, when the problem we describe is in the example code not providing the information that z2m needs in order to create a converter for the device. It seems like there is a misunderstanding on your side? |
Update: After a full flash erase things are finally working on my end, seems most snippets i pieced together would've worked. |
@lienbacher That's because of Zigbee2MQTT uses zigbee-herdsman-converters which don't support |
@lhespress well, this is not about z2m not supporting espressif as a manufactuer, this is about the examples not providing a manufacturer. Z2M will sure be happy to accept PRs to support the examples right away and writing an external converter is a matter of 30 minutes. As per my personal experience, the examples of TI and Silabs all include manufacturer and model name in their examples, despite z2m not supporting them. I think zigbee examples should include manufacturer and model name. It would be right in line with espressifs good reputation of the user being able getting things off the ground quickly. |
@lienbacher I agree with you, and what surprises me even more, ZHA integration works without any problem with these H2/C6 boards. With Z2M I still have no success :-( |
@0rion12 this has nothing to do with the issue you are commenting on, this is not a thread in a forum, it is an issue in a repository. It discusses an issue and it has a status, which in this case is "Open". Apart from this you are also looking for help that is much more related to zigbee2mqtt and not the espressif zigbee repository as the people reponsible for this repository have little to no experience with zigbee2mqtt. It's a bit like asking for help with baking bread in a factory for ovens. |
Well zha working is less a surprise because it seems to be less strict about those two clusters being present, z2m uses them to identify which converter to use. OOhenirs code worked or me, make sure you completely delete your devices flash before trying again, that was the problem for me after all. |
Yes, or 'idf.py erase-flash' |
Looks like I'm the only one it doesn't work for ;-( Probably I'm the dumbest kid in the block... |
So you say the device joins but does not pair. What exactly do you mean by that, and why do you show the device map and not about page of the device? |
Hi @lienbacher . The steps I'm going are:
Environment: Windows 11 / Microsoft Surface Book 2 / ConBee III coordinator / HA v. 2024.6.2 / espressif H2 / C6 from Aliexpress / esp_zb_task code snippet upladed bby @OOHehir / SDK v1.2.3 BTW I feel like I'm banging my head against a wall :-) |
Stop banging your head, it hurts and does not help the cause :) Again, the map does not matter at all. Does the interview fail or go stale? because the spinning circle indicates interview is still ongoing and mfg and model will only be available after the interview. What's the output of the log? Also, if can you switch your z2m temporarily to english by simply clicking the flag in the top right and select english, it's easier for us to see whats going on. |
that error message is a very important piece in the puzzle. If you switch debug logging on in your z2m you will likely get more information on why the interview failed. but the reason is likely in your esp_zb_task. Can you post the current code you are using? |
Debug logging: Code I'm compiling:
|
Answers checklist.
IDF version.
v5.2.1
esp-zigbee-lib version.
v1.2.3
esp-zboss-lib version.
v1.2.3
Espressif SoC revision.
ESP32-H2 ESP32-C6
What is the expected behavior?
Successful pairing and operation with Zigbee2MQTT add-on on HA.
What is the actual behavior?
The pairing and operation works only with ZHA integration - device is detected, paired and has undefined model and manufacture names, but I can switch on/off led on board from my HA interface. On Z2M add-on device is detected but model and manufacture are not recognised. So it can't be operated.
Steps to reproduce.
esp_zb_task
The boards are: H2 and C6
HA (latest version) is installed on Odroid N2+ (Armbian) with ConBee III as coordinator flashed with latest firmware
After switching to Zigbee2MQTT Edge - latest version I can't pair correctly
Board is cleared / re-flashed pairing on device side is reported as successful but model and manufacture are not recognised. So device can't be used with Z2M
More Information.
Log on ZHA pairing after fresh clear/flash/monitor and switching light from HA interface
The device status ZHA.
The device status in Z2M


I suppose that problem is with device/manufacture name setup, but I have no idea how to fix it.
The text was updated successfully, but these errors were encountered: