What happened?
I'm using an ESP32-H2 as my coordinator with the firmware provided here. Everything works fine except for one big problem: when I restart the coordinator, all the devices are gone/removed. Please note that if I only restart Z2M, there is no problem, the problem only happens when the ESP32-H2 is restarted (e.g. after a power loss or resetting the ESP32-H2 manually). I have tested the dev branch too.
What did you expect to happen?
I expected that the devices remain connected and be controllable, without requiring re-pairing after coordinator's power reset.
How to reproduce it (minimal and precise)
First build the code provided here and flash it into an ESP32-H2. Then connect it to a system running Z2M and include the following in configuration.yaml:
Then run Z2M and add some devices. Then reboot your system (power off, then power on), restarting both Z2M and coordinator. Make sure the power to your coordinator is disconnected for at least a second. Then the devices you added will be gone.
Zigbee2MQTT version
2.1.0-dev commit: 75c3c5e
Adapter firmware version
0.0.1.0
Adapter
ZBOSS (ESP32-H2)
Setup
Plain Z2M on Orange Pi Zero
Debug log
Before power reset, starting Z2M and adding a device:
log.log
After power reset, the added device is gone:
log.log
What happened?
I'm using an ESP32-H2 as my coordinator with the firmware provided here. Everything works fine except for one big problem: when I restart the coordinator, all the devices are gone/removed. Please note that if I only restart Z2M, there is no problem, the problem only happens when the ESP32-H2 is restarted (e.g. after a power loss or resetting the ESP32-H2 manually). I have tested the dev branch too.
What did you expect to happen?
I expected that the devices remain connected and be controllable, without requiring re-pairing after coordinator's power reset.
How to reproduce it (minimal and precise)
First build the code provided here and flash it into an ESP32-H2. Then connect it to a system running Z2M and include the following in
configuration.yaml:Then run Z2M and add some devices. Then reboot your system (power off, then power on), restarting both Z2M and coordinator. Make sure the power to your coordinator is disconnected for at least a second. Then the devices you added will be gone.
Zigbee2MQTT version
2.1.0-dev commit: 75c3c5e
Adapter firmware version
0.0.1.0
Adapter
ZBOSS (ESP32-H2)
Setup
Plain Z2M on Orange Pi Zero
Debug log
Before power reset, starting Z2M and adding a device:
log.log
After power reset, the added device is gone:
log.log