-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add repeater and bridge for Zigbee #10877
Comments
Add these lines for a repeater #ifndef ZIGBEE_MODE_ZCZR /////////////// Router here esp_zb_cfg_t zigbeeConfig = ZIGBEE_DEFAULT_ROUTER_CONFIG(); //////////////// Router here |
Hi @DaTTcz, to use the device as a router (repeater), all you need is to select this role in the call Roles defined in the ZigbeeCore.h:
Zigbee.begin call in your sketch: About the second part, the bridge (gateway) is a more complex stuff. For this I currently recommend to move using |
Thank you. |
@P-R-O-C-H-Y : can you add a full example for a zigbee router? Thank you. |
Hi @MikeBP13, just use any example with is there and change |
Is there a way to specify the allowed max. number of clients? |
I assume that there is no need to add any endpoint. |
If you don't add any endpoint you cannot specify manufacturer/model and no callback for identify. To answer the question above about max. number of clients - do you mean children? For that case you can use your custom config in esp_zb_cfg_t zigbeeConfig = ZIGBEE_DEFAULT_ROUTER_CONFIG();
zigbeeConfig.nwk_cfg.zczr_cfg.max_children = 10; // 10 is default, specify it here.
// Pass the configuration to the Zigbee.begin
Zigbee.begin(&zigbeeConfig, false)); |
Thanks for the hints. |
@MikeBP13 I have quickly created this code for the class + the sketch. Give it a try. https://gist.github.com/P-R-O-C-H-Y/153c88cd7159c934c030ceccf7d4b379 Let me know if its fine or you have any issues :) |
Many thanks for your prompt response and help. The header file is missing an endif at the end and the ino file is missing an include for the new class (which will not be needed when you publish the new endpoint). Other than that, it compiles fine and the device is recognized in HA as a router. I will leave the test device powered over night to see if it acts as a router. Great work! |
@MikeBP13 I am glad it worked, It was done like in 5 minutes :D Let me know if everything worked out so I will add this EP to the Zigbee Library :) |
From my preliminary tests, it seems to be working fine. You can add this endpoint to the library. Thanks! |
Related area
Zigbee
Hardware specification
ESP32-C6
Is your feature request related to a problem?
I miss using ESP32-C6 as a repeater in Zigbee.
And much greater using ESP32-C6 as a bridge in Zigbee. For example between Zigbee and MQTT(via LAN module) or Zigbee and RS485 MySensors.
Describe the solution you'd like
As Integration in an existing system.
Describe alternatives you've considered
No response
Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: