[Device Support Request] Aqara Motion Sensor P1

Is your feature request related to a problem? Please describe.
I've just migrate from ConBeeII to SkyConnect and Aqara Motion Sensor P1 just don't pair correctly. I have tried many times to pair and always the scenario is to stop responding to any activity or setting change after been paired through HA O/S.

Device signature
{
  "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)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0107",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0400",
        "0x0406",
        "0x0500",
        "0xfcc0"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019",
        "0xfcc0"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.motion.ac02",
  "class": "zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02"
}

Diagnostic information
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.2.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Athens",
    "os_name": "Linux",
    "os_version": "5.15.90",
    "supervisor": "2023.01.1",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "version": "1.26.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.7",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.92",
      "zigpy-deconz==0.19.2",
      "zigpy==0.53.0",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 14295,
    "manufacturer": "LUMI",
    "model": "lumi.motion.ac02",
    "name": "LUMI lumi.motion.ac02",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02",
    "manufacturer_code": 4447,
    "power_source": "Battery or Unknown",
    "lqi": null,
    "rssi": null,
    "last_seen": "2023-02-18T21:41:50",
    "available": true,
    "device_type": "EndDevice",
    "signature": {
      "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)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0107",
          "in_clusters": [
            "0x0000",
            "0x0001",
            "0x0003",
            "0x0400",
            "0x0406",
            "0x0500",
            "0xfcc0"
          ],
          "out_clusters": [
            "0x0003",
            "0x0019",
            "0xfcc0"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "binary_sensor.lumi_lumi_motion_ac02_occupancy",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "binary_sensor.lumi_lumi_motion_ac02_iaszone",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "button.lumi_lumi_motion_ac02_identify",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "number.lumi_lumi_motion_ac02_detection_interval",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "select.lumi_lumi_motion_ac02_motion_sensitivity",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_battery",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_illuminance",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_rssi",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_lqi",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "switch.lumi_lumi_motion_ac02_led_trigger_indicator",
        "name": "LUMI lumi.motion.ac02"
      }
    ],
    "neighbors": [],
    "routes": [],
    "endpoint_names": [
      {
        "name": "OCCUPANCY_SENSOR"
      }
    ],
    "user_given_name": "Hall Motion",
    "device_reg_id": "50c18d2bef5ccba6b57b15931e08749f",
    "area_id": "hall",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "OCCUPANCY_SENSOR",
          "id": 263
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "LUMI"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "lumi.motion.ac02"
              }
            },
            "unsupported_attributes": {}
          },
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {
              "0x0031": {
                "attribute_name": "battery_size",
                "value": 11
              },
              "0x0033": {
                "attribute_name": "battery_quantity",
                "value": 1
              }
            },
            "unsupported_attributes": {}
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0406": {
            "endpoint_attribute": "occupancy",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0500": {
            "endpoint_attribute": "ias_zone",
            "attributes": {
              "0x0001": {
                "attribute_name": "zone_type",
                "value": 13
              },
              "0x0010": {
                "attribute_name": "cie_addr",
                "value": [
                  9,
                  144,
                  7,
                  255,
                  255,
                  46,
                  33,
                  0
                ]
              }
            },
            "unsupported_attributes": {}
          },
          "0x0400": {
            "endpoint_attribute": "illuminance",
            "attributes": {
              "0x0000": {
                "attribute_name": "measured_value",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0xfcc0": {
            "endpoint_attribute": "opple_cluster",
            "attributes": {
              "0x0102": {
                "attribute_name": "detection_interval",
                "value": 30
              },
              "0x010c": {
                "attribute_name": "motion_sensitivity",
                "value": 2
              },
              "0x0152": {
                "attribute_name": "trigger_indicator",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xfcc0": {
            "endpoint_attribute": "opple_cluster",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}

Additional logs
Paste any additional debug logs here.
2023-02-19 14:33:57.955 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), 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=30, profile_id=0, cluster_id=<ZDOCmd.Mgmt_Permit_Joining_req: 0x0036>, data=Serialized[b'\x1e\xfe\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:33:57.956 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffc, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=30), 0, 31, b'\x1e\xfe\x00')
2023-02-19 14:33:57.957 DEBUG (MainThread) [bellows.ezsp.protocol] Send command addTransientLinkKey: (ff:ff:ff:ff:ff:ff:ff:ff, [90, 105, 103, 66, 101, 101, 65, 108, 108, 105, 97, 110, 99, 101, 48, 57])
2023-02-19 14:33:57.957 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'340021a9622ae94d59947c25aa5592489c4e39abf2cd7975fd32627e'
2023-02-19 14:33:57.985 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4400a1a9622a15482ee47e'
2023-02-19 14:33:57.985 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:33:57.986 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [<EmberStatus.SUCCESS: 0>, 250]
2023-02-19 14:33:57.986 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5400b5a94d2a8978877e'
2023-02-19 14:33:57.986 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:33:57.986 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6400b1a9112a10b259a24a25aa5593499cb4d8abedce9874fed89d8901177e'
2023-02-19 14:33:57.986 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:33:57.986 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'470121a9fb2aea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc4759757e'
2023-02-19 14:33:57.987 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received stackStatusHandler: [<EmberStatus.NETWORK_OPENED: 156>]
2023-02-19 14:33:57.987 DEBUG (MainThread) [bellows.zigbee.application] Received stackStatusHandler frame with [<EmberStatus.NETWORK_OPENED: 156>]
2023-02-19 14:33:57.987 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_BROADCAST_LOOPBACK: 5>, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=250), 255, 0, 0x0000, 255, 255, b'\x1e\xfe\x00']
2023-02-19 14:33:57.987 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST_LOOPBACK: 5>, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=250), 255, 0, 0x0000, 255, 255, b'\x1e\xfe\x00']
2023-02-19 14:33:57.987 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: <EmberIncomingMessageType.INCOMING_BROADCAST_LOOPBACK: 5>
2023-02-19 14:33:57.998 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7501a1a9fb2a1568867e'
2023-02-19 14:33:57.998 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:33:57.999 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received addTransientLinkKey: [<EmberStatus.SUCCESS: 0>]
2023-02-19 14:33:57.999 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setPolicy: (<EzspPolicyId.TRUST_CENTER_POLICY: 0>, <EzspDecisionBitmask.ALLOW_UNSECURED_REJOINS|ALLOW_JOINS: 3>)
2023-02-19 14:33:57.999 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'500621a9012a15b15950047e'
2023-02-19 14:33:58.007 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0606a1a9012a15d8b77e'
2023-02-19 14:33:58.007 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:33:58.008 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setPolicy: [<EzspStatus.SUCCESS: 0>]
2023-02-19 14:33:58.758 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x99C5](lumi.sensor_motion.aq2): Device seen - marking the device available and resetting counter
2023-02-19 14:33:58.758 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x99C5](lumi.sensor_motion.aq2): Update device availability -  device available: True - new availability: True - changed: False
2023-02-19 14:33:58.821 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDB6B](lumi.sensor_magnet.aq2): last_seen is 60746.71541070938 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:33:58.821 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDB6B](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:33:58.876 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1606b1a96b2a134ea6944a13aa5592499d4e2751f2a867ba927e'
2023-02-19 14:33:58.876 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:33:58.877 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_BROADCAST: 6>, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=250), 31, <EmberStatus.DELIVERY_FAILED: 102>, b'']
2023-02-19 14:33:58.877 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_BROADCAST: 6>, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=250), 31, <EmberStatus.DELIVERY_FAILED: 102>, b'']
2023-02-19 14:33:58.877 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,)
2023-02-19 14:33:58.878 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'620721a9762aeb9e527e'
2023-02-19 14:33:58.890 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2707a1a9762a1516187e'
2023-02-19 14:33:58.890 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:33:58.890 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [<EmberStatus.SUCCESS: 0>]
2023-02-19 14:34:01.428 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x96AD](lumi.sensor_motion.aq2): Device seen - marking the device available and resetting counter
2023-02-19 14:34:01.428 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x96AD](lumi.sensor_motion.aq2): Update device availability -  device available: True - new availability: True - changed: False
2023-02-19 14:34:01.428 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBD8D](lumi.sensor_magnet.aq2): Device seen - marking the device available and resetting counter
2023-02-19 14:34:01.429 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBD8D](lumi.sensor_magnet.aq2): Update device availability -  device available: True - new availability: True - changed: False
2023-02-19 14:34:01.811 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3707b1a9112a15b658984a30ab5593499c87fb78726c9874f1da3c9814746aa7d2cdde6f8f30507e'
2023-02-19 14:34:01.811 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:01.812 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=12, sourceEndpoint=21, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=201), 220, -45, 0xa29f, 255, 255, b'\x1c_\x11\xe8\nU\x009\x00\x00\x00\x00']
2023-02-19 14:34:01.812 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=12, sourceEndpoint=21, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=201), 220, -45, 0xa29f, 255, 255, b'\x1c_\x11\xe8\nU\x009\x00\x00\x00\x00']
2023-02-19 14:34:01.812 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0xA29F), src_ep=21, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=201, profile_id=260, cluster_id=12, data=Serialized[b'\x1c_\x11\xe8\nU\x009\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
2023-02-19 14:34:01.813 DEBUG (MainThread) [zigpy.zcl] [0xA29F:21:0x000c] Received ZCL frame: b'\x1c_\x11\xe8\nU\x009\x00\x00\x00\x00'
2023-02-19 14:34:01.813 DEBUG (MainThread) [zigpy.zcl] [0xA29F:21:0x000c] 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=232, command_id=10, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2023-02-19 14:34:01.814 DEBUG (MainThread) [zigpy.zcl] [0xA29F:21:0x000c] Decoded ZCL frame: AnalogInputCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0055, value=TypeValue(type=Single, value=0.0))])
2023-02-19 14:34:01.814 DEBUG (MainThread) [zigpy.zcl] [0xA29F:21:0x000c] Received command 0x0A (TSN 232): Report_Attributes(attribute_reports=[Attribute(attrid=0x0055, value=TypeValue(type=Single, value=0.0))])
2023-02-19 14:34:01.814 DEBUG (MainThread) [zigpy.zcl] [0xA29F:21:0x000c] Attribute report received: present_value=0.0
2023-02-19 14:34:02.962 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xEE31](lumi.sensor_magnet.aq2): last_seen is 62206.55939769745 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:02.962 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xEE31](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:02.963 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3833](lumi.weather): last_seen is 61175.00689291954 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:02.963 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3833](lumi.weather): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:02.964 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xAF06](lumi.sensor_motion.aq2): last_seen is 61370.13314414024 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:02.964 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xAF06](lumi.sensor_motion.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:03.399 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA29F:1:0x0b04]: async_update
2023-02-19 14:34:03.399 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA29F:1:0x0b04]: Reading attributes in chunks: ['active_power', 'rms_voltage']
2023-02-19 14:34:03.937 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA134](lumi.sensor_cube): Device seen - marking the device available and resetting counter
2023-02-19 14:34:03.938 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xA134](lumi.sensor_cube): Update device availability -  device available: True - new availability: True - changed: False
2023-02-19 14:34:03.938 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDB6B](lumi.sensor_magnet.aq2): last_seen is 60751.832347631454 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:03.938 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xDB6B](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:04.082 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: ()
2023-02-19 14:34:04.082 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'740421a9a52ac17f7e'
2023-02-19 14:34:04.106 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4004a1a9a52a2ab240945a25aa55d0498a4e26abecce688bfdc66389f87e3ea7ebcdde6f8fffc7dbd5d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482494157e'
2023-02-19 14:34:04.106 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:04.107 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[63, 25, 16, 0, 66, 22, 1, 1, 15, 0, 0, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
2023-02-19 14:34:04.107 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (<EzspValueId.VALUE_FREE_BUFFERS: 3>,)
2023-02-19 14:34:04.108 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'050521a9fe2a167d33057e'
2023-02-19 14:34:04.116 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5105a1a9fe2a15b3a2ba127e'
2023-02-19 14:34:04.116 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:04.117 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [<EzspStatus.SUCCESS: 0>, b'\xfb']
2023-02-19 14:34:04.117 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 251
2023-02-19 14:34:04.117 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 14614, MAC_TX_BROADCAST = 4704, MAC_RX_UNICAST = 4387, MAC_TX_UNICAST_SUCCESS = 283, MAC_TX_UNICAST_RETRY = 321, MAC_TX_UNICAST_FAILED = 102, APS_DATA_RX_BROADCAST = 62, APS_DATA_TX_BROADCAST = 62, APS_DATA_RX_UNICAST = 2481, APS_DATA_TX_UNICAST_SUCCESS = 157, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 199, ROUTE_DISCOVERY_INITIATED = 101, NEIGHBOR_ADDED = 5, NEIGHBOR_REMOVED = 1, NEIGHBOR_STALE = 46, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 12, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 18, APS_DECRYPTION_FAILURE = 32, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 0, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 251]
2023-02-19 14:34:07.591 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5F89](lumi.weather): last_seen is 60712.68424129486 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:07.591 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5F89](lumi.weather): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:07.591 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5B63](lumi.sensor_magnet.aq2): last_seen is 60823.509486436844 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:07.592 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x5B63](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:08.013 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37D7](lumi.motion.ac02): last_seen is 60736.66276264191 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:08.013 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37D7](lumi.motion.ac02): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:08.014 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3833](lumi.weather): Device seen - marking the device available and resetting counter
2023-02-19 14:34:08.014 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x3833](lumi.weather): Update device availability -  device available: True - new availability: True - changed: False
2023-02-19 14:34:08.917 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6105b1a9702a959149432125ba117d1d9d4e27ab0cf97e'
2023-02-19 14:34:08.917 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:08.918 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x2380, 54:ef:44:10:00:6b:d7:10, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x0000]
2023-02-19 14:34:08.918 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x2380, 54:ef:44:10:00:6b:d7:10, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x0000]
2023-02-19 14:34:08.918 INFO (MainThread) [zigpy.application] New device 0x2380 (54:ef:44:10:00:6b:d7:10) joined the network
2023-02-19 14:34:08.919 DEBUG (MainThread) [zigpy.device] [0x2380] Scheduling initialization
2023-02-19 14:34:08.919 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:08.919 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,)
2023-02-19 14:34:08.920 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2023-02-19 14:34:08.920 INFO (MainThread) [zigpy.device] [0x2380] Requesting 'Node Descriptor'
2023-02-19 14:34:08.920 DEBUG (MainThread) [zigpy.util] Tries remaining: 2
2023-02-19 14:34:08.920 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x20 request
2023-02-19 14:34:08.920 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=0, source_route=None, extended_timeout=True, tsn=32, profile_id=0, cluster_id=<ZDOCmd.Node_Desc_req: 0x0002>, data=Serialized[b' \x80#'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:08.921 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:08.921 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'170a21a9212a056532945a6145019347b27e'
2023-02-19 14:34:08.945 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'720aa1a9212aea0ec57e'
2023-02-19 14:34:08.945 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:08.945 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'200b21a9412a4aa3cd687e'
2023-02-19 14:34:08.946 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255]
2023-02-19 14:34:08.952 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'030ba1a9412a28157e'
2023-02-19 14:34:08.952 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:08.952 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'310821a92a2a056532945a61450193207b7e'
2023-02-19 14:34:08.952 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: []
2023-02-19 14:34:08.961 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1408a1a92a2ac3d27e'
2023-02-19 14:34:08.962 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:08.962 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:08.962 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=32), 33, b' \x80#')
2023-02-19 14:34:08.963 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'420921a9602a15327a944a27aa5592499d4e278bcccd470bde96157e'
2023-02-19 14:34:08.973 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2509a1a9602a154e42ed7e'
2023-02-19 14:34:08.973 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:08.974 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 252]
2023-02-19 14:34:09.179 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x7BC2](lumi.sensor_magnet.aq2): last_seen is 62950.730005025864 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:09.179 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x7BC2](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:09.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x40C9](lumi.sensor_magnet.aq2): last_seen is 61638.593089818954 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:09.180 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x40C9](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:09.181 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3509b5a9772a1ab3d9b75af2c155820d731a232f6c7e'
2023-02-19 14:34:09.181 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:09.181 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [15, <Bool.true: 1>, 0x2380, 54:ef:44:10:00:6b:d7:10, <EmberNodeType.SLEEPY_END_DEVICE: 4>]
2023-02-19 14:34:09.181 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [15, <Bool.true: 1>, 0x2380, 54:ef:44:10:00:6b:d7:10, <EmberNodeType.SLEEPY_END_DEVICE: 4>]
2023-02-19 14:34:09.184 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4509b1a9112a11b259874a25aa5593499cdcb36a6ded9874f119e3aaeca954a7fb89313b0ffde8217e'
2023-02-19 14:34:09.184 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:09.185 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_BROADCAST: 4>, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=146), 148, -63, 0x2380, 255, 255, b'\xdf\x80#\x10\xd7k\x00\x10D\xefT\x80']
2023-02-19 14:34:09.185 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST: 4>, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=146), 148, -63, 0x2380, 255, 255, b'\xdf\x80#\x10\xd7k\x00\x10D\xefT\x80']
2023-02-19 14:34:09.185 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), 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=146, profile_id=0, cluster_id=19, data=Serialized[b'\xdf\x80#\x10\xd7k\x00\x10D\xefT\x80'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=148, rssi=-63)
2023-02-19 14:34:09.185 INFO (MainThread) [zigpy.application] Device 0x2380 (54:ef:44:10:00:6b:d7:10) joined the network
2023-02-19 14:34:09.185 DEBUG (MainThread) [zigpy.device] [0x2380] Scheduling initialization
2023-02-19 14:34:09.185 DEBUG (MainThread) [zigpy.device] [0x2380] Canceling old initialize call
2023-02-19 14:34:09.185 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\xdf\x80#\x10\xd7k\x00\x10D\xefT\x80'
2023-02-19 14:34:09.185 DEBUG (MainThread) [zigpy.zdo] [0x2380:zdo] ZDO request ZDOCmd.Device_annce: [0x2380, 54:ef:44:10:00:6b:d7:10, 128]
2023-02-19 14:34:09.186 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2023-02-19 14:34:09.186 INFO (MainThread) [zigpy.device] [0x2380] Requesting 'Node Descriptor'
2023-02-19 14:34:09.186 DEBUG (MainThread) [zigpy.util] Tries remaining: 2
2023-02-19 14:34:09.186 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x22 request
2023-02-19 14:34:09.186 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=0, source_route=None, extended_timeout=True, tsn=34, profile_id=0, cluster_id=<ZDOCmd.Node_Desc_req: 0x0002>, data=Serialized[b'"\x80#'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:09.186 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:09.187 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'550e21a92a2a056532945a6145019307b37e'
2023-02-19 14:34:09.200 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'560ea1a92a2aef077e'
2023-02-19 14:34:09.200 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:09.201 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:09.201 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=34), 35, b'"\x80#')
2023-02-19 14:34:09.202 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'660f21a9602a15327a944a27aa5592499d4e2789cecd450bdeb4c57e'
2023-02-19 14:34:09.215 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'670fa1a9602a154f8a9f7e'
2023-02-19 14:34:09.215 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:09.215 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 253]
2023-02-19 14:34:09.469 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'770fb1a9112a15b259964a25aa1593499cddaf156ded9874fe266389febaac7e'
2023-02-19 14:34:09.469 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:09.469 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=147), 136, -66, 0x2380, 255, 255, b'\xe0\x00\x00']
2023-02-19 14:34:09.469 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=147), 136, -66, 0x2380, 255, 255, b'\xe0\x00\x00']
2023-02-19 14:34:09.470 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=147, profile_id=0, cluster_id=2, data=Serialized[b'\xe0\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=136, rssi=-66)
2023-02-19 14:34:09.470 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 2: b'\xe0\x00\x00'
2023-02-19 14:34:09.470 DEBUG (MainThread) [zigpy.zdo] [0x2380:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
2023-02-19 14:34:09.470 DEBUG (MainThread) [zigpy.zdo] [0x2380:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000])
2023-02-19 14:34:09.479 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'070fb1a96b2a15327a944a27aa5592499d4e2757ccce67464a7e'
2023-02-19 14:34:09.479 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:09.480 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=252), 33, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:09.480 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=252), 33, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:09.480 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 33
2023-02-19 14:34:09.489 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'170fb1a9112a15b25996ca25aa1593499cdaaf156ded9874ece66309df7c7f27b4dca10b8fffebbfd5d26bfe067e'
2023-02-19 14:34:09.489 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:09.490 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=148), 136, -66, 0x2380, 255, 255, b' \x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00']
2023-02-19 14:34:09.490 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=148), 136, -66, 0x2380, 255, 255, b' \x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00']
2023-02-19 14:34:09.490 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=148, profile_id=0, cluster_id=32770, data=Serialized[b' \x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=136, rssi=-66)
2023-02-19 14:34:09.490 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 32770: b' \x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00'
2023-02-19 14:34:09.490 DEBUG (MainThread) [zigpy.zdo] [0x2380:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [<Status.SUCCESS: 0>, 0x2380, 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)]
2023-02-19 14:34:09.491 DEBUG (MainThread) [zigpy.zdo] [0x2380:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_rsp([<Status.SUCCESS: 0>, 0x2380, 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)])
2023-02-19 14:34:09.676 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'270fb1a96b2a15327a944a27aa5592499d4e2756cece673e727e'
2023-02-19 14:34:09.676 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:09.677 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=253), 35, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:09.677 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=253), 35, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:09.702 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'370fb1a9112a15b25996ca25aa1593499cdb836e6ded9874ece46309df7c7f27b4dca10b8fffebbfd5d26b3ef67e'
2023-02-19 14:34:09.702 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:09.703 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=149), 164, -59, 0x2380, 255, 255, b'"\x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00']
2023-02-19 14:34:09.703 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=149), 164, -59, 0x2380, 255, 255, b'"\x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00']
2023-02-19 14:34:09.703 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=149, profile_id=0, cluster_id=32770, data=Serialized[b'"\x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=164, rssi=-59)
2023-02-19 14:34:09.704 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'"\x00\x80#\x02@\x80_\x11\x7fd\x00\x00,d\x00\x00'
2023-02-19 14:34:09.705 INFO (MainThread) [zigpy.device] [0x2380] 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)
2023-02-19 14:34:09.705 INFO (MainThread) [zigpy.device] [0x2380] Discovering endpoints
2023-02-19 14:34:09.705 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2023-02-19 14:34:09.705 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x24 request
2023-02-19 14:34:09.705 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=0, source_route=None, extended_timeout=True, tsn=36, profile_id=0, cluster_id=<ZDOCmd.Active_EP_req: 0x0005>, data=Serialized[b'$\x80#'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:09.705 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:09.706 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'740c21a92a2a056532945a61450193c2997e'
2023-02-19 14:34:09.720 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'400ca5a92a2af6107e'
2023-02-19 14:34:09.720 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:09.721 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'500fb1a9cf2a056532945a6145019474647e'
2023-02-19 14:34:09.721 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:09.721 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:09.722 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:6b:d7:10, <EmberKeyStatus.TC_RESPONDED_TO_KEY_REQUEST: 6>]
2023-02-19 14:34:09.722 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:6b:d7:10, <EmberKeyStatus.TC_RESPONDED_TO_KEY_REQUEST: 6>]
2023-02-19 14:34:09.722 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=36), 37, b'$\x80#')
2023-02-19 14:34:09.722 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'060d21a9602a15327a944a20aa5592499d4e278fc8cd430bde00997e'
2023-02-19 14:34:09.735 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'610da1a9602a15b254057e'
2023-02-19 14:34:09.735 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:09.736 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 0]
2023-02-19 14:34:10.082 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'710db1a96b2a134fa6944a36aa5592499d4e273912a8676c787e'
2023-02-19 14:34:10.082 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:10.083 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_BROADCAST: 6>, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=146), 255, <EmberStatus.DELIVERY_FAILED: 102>, b'']
2023-02-19 14:34:10.083 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_BROADCAST: 6>, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=146), 255, <EmberStatus.DELIVERY_FAILED: 102>, b'']
2023-02-19 14:34:10.083 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255
2023-02-19 14:34:10.091 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'010db1a9cf2a056532945a614501a65ec87e'
2023-02-19 14:34:10.091 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:10.091 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:6b:d7:10, <EmberKeyStatus.TC_REQUESTER_VERIFY_KEY_SUCCESS: 52>]
2023-02-19 14:34:10.091 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:6b:d7:10, <EmberKeyStatus.TC_REQUESTER_VERIFY_KEY_SUCCESS: 52>]
2023-02-19 14:34:10.166 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'110db1a96b2a15327a944a20aa5592499d4e27abc8ce67e7637e'
2023-02-19 14:34:10.166 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:10.167 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=0), 37, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.167 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=0), 37, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.192 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'210db1a9112a15b25991ca25aa1593499cd68f6d6ded9874fbe26309df7f3ea5448e7e'
2023-02-19 14:34:10.192 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:10.193 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=152), 168, -58, 0x2380, 255, 255, b'$\x00\x80#\x01\x01']
2023-02-19 14:34:10.194 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=152), 168, -58, 0x2380, 255, 255, b'$\x00\x80#\x01\x01']
2023-02-19 14:34:10.194 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=152, profile_id=0, cluster_id=32773, data=Serialized[b'$\x00\x80#\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=168, rssi=-58)
2023-02-19 14:34:10.194 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 32773: b'$\x00\x80#\x01\x01'
2023-02-19 14:34:10.195 INFO (MainThread) [zigpy.device] [0x2380] Discovered endpoints: [1]
2023-02-19 14:34:10.195 INFO (MainThread) [zigpy.device] [0x2380] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2023-02-19 14:34:10.196 INFO (MainThread) [zigpy.endpoint] [0x2380:1] Discovering endpoint information
2023-02-19 14:34:10.196 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2023-02-19 14:34:10.196 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x26 request
2023-02-19 14:34:10.196 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=0, source_route=None, extended_timeout=True, tsn=38, profile_id=0, cluster_id=<ZDOCmd.Simple_Desc_req: 0x0004>, data=Serialized[b'&\x80#\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.196 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.197 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d331221a92a2a056532945a614501932be87e'
2023-02-19 14:34:10.208 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3212a1a92a2a39cf7e'
2023-02-19 14:34:10.208 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:10.208 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.209 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=38), 39, b'&\x80#\x01')
2023-02-19 14:34:10.209 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'247d3321a9602a15327a944a21aa5592499d4e278dcaca410bdec7e2a07e'
2023-02-19 14:34:10.222 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4313a1a9602a15b0857a7e'
2023-02-19 14:34:10.222 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:10.223 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 2]
2023-02-19 14:34:10.288 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5313b1a96b2a15327a944a21aa5592499d4e27a9cace67f3c47e'
2023-02-19 14:34:10.288 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:10.289 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=2), 39, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.289 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=2), 39, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.304 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6313b1a9112a15b25990ca25aa1593499cd78b6c6ded9874e6e06309df683ea3eacadf6e8bffc7dad5d1694cba20aaec6f3b651677453f7e'
2023-02-19 14:34:10.304 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:10.305 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=153), 172, -57, 0x2380, 255, 255, b'&\x00\x80#\x16\x01\x04\x01\x07\x01\x01\x04\x00\x00\x01\x00\x03\x00\xc0\xfc\x03\x03\x00\x19\x00\xc0\xfc']
2023-02-19 14:34:10.305 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=153), 172, -57, 0x2380, 255, 255, b'&\x00\x80#\x16\x01\x04\x01\x07\x01\x01\x04\x00\x00\x01\x00\x03\x00\xc0\xfc\x03\x03\x00\x19\x00\xc0\xfc']
2023-02-19 14:34:10.305 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=153, profile_id=0, cluster_id=32772, data=Serialized[b'&\x00\x80#\x16\x01\x04\x01\x07\x01\x01\x04\x00\x00\x01\x00\x03\x00\xc0\xfc\x03\x03\x00\x19\x00\xc0\xfc'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=172, rssi=-57)
2023-02-19 14:34:10.305 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'&\x00\x80#\x16\x01\x04\x01\x07\x01\x01\x04\x00\x00\x01\x00\x03\x00\xc0\xfc\x03\x03\x00\x19\x00\xc0\xfc'
2023-02-19 14:34:10.306 INFO (MainThread) [zigpy.endpoint] [0x2380: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])
2023-02-19 14:34:10.307 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0000] 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=40, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2023-02-19 14:34:10.307 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
2023-02-19 14:34:10.307 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x28 request
2023-02-19 14:34:10.307 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=1, source_route=None, extended_timeout=True, tsn=40, profile_id=260, cluster_id=0, data=Serialized[b'\x00(\x00\x04\x00\x05\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.308 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.312 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'371021a92a2a056532945a61450193db8c7e'
2023-02-19 14:34:10.323 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7410a1a92a2a9abd7e'
2023-02-19 14:34:10.323 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:10.323 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.323 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=40), 41, b'\x00(\x00\x04\x00\x05\x00')
2023-02-19 14:34:10.324 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'407d3121a9602a15327a904b25aa5493499d4e2783c4c967a3fdc2638cfcff017e'
2023-02-19 14:34:10.338 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0511a1a9602a15b183a37e'
2023-02-19 14:34:10.338 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:10.338 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 3]
2023-02-19 14:34:10.478 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1511b1a96b2a15327a904b25aa5493499d4e27a8c4ce67fb767e'
2023-02-19 14:34:10.478 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:10.479 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=3), 41, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.479 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=3), 41, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.490 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2511b1a9112a15b658944a24ab5593499cd497636ded9874dcde4b88f87e3fe5ef818b22c6fac7db97c205f92b4a8781194fcc851bac20fb7c1411ff397e'
2023-02-19 14:34:10.490 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:10.491 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=154), 176, -56, 0x2380, 255, 255, b'\x18(\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x10lumi.motion.ac02']
2023-02-19 14:34:10.491 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=154), 176, -56, 0x2380, 255, 255, b'\x18(\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x10lumi.motion.ac02']
2023-02-19 14:34:10.491 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), 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=0, data=Serialized[b'\x18(\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x10lumi.motion.ac02'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=176, rssi=-56)
2023-02-19 14:34:10.491 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0000] Received ZCL frame: b'\x18(\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x10lumi.motion.ac02'
2023-02-19 14:34:10.492 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0000] 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=40, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2023-02-19 14:34:10.492 DEBUG (MainThread) [zigpy.zcl] [0x2380: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'))])
2023-02-19 14:34:10.495 INFO (MainThread) [zigpy.device] [0x2380] 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>>
2023-02-19 14:34:10.496 INFO (MainThread) [zigpy.device] [0x2380] Discovered basic device information for <Device model='lumi.motion.ac02' manuf='LUMI' nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=True>
2023-02-19 14:34:10.496 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='lumi.motion.ac02' manuf='LUMI' nwk=0x2380 ieee=54:ef:44:10:00:6b:d7:10 is_initialized=True>
2023-02-19 14:34:10.496 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for LUMI lumi.motion.ac02 (54:ef:44:10:00:6b:d7:10)
2023-02-19 14:34:10.496 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02'>
2023-02-19 14:34:10.496 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for 54:ef:44:10:00:6b:d7:10: <class 'zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02'>
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'Occupancy' using ['occupancy']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'IASZone' using ['ias_zone']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'button' component -> 'ZHAIdentifyButton' using ['identify']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'Battery' using ['power']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'Illuminance' using ['illuminance']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic']
2023-02-19 14:34:10.499 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic']
2023-02-19 14:34:10.501 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'number' component -> 'AqaraMotionDetectionInterval' using ['opple_cluster']
2023-02-19 14:34:10.501 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'select' component -> 'AqaraMotionSensitivity' using ['opple_cluster']
2023-02-19 14:34:10.501 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'switch' component -> 'P1MotionTriggerIndicatorSwitch' using ['opple_cluster']
2023-02-19 14:34:10.502 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x2380:54:ef:44:10:00:6b:d7:10 entering async_device_initialized - is_new_join: True
2023-02-19 14:34:10.502 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x2380:54:ef:44:10:00:6b:d7:10 has joined the ZHA zigbee network
2023-02-19 14:34:10.503 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2380](lumi.motion.ac02): started configuration
2023-02-19 14:34:10.503 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:ZDO](lumi.motion.ac02): 'async_configure' stage succeeded
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: Configuring cluster attribute reporting
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: finished channel configuration
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: Performing cluster binding
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: bound 'illuminance' cluster: Status.SUCCESS
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: Configuring cluster attribute reporting
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: Successfully configured reporting for '{'measured_value': (30, 900, 1)}' on 'illuminance' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: finished channel configuration
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Performing cluster binding
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: bound 'power' cluster: Status.SUCCESS
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Configuring cluster attribute reporting
2023-02-19 14:34:10.506 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Successfully configured reporting for '{'battery_voltage': (3600, 10800, 1), 'battery_percentage_remaining': (3600, 10800, 1)}' on 'power' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: finished channel configuration
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: started IASZoneChannel configuration
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: wrote cie_addr: 00:21:2e:ff:ff:07:90:09 to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: Sending pro-active IAS enroll response
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: finished IASZoneChannel configuration
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: Configuring cluster attribute reporting
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: finished channel configuration
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: Performing cluster binding
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: bound 'occupancy' cluster: Status.SUCCESS
2023-02-19 14:34:10.507 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: Configuring cluster attribute reporting
2023-02-19 14:34:10.508 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: Successfully configured reporting for '{'occupancy': (0, 900, 1)}' on 'occupancy' cluster: [ConfigureReportingResponseRecord(status=<Status.SUCCESS: 0>)]
2023-02-19 14:34:10.508 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: finished channel configuration
2023-02-19 14:34:10.508 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: Performing cluster binding
2023-02-19 14:34:10.508 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x2a request
2023-02-19 14:34:10.508 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=0, source_route=None, extended_timeout=True, tsn=42, profile_id=0, cluster_id=<ZDOCmd.Bind_req: 0x0021>, data=Serialized[b'*\x10\xd7k\x00\x10D\xefT\x01\xc0\xfc\x03\t\x90\x07\xff\xff.!\x00\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.508 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.508 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0019]: finished channel configuration
2023-02-19 14:34:10.508 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:6b:d7:10, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed
2023-02-19 14:34:10.509 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=44, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2023-02-19 14:34:10.509 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0500] Sending request: enroll_response(enroll_response_code=<EnrollResponse.Success: 0>, zone_id=0)
2023-02-19 14:34:10.509 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x2c request
2023-02-19 14:34:10.509 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=1, source_route=None, extended_timeout=True, tsn=44, profile_id=260, cluster_id=1280, data=Serialized[b'\x01,\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.510 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'531621a92a2a056532945a61450193fc447e'
2023-02-19 14:34:10.514 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:6b:d7:10, 1, 0, 5, 'lumi.motion.ac02') params: FOREIGN KEY constraint failed
2023-02-19 14:34:10.519 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3616a1a92a2ab6687e'
2023-02-19 14:34:10.519 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:10.519 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.519 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=42), 43, b'*\x10\xd7k\x00\x10D\xefT\x01\xc0\xfc\x03\t\x90\x07\xff\xff.!\x00\x01')
2023-02-19 14:34:10.520 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'641721a9602a15327a944a04aa5592499d4e2781c6d84d9b2aad6399b8916ba62b31dd661ff83824fbf3698d66a77e'
2023-02-19 14:34:10.533 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4717a1a9602a15b62b177e'
2023-02-19 14:34:10.533 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:10.534 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 4]
2023-02-19 14:34:10.534 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.534 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'751421a92a2a056532945a6145019341f97e'
2023-02-19 14:34:10.545 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5014a1a92a2a20127e'
2023-02-19 14:34:10.545 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:10.545 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.546 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=44), 45, b'\x01,\x00\x00\x00')
2023-02-19 14:34:10.546 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'061521a9602a15327a904b25af5493499d4e2787c0cb66a7fdc66334087e'
2023-02-19 14:34:10.560 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6115a1a9602a15b7a0767e'
2023-02-19 14:34:10.560 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:10.560 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 5]
2023-02-19 14:34:10.577 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7115b1a96b2a15327a944a04aa5592499d4e27afc6ce6717367e'
2023-02-19 14:34:10.577 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:10.578 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=4), 43, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.578 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=4), 43, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.600 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0115b1a9112a15b259b5ca25aa1593499cd597636ded9874ffec638b35fd7e'
2023-02-19 14:34:10.600 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:10.601 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=155), 176, -56, 0x2380, 255, 255, b'*\x00']
2023-02-19 14:34:10.601 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=155), 176, -56, 0x2380, 255, 255, b'*\x00']
2023-02-19 14:34:10.601 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=155, profile_id=0, cluster_id=32801, data=Serialized[b'*\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=176, rssi=-56)
2023-02-19 14:34:10.603 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: bound 'opple_cluster' cluster: Status.SUCCESS
2023-02-19 14:34:10.603 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: Configuring cluster attribute reporting
2023-02-19 14:34:10.603 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: finished channel configuration
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: 'async_configure' stage succeeded
2023-02-19 14:34:10.604 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0019]: 'async_configure' stage succeeded
2023-02-19 14:34:10.605 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2380](lumi.motion.ac02): completed configuration
2023-02-19 14:34:10.606 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0003] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=46, command_id=64, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2023-02-19 14:34:10.606 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0003] Sending request: trigger_effect(effect_id=<EffectIdentifier.Okay: 2>, effect_variant=<EffectVariant.Default: 0>)
2023-02-19 14:34:10.606 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x2e request
2023-02-19 14:34:10.606 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=1, source_route=None, extended_timeout=True, tsn=46, profile_id=260, cluster_id=3, data=Serialized[b'\x01.@\x02\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.607 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.607 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d317d3a21a92a2a056532945a614501938d5a7e'
2023-02-19 14:34:10.615 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'121aa1a92a2a0eea7e'
2023-02-19 14:34:10.615 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:10.616 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.616 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=46), 47, b'\x01.@\x02\x00')
2023-02-19 14:34:10.617 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'221b21a9602a15327a904b26aa5493499d4e2785c2cb66a5bdc463a37b7e'
2023-02-19 14:34:10.629 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'231ba1a9602a15b4dbeb7e'
2023-02-19 14:34:10.629 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:10.630 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 6]
2023-02-19 14:34:10.687 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'331bb1a96b2a15327a904b25af5493499d4e27aec0ce6722c57e'
2023-02-19 14:34:10.687 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:10.688 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=5), 45, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.688 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=5), 45, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.794 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'431bb1a96b2a15327a904b26aa5493499d4e27adc2ce67caaa7e'
2023-02-19 14:34:10.794 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2023-02-19 14:34:10.795 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=6), 47, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.795 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=6), 47, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.801 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'531bb1a9112a15b658974a24ab5593499cd28b6c6ded9874f8de4d82bc7e3d5f6e7e'
2023-02-19 14:34:10.801 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2023-02-19 14:34:10.802 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=156), 172, -57, 0x2380, 255, 255, b'\x18.\x0b@\x00']
2023-02-19 14:34:10.802 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=156), 172, -57, 0x2380, 255, 255, b'\x18.\x0b@\x00']
2023-02-19 14:34:10.802 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=156, profile_id=260, cluster_id=3, data=Serialized[b'\x18.\x0b@\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=172, rssi=-57)
2023-02-19 14:34:10.802 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0003] Received ZCL frame: b'\x18.\x0b@\x00'
2023-02-19 14:34:10.803 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0003] 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=46, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2023-02-19 14:34:10.803 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=64, status=<Status.SUCCESS: 0>)
2023-02-19 14:34:10.804 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: executed 'trigger_effect' command with args: '()' kwargs: '{'effect_id': <EffectIdentifier.Okay: 2>, 'effect_variant': <EffectVariant.Default: 0>}' result: Default_Response(command_id=64, status=<Status.SUCCESS: 0>)
2023-02-19 14:34:10.804 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2380](lumi.motion.ac02): started initialization
2023-02-19 14:34:10.804 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:ZDO](lumi.motion.ac02): 'async_initialize' stage succeeded
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: initializing channel: from_cache: False
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: finished channel initialization
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: initializing channel: from_cache: False
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: initializing uncached channel attributes: ['measured_value'] - from cache[False]
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: Reading attributes in chunks: ['measured_value']
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: finished channel initialization
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: initializing channel: from_cache: False
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: initializing uncached channel attributes: ['battery_voltage', 'battery_percentage_remaining'] - from cache[False]
2023-02-19 14:34:10.805 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Reading attributes in chunks: ['battery_voltage', 'battery_percentage_remaining']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Performing channel specific initialization: ['battery_voltage', 'battery_percentage_remaining']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: Reading attributes in chunks: ['battery_size', 'battery_quantity']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: finished channel initialization
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: initializing channel: from_cache: False
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: initializing cached channel attributes: ['zone_status', 'zone_type']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: Reading attributes in chunks: ['zone_status', 'zone_type']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: initializing uncached channel attributes: ['zone_state'] - from cache[False]
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: Reading attributes in chunks: ['zone_state']
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: finished channel initialization
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: initializing channel: from_cache: False
2023-02-19 14:34:10.806 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: finished channel initialization
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: initializing channel: from_cache: False
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: initializing uncached channel attributes: ['occupancy'] - from cache[False]
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: Reading attributes in chunks: ['occupancy']
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: finished channel initialization
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: initializing channel: from_cache: False
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: initializing cached channel attributes: ['detection_interval', 'motion_sensitivity', 'trigger_indicator']
2023-02-19 14:34:10.807 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: Reading attributes in chunks: ['detection_interval', 'motion_sensitivity', 'trigger_indicator']
2023-02-19 14:34:10.807 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0xfcc0] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=True, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), manufacturer=4447, tsn=48, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2023-02-19 14:34:10.807 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0xfcc0] Sending request: Read_Attributes(attribute_ids=[258, 268, 338])
2023-02-19 14:34:10.808 DEBUG (MainThread) [zigpy.device] [0x2380] Extending timeout for 0x30 request
2023-02-19 14:34:10.808 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), dst_ep=1, source_route=None, extended_timeout=True, tsn=48, profile_id=260, cluster_id=64704, data=Serialized[b'\x04_\x110\x00\x02\x01\x0c\x01R\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2023-02-19 14:34:10.808 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:6b:d7:10, True)
2023-02-19 14:34:10.808 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0019]: initializing channel: from_cache: False
2023-02-19 14:34:10.808 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0019]: finished channel initialization
2023-02-19 14:34:10.809 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'367d3821a92a2a056532945a614501939e1b7e'
2023-02-19 14:34:10.815 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:6b:d7:10, 1, 1280, 2) params: FOREIGN KEY constraint failed
2023-02-19 14:34:10.815 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:6b:d7:10, 1, 1280, 0) params: FOREIGN KEY constraint failed
2023-02-19 14:34:10.816 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:6b:d7:10, 1, 1030, 0) params: FOREIGN KEY constraint failed
2023-02-19 14:34:10.818 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6418a1a92a2a82147e'
2023-02-19 14:34:10.818 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-02-19 14:34:10.818 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: []
2023-02-19 14:34:10.818 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0x2380, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=48), 49, b'\x04_\x110\x00\x02\x01\x0c\x01R\x01')
2023-02-19 14:34:10.819 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'471921a9602a15327a904be5565493499d4e279bdcc563d4ecf6638bfd723ef5ea88df7e'
2023-02-19 14:34:10.831 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7519a1a9602a15b5e0867e'
2023-02-19 14:34:10.831 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-02-19 14:34:10.831 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [<EmberStatus.SUCCESS: 0>, 7]
2023-02-19 14:34:10.888 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0519b1a96b2a15327a904be5565493499d4e27acdcce6703807e'
2023-02-19 14:34:10.888 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2023-02-19 14:34:10.889 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=7), 49, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.889 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 9088, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=7), 49, <EmberStatus.SUCCESS: 0>, b'']
2023-02-19 14:34:10.905 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1519b1a9112a15b65854b624ab5593499cd38f6d6ded9874e9da3c98cc7f3da6ebedc0638effe7d987d369ac4621c23f7e'
2023-02-19 14:34:10.905 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2023-02-19 14:34:10.906 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=157), 168, -58, 0x2380, 255, 255, b'\x1c_\x110\x01\x02\x01\x00 \x1e\x0c\x01\x00 \x02R\x01\x00 \x00']
2023-02-19 14:34:10.906 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=157), 168, -58, 0x2380, 255, 255, b'\x1c_\x110\x01\x02\x01\x00 \x1e\x0c\x01\x00 \x02R\x01\x00 \x00']
2023-02-19 14:34:10.906 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x2380), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=157, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x110\x01\x02\x01\x00 \x1e\x0c\x01\x00 \x02R\x01\x00 \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=168, rssi=-58)
2023-02-19 14:34:10.907 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0xfcc0] Received ZCL frame: b'\x1c_\x110\x01\x02\x01\x00 \x1e\x0c\x01\x00 \x02R\x01\x00 \x00'
2023-02-19 14:34:10.907 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0xfcc0] 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=48, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2023-02-19 14:34:10.907 DEBUG (MainThread) [zigpy.zcl] [0x2380:1:0xfcc0] Decoded ZCL frame: OppleCluster:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0102, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=30)), ReadAttributeRecord(attrid=0x010C, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=2)), ReadAttributeRecord(attrid=0x0152, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0))])
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: Performing channel specific initialization: []
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: Loaded detection interval at startup: 30
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: finished channel initialization
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0003]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0400]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0001]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0500]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0000]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0406]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0xfcc0]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.909 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x2380:1:0x0019]: 'async_initialize' stage succeeded
2023-02-19 14:34:10.911 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2380](lumi.motion.ac02): power source: Battery or Unknown
2023-02-19 14:34:10.911 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x2380](lumi.motion.ac02): completed initialization
2023-02-19 14:34:11.332 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8065](lumi.sensor_magnet.aq2): last_seen is 59728.24805235863 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:11.332 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x8065](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:11.333 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x40C9](lumi.sensor_magnet.aq2): last_seen is 58628.195566654205 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:11.333 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x40C9](lumi.sensor_magnet.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:13.523 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xEE54](lumi.sensor_motion.aq2): last_seen is 63106.65318775177 seconds ago and ping attempts have been exhausted, marking the device unavailable
2023-02-19 14:34:13.524 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xEE54](lumi.sensor_motion.aq2): Update device availability -  device available: False - new availability: False - changed: False
2023-02-19 14:34:14.118 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: ()
2023-02-19 14:34:14.119 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'521e21a9a52a3b627e'
2023-02-19 14:34:14.140 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'261ea1a9a52a56b244941425bd55d4498a4e25abefce7f8bf4c66389f87e3ea7ebcdde6f8fffc6dbd5d2698c4623a9ec763ba5ea758241984c2611b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824f82f7e'
2023-02-19 14:34:14.140 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2023-02-19 14:34:14.141 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[67, 29, 94, 23, 70, 22, 2, 2, 24, 9, 0, 4, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
2023-02-19 14:34:14.141 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (<EzspValueId.VALUE_FREE_BUFFERS: 3>,)
2023-02-19 14:34:14.141 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'631f21a9fe2a169dbc7e'
2023-02-19 14:34:14.150 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'371fa1a9fe2a15b3a2b4777e'
2023-02-19 14:34:14.150 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2023-02-19 14:34:14.151 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [<EzspStatus.SUCCESS: 0>, b'\xfb']
2023-02-19 14:34:14.151 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 251
2023-02-19 14:34:14.151 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 14618, MAC_TX_BROADCAST = 4708, MAC_RX_UNICAST = 4465, MAC_TX_UNICAST_SUCCESS = 306, MAC_TX_UNICAST_RETRY = 325, MAC_TX_UNICAST_FAILED = 102, APS_DATA_RX_BROADCAST = 63, APS_DATA_TX_BROADCAST = 63, APS_DATA_RX_UNICAST = 2490, APS_DATA_TX_UNICAST_SUCCESS = 166, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 199, ROUTE_DISCOVERY_INITIATED = 101, NEIGHBOR_ADDED = 5, NEIGHBOR_REMOVED = 1, NEIGHBOR_STALE = 46, JOIN_INDICATION = 5, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 12, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 18, APS_DECRYPTION_FAILURE = 34, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 0, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 251]
2023-02-19 14:35:56.153 ERROR (MainThread) [homeassistant.components.zha.entity] switch.lumi_lumi_motion_ac02_led_trigger_indicator: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:57.539 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:57.730 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:57.856 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.025 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.237 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.365 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.543 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.694 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:58.874 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:35:59.132 ERROR (MainThread) [homeassistant.components.zha.entity] number.lumi_lumi_motion_ac02_detection_interval: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:36:07.517 ERROR (MainThread) [homeassistant.components.zha.entity] switch.lumi_lumi_motion_ac02_led_trigger_indicator: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:36:21.709 ERROR (MainThread) [homeassistant.components.zha.entity] switch.lumi_lumi_motion_ac02_led_trigger_indicator: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>
2023-02-19 14:36:25.223 ERROR (MainThread) [homeassistant.components.zha.entity] switch.lumi_lumi_motion_ac02_led_trigger_indicator: Could not set value: Failed to deliver message: <EmberStatus.DELIVERY_FAILED: 102>

Additional context
Also the Battery information seems to be empty.
Re-configuring the device fails at "OppleCluster"

No problem with pairing multiple P1 sensors to a SkyConnect here. Battery information can take quite some time to arrive (the motion sensor sends it in a way that doesn't follow specs).

It stays at Clear even if I have left it without motion for over an hour

I've added additional logs during the pairing period of the sensor.
I've also tried with fresh batteries in case that was the issue, but no go again. After pairing with Coordinator the icons on the "Device is ready" modal became grey out, like the device "died"(?) / "went offline". It is the exact time that the sensor starting to not respond to quick click of its button (connectivity check).

Same issue here....
 device signatur
"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)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0107",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0400",
        "0x0406",
        "0x0500",
        "0xfcc0"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019",
        "0xfcc0"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.motion.ac02",
  "class": "zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02"

diagnostic

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.2.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.90",
    "supervisor": "2023.01.1",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "multimatic": {
      "version": "1.13.0",
      "requirements": [
        "pymultimatic==0.6.12"
      ]
    },
    "nodered": {
      "version": "1.1.2",
      "requirements": []
    },
    "wundergroundpws": {
      "version": "1.1.1",
      "requirements": []
    },
    "hacs": {
      "version": "1.30.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.7",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.92",
      "zigpy-deconz==0.19.2",
      "zigpy==0.53.0",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 36443,
    "manufacturer": "LUMI",
    "model": "lumi.motion.ac02",
    "name": "LUMI lumi.motion.ac02",
    "quirk_applied": true,
    "quirk_class": "zhaquirks.xiaomi.aqara.motion_ac02.LumiMotionAC02",
    "manufacturer_code": 4447,
    "power_source": "Battery or Unknown",
    "lqi": 255,
    "rssi": -25,
    "last_seen": "2023-02-23T12:01:39",
    "available": true,
    "device_type": "EndDevice",
    "signature": {
      "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)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0107",
          "in_clusters": [
            "0x0000",
            "0x0001",
            "0x0003",
            "0x0400",
            "0x0406",
            "0x0500",
            "0xfcc0"
          ],
          "out_clusters": [
            "0x0003",
            "0x0019",
            "0xfcc0"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "binary_sensor.lumi_lumi_motion_ac02_occupancy",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "binary_sensor.lumi_lumi_motion_ac02_iaszone",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "button.lumi_lumi_motion_ac02_identify",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "number.lumi_lumi_motion_ac02_detection_interval",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "select.lumi_lumi_motion_ac02_motion_sensitivity",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_battery",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "sensor.lumi_lumi_motion_ac02_illuminance",
        "name": "LUMI lumi.motion.ac02"
      },
      {
        "entity_id": "switch.lumi_lumi_motion_ac02_led_trigger_indicator",
        "name": "LUMI lumi.motion.ac02"
      }
    ],
    "neighbors": [],
    "routes": [],
    "endpoint_names": [
      {
        "name": "OCCUPANCY_SENSOR"
      }
    ],
    "user_given_name": null,
    "device_reg_id": "4d4b2cd6b368f01b6b3417218d3174f6",
    "area_id": "erdgeschoss",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "OCCUPANCY_SENSOR",
          "id": 263
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {
              "0x0031": {
                "attribute_name": "battery_size",
                "value": 11
              },
              "0x0033": {
                "attribute_name": "battery_quantity",
                "value": 1
              }
            },
            "unsupported_attributes": {}
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0406": {
            "endpoint_attribute": "occupancy",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0500": {
            "endpoint_attribute": "ias_zone",
            "attributes": {
              "0x0001": {
                "attribute_name": "zone_type",
                "value": 13
              },
              "0x0010": {
                "attribute_name": "cie_addr",
                "value": [
                  97,
                  125,
                  9,
                  255,
                  255,
                  46,
                  33,
                  0
                ]
              }
            },
            "unsupported_attributes": {
              "0x0002": {
                "attribute_name": "zone_status"
              },
              "0x0000": {
                "attribute_name": "zone_state"
              }
            }
          },
          "0x0400": {
            "endpoint_attribute": "illuminance",
            "attributes": {
              "0x0000": {
                "attribute_name": "measured_value",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          },
          "0xfcc0": {
            "endpoint_attribute": "opple_cluster",
            "attributes": {
              "0x0102": {
                "attribute_name": "detection_interval",
                "value": 30
              },
              "0x010c": {
                "attribute_name": "motion_sensitivity",
                "value": 2
              },
              "0x0152": {
                "attribute_name": "trigger_indicator",
                "value": 0
              }
            },
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xfcc0": {
            "endpoint_attribute": "opple_cluster",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}

ok, i have some news. I've done a firmware update on my conbee 2 stick up to the latest version.
before: deCONZ_ConBeeII_0x26720700.bin.GCF 9-Aug-2021
now: deCONZ_ConBeeII_0x26780700.bin.GCF 15-May-2022
source: https://deconz.dresden-elektronik.de/deconz-firmware/
installation manual: https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Update-deCONZ-manually
Now the motion sensor works fine and it shows me the illuminance:

But it still doesn't show me the battery.

I am well aware of that. but i thought it might help you with your problem, too. sorry for interfering

With EZSP coordinators you you also need running the latest version of HA for getting latest gen Aqara devices working OK (the same reason deCONZ need latest firmware but EZSP is doiing it in the driiver).

I'm already running HA 2023.3.b0 which also includes zha-quirks v0.0.93. Still Aqara P1 cannot be paired with a SkyConnect coordinator.

Quick update of my Aqara Motion Sensor P1 pairing issue.
It seems that after an issue with HA 2023.3.0b3 update, which crippled my HA installation and recovered back only via a full VM backup replacement and by using -now- version 2023.3.0b5 it seems that I can now pair Aqara Motion Sensor P1 and use it without any issues at all.
I really don't know if anything from .0b4 or .0b5 helped with that but the only other parameter that was changed on the HA installation was the manual removal of HACS. The removal of HACS -happened some months ago- from within HA UI was not fully completed, because by searching the logs for info regarding the issue I've got with .0b3 update, I've found that HA was reporting that an installation of HACS was present on the system which could not be found on HA UI.
So, I've 'rmdir' the HACS installation folder manually from Terminal.
I repeat, I do not know if this has to do anything with the pairing issue, but it was the only thing that was changed in between.

Was there something changed with the ZHA quirks lib that's impacting this device? In 2023.2 home assistant bumped the quirks lib to 0.0.96.
I'm running HA 2023.4.5 and the device is stuck "Clear" and no motion is detected, i've dropped the detection interval down to 5 seconds and still have the same issue.
I too am using a SkyConnect USB dongle, same as @timiman

Same as @cammurray and @timiman  with my install of HA - after many attempts, it pairs...then, it's useless.

Another late update for the P1. It seems that for some reason it is reporting thousands of lux as illuminance when it is about to become for sure unavailable and started needing a re-pair to become available again. It has nothing to do with network health as in my case it is just 1 meter from the coordinator itself. It is the most un-trusted device of my Zigbee network by far.

Any update on this issue ? It seems that more un more people have this problem (included myself).