Cannot pair Sonoff mini on ZHA via Zigate Wifi

Hi,

just bought 2 Sonoff Mini (Sonoff Mini Relay (ZBMINI) Zigbee compatibility).
I try to add them in ZHA via my Zigate but they are not discovered.

I activated log and have done many tries to add them.
I realize that in the logs, I see many times during my attempts devices left the network.
I suspect these to be the 2 Sonoffs as I don’t recognize the IEEE values

2022-02-04 23:02:14 INFO (MainThread) [zigpy.application] Device 0x0000 (00:12:4b:00:26:b7:92:f1) left the network
2022-02-04 23:22:12 INFO (MainThread) [zigpy.application] Device 0x0000 (00:12:4b:00:26:b7:9d:1d) left the network

so I assume they have been correctly added to the Zigate network (correct ?)
Is this an issue at ZHA level then ?

I found also in the log that oftern close to this message “left the network”, I have these
2022-02-04 18:04:59 DEBUG (MainThread) [zigpy_zigate.zigbee.application] No such device 0xa908

Browsing the internet to find more, I found this https://github.com/zigpy/zigpy-zigate/blob/078f0d46f28caf659725e32e09010634d6d0f936/zigpy_zigate/zigbee/application.py

There is in the zigpy_zigate code some logic to print this message.

Any idea or suggestion ?

Is it ZHA related ? Is it Zigate related ? Other suggestion to make the pairing ?

My infrastructure:

  • Zigate Wifi (ZiGate-WiFi v2.00 with esp-link v3.2.50-gfe4f565-dirty)
  • ZHA
  • Home Assistant 2022.2.1
2022-02-04 23:22:12 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 8048000a8a00124b0026b79d1d0000
2022-02-04 23:22:12 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8048 b'00124b0026b79d1d00' LQI:0
2022-02-04 23:22:12 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [00:12:4b:00:26:b7:9d:1d, 0]
**2022-02-04 23:22:12 INFO (MainThread) [zigpy.application] Device 0x0000 (00:12:4b:00:26:b7:9d:1d) left the network**
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 8002001a7f0000000013000002ab5602fffd0056ab1d9db726004b12008e30
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0000000013000002ab5602fffd0056ab1d9db726004b12008e' LQI:48
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 0, 19, 0, 0, <Address address_mode=ADDRESS_MODE.NWK address=0xab56>, <Address address_mode=ADDRESS_MODE.NWK address=0xfffd>, b'\x00V\xab\x1d\x9d\xb7&\x00K\x12\x00\x8e']
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.zigbee.application] No such device 0xab56
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 87010005870000040000
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8701 b'00000400' LQI:0
2022-02-04 23:22:15 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 0]
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80110008ad00ab560080024b00
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8011 b'00ab560080024b' LQI:0
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 0xab56, 0, 32770, 75]
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] ACK Data received 75 0
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020015660001040006010102ab5602000008000a000020002d
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006010102ab5602000008000a00002000' LQI:45
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xab56>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x08\x00\n\x00\x00 \x00']
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] No such device 0xab56
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020015660001040006010102ab5602000008000a000020002d
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006010102ab5602000008000a00002000' LQI:45
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xab56>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x08\x00\n\x00\x00 \x00']
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] No such device 0xab56
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 801100082d00ab560100064e00
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8011 b'00ab560100064e' LQI:0
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 0xab56, 1, 6, 78]
2022-02-04 23:22:16 DEBUG (MainThread) [zigpy_zigate.zigbee.application] ACK Data received 78 0
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020015f50001040006010102f1f0020000086c0a000010001e
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006010102f1f0020000086c0a00001000' LQI:30
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xf1f0>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x08l\n\x00\x00\x10\x00']
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=108 command_id=Command.Report_Attributes>
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] Attribute report received: on_off=0
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] request (0xF1F0, 260, 6, 1, 1, 108, b'\x18l\x0b\n\x00', False, False)
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Send: 0x0530 b'02f1f0010100060104000005186c0b0a00'
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame to send: b'\x050\x00\x11T\x02\xf1\xf0\x01\x01\x00\x06\x01\x04\x00\x00\x05\x18l\x0b\n\x00'
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame escaped: b'\x02\x150\x02\x10\x11T\x02\x12\xf1\xf0\x02\x11\x02\x11\x02\x10\x02\x16\x02\x11\x02\x14\x02\x10\x02\x10\x02\x15\x18l\x02\x1b\x02\x1a\x02\x10'
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020015f50001040006010102f1f0020000086c0a000010001e
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006010102f1f0020000086c0a00001000' LQI:30
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xf1f0>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x08l\n\x00\x00\x10\x00']
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=108 command_id=Command.Report_Attributes>
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.zcl] [0xf1f0:1:0x0006] Attribute report received: on_off=0
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy.util] Duplicate 108 TSN
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80000007e200500530000000
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8000 b'005005300000' LQI:0
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 80, 1328, b'\x00\x00']
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80110008d000f1f00100064f00
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8011 b'00f1f00100064f' LQI:0
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 0xf1f0, 1, 6, 79]
2022-02-04 23:22:21 DEBUG (MainThread) [zigpy_zigate.zigbee.application] ACK Data received 79 0