- Notifications
You must be signed in to change notification settings - Fork7.8k
feat(zigbee): Add Zigbee library#10265
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Fixed ep_thermostat to compile successfullyRemoved cb from all EP, as it have been removed, virtual methods will be used instead.Moved zigbee handlers out of Zigbee_core to Zigbee_handlers for better readability.Fixed zigbeeInit to be bool and return status of initialization for begin function.Updated examples with edited roles and custom method for on_off light
Implemented basic function calls of switch commands to on/off light: lightToggle, lightOn, lightOff, ...Implemented virtual methods for on/off light that have to be override in user code: setOnOff, sceneControl, setOnOffTime, setOffWaitTimeAPIs can be changed, still early development.
Implemented Factory reset of Zigbee device, in order to connect to new network without reflashing/erasing flashImplemented optional setting for Manufacturer and Model namesAdded option to allow endpoint to have multiple endpoint connected -> switch - 2 lights (tested)Minor sketches update
Implemented easy transfer from device it to Device type (0x0000 = ESP_ZB_HA_ON_OFF_SWITCH_DEVICE_ID -> "General On/Off switch".
Implemeted color dimmable light and color dimmer switch HA devices + examples.Removed unnecessary stored attribute clusterRenamed on/off light and switch examples
Implemented Zigbee network scanning (async) to mostly match WiFi scan APIs.Added Zigbee_Scan_Networks example
Implemeted thermostat and temperature sensor HA devices + examples.Implemented configure report handler.Updated READMEs and description of examples.Minor code updates
Simplified bounded device print as the structure is common for any EP typeAllowed setting custom app version for EP, default is 0Small fixes and code updates
github-actionsbot commentedAug 30, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
👋Hello P-R-O-C-H-Y, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
github-actionsbot commentedAug 30, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Test Results 41 files - 74 41 suites - 74 3m 13s ⏱️ - 1h 33m 7s Results for commit44f5522. ± Comparison against base commit84ddf0a. This pull requestremoves 6 tests.♻️ This comment has been updated with latest results. |
Uh oh!
There was an error while loading.Please reload this page.
Jason2866 commentedAug 30, 2024
First like the great work you are doing! |
e6f2769 to7693a16CompareUh oh!
There was an error while loading.Please reload this page.
lucasssvaz left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Very nice. Looks very intuitive to use. Just some small suggestions. BTW. Shouldn't this target branchrelease/v3.1.x according to what was presented in the community meeting ?
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
libraries/Zigbee/examples/Zigbee_On_Off_Light/Zigbee_On_Off_Light.ino OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
libraries/Zigbee/examples/Zigbee_On_Off_Light/Zigbee_On_Off_Light.ino OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
me-no-dev commentedSep 27, 2024
much cleaner now :) just one small nitpick for the on/off light |
f41a01e to6e56936CompareP-R-O-C-H-Y commentedSep 27, 2024
@me-no-dev Should I change the target branch to 3.1? |
me-no-dev commentedSep 27, 2024
I see no reason why not to have it in the 3.0 if we decide to publish another version |
4c4313a to3961642Compare8c15603 to172dd0fCompare172dd0f to7d763dfCompareForceu commentedDec 10, 2024
Thank you so much for your hard work! Unfortunately it did not seem to work, is it supported by this wrapper? |
P-R-O-C-H-Y commentedDec 10, 2024
Hi@Forceu, as light sleep need some specific SDK Config options to be set, which may bring unexpected behavior for whole arduino core, only deep sleep is currently supported by the Zigbee wrapper. It may be added in a future, but it's not planned for now. IF you are interested in the deep sleep, you can check the Temperature Humidity Sensor Sleepy example :) |
Forceu commentedDec 10, 2024
@P-R-O-C-H-Y Thanks a lot for the quick reply! Ah I didn't realise that the release candidate contains more examples. Again, thank you for your hard work :) |
P-R-O-C-H-Y commentedDec 10, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For latest features/fixes of Zigbee lib, check the release/v3.1.x branch :) All new stuff will be available in the 3.1.0 stable release soon.https://github.com/espressif/arduino-esp32/tree/release/v3.1.x/libraries/Zigbee |
cbass27 commentedDec 12, 2024
Bit of an Arduino newb but when I try to compile the Zigbee example code I get a compilation error: Zigbee.h" no such file. I'm running Arduino IDE 2.3.4 which says is the latest version so am I supposed to download this library separately and if so, where? Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
Description of Change
Introducing Zigbee Arduino library (wrapper for esp-zigbee-sdk).
Tests scenarios
Locally with all included examples.
Related links
Relates to issue#10135
ZB_STRUCT warningsfixespressif/esp-zigbee-sdk#416