Zigbee: Add dimmable light endpoint class #10727
Zigbee: Add dimmable light endpoint class #10727me-no-dev merged 10 commits intoespressif:release/v3.1.xfrom
Conversation
👋 Hello FaBjE, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
|
Please add example that is inline with the other zigbee examples |
|
Also please target the |
Test Results 62 files 62 suites 5m 41s ⏱️ Results for commit 4f863d5. ♻️ This comment has been updated with latest results. |
@FaBjE - Please sign the CLA. |
0d3656d to
e473560
Compare
|
Hi @FaBjE, I am happy to see a PR from community. Overall it's looking good, but I am missing an implementation of setting the light manually. Can you please check a ZigbeeColorDimmableLight you have as a template on the So you are missing: |
Add a endpoint type class for a dimmable light. Based on a copy of color dimmable light.
Add example for a dimmable light. Based on a copy of color dimmable light example.
e473560 to
a0d57bb
Compare
|
@me-no-dev I modified my commit message according the bot message. @P-R-O-C-H-Y
|
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
libraries/Zigbee/examples/Zigbee_Dimmable_Light/Zigbee_Dimmable_Light.ino
Outdated
Show resolved
Hide resolved
As suggested by code review
|
Thank you @FaBjE for adding another endpoint class :) |
|
PR is now ready to be merged. @FaBjE hope you don't mind that I committed small change to avoid possible conflicts for future esp-zigbee-sdk releases :) |
Not at all. Makes complete sense, we just missed it during the rename of the others. I'm glad it is merged, and hope it will benefit others. |
Description of Change
This PR adds a Zigbee endpoint for a normal dimmable light. (So no colors or white-temperature change)
I based it on the "color dimmable light" example.
Unfortunately this endpoint type is not in the ESP Zigbee library by default.
So I had to make my own "esp_zb_dimmable_light_clusters_create" function.
It appears to be functioning good, but please do a proper check if I figured it out correctly.
Tests scenarios
I've tested this with Home Assistant.
The Arduino applications runs on a ESP32-C6 with Arduino-esp32 core on "master" branch.
I'm looking forward to your feedback 😃