Hello,
title says most of it. This is my current setup:
- 2x Sonoff Dongle Plus same firmware each connected to
- 2x Rpi with a virtual IP and keepalived setup
- Zigbee2Mqtt on my Hassio instance on an external server is accessing the dongle via the virtual IP and TCP and not through physical USB.
Setup with 1 dongle and rpi worked well before.
Since there are important sensors running on my network I wanted to have a fallback dongle. So in case one dongle goes down the other one on the 2nd RPI will take over. This is all organized with a virtual IP and the keepalived package which monitors basically a ping to the other RPI.
I flashed the second dongle with the identical firmware and gave it the same IEEE address from my primary dongle as secondary IEEE like this
python .\cc2538-bsl.py -p COM17 -evw --bootloader-sonoff-usb --ieee-address 00:12:4b:00:1c:dc:ed:b4 .\CC1352P2_CC2652P_other_coordinator_20210708.hex
This is also documented on Zigbee2Mqtt Copying the ieee address of an adapter | Zigbee2MQTT
So far so good. The Rpi config and virtual IP work flawlessly and the backup dongle is detected successfully by z2m when I poweroff my primary RPI. BUT I just can’t get it to work properly. The backup dongle won’t react to switches and buttons properly if at all. Some lights have a long delay other devices won’t react in any way.
This is the most common error I’ll get:
2025-01-17 16:43:03] error: z2m: Publish ‘set’ ‘state’ to ‘Arbeitszimmer Luftreiniger’ failed: ‘Error: ZCL command 0x70ac08fffe9484cb/1 genOnOff.off({}, {timeout:10000,disableResponse:false,disableRecovery:false,disableDefaultResponse:false,direction:0,reservedBits:0,writeUndiv:false}) failed (Timeout - 8714 - 1 - 15 - 6 - 11 after 10000ms)’ [2025-01-17 16:43:03] error: z2m: Publish ‘set’ ‘state’ to 'Schlafzimmer Luftreiniger ’ failed: ‘Error: ZCL command 0xf4b3b1fffea92a71/1 genOnOff.on({}, {timeout:10000,disableResponse:false,disableRecovery:false,disableDefaultResponse:false,direction:0,reservedBits:0,writeUndiv:false}) failed (Data request failed with error: ‘No network route’ (205))’
The rest of the logs (activated debug logging) look normal. Motion sensors and power plugs with current sensors will show up normally.
I also tried this only on my primary RPI to rule out a config mistake with the virtual IP/keepalived setup. So I just unplugged the primary dongle and connected the backup dongle, started Z2M but no joy.
Is there something I’m not understanding here? I essentially did a dongle migration. Only difference is I’m trying to use both independently. But here is the really weird thing. I tried to redo the flashing of the dongles and sometimes they would just change their role. The backup dongle would work normally and the primary dongle would cause problems. This happened to me several times.
Hints and help much appreciated.
Thanks
Edit: The hint from Cyberbeni seems to do the trick although I don’t understand why. Just power cycling one failing device like a plug will put the whole Zigbee network to normal. I will test this further but I’ hopeful that his is the solution.