Hi,
I’ve been searching around this issue across the forum but without luck, apologies if it was already answered - happy to take any feedback.
I’m running HA (container - based on [2023.2] version) with a Sonoff ZBDongle-E (using the ch341.ko driver) and Zigbee Home Automation.
I can pair the Aqara Motion Sensor and I get the info (presence, lumi, etc) but immediately after pairing it stops reporting back any change.
I’ve tried USB extension, i’ve tried to the pairing where it is place, etc - no success.
What is interesting is that I have also a Smarthings Hub and once paired with that one, works perfectly so can’t say is the sensor.
At the same time in HA, with the ZHA I have multiple other sensors from Smarthings paired and used in automations and they are all working perfectly fine, so can’t say there is something off with the Sonoff bridge or interference.
I can’t spot anything in the logs , attached the "pairing logs from ZHA. "
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x446D), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=248, profile_id=260, cluster_id=64514, data=Serialized[b'\x0cA\x12n\n\x12\x00)\xde\xff\x13\x00)\xcd\xff\x14\x00)\x1a\xfc'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-36)
[0x446D:1:0xfc02] Received ZCL frame: b'\x0cA\x12n\n\x12\x00)\xde\xff\x13\x00)\xcd\xff\x14\x00)\x1a\xfc'
[0x446D:1:0xfc02] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4673, tsn=110, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x446D:1:0xfc02] Decoded ZCL frame: SmartThingsAccelCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0012, value=TypeValue(type=int16s, value=-34)), Attribute(attrid=0x0013, value=TypeValue(type=int16s, value=-51)), Attribute(attrid=0x0014, value=TypeValue(type=int16s, value=-998))])
[0x446D:1:0xfc02] Received command 0x0A (TSN 110): Report_Attributes(attribute_reports=[Attribute(attrid=0x0012, value=TypeValue(type=int16s, value=-34)), Attribute(attrid=0x0013, value=TypeValue(type=int16s, value=-51)), Attribute(attrid=0x0014, value=TypeValue(type=int16s, value=-998))])
[0x446D:1:0xfc02] Attribute report received: x_axis=-34, y_axis=-51, z_axis=-998
[0x446D:1:0xfc02] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=110, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x446D:1:0xfc02] Sending reply: Default_Response(command_id=10, status=<Status.SUCCESS: 0>)
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x446D), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=249, profile_id=260, cluster_id=64514, data=Serialized[b'\x0cA\x12o\n\x10\x00\x18\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=255, rssi=-36)
[0x446D:1:0xfc02] Received ZCL frame: b'\x0cA\x12o\n\x10\x00\x18\x00'
[0x446D:1:0xfc02] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4673, tsn=111, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x446D:1:0xfc02] Decoded ZCL frame: SmartThingsAccelCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0010, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])
[0x446D:1:0xfc02] Received command 0x0A (TSN 111): Report_Attributes(attribute_reports=[Attribute(attrid=0x0010, value=TypeValue(type=bitmap8, value=<bitmap8.0: 0>))])
[0x446D:1:0xfc02] Attribute report received: acceleration=<bitmap8.0: 0>
[0x446D:1:0xfc02] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=111, command_id=<GeneralCommand.Default_Response: 11>, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x446D:1:0xfc02] Sending reply: Default_Response(command_id=10, status=<Status.SUCCESS: 0>)
[0x446D](multi): Device seen - marking the device available and resetting counter
[0x446D](multi): Update device availability - device available: True - new availability: True - changed: False
New device 0x6184 (00:15:8d:00:08:36:f0:da) joined the network
[0x6184] Scheduling initialization
Tries remaining: 3
[0x6184] Requesting 'Node Descriptor'
Tries remaining: 2
[0x6184] Extending timeout for 0x0b request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=149, profile_id=0, cluster_id=19, data=Serialized[b'V\x84a\xda\xf06\x08\x00\x8d\x15\x00\x80'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=180, rssi=-55)
Device 0x6184 (00:15:8d:00:08:36:f0:da) joined the network
[0x6184] Scheduling initialization
[0x6184] Canceling old initialize call
Received frame on uninitialized device <Device model=None manuf=None nwk=0x6184 ieee=00:15:8d:00:08:36:f0:da is_initialized=False> from ep 0 to ep 0, cluster 19: b'V\x84a\xda\xf06\x08\x00\x8d\x15\x00\x80'
[0x6184:zdo] ZDO request ZDOCmd.Device_annce: [0x6184, 00:15:8d:00:08:36:f0:da, 128]
Tries remaining: 3
[0x6184] Requesting 'Node Descriptor'
Tries remaining: 2
[0x6184] Extending timeout for 0x0d request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=150, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x00\n\x05\x00B\x16lumi.sensor_motion.aq2\x01\x00 \x05'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=188, rssi=-53)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x6184 ieee=00:15:8d:00:08:36:f0:da is_initialized=False> from ep 1 to ep 1, cluster 0: b'\x18\x00\n\x05\x00B\x16lumi.sensor_motion.aq2\x01\x00 \x05'
[0x6184] Received ZCL while uninitialized on endpoint id 1, cluster 0x0000 id, hdr: 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=0, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x05\x00B\x16lumi.sensor_motion.aq2\x01\x00 \x05'
[0x6184] Uninitialized device command '10' params: Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_motion.aq2')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=5))])
[0x6184] Found 'MotionAQ2' quirk for 'lumi.sensor_motion.aq2' model
[0x6184] Canceling old initialize call
Device is initialized <Device model='lumi.sensor_motion.aq2' manuf='LUMI' nwk=0x6184 ieee=00:15:8d:00:08:36:f0:da is_initialized=True>
Checking quirks for LUMI lumi.sensor_motion.aq2 (00:15:8d:00:08:36:f0:da)
Considering <class 'zhaquirks.xiaomi.aqara.motion_aq2b.MotionAQ2'>
Fail because device_type mismatch on at least one endpoint
Considering <class 'zhaquirks.xiaomi.aqara.motion_aq2.MotionAQ2'>
Found custom device replacement for 00:15:8d:00:08:36:f0:da: <class 'zhaquirks.xiaomi.aqara.motion_aq2.MotionAQ2'>
[0x6184] Was quickly initialized from 'zhaquirks.xiaomi.aqara.motion_aq2.MotionAQ2' quirk
'binary_sensor' component -> 'Occupancy' using ['occupancy']
'binary_sensor' component -> 'IASZone' using ['ias_zone']
'button' component -> 'ZHAIdentifyButton' using ['identify']
'sensor' component -> 'Battery' using ['power']
'sensor' component -> 'Illuminance' using ['illuminance']
'sensor' component -> 'DeviceTemperature' using ['device_temperature']
'sensor' component -> 'RSSISensor' using ['basic']
'sensor' component -> 'LQISensor' using ['basic']
device - 0x6184:00:15:8d:00:08:36:f0:da entering async_device_initialized - is_new_join: True
device - 0x6184:00:15:8d:00:08:36:f0:da has joined the ZHA zigbee network
[0x6184](lumi.sensor_motion.aq2): started configuration
[0x6184:ZDO](lumi.sensor_motion.aq2): 'async_configure' stage succeeded
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=151, profile_id=260, cluster_id=0, data=Serialized[b'\x1c_\x11\x01\n\x01\xffB!\x01!\x03\x0c\x03(\x1f\x04!\xa8\x01\x05!8\x00\x06$\x00\x00\x00\x00\x00\n!\x00\x00d\x10\x00\x0b!\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=180, rssi=-55)
[0x6184:1:0x0000] Received ZCL frame: b'\x1c_\x11\x01\n\x01\xffA!\x01!\x03\x0c\x03(\x1f\x04!\xa8\x01\x05!8\x00\x06$\x00\x00\x00\x00\x00\n!\x00\x00d\x10\x00\x0b!\x00\x00'
[0x6184:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=1, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x6184:1:0x0000] Decoded ZCL frame: BasicCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b'\x01!\x03\x0c\x03(\x1f\x04!\xa8\x01\x05!8\x00\x06$\x00\x00\x00\x00\x00\n!\x00\x00d\x10\x00\x0b!\x00\x00'))])
[0x6184:1:0x0000] Received command 0x0A (TSN 1): Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b'\x01!\x03\x0c\x03(\x1f\x04!\xa8\x01\x05!8\x00\x06$\x00\x00\x00\x00\x00\n!\x00\x00d\x10\x00\x0b!\x00\x00'))])
[0x6184:1:0x0000] Attribute report received: 0xFF01=b'\x01!\x03\x0c\x03(\x1f\x04!\xa8\x01\x05!8\x00\x06$\x00\x00\x00\x00\x00\n!\x00\x00d\x10\x00\x0b!\x00\x00'
[0x6184:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3075 < [Max]:3100, Battery Percent: 91.0
[0x6184:1:0x0406]: skipping channel configuration
[0x6184:1:0x0002]: skipping channel configuration
[0x6184:1:0x0003]: skipping channel configuration
[0x6184:1:0x0000]: skipping channel configuration
[0x6184:1:0x0400]: skipping channel configuration
[0x6184:1:0x0500]: skipping IASZoneChannel configuration
[0x6184:1:0x0001]: skipping channel configuration
[0x6184:1:0x0019]: skipping channel configuration
Error handling '_save_attribute' event with (00:15:8d:00:08:36:f0:da, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed
[0x6184:1:0x0406]: 'async_configure' stage succeeded
[0x6184:1:0x0002]: 'async_configure' stage succeeded
[0x6184:1:0x0003]: 'async_configure' stage succeeded
[0x6184:1:0x0000]: 'async_configure' stage succeeded
[0x6184:1:0x0400]: 'async_configure' stage succeeded
[0x6184:1:0x0500]: 'async_configure' stage succeeded
[0x6184:1:0x0001]: 'async_configure' stage succeeded
[0x6184:1:0x0019]: 'async_configure' stage succeeded
Error handling '_save_attribute' event with (00:15:8d:00:08:36:f0:da, 1, 0, 5, 'lumi.sensor_motion.aq2') params: FOREIGN KEY constraint failed
[0x6184](lumi.sensor_motion.aq2): completed configuration
[0x6184](lumi.sensor_motion.aq2): started initialization
[0x6184:ZDO](lumi.sensor_motion.aq2): 'async_initialize' stage succeeded
[0x6184:1:0x0406]: Skipping channel initialization
[0x6184:1:0x0002]: Skipping channel initialization
[0x6184:1:0x0003]: Skipping channel initialization
[0x6184:1:0x0000]: Skipping channel initialization
[0x6184:1:0x0400]: Skipping channel initialization
[0x6184:1:0x0500]: Skipping channel initialization
[0x6184:1:0x0001]: Skipping channel initialization
[0x6184:1:0x0019]: Skipping channel initialization
[0x6184:1:0x0406]: 'async_initialize' stage succeeded
[0x6184:1:0x0002]: 'async_initialize' stage succeeded
[0x6184:1:0x0003]: 'async_initialize' stage succeeded
[0x6184:1:0x0000]: 'async_initialize' stage succeeded
[0x6184:1:0x0400]: 'async_initialize' stage succeeded
[0x6184:1:0x0500]: 'async_initialize' stage succeeded
[0x6184:1:0x0001]: 'async_initialize' stage succeeded
[0x6184:1:0x0019]: 'async_initialize' stage succeeded
[0x6184](lumi.sensor_motion.aq2): power source: Battery or Unknown
[0x6184](lumi.sensor_motion.aq2): completed initialization
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=152, profile_id=260, cluster_id=1024, data=Serialized[b'\x18\x02\n\x00\x00!\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
[0x6184:1:0x0400] Received ZCL frame: b'\x18\x02\n\x00\x00!\x01\x00'
[0x6184:1:0x0400] 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=2, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x6184:1:0x0400] Decoded ZCL frame: IlluminanceMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=1))])
[0x6184:1:0x0400] Received command 0x0A (TSN 2): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=1))])
[0x6184:1:0x0400] Attribute report received: measured_value=1
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=153, profile_id=260, cluster_id=1030, data=Serialized[b'\x18\x03\n\x00\x00\x18\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
[0x6184:1:0x0406] Received ZCL frame: b'\x18\x03\n\x00\x00\x18\x01'
[0x6184:1:0x0406] 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=3, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x6184:1:0x0406] Decoded ZCL frame: OccupancyCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8.1: 1>))])
[0x6184:1:0x0406] Received command 0x0A (TSN 3): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8.1: 1>))])
[0x6184:1:0x0406] Attribute report received: occupancy=<bitmap8.1: 1>
[0x6184:1:0x0500]: Updated alarm state: 1
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=154, profile_id=260, cluster_id=1024, data=Serialized[b'\x18\x04\n\x00\x00!\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=164, rssi=-59)
[0x6184:1:0x0400] Received ZCL frame: b'\x18\x04\n\x00\x00!\x00\x00'
[0x6184:1:0x0400] 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=4, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x6184:1:0x0400] Decoded ZCL frame: IlluminanceMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=0))])
[0x6184:1:0x0400] Received command 0x0A (TSN 4): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=0))])
[0x6184:1:0x0400] Attribute report received: measured_value=0
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x6184), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=155, profile_id=260, cluster_id=1030, data=Serialized[b'\x18\x05\n\x00\x00\x18\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=168, rssi=-58)
[0x6184:1:0x0406] Received ZCL frame: b'\x18\x05\n\x00\x00\x18\x01'
[0x6184:1:0x0406] 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=5, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x6184:1:0x0406] Decoded ZCL frame: OccupancyCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8.1: 1>))])
[0x6184:1:0x0406] Received command 0x0A (TSN 5): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=bitmap8, value=<bitmap8.1: 1>))])
[0x6184:1:0x0406] Attribute report received: occupancy=<bitmap8.1: 1>
[0x6184:1:0x0500]: Updated alarm state: 1
Now,
Thank you in advance for any thoughts
Thanks,
Florin