-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 Matter Arduino not resuming session #11378
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
Comments
It was supposed to work fine. |
When the device reboots, it may take some time to restabish the CASE session with the Google Matter Controller.
It shall work after a couple minutes in the worst case. |
Google Controller seems to demand some updating. Please make sure that the Google Device has its firmware in the latest version. |
Same issue and error message in my case with ESP32- C6 Dev Module with the example MatterColorLigth (using RGB in-builtin LED) and using Home Assistant. It seems error is not related to the hub. |
@Veletax - When you say same error, what is the error message that you get? But if the issue is about not restablishing the CASE session and the Matter Accessory is offline for long, this is an issue. Please post the whole log output, description of the process to produce the issue and information about app/version/controller for good investigation. |
Hi @SuGlider - thanks for taking interest in my issue! My Google Nest Mini is running the latest firmware. After looking through the verbose logs, I noticed that it takes much longer for the ESP32 to log that it has an IPv6 address, compared to IPv4. I managed to rectify this by calling This reduces the startup errors down to: Log ESP-IDF Version : v5.4.1-1-g2f7dcd862a-dirty
Arduino Version : 3.2.0
------------------------------------------
Board Info:
------------------------------------------
Arduino Board : ESP32_DEV
Arduino Variant : esp32
Arduino FQBN : esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=min_spiffs,DebugLevel=verbose,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default
============ Before Setup End ============
[ 768][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 101 - WIFI_READY
[ 843][V][STA.cpp:186] _onStaEvent(): STA Started
[ 847][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 110 - STA_START
[ 857][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 110 - STA_START
[ 1732][V][STA.cpp:206] _onStaEvent(): STA Connected: SSID: <REDACTED>, BSSID: <REDACTED>, Channel: <REDACTED>, Auth: WPA3_PSK
[ 1742][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 112 - STA_CONNECTED
[ 1752][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 112 - STA_CONNECTED
[ 1762][V][STA.cpp:127] _onStaArduinoEvent(): Enabled IPv6 Link Local on sta
[ 3244][V][NetworkInterface.cpp:78] _onIpEvent(): sta Got New IP: 192.168.1.15 MASK: 255.255.255.0 GW: 192.168.1.1
[ 3255][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 115 - STA_GOT_IP
[ 3264][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 115 - STA_GOT_IP
[ 3274][V][STA.cpp:171] _onStaArduinoEvent(): STA IP: 192.168.1.15, MASK: 255.255.255.0, GW: 192.168.1.1
[ 3757][V][NetworkInterface.cpp:120] _onIpEvent(): IF sta Got IPv6: Interface: 0, IP Index: 0, Type: LINK_LOCAL, Zone: 2, Address: fe80:0000:0000:0000:3698:7aff:febb:b70c
[ 3773][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 116 - STA_GOT_IP6
[ 3783][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 116 - STA_GOT_IP6
[ 4756][V][NetworkInterface.cpp:120] _onIpEvent(): IF sta Got IPv6: Interface: 0, IP Index: 1, Type: GLOBAL, Zone: 0, Address: <REDACTED>
[ 4772][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 116 - STA_GOT_IP6
[ 4781][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 116 - STA_GOT_IP6
[ 5256][I][MatterColorLight.cpp:193] begin(): RGB Color Light created with endpoint_id 1
E (10657) chip[DMG]: Endpoint 0, Cluster 0x0000_0031 not found in IncreaseClusterDataVersion!
E (10658) chip[DMG]: Endpoint 0, Cluster 0x0000_0031 not found in IncreaseClusterDataVersion!
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
Total Size : 276848 B ( 270.4 KB)
Free Bytes : 154372 B ( 150.8 KB)
Allocated Bytes : 107648 B ( 105.1 KB)
Minimum Free Bytes: 151436 B ( 147.9 KB)
Largest Free Block: 102388 B ( 100.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
GPIO : BUS_TYPE[bus/unit][chan]
--------------------------------------
1 : UART_TX[0]
3 : UART_RX[0]
============ After Setup End =============
[ 6755][V][NetworkInterface.cpp:120] _onIpEvent(): IF sta Got IPv6: Interface: 0, IP Index: 0, Type: LINK_LOCAL, Zone: 2, Address: fe80:0000:0000:0000:3698:7aff:febb:b70c
[ 6771][V][NetworkEvents.cpp:117] _checkForEvent(): Network Event: 116 - STA_GOT_IP6
[ 6772][I][Matter.cpp:92] app_event_cb(): Interface IPV6 Address changed
[ 6787][V][STA.cpp:110] _onStaArduinoEvent(): Arduino STA Event: 116 - STA_GOT_IP6
|
Even with verbose logging, the only message I get when running a routine in the Google Home app is:
|
I can confirm that voice commands from my Google Nest Mini seem to be a good deal more reliable now, too! |
@theonlytechnohead - Based on the results you are getting with Google Home, the issue is the the RGB Light gets commissioned, but it doesn't change its color or toggle on/off when you command it from the Google Home APP? Could you please describe the issue from user experience view? |
Using Google Home app to toggle on/off, change colour: works perfectly Using Google Home app to trigger a routine that toggles on/off and changes colour: works, but I receive notification saying something went wrong Using Google Nest Mini voice commands to toggle on/off and change colour: works perfectly Using Google Nest Mini voice commands to start a routine that toggles on/off and changes colour: often says "___ offline" and doesn't work, sometimes says "___ offline" and does work Using Google Nest Mini to automatically run routines (e.g. at a set time): usually works with no feedback or issues I'll get the logs from each of these scenarios later today, though I think it'll be the |
a) Using Google Home app to toggle on/off: ✅Logs:
Outcome: light turns off, no errors seen b) Using Google Home app to trigger a routine that toggles on/off: ❌Logs:
Outcome: Light turns on, device logs an error, Google Home app notification says something went wrong with the device c) Using Google Nest Mini voice commands to toggle on/off: ✅Logs:
Outcome: light turns off, no errors seen d) Using Google Nest Mini voice commands to trigger a routine that toggles on/off: ❌Logs:
Outcome: Light turns on, Google Nest Mini says the device is offline e) Using Google Nest Mini to automatically trigger a routine that toggles on/off: ✅Logs:
Outcome: light turns off, no errors seen f) Using Google Nest Mini to automatically trigger a routine that toggles on/off, changes colour, and changes brightness: ✅Logs:
Outcome: light turns on, changes colour and brightness, no errors seen g) Using Google Home app to manually trigger a routine that toggles on/off, changes colour, and changes brightness: ✅Logs:
Outcome: light turns on, changes colour and brightness, no errors seen |
Board
ESP32 Dev Module
Device Description
Plain module connected with jumpers
Hardware Configuration
GPIO 12 & 13 are connected to LED strips with 60 SK6812 LEDs per strip
LEDs are powered externally
Version
v3.2.0
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Hello,
Thank you for such an excellent experience setting up a Matter device!
I followed the ColorLight example to get started, however when the device reboots, I see some errors in the console.
The errors seem to appear roughly when
Matter.begin()
orColorLight.updateAccessory()
is called.The device also produces errors when responding to some commands sent by routines in the Google Home app:
(317140) chip[DMG]: Endpoint=1 Cluster=0x0000_0300 Command=0x0000_000A status 0x81 (no additional context)
The Google Home app reports that an action failed.
Please let me know if there's anything else I can do to help debug these issues!
Sketch
Debug Message
Other Steps to Reproduce
The device is provisioned within Google Home via a Google Nest Mini
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: