Hi there,
I am currently trying to use device sleep modes with Matter. Nevertheless, once I add "CONFIG_PM_DEVICE_RUNTIME=y" to my prj.conf, the main-method is not longer executed.
I based my matter implementation on the "Adding clusters to Matter application"-example found here.
I developed a custom driver for my sensor that supports runtime PM, and use Matter for transmitting the read sample to some border router. Therefore, I first implemented the pm_action-method:
For automatic power state control, I have the following overlay:
The Logs of my driver are printed correctly for any other application. When using it with matter, I have the problem that the sensor is put the sleep at the beginning (which is correct), but the main-method is never executed. No logs (from main method), no debug, nothing.
Other information that might be interesting:
Zephyr SDK version 0.17.0
West version: v1.2.0
Full prj.conf: