Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add saving settings to memory using the Preferences library on Zigbee. #10880

DaTTcz started this conversation in General
Discussion options

Related area

Zigbee

Hardware specification

ESP32-C6

Is your feature request related to a problem?

Add saving settings to memory using the Preferences library on ESP32-C6 Zigbee.

Describe the solution you'd like

Add memory storage using the Preferences library. For example, if I set the light to a certain luminance value and color, when I reboot the ESP32-C6 it will set itself to that value and send it to the Zigbee Coordinator.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Both libraries are available with examples. You just have to put them together.

You must be logged in to vote
1 reply
@P-R-O-C-H-Y
Comment options

As @me-no-dev wrote, you can use the Preferences lib and store the light state there.
When the device reboots, you can read the state and set the light to it by calling:
void setLight(bool state, uint8_t level, uint8_t red, uint8_t green, uint8_t blue);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
3 participants
Converted from issue

This discussion was converted from issue #10878 on January 18, 2025 12:10.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.