Cannot pair Tuya Zigbee plug in HA (ZHA with Sonoff Dongle Plus)

I bought three Tuya Zigbee plugs (model TS011F). Two of them work flawlessly. One of them cannot be paired to HA (ZHA with Sonoff Dongle Plus) for some reason, although there seems to be some communication going on. While trying to pair, the logs show:

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=48, profile_id=0, cluster_id=32822, data=Serialized[b'0\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_rsp: [<Status.SUCCESS: 0>]
[0x0000:zdo] No handler for ZDO request:ZDOCmd.Mgmt_Permit_Joining_rsp([<Status.SUCCESS: 0>])
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xED84), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x8e\x01\x0b\x05\x00)\x00\x00\x08\x05\x00!\x00\x00\x05\x05\x00!\xe6\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=26, non_member_radius=0, lqi=3, rssi=None)
[0xED84:1:0x0b04] Received ZCL frame: b'\x18\x8e\x01\x0b\x05\x00)\x00\x00\x08\x05\x00!\x00\x00\x05\x05\x00!\xe6\x00'
[0xED84:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=142, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xED84:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=int16s, value=0)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=0)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=230))])
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x39AA), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1794, data=Serialized[b'\x18\x91\x01\x00\x00\x00%\x01\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=27, non_member_radius=0, lqi=3, rssi=None)
[0x39AA:1:0x0702] Received ZCL frame: b'\x18\x91\x01\x00\x00\x00%\x01\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'
[0x39AA:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=145, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x39AA:1:0x0702] Decoded ZCL frame: TuyaZBMeteringCluster:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=1)), ReadAttributeRecord(attrid=0x0200, status=<Status.SUCCESS: 0>, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])
[0x39AA](TS011F): Device seen - marking the device available and resetting counter
[0x39AA](TS011F): Update device availability -  device available: True - new availability: True - changed: False
[0xC66F](TY0202): Device seen - marking the device available and resetting counter
[0xC66F](TY0202): Update device availability -  device available: True - new availability: True - changed: False
[0x75F5](TS0201): Device seen - marking the device available and resetting counter
[0x75F5](TS0201): Update device availability -  device available: True - new availability: True - changed: False
[0xA84B:1:0x0702]: async_force_update
[0xA84B:1:0x0702]: Reading attributes in chunks: ['current_summ_delivered']
[0xA84B:1:0x0702] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=147, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xA84B:1:0x0702] Sending request: Read_Attributes(attribute_ids=[0])
[0xCF8C:1:0x0702]: async_force_update
[0xCF8C:1:0x0702]: Reading attributes in chunks: ['current_summ_delivered']
[0xCF8C:1:0x0702] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=148, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xCF8C:1:0x0702] Sending request: Read_Attributes(attribute_ids=[0])
[0xA84B:1:0x0b04]: async_update
[0xA84B:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_current', 'rms_voltage']
[0xA84B:1:0x0b04] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=149, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xA84B:1:0x0b04] Sending request: Read_Attributes(attribute_ids=[1291, 1288, 1285])
[0xCF8C:1:0x0b04]: async_update
[0xCF8C:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_current', 'rms_voltage']
[0xCF8C:1:0x0b04] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=150, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xCF8C:1:0x0b04] Sending request: Read_Attributes(attribute_ids=[1291, 1288, 1285])
[0xED84:1:0x0b04]: async_update
[0xED84:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_current', 'rms_voltage']
[0xED84:1:0x0b04] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=151, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xED84:1:0x0b04] Sending request: Read_Attributes(attribute_ids=[1291, 1288, 1285])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xA84B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1794, data=Serialized[b'\x18\x93\x01\x00\x00\x00%c\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=6, rssi=None)
[0xA84B:1:0x0702] Received ZCL frame: b'\x18\x93\x01\x00\x00\x00%c\x04\x00\x00\x00\x00'
[0xA84B:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=147, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xA84B:1:0x0702] Decoded ZCL frame: TuyaZBMeteringClusterWithUnit:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=1123))])
[0xED84:1:0x0702]: async_force_update
[0xED84:1:0x0702]: Reading attributes in chunks: ['current_summ_delivered', 'status']
[0xED84:1:0x0702] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=152, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0xED84:1:0x0702] Sending request: Read_Attributes(attribute_ids=[0, 512])
[0x5BD1](TS0203): Device seen - marking the device available and resetting counter
[0x5BD1](TS0203): Update device availability -  device available: True - new availability: True - changed: False

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xCF8C), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1794, data=Serialized[b'\x18\x94\x01\x00\x00\x00%l\x0c\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=3, rssi=None)
[0xCF8C:1:0x0702] Received ZCL frame: b'\x18\x94\x01\x00\x00\x00%l\x0c\x00\x00\x00\x00'
[0xCF8C:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=148, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xCF8C:1:0x0702] Decoded ZCL frame: TuyaZBMeteringClusterWithUnit:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=3180))])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xA84B), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x95\x01\x0b\x05\x00!\r\x00\x08\x05\x00!d\x00\x05\x05\x00!\xe8\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=3, rssi=None)
[0xA84B:1:0x0b04] Received ZCL frame: b'\x18\x95\x01\x0b\x05\x00!\r\x00\x08\x05\x00!d\x00\x05\x05\x00!\xe8\x00'
[0xA84B:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=149, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xA84B:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=13)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=100)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=232))])
[0x39AA:1:0x0b04]: async_update
[0x39AA:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_current', 'rms_voltage']
[0x39AA:1:0x0b04] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=153, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0x39AA:1:0x0b04] Sending request: Read_Attributes(attribute_ids=[1291, 1288, 1285])
[0x39AA:1:0x0702]: async_force_update
[0x39AA:1:0x0702]: Reading attributes in chunks: ['current_summ_delivered', 'status']
[0x39AA:1:0x0702] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=154, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0x39AA:1:0x0702] Sending request: Read_Attributes(attribute_ids=[0, 512])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xCF8C), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x96\x01\x0b\x05\x00!\x01\x00\x08\x05\x00!_\x00\x05\x05\x00!\xe9\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=6, rssi=None)
[0xCF8C:1:0x0b04] Received ZCL frame: b'\x18\x96\x01\x0b\x05\x00!\x01\x00\x08\x05\x00!_\x00\x05\x05\x00!\xe9\x00'
[0xCF8C:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=150, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xCF8C:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=1)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=95)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=233))])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xED84), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1794, data=Serialized[b'\x18\x98\x01\x00\x00\x00%\x02\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=26, non_member_radius=0, lqi=3, rssi=None)
[0xED84:1:0x0702] Received ZCL frame: b'\x18\x98\x01\x00\x00\x00%\x02\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'
[0xED84:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=152, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xED84:1:0x0702] Decoded ZCL frame: TuyaZBMeteringCluster:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=2)), ReadAttributeRecord(attrid=0x0200, status=<Status.SUCCESS: 0>, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x39AA), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x99\x01\x0b\x05\x00)\x0b\x00\x08\x05\x00!U\x00\x05\x05\x00!\xe8\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=27, non_member_radius=0, lqi=6, rssi=None)
[0x39AA:1:0x0b04] Received ZCL frame: b'\x18\x99\x01\x0b\x05\x00)\x0b\x00\x08\x05\x00!U\x00\x05\x05\x00!\xe8\x00'
[0x39AA:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=153, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x39AA:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=int16s, value=11)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=85)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=232))])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x39AA), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x99\x01\x0b\x05\x00)\x0b\x00\x08\x05\x00!U\x00\x05\x05\x00!\xe8\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=27, non_member_radius=0, lqi=6, rssi=None)
[0x39AA:1:0x0b04] Received ZCL frame: b'\x18\x99\x01\x0b\x05\x00)\x0b\x00\x08\x05\x00!U\x00\x05\x05\x00!\xe8\x00'
[0x39AA:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=153, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x39AA:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=int16s, value=11)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=85)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=232))])
[0x39AA:1:0x0b04] Received command 0x01 (TSN 153): Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=int16s, value=11)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=85)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=232))])

Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xED84), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=2820, data=Serialized[b'\x18\x97\x01\x0b\x05\x00)\x00\x00\x08\x05\x00!\x00\x00\x05\x05\x00!\xe7\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=26, non_member_radius=0, lqi=9, rssi=None)
[0xED84:1:0x0b04] Received ZCL frame: b'\x18\x97\x01\x0b\x05\x00)\x00\x00\x08\x05\x00!\x00\x00\x05\x05\x00!\xe7\x00'
[0xED84:1:0x0b04] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=151, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0xED84:1:0x0b04] Decoded ZCL frame: TuyaZBElectricalMeasurement:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x050B, status=<Status.SUCCESS: 0>, value=TypeValue(type=int16s, value=0)), ReadAttributeRecord(attrid=0x0508, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=0)), ReadAttributeRecord(attrid=0x0505, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=231))])
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x39AA), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1794, data=Serialized[b'\x18\x9a\x01\x00\x00\x00%\x01\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=27, non_member_radius=0, lqi=6, rssi=None)
[0x39AA:1:0x0702] Received ZCL frame: b'\x18\x9a\x01\x00\x00\x00%\x01\x00\x00\x00\x00\x00\x00\x02\x00\x18\x00'
[0x39AA:1:0x0702] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=154, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x39AA:1:0x0702] Decoded ZCL frame: TuyaZBMeteringCluster:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint48_t, value=1)), ReadAttributeRecord(attrid=0x0200, status=<Status.SUCCESS: 0>, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])
[0xA84B](TS011F): Device seen - marking the device available and resetting counter
[0xA84B](TS011F): Update device availability -  device available: True - new availability: True - changed: False
[0xED84](TS011F): Device seen - marking the device available and resetting counter
[0xED84](TS011F): Update device availability -  device available: True - new availability: True - changed: False
[0xCF8C](TS011F): Device seen - marking the device available and resetting counter
[0xCF8C](TS011F): Update device availability -  device available: True - new availability: True - changed: False

What could be the cause and how can I solve this? Any help is appreciated!

Try to put it closer to the coordinator and pair it there.

Thanks for your quick reaction. I’ll try this. Maybe 3 - 4 meters is still too far away…

I have same plugs (TS011F) and they are working without issues with z2m. If it doesnt work just switch to z2m. Unless there is some important reason you have to use zha.

I thought about switching to Z2M, but ZHA was easier to setup. By the way: I just discoverd that the plug that won’t pair is an Elivco, model LSPA9 (Zigbee version).

There is not much to it. To set up z2m first you have to set up mqtt broker. Just add user in ha mqtt or whatever and password for it. In mqtt addon fill username and password credential and port 1883.
Star it up and and mqtt integration. Address for integrations is usually something like mqtt://your_ha_ip or just ha ip.

If everything went well just fill in mqtt credentials and port in z2m and there you go.
You have a lot of tutorials on line.