question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Device Support Request] Aqara Motion Sensor P1 (lumi.motion.ac02)

See original GitHub issue

Is your feature request related to a problem? Please describe. The Sensor is recognized by ZHA but there is no motion sensor (only power, lqi and rssi, power and rssi have state unknown)

Link to product https://www.aqara.com/en/product/motion-sensor-p1

Describe the solution you’d like Use it with home assistant 😉

Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.

[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>])
[0x36FE:1:0x0400] Received ZCL frame: b'\x18\xE9\x0A\x00\x00\x21\x78\x53'
[0x36FE:1:0x0400] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=233, command_id=10, *is_reply=True)
[0x36FE:1:0x0400] Decoded ZCL frame: IlluminanceMeasurement:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=21368))])
[0x36FE:1:0x0400] Received command 0x0A (TSN 233): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=21368))])
[0x36FE:1:0x0400] Attribute report received: measured_value=21368
[0x8A98:1:0x0500]: Updated alarm state: 0
New device 0x703f (54:ef:44:10:00:43:e9:2c) joined the network
[0x703f] Scheduling initialization
Received frame on uninitialized device <Device model=None manuf=None nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=False> from ep 0 to ep 0, cluster 19: b'f?p,\xe9C\x00\x10D\xefT\x80'
[0x703f:zdo] ZDO request ZDOCmd.Device_annce: [0x703F, 54:ef:44:10:00:43:e9:2c, 128]
Tries remaining: 3
[0x703f] Requesting 'Node Descriptor'
Tries remaining: 2
[0x703f] Extending timeout for 0x50 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=False> from ep 0 to ep 0, cluster 32770: b'P\x00?p\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00'
[0x703f] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)
[0x703f] Discovering endpoints
Tries remaining: 3
[0x703f] Extending timeout for 0x51 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=False> from ep 0 to ep 0, cluster 32773: b'Q\x00?p\x01\x01'
[0x703f] Discovered endpoints: [1]
[0x703f] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
[0x703f:1] Discovering endpoint information
Tries remaining: 3
[0x703f] Extending timeout for 0x52 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=False> from ep 0 to ep 0, cluster 32772: b'R\x00?p\x16\x01\x04\x01\x07\x01\x01\x04\x00\x00\x01\x00\x03\x00\xc0\xfc\x03\x03\x00\x19\x00\xc0\xfc'
[0x703f:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=263, device_version=1, input_clusters=[0, 1, 3, 64704], output_clusters=[3, 25, 64704])
[0x703F:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=83, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x703F:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
[0x703f] Extending timeout for 0x53 request
[0x703F:1:0x0000] Received ZCL frame: b'\x18\x00\x0A\x01\x00\x20\x05\x05\x00\x42\x10\x6C\x75\x6D\x69\x2E\x6D\x6F\x74\x69\x6F\x6E\x2E\x61\x63\x30\x32'
[0x703F:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=0, command_id=10, *is_reply=True)
[0x703F:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=5)), Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.motion.ac02'))])
[0x703F:1:0x0000] Received command 0x0A (TSN 0): Report_Attributes(attribute_reports=[Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=5)), Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.motion.ac02'))])
[0x703F:1:0x0000] Attribute report received: app_version=5, model='lumi.motion.ac02'
Error handling '_save_attribute' event with (54:ef:44:10:00:43:e9:2c, 1, 0, 1, 5) params: FOREIGN KEY constraint failed
[0x703F:1:0x0000] Received ZCL frame: b'\x18\x53\x01\x04\x00\x00\x42\x04\x4C\x55\x4D\x49\x05\x00\x00\x42\x10\x6C\x75\x6D\x69\x2E\x6D\x6F\x74\x69\x6F\x6E\x2E\x61\x63\x30\x32'
[0x703F:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=83, command_id=1, *is_reply=True)
[0x703F:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='LUMI')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='lumi.motion.ac02'))])
[0x703f] Read model 'lumi.motion.ac02' and manufacturer 'LUMI' from <Endpoint id=1 in=[basic:0x0000, power:0x0001, identify:0x0003, manufacturer_specific:0xFCC0] out=[identify:0x0003, ota:0x0019, manufacturer_specific:0xFCC0] status=<Status.ZDO_INIT: 1>>
[0x703f] Discovered basic device information for <Device model='lumi.motion.ac02' manuf='LUMI' nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=True>
Device is initialized <Device model='lumi.motion.ac02' manuf='LUMI' nwk=0x703F ieee=54:ef:44:10:00:43:e9:2c is_initialized=True>
Checking quirks for LUMI lumi.motion.ac02 (54:ef:44:10:00:43:e9:2c)
Considering <class 'zhaquirks.xbee.xbee_io.XBeeSensor'>
Fail because endpoint list mismatch: {232, 230} {1}
Considering <class 'zhaquirks.xbee.xbee3_io.XBee3Sensor'>
Fail because endpoint list mismatch: {232, 230} {1}
Considering <class 'zhaquirks.smartthings.tag_v4.SmartThingsTagV4'>
Fail because device_type mismatch on at least one endpoint
Considering <class 'zhaquirks.smartthings.multi.SmartthingsMultiPurposeSensor'>
Fail because device_type mismatch on at least one endpoint
Considering <class 'zhaquirks.netvox.z308e3ed.Z308E3ED'>
Fail because device_type mismatch on at least one endpoint
Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
Fail because endpoint list mismatch: {11, 13} {1}
Considering <class 'bellows.zigbee.application.EZSPCoordinator'>
Fail because device_type mismatch on at least one endpoint
Error handling '_save_attribute' event with (54:ef:44:10:00:43:e9:2c, 1, 0, 5, 'lumi.motion.ac02') params: FOREIGN KEY constraint failed
'button' component -> 'ZHAIdentifyButton' using ['identify']
'sensor' component -> 'Battery' using ['power']
'sensor' component -> 'RSSISensor' using ['basic']
'sensor' component -> 'LQISensor' using ['basic']
device - 0x703F:54:ef:44:10:00:43:e9:2c entering async_device_initialized - is_new_join: True
device - 0x703F:54:ef:44:10:00:43:e9:2c has joined the ZHA zigbee network
[0x703F](lumi.motion.ac02): started configuration
[0x703F:ZDO](lumi.motion.ac02): 'async_configure' stage succeeded
Error handling '_save_attribute' event with (54:ef:44:10:00:43:e9:2c, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed
[0x703f] Extending timeout for 0x54 request
[0x703F:1:0x0003]: finished channel configuration
[0x703F:1:0x0000]: finished channel configuration
[0x703f] Extending timeout for 0x55 request
[0x703F:1:0x0019]: finished channel configuration
Error handling '_save_attribute' event with (54:ef:44:10:00:43:e9:2c, 1, 0, 5, 'lumi.motion.ac02') params: FOREIGN KEY constraint failed
[0x703F:1:0x0001]: bound 'power' cluster: Status.SUCCESS
[0x703F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=86, command_id=<GeneralCommand.Configure_Reporting: 6>, *is_reply=False)
[0x703F:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)])
[0x703f] Extending timeout for 0x56 request
[0x703F:1:0xfcc0]: bound 'manufacturer_specific' cluster: Status.SUCCESS
[0x703F:1:0xfcc0]: finished channel configuration
[0x703F:1:0x0001] Received ZCL frame: b'\x18\x56\x07\x8C\x00\x20\x00\x86\x00\x21\x00'
[0x703F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=86, command_id=7, *is_reply=True)
[0x703F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Configure_Reporting_rsp(status_records=[ConfigureReportingResponseRecord(status=140, direction=0, attrid=32), ConfigureReportingResponseRecord(status=134, direction=0, attrid=33)])
[0x703F:1:0x0001]: Successfully configured reporting for 'set()' on 'power' cluster
[0x703F:1:0x0001]: Failed to configure reporting for '['battery_voltage', 'battery_percentage_remaining']' on 'power' cluster: [ConfigureReportingResponseRecord(status=140, direction=0, attrid=32), ConfigureReportingResponseRecord(status=134, direction=0, attrid=33)]
[0x703F:1:0x0001]: finished channel configuration
[0x703F:1:0x0001]: 'async_configure' stage succeeded
[0x703F:1:0x0003]: 'async_configure' stage succeeded
[0x703F:1:0x0000]: 'async_configure' stage succeeded
[0x703F:1:0xfcc0]: 'async_configure' stage succeeded
[0x703F:1:0x0019]: 'async_configure' stage succeeded
[0x703F](lumi.motion.ac02): completed configuration
[0x703F](lumi.motion.ac02): stored in registry: ZhaDeviceEntry(name='LUMI lumi.motion.ac02', ieee='54:ef:44:10:00:43:e9:2c', last_seen=1650036917.3284822)
[0x703F:1:0x0003] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=87, command_id=64, *is_reply=False)
[0x703F:1:0x0003] Sending request: trigger_effect(effect_id=<EffectIdentifier.Okay: 2>, effect_variant=<EffectVariant.Default: 0>)
[0x703f] Extending timeout for 0x57 request
[0x703F:1:0x0003] Received ZCL frame: b'\x18\x57\x0B\x40\x00'
[0x703F:1:0x0003] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=87, command_id=11, *is_reply=True)
[0x703F:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=64, status=<Status.SUCCESS: 0>)
[0x703F:1:0x0003]: executed 'trigger_effect' command with args: '(2, 0)' kwargs: '{}' result: Default_Response(command_id=64, status=<Status.SUCCESS: 0>)
[0x703F](lumi.motion.ac02): started initialization
[0x703F:ZDO](lumi.motion.ac02): 'async_initialize' stage succeeded
[0x703F:1:0x0001]: initializing channel: from_cache: False
[0x703F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=88, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x703F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33])
[0x703f] Extending timeout for 0x58 request
[0x703F:1:0x0003]: initializing channel: from_cache: False
[0x703F:1:0x0003]: finished channel initialization
[0x703F:1:0x0000]: initializing channel: from_cache: False
[0x703F:1:0x0000]: finished channel initialization
[0x703F:1:0xfcc0]: initializing channel: from_cache: False
[0x703F:1:0xfcc0]: finished channel initialization
[0x703F:1:0x0019]: initializing channel: from_cache: False
[0x703F:1:0x0019]: finished channel initialization
[0x703F:1:0x0001] Received ZCL frame: b'\x18\x58\x01\x20\x00\x00\x20\x1F\x21\x00\x86'
[0x703F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=88, command_id=1, *is_reply=True)
[0x703F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0020, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=31)), ReadAttributeRecord(attrid=0x0021, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
[0x703F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=89, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x703F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[49, 51])
[0x703f] Extending timeout for 0x59 request
[0x703F:1:0x0001] Received ZCL frame: b'\x18\x59\x01\x31\x00\x86\x33\x00\x86'
[0x703F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=89, command_id=1, *is_reply=True)
[0x703F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0031, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0033, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
[0x703F:1:0x0001]: finished channel initialization
[0x703F:1:0x0001]: 'async_initialize' stage succeeded
[0x703F:1:0x0003]: 'async_initialize' stage succeeded
[0x703F:1:0x0000]: 'async_initialize' stage succeeded
[0x703F:1:0xfcc0]: 'async_initialize' stage succeeded
[0x703F:1:0x0019]: 'async_initialize' stage succeeded
[0x703F](lumi.motion.ac02): power source: Battery or Unknown
[0x703F](lumi.motion.ac02): completed initialization
[0x36FE:1:0x0400] Received ZCL frame: b'\x18\x08\x0A\x00\x00\x21\xD6\x52'
[0x36FE:1:0x0400] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=8, command_id=10, *is_reply=True)
[0x36FE:1:0x0400] Decoded ZCL frame: IlluminanceMeasurement:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=21206))])
[0x36FE:1:0x0400] Received command 0x0A (TSN 8): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=21206))])
[0x36FE:1:0x0400] Attribute report received: measured_value=21206

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:49 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
diederik-maescommented, May 23, 2022

I got 2 of these today. Added 1 to ZHA without issues but indeed it shows nothing, no motion and battery status unknown. Looking forward to seeing this been added to ZHA and configurable.

1reaction
MollyrHcommented, May 17, 2022

As of this time, the light detection seems tied to the motion sensor. When motion is detected, the lux value updates. I could not see any lux updates in my system between motion detection occurrences.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aqara Motion Sensor P1 (lumi.motion.ac02) - Device Requests
I can connect it to Deconz, but its not recognized by Phoscon. The P1 Motion sensor seems to replace the first Aqara Motion...
Read more >
Motion Sensor P1
1. The indicator does not flash when the reset button is pressed: the device is not bound to the hub, or the battery...
Read more >
Get Aqara Motion Sensor P1 no Matter what
Right now, the sensor is using ZigBee 3.0 and should be compatible with custom coordinators, although until it lands properly not all features ......
Read more >
Aqara Motion Sensor not recognized - Zigbee
I would say I got everything right, weather sensors, water leak, ... [Device Support Request] Aqara Motion Sensor P1 (lumi.motion.ac02).
Read more >
Having issues with an Aqara Motion Sensor missing Entities
Sonoff Zigbee 3 Plus (Not flashed. Stock firmware). Aqara Motion Sensor (shows as LUMI lumi.motion.ac02. It isn't the Xaomi variant with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found