Replies: 5 comments 13 replies
-
it seems like the UI is not refreshing when the power cut to match the state of the initial physical state when power comes up. sometimes it continue shows ON on UI but OFF physically |
Beta Was this translation helpful? Give feedback.
-
The Matter ESP32 firmware sends the information about its state to the Matter Controller. I'm sure that the communication from the ESP32 to the Matter Controller happens instantaneously. It is the responsibility of the Smartphone APP to update its own UI. |
Beta Was this translation helpful? Give feedback.
-
@Nezaemmy - I see the issue now. I'll get it fixed. |
Beta Was this translation helpful? Give feedback.
-
The issue is with Preferences... for some reason, the getBool(char* key, bool defaultVal) that should return defaultVal when the NVS is empty, it alway returns false, making the light to be off in the initial state. |
Beta Was this translation helpful? Give feedback.
-
@SuGlider I found other issue on MatterOnOffLight.
by setting your local time
this example works very well even if you press the reset pin on the board, the light will work again whenever the working time is not over.
I spend a week figure out the issue. |
Beta Was this translation helpful? Give feedback.
-
I'm Testing MatterOnOffLight.ino example, when the power cut on the device and connected again, the system start misbehaving, the state of physical light not the same as state of UI light.
is much noticeable when you change true to false on this line bool lastOnOffState = lastStatePref.getBool("lastOnOffState", false);.
@SuGlider
Beta Was this translation helpful? Give feedback.
All reactions