zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
744 stars 678 forks source link

[Device Support Request] Aqara Smoke Detector JY-GZ-01AQ #1828

Closed wishie closed 1 year ago

wishie commented 2 years ago

I am looking to help add support for this smoke detector into ZHA.

Device signature ```yaml { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 260, "device_type": "0x0402", "in_clusters": [ "0x0000", "0x0001", "0x0003", "0x0500" ], "out_clusters": [ "0x0019" ] } }, "manufacturer": "LUMI", "model": "lumi.sensor_smoke.acn03", "class": "zigpy.device.Device" } ```
Diagnostic information ```yaml { "home_assistant": { "installation_type": "Home Assistant Container", "version": "2022.10.1", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "x86_64", "timezone": "Australia/Brisbane", "os_name": "Linux", "os_version": "5.19.9-Unraid", "run_as_root": true }, "custom_components": { "watchman": { "version": "0.5.1", "requirements": [ "prettytable==3.0.0" ] }, "fullykiosk": { "version": "1.1.0", "requirements": [ "python-fullykiosk==0.0.11" ] }, "goodwe": { "version": "1.0.0", "requirements": [ "goodwe==0.2.20" ] }, "iotawatt": { "version": "0.2.1", "requirements": [ "iotawattpy==0.1.0" ] }, "bayislandsguide": { "version": "1.0.0", "requirements": [] }, "smartthinq_sensors": { "version": "0.24.2", "requirements": [ "pycountry>=20.7.3", "xmltodict>=0.12.0", "cchardet>=2.1.7" ] }, "unifigateway": { "version": "0.3.3", "requirements": [ "pyunifi==2.21" ] }, "spotcast": { "version": "v3.6.30", "requirements": [ "spotify_token==1.0.0" ] }, "weatherflow": { "version": "1.0.6", "requirements": [ "pyweatherflowrest==1.0.8" ] }, "sonoff": { "version": "3.3.1", "requirements": [ "pycryptodome>=3.6.6" ] }, "bureau_of_meteorology": { "version": "1.1.18", "requirements": [ "iso8601" ] }, "hacs": { "version": "1.28.0", "requirements": [ "aiogithubapi>=22.2.4" ] }, "garbage_collection": { "version": "4.8.3", "requirements": [ "python-dateutil>=2.8.2" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/zha", "requirements": [ "bellows==0.34.1", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.82", "zigpy-deconz==0.19.0", "zigpy==0.51.2", "zigpy-xbee==0.16.0", "zigpy-zigate==0.10.0", "zigpy-znp==0.9.0" ], "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*" } ], "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": 55507, "manufacturer": "LUMI", "model": "lumi.sensor_smoke.acn03", "name": "LUMI lumi.sensor_smoke.acn03", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 4447, "power_source": "Mains", "lqi": 174, "rssi": null, "last_seen": "2022-10-14T20:29:05", "available": false, "device_type": "EndDevice", "signature": { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 260, "device_type": "0x0402", "in_clusters": [ "0x0000", "0x0001", "0x0003", "0x0500" ], "out_clusters": [ "0x0019" ] } } }, "active_coordinator": false, "entities": [ { "entity_id": "button.lumi_lumi_sensor_smoke_acn03_identifybutton", "name": "LUMI lumi.sensor_smoke.acn03" }, { "entity_id": "binary_sensor.kitchen_smoke_detector", "name": "LUMI lumi.sensor_smoke.acn03" } ], "neighbors": [], "endpoint_names": [ { "name": "IAS_ZONE" } ], "user_given_name": "Kitchen Smoke Detector", "device_reg_id": "8aff90d673e35fdb59aa747a5748a165", "area_id": "c8f14518f5d04160aebbc97923659fc0", "cluster_details": { "1": { "device_type": { "name": "IAS_ZONE", "id": 1026 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0004": { "attribute_name": "manufacturer", "value": "LUMI" }, "0x0005": { "attribute_name": "model", "value": "lumi.sensor_smoke.acn03" } }, "unsupported_attributes": {} }, "0x0500": { "endpoint_attribute": "ias_zone", "attributes": { "0x0000": { "attribute_name": "zone_state", "value": 1 }, "0x0001": { "attribute_name": "zone_type", "value": 40 }, "0x0002": { "attribute_name": "zone_status", "value": 0 }, "0x0010": { "attribute_name": "cie_addr", "value": [ 129, 116, 194, 36, 0, 75, 18, 0 ] } }, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0001": { "endpoint_attribute": "power", "attributes": {}, "unsupported_attributes": {} } }, "out_clusters": { "0x0019": { "endpoint_attribute": "ota", "attributes": {}, "unsupported_attributes": {} } } } } } } ```
Additional logs ``` Paste any additional debug logs here. Don't remove the extra line breaks outside the ``` marks. ```

Additional context The device apparently has full support in Z2M, and the details of that can be seen here: https://www.zigbee2mqtt.io/devices/JY-GZ-01AQ.html

javicalle commented 1 year ago

Can you tell us what is working and what isn't?

I believe that basic detection can be done but make all the Z2M sensors available will require a lot of code:

wishie commented 1 year ago

The smoke detector only shows as 2 entities by default.. an IASZone and a Button.

The IASZone shows 'clear' and I was hoping it would update on smoke detected, but in my testing it does not. The 'Identify' button makes the LED on the unit flash once.

Screen Shot 2022-10-21 at 7 51 53 am

javicalle commented 1 year ago

For the IASZone I believe that can be done with that quirk:

class SmokeDetector(XiaomiQuickInitDevice):
    """Aqara smoke detector custom device."""

    def __init__(self, *args, **kwargs):
        """Init method."""
        # self.battery_size = 8  # CR123a
        super().__init__(*args, **kwargs)

    signature = {
        # 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|MainsPowered: 132>,
        #     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=True, *is_receiver_on_when_idle=False, *is_router=False, 
        #     *is_security_capable=False
        # )
        NODE_DESCRIPTOR: XIAOMI_NODE_DESC,  # not sure if needed, also don't match the device one
        MODELS_INFO: ((LUMI, "lumi.sensor_smoke.acn03"),),
        ENDPOINTS: {
            #  input_clusters=["0x0000", "0x0001", "0x0003", "0x0500"]
            #  output_clusters=["0x0019"]>
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.IAS_ZONE,
                INPUT_CLUSTERS: [
                    BasicCluster.cluster_id,
                    PowerConfiguration.cluster_id,
                    Identify.cluster_id,
                    IasZone.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        },
    }

    replacement = {
        SKIP_CONFIGURATION: True,
        ENDPOINTS: {
            1: {
                INPUT_CLUSTERS: [
                    BasicCluster,
                    XiaomiPowerConfiguration,
                    Identify.cluster_id,
                    XiaomiSmokeIASCluster,
                    DeviceTemperatureCluster,
                    XiaomiAqaraE1Cluster,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        },
    }

You will need to enable your local quirk configuration. There is a guide about enabling custom quirks:

Copy in your local quirks folder the current quirk:

Edit the file, adding the proposed quirk at the end of the file.

Restart HA, remove and pair you device again. Check that the device is loading the quirk and that the device signatura has changed.

As side comments, the quirk can configure the battery type. Can you tell which type is? Not sure if the NODE_DESCRIPTOR is needed here and also don't match. If the device (after a couple of tries) don't load the quirk, try to comment or remove this part.

wishie commented 1 year ago

I will try shortly.

The battery is a CR17450

wishie commented 1 year ago

Quirk appears to have loaded. Have not tested the "IASZone" yet (its loud).

Screen Shot 2022-10-21 at 6 08 02 pm

MattWestb commented 1 year ago

@javicalle The CR17450 is not in ZCL R8 / Zigpy: https://github.com/zigpy/zigpy/blob/e0faf074f6b26e638003b62180e2854a23e5b092/zigpy/zcl/clusters/general.py#L245-L255

But some "creative" person have adding little extra in ZHA for getting nice Xiaomi sensors displaying other battery formats: https://github.com/home-assistant/core/blob/4abe5aec6cffa174065c4f8865f091aed871eb19/homeassistant/components/zha/sensor.py#L81-L95 (type 9 - 11 is the extras and wold being better have using type number 20X if ZCL is adding new types in the low range)

Possible using 2: "Other" or patching ZHA with CR17450 as done in the last example.

wishie commented 1 year ago

I guess I will have to set something on fire in the morning to see if the state of the IASZone entity updates when the alarm sounds.

wishie commented 1 year ago

I set off the alarm, but the state of the entity did not seem to update.

javicalle commented 1 year ago

Any logs related? Is the temperature updating?

Please, enable debug logs and attach the relevant info.

wishie commented 1 year ago

I have enabled debug logs for 'zigpy' and 'zigpy_znp'.

I have restarted HA. The 'device temperature' entity has always been 'Unknown' and the IASZone has always been 'clear' (as far as I am aware).

I guess I will try to set something on fire again, and see if it updates.

Can I then just use 'Download Diagnostics' or do I have to check in the log file itself and find the relevant parts?

wishie commented 1 year ago

The ID of the smoke detector is 54:ef:44:10:00:48:2d:c1

2022-10-23 17:07:29.022 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=64704, SrcAddr=0x4D7E, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=94, SecurityUse=<Bool.false: 0>, TimeStamp=10459478, TSN=0, Data=b'\x18\x48\x0A\x3A\x01\x21\x01\x00\x3B\x01\x20\x0A', MacSrcAddr=0x4D7E, MsgResultRadius=29)
2022-10-23 17:07:29.022 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4D7E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=64704, data=Serialized[b'\x18H\n:\x01!\x01\x00;\x01 \n'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=94, rssi=None)
2022-10-23 17:07:29.022 DEBUG (MainThread) [zigpy.device] Ignoring message (b'18480a3a012101003b01200a') on cluster 64704: unknown endpoint or cluster id: 'No cluster ID 0xfcc0 on (54:ef:44:10:00:48:2d:c1, 1)'
2022-10-23 17:07:36.474 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x15A6, Relays=[0x487F])
2022-10-23 17:07:36.475 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=1280, SrcAddr=0x15A6, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=43, SecurityUse=<Bool.false: 0>, TimeStamp=10924815, TSN=0, Data=b'\x19\x77\x00\x00\x00\x00\x00\x00\x00', MacSrcAddr=0x487F, MsgResultRadius=28)
2022-10-23 17:07:36.475 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x15A6), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1280, data=Serialized[b'\x19w\x00\x00\x00\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=43, rssi=None)
2022-10-23 17:07:36.475 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Received ZCL frame: b'\x19w\x00\x00\x00\x00\x00\x00\x00'
2022-10-23 17:07:36.475 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=119, command_id=0, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-23 17:07:36.476 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Decoded ZCL frame: IasZone:status_change_notification(zone_status=<ZoneStatus.0: 0>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:07:36.476 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Received command 0x00 (TSN 119): status_change_notification(zone_status=<ZoneStatus.0: 0>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:07:51.902 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=64704, SrcAddr=0x4D7E, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=43, SecurityUse=<Bool.false: 0>, TimeStamp=11889524, TSN=0, Data=b'\x18\x49\x0A\x3B\x01\x20\x05', MacSrcAddr=0x4D7E, MsgResultRadius=29)
2022-10-23 17:07:51.902 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4D7E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=64704, data=Serialized[b'\x18I\n;\x01 \x05'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=43, rssi=None)
2022-10-23 17:07:51.902 DEBUG (MainThread) [zigpy.device] Ignoring message (b'18490a3b012005') on cluster 64704: unknown endpoint or cluster id: 'No cluster ID 0xfcc0 on (54:ef:44:10:00:48:2d:c1, 1)'
2022-10-23 17:07:53.083 DEBUG (MainThread) [zigpy_znp.api] Sending request: SYS.Ping.Req()
2022-10-23 17:07:53.088 DEBUG (MainThread) [zigpy_znp.api] Received command: SYS.Ping.Rsp(Capabilities=<MTCapabilities.APP_CNF|GP|UTIL|ZDO|AF|SYS: 1625>)
2022-10-23 17:08:00.143 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=64704, SrcAddr=0x4D7E, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=65, SecurityUse=<Bool.false: 0>, TimeStamp=12404630, TSN=0, Data=b'\x18\x4A\x0A\x3B\x01\x20\x00', MacSrcAddr=0x4D7E, MsgResultRadius=29)
2022-10-23 17:08:00.143 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4D7E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=64704, data=Serialized[b'\x18J\n;\x01 \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=65, rssi=None)
2022-10-23 17:08:00.143 DEBUG (MainThread) [zigpy.device] Ignoring message (b'184a0a3b012000') on cluster 64704: unknown endpoint or cluster id: 'No cluster ID 0xfcc0 on (54:ef:44:10:00:48:2d:c1, 1)'
2022-10-23 17:08:03.952 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x15A6, Relays=[0x487F])
2022-10-23 17:08:03.969 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=1280, SrcAddr=0x15A6, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=36, SecurityUse=<Bool.false: 0>, TimeStamp=12643707, TSN=0, Data=b'\x19\x78\x00\x01\x00\x00\x00\x00\x00', MacSrcAddr=0x487F, MsgResultRadius=28)
2022-10-23 17:08:03.969 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x15A6), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1280, data=Serialized[b'\x19x\x00\x01\x00\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=36, rssi=None)
2022-10-23 17:08:03.969 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Received ZCL frame: b'\x19x\x00\x01\x00\x00\x00\x00\x00'
2022-10-23 17:08:03.969 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=120, command_id=0, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-23 17:08:03.970 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Decoded ZCL frame: IasZone:status_change_notification(zone_status=<ZoneStatus.Alarm_1: 1>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:03.970 DEBUG (MainThread) [zigpy.zcl] [0x15A6:1:0x0500] Received command 0x00 (TSN 120): status_change_notification(zone_status=<ZoneStatus.Alarm_1: 1>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:13.224 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x98BB, Relays=[0x4E2C])
2022-10-23 17:08:13.280 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=1280, SrcAddr=0x98BB, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=98, SecurityUse=<Bool.false: 0>, TimeStamp=13225656, TSN=0, Data=b'\x19\x34\x00\x01\x00\x00\x00\x00\x00', MacSrcAddr=0x4E2C, MsgResultRadius=28)
2022-10-23 17:08:13.280 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x98BB), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1280, data=Serialized[b'\x194\x00\x01\x00\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=98, rssi=None)
2022-10-23 17:08:13.280 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Received ZCL frame: b'\x194\x00\x01\x00\x00\x00\x00\x00'
2022-10-23 17:08:13.280 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=52, command_id=0, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-23 17:08:13.281 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Decoded ZCL frame: IasZone:status_change_notification(zone_status=<ZoneStatus.Alarm_1: 1>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:13.281 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Received command 0x00 (TSN 52): status_change_notification(zone_status=<ZoneStatus.Alarm_1: 1>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:17.013 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=64704, SrcAddr=0x4D7E, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=160, SecurityUse=<Bool.false: 0>, TimeStamp=13458988, TSN=0, Data=b'\x18\x4B\x0A\x3A\x01\x21\x00\x00\x3B\x01\x20\x00', MacSrcAddr=0x4D7E, MsgResultRadius=29)
2022-10-23 17:08:17.014 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4D7E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=64704, data=Serialized[b'\x18K\n:\x01!\x00\x00;\x01 \x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=160, rssi=None)
2022-10-23 17:08:17.014 DEBUG (MainThread) [zigpy.device] Ignoring message (b'184b0a3a012100003b012000') on cluster 64704: unknown endpoint or cluster id: 'No cluster ID 0xfcc0 on (54:ef:44:10:00:48:2d:c1, 1)'
2022-10-23 17:08:22.122 DEBUG (MainThread) [zigpy_znp.api] Received command: ZDO.SrcRtgInd.Callback(DstAddr=0x98BB, Relays=[0x4E2C])
2022-10-23 17:08:22.174 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=1280, SrcAddr=0x98BB, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=76, SecurityUse=<Bool.false: 0>, TimeStamp=13781579, TSN=0, Data=b'\x19\x35\x00\x00\x00\x00\x00\x00\x00', MacSrcAddr=0x4E2C, MsgResultRadius=28)
2022-10-23 17:08:22.174 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x98BB), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=1280, data=Serialized[b'\x195\x00\x00\x00\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=28, non_member_radius=0, lqi=76, rssi=None)
2022-10-23 17:08:22.174 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Received ZCL frame: b'\x195\x00\x00\x00\x00\x00\x00\x00'
2022-10-23 17:08:22.175 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=53, command_id=0, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-23 17:08:22.175 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Decoded ZCL frame: IasZone:status_change_notification(zone_status=<ZoneStatus.0: 0>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:22.175 DEBUG (MainThread) [zigpy.zcl] [0x98BB:1:0x0500] Received command 0x00 (TSN 53): status_change_notification(zone_status=<ZoneStatus.0: 0>, extended_status=<bitmap8.0: 0>, zone_id=0, delay=0)
2022-10-23 17:08:23.088 DEBUG (MainThread) [zigpy_znp.api] Sending request: SYS.Ping.Req()
2022-10-23 17:08:23.093 DEBUG (MainThread) [zigpy_znp.api] Received command: SYS.Ping.Rsp(Capabilities=<MTCapabilities.APP_CNF|GP|UTIL|ZDO|AF|SYS: 1625>)
2022-10-23 17:08:29.779 DEBUG (MainThread) [zigpy.zcl] [0x4D7E: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=66, command_id=0, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
2022-10-23 17:08:29.779 DEBUG (MainThread) [zigpy.zcl] [0x4D7E:1:0x0003] Sending request: identify(identify_time=5)
2022-10-23 17:08:29.780 DEBUG (MainThread) [zigpy.device] [0x4d7e] Extending timeout for 0x42 request
2022-10-23 17:08:29.780 DEBUG (MainThread) [zigpy_znp.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=0x4D7E), dst_ep=1, source_route=None, extended_timeout=True, tsn=66, profile_id=260, cluster_id=3, data=Serialized[b'\x01B\x00\x05\x00'], tx_options=<TransmitOptions.ACK: 1>, radius=0, non_member_radius=0, lqi=None, rssi=None)
2022-10-23 17:08:29.781 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0x4D7E), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=3, TSN=66, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x01\x42\x00\x05\x00')
2022-10-23 17:08:29.787 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataRequestExt.Rsp(Status=<Status.SUCCESS: 0>)
2022-10-23 17:08:36.197 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.DataConfirm.Callback(Status=<Status.SUCCESS: 0>, Endpoint=1, TSN=66)
2022-10-23 17:08:36.198 DEBUG (MainThread) [zigpy_znp.api] Received command: AF.IncomingMsg.Callback(GroupId=0x0000, ClusterId=3, SrcAddr=0x4D7E, SrcEndpoint=1, DstEndpoint=1, WasBroadcast=<Bool.false: 0>, LQI=149, SecurityUse=<Bool.false: 0>, TimeStamp=14657520, TSN=0, Data=b'\x18\x42\x0B\x00\x00', MacSrcAddr=0x4D7E, MsgResultRadius=29)
2022-10-23 17:08:36.198 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x4D7E), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=3, data=Serialized[b'\x18B\x0b\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=29, non_member_radius=0, lqi=149, rssi=None)
2022-10-23 17:08:36.198 DEBUG (MainThread) [zigpy.zcl] [0x4D7E:1:0x0003] Received ZCL frame: b'\x18B\x0b\x00\x00'
2022-10-23 17:08:36.198 DEBUG (MainThread) [zigpy.zcl] [0x4D7E: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=66, command_id=11, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
2022-10-23 17:08:36.198 DEBUG (MainThread) [zigpy.zcl] [0x4D7E:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-10-23 17:08:53.094 DEBUG (MainThread) [zigpy_znp.api] Sending request: SYS.Ping.Req()
2022-10-23 17:08:53.099 DEBUG (MainThread) [zigpy_znp.api] Received command: SYS.Ping.Rsp(Capabilities=<MTCapabilities.APP_CNF|GP|UTIL|ZDO|AF|SYS: 1625>)
javicalle commented 1 year ago

A couple of observations.

Logs shows 2 devices: 0x15A6 and 0x98BB (these are the device Nwk values, you can check it in the device view, 'Zigbee info'). None of them seems to be your device (from the screenshot)

There is at least one device reporting values from the XiaomiAqaraE1Cluster. We can add it to the quirk and see what is telling to us. Add the import at the beggining of file:

from zhaquirks.xiaomi import (
    LUMI,
    XIAOMI_NODE_DESC,
    BasicCluster,
    DeviceTemperatureCluster,
    XiaomiAqaraE1Cluster,
    XiaomiPowerConfiguration,
    XiaomiQuickInitDevice,
)

And in the replacement part:

    replacement = {
        SKIP_CONFIGURATION: True,
        ENDPOINTS: {
            1: {
                INPUT_CLUSTERS: [
                    BasicCluster,
                    XiaomiPowerConfiguration,
                    Identify.cluster_id,
                    XiaomiSmokeIASCluster,
                    DeviceTemperatureCluster,
                    XiaomiAqaraE1Cluster,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            }
        },
    }

Remove any __pycache__ folder from your local quirk folder, restart HA and re pair the device.

Check the logs to see if there are any regular reports from device. But you will need to repeat the test to see if the quirk is working.

gus1492022 commented 1 year ago

Hi, I have the same problem. I have bought these sensors, I connect them without problem to zigbee2mqtt. It has several sensors and options (alarm, mute) turn the light on or off every minute... it works fine when I change the option in home assistant, the problem happens when I set off the smoke alarm. the alarm sounds but does not send any message to the home assistant. For it to work I have to enter the expose option and update the status so that it detects the alarm!! I have tried to do what you say here, but everything continues the same. how can i check if it is picking up the quirks? Thanks a lot

javicalle commented 1 year ago

If you are using zigbee2mqtt, you are not using that code. You must ask for help in the Z2M repository.

RSDynamics commented 1 year ago

Got these smoke detectors to and I am trying to get them to work with ZHA. I got the above quirk to work and show the battery status of one of my detectors. so some progress. Not checked the smoke alarm yet. I removed the temperature cluster as I don't think that the device supports it.

I don't know if it helps. The site explains some of the clusters of he device in detail. https://home.miot-spec.com/spec/lumi.sensor_smoke.acn03

Maybe this information helps to determine the quirks necessary?

RSDynamics commented 1 year ago

Als found this definition with ZHA Toolkit.

ZHA Toolkit definition ```json { "ieee": "54:ef:44:10:00:5a:7d:xx", "nwk": "0x22bf", "model": "lumi.sensor_smoke.acn03", "manufacturer": "LUMI", "manufacturer_id": "0x4151", "endpoints": [ { "id": 1, "device_type": "0x0402", "profile": "0x0104", "in_clusters": { "0x0000": { "cluster_id": "0x0000", "title": "BasicCluster", "name": "basic", "attributes": { "0x0000": { "attribute_id": "0x0000", "attribute_name": "zcl_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 3 }, "0x0001": { "attribute_id": "0x0001", "attribute_name": "app_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 17 }, "0x0002": { "attribute_id": "0x0002", "attribute_name": "stack_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 2 }, "0x0003": { "attribute_id": "0x0003", "attribute_name": "hw_version", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 1 }, "0x0004": { "attribute_id": "0x0004", "attribute_name": "manufacturer", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "LUMI" }, "0x0005": { "attribute_id": "0x0005", "attribute_name": "model", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "lumi.sensor_smoke.acn03" }, "0x0006": { "attribute_id": "0x0006", "attribute_name": "date_code", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "20220617" }, "0x0007": { "attribute_id": "0x0007", "attribute_name": "power_source", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 3 }, "0x0008": { "attribute_id": "0x0008", "attribute_name": "generic_device_class", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 255 }, "0x0009": { "attribute_id": "0x0009", "attribute_name": "generic_device_type", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 255 }, "0x000a": { "attribute_id": "0x000a", "attribute_name": "product_code", "value_type": [ "0x41", "LVBytes", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "" }, "0x000b": { "attribute_id": "0x000b", "attribute_name": "product_url", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "www.aqara.com" }, "0x000d": { "attribute_id": "0x000d", "attribute_name": "serial_number", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "337S00018215" }, "0x4000": { "attribute_id": "0x4000", "attribute_name": "sw_build_id", "value_type": [ "0x42", "CharacterString", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": "2019" }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "cluster_revision", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 1 } }, "commands_received": { "0x00": { "command_id": "0x00", "command_name": "reset_fact_default", "command_arguments": "" } }, "commands_generated": {} }, "0x0001": { "cluster_id": "0x0001", "title": "Power Configuration", "name": "power", "attributes": { "0x0020": { "attribute_id": "0x0020", "attribute_name": "battery_voltage", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "REPORT|READ", "access_acl": 5, "attribute_value": 31 }, "0x0031": { "attribute_id": "0x0031", "attribute_name": "battery_size", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "WRITE|READ", "access_acl": 3, "attribute_value": 10 }, "0x0033": { "attribute_id": "0x0033", "attribute_name": "battery_quantity", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "WRITE|READ", "access_acl": 3, "attribute_value": 1 }, "0x0034": { "attribute_id": "0x0034", "attribute_name": "battery_rated_voltage", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "WRITE|READ", "access_acl": 3 }, "0x0035": { "attribute_id": "0x0035", "attribute_name": "battery_alarm_mask", "value_type": [ "0x18", "bitmap8", "Discrete" ], "access": "WRITE|READ", "access_acl": 3 }, "0x0036": { "attribute_id": "0x0036", "attribute_name": "battery_volt_min_thres", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "WRITE|READ", "access_acl": 3 }, "0x003e": { "attribute_id": "0x003e", "attribute_name": "battery_alarm_state", "value_type": [ "0x1b", "bitmap32", "Discrete" ], "access": "REPORT|READ", "access_acl": 5 }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "cluster_revision", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ", "access_acl": 1 } }, "commands_received": {}, "commands_generated": {} }, "0x0003": { "cluster_id": "0x0003", "title": "Identify", "name": "identify", "attributes": { "0x0000": { "attribute_id": "0x0000", "attribute_name": "identify_time", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "WRITE|READ", "access_acl": 3, "attribute_value": 0 }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "cluster_revision", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 1 } }, "commands_received": { "0x00": { "command_id": "0x00", "command_name": "identify", "command_arguments": "" }, "0x01": { "command_id": "0x01", "command_name": "identify_query", "command_arguments": "" }, "0x40": { "command_id": "0x40", "command_name": "trigger_effect", "command_arguments": "" } }, "commands_generated": { "0x00": { "command_id": "0x00", "command_name": "identify_query_response", "command_args": "" } } }, "0x0500": { "cluster_id": "0x0500", "title": "IAS Zone", "name": "ias_zone", "attributes": { "0x0000": { "attribute_id": "0x0000", "attribute_name": "zone_state", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 0 }, "0x0001": { "attribute_id": "0x0001", "attribute_name": "zone_type", "value_type": [ "0x31", "enum16", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 40 }, "0x0002": { "attribute_id": "0x0002", "attribute_name": "zone_status", "value_type": [ "0x19", "bitmap16", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 32 }, "0x0010": { "attribute_id": "0x0010", "attribute_name": "cie_addr", "value_type": [ "0xf0", "EUI64", "Discrete" ], "access": "WRITE|READ", "access_acl": 3, "attribute_value": [ 0, 0, 0, 0, 0, 0, 0, 0 ] }, "0x0011": { "attribute_id": "0x0011", "attribute_name": "zone_id", "value_type": [ "0x20", "uint8_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 255 }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "65533", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 1 } }, "commands_received": { "0x00": { "command_id": "0x00", "command_name": "enroll_response", "command_arguments": "" } }, "commands_generated": { "0x00": { "command_id": "0x00", "command_name": "status_change_notification", "command_args": "" }, "0x01": { "command_id": "0x01", "command_name": "enroll", "command_args": "" } } }, "0xfcc0": { "cluster_id": "0xfcc0", "title": "Manufacturer Specific", "name": "manufacturer_specific", "attributes": {}, "commands_received": {}, "commands_generated": {} } }, "out_clusters": { "0x0019": { "cluster_id": "0x0019", "title": "Ota", "name": "ota", "attributes": { "0x0000": { "attribute_id": "0x0000", "attribute_name": "upgrade_server_id", "value_type": [ "0xf0", "EUI64", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": [ 0, 0, 0, 0, 0, 0, 0, 0 ] }, "0x0002": { "attribute_id": "0x0002", "attribute_name": "current_file_version", "value_type": [ "0x23", "uint32_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 17 }, "0x0006": { "attribute_id": "0x0006", "attribute_name": "image_upgrade_status", "value_type": [ "0x30", "enum8", "Discrete" ], "access": "READ", "access_acl": 1, "attribute_value": 0 }, "0xfffd": { "attribute_id": "0xfffd", "attribute_name": "cluster_revision", "value_type": [ "0x21", "uint16_t", "Analog" ], "access": "READ", "access_acl": 1, "attribute_value": 1 } }, "commands_received": { "0x00": { "command_id": "0x00", "command_name": "0", "command_arguments": "not_in_zcl" }, "0x02": { "command_id": "0x02", "command_name": "2", "command_arguments": "not_in_zcl" }, "0x05": { "command_id": "0x05", "command_name": "5", "command_arguments": "not_in_zcl" }, "0x07": { "command_id": "0x07", "command_name": "7", "command_arguments": "not_in_zcl" }, "0x09": { "command_id": "0x09", "command_name": "9", "command_arguments": "not_in_zcl" }, "0x1c": { "command_id": "0x1c", "command_name": "28", "command_arguments": "not_in_zcl" } }, "commands_generated": { "0x01": { "command_id": "0x01", "command_name": "1", "command_args": "not_in_zcl" }, "0x03": { "command_id": "0x03", "command_name": "3", "command_args": "not_in_zcl" }, "0x04": { "command_id": "0x04", "command_name": "4", "command_args": "not_in_zcl" }, "0x06": { "command_id": "0x06", "command_name": "6", "command_args": "not_in_zcl" }, "0x08": { "command_id": "0x08", "command_name": "8", "command_args": "not_in_zcl" } } } } } ] } ```
johnboiles commented 1 year ago

I picked up a few of these and am happy to try things out. To summarize so far:

The way forward here is to keep trying to iterate on a quirk until it works right?

TheJulianJES commented 1 year ago

Relevant Z2M code:

device definition: https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/devices/xiaomi.js#L2118-L2154

converting messages from the device -> Z2M: https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/lib/xiaomi.js#L377-L414 https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/lib/xiaomi.js#L464-L473 https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/lib/xiaomi.js#L479-L504 https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/lib/xiaomi.js#L539-L548

messages from Z2M -> device: https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/converters/toZigbee.js#L2667-L2738

... so it's quite a bit to do.

The framework in ZHA to parse the special Xiaomi messages is here (example from another device): https://github.com/zigpy/zha-device-handlers/blob/f6ab87e1c48ccb6db262e8732ca6b63d67fb6252/zhaquirks/xiaomi/__init__.py#L355-L365

(Edit: just saw that javicalle already linked this earlier)

johnboiles commented 1 year ago

All of these transformations should be possible to do in a quirk right?

TheJulianJES commented 1 year ago

Yeah. The most important part is probably this: https://github.com/Koenkk/zigbee-herdsman-converters/blob/261066095215898c006e7c9c390c677129fae630/lib/xiaomi.js#L380-L382

        elif self.endpoint.device.model == "lumi.sensor_smoke.acn03":
            attribute_names.update({160: "smoke_detected"})

The device would need a LocalDataCluster for smoke

Then, the "smoke_detected" in the Xiaomi message could be used to write to that "fake" LocalDataCluster endpoint (example from another device): https://github.com/zigpy/zha-device-handlers/blob/f6ab87e1c48ccb6db262e8732ca6b63d67fb6252/zhaquirks/xiaomi/__init__.py#L288-L291

This is just for basic functionality (smoke detected or not).

If I have some time, I could try to actually implement this, but I don't have a sensor myself. Can anyone who would test this (I'd guess you have to cause some smoke -- not sure the test button is enough) upvote this comment?

johnboiles commented 1 year ago

I'm definitely in to test this. The other bells and whistles are nice to have someday but getting smoke detection working is certainly the main thing.

I haven't written a quirk before so I asked ChatGPT to take a stab at it and here's what it came up with. Not sure if any of it's useful or not:

ChatGPT's Quirk Attempt ```python from zigpy import types as t from zigpy.profiles import zha from zigpy.quirks import CustomDevice from zigpy.zcl import foundation from zigpy.zcl.clusters import general, measurement, security from zigpy.zcl.clusters.general import Basic, Ota, PowerConfiguration, Identify from zigpy.zcl.clusters.security import IasZone from zigpy.zcl.clusters.measurement import DeviceTemperature from zhaquirks import Bus, LocalDataCluster, ZigbeeCustomCluster, EventableCluster from zhaquirks.const import ( BUTTON_1, BUTTON_2, BUTTON_BOTH, COMMAND, COMMAND_OFF, COMMAND_ON, DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS, MODELS_INFO, OUTPUT_CLUSTERS, PROFILE_ID, STATE, ) from zhaquirks.xiaomi import ( LUMI, XiaomiCustomDevice, XiaomiPowerConfiguration, XiaomiQuickInitDevice, XiaomiSmokeIASCluster, ) AQARA_CLUSTER_ID = 0xFD00 AQARA_MANUFACTURER_CODE = 0x115F class JYGZ01AQ(XiaomiCustomDevice): """Aqara smoke detector custom device.""" signature = { MODELS_INFO: [(LUMI, 'lumi.sensor_smoke.acn03')], ENDPOINTS: { 1: { PROFILE_ID: zha.PROFILE_ID, DEVICE_TYPE: zha.DeviceType.IAS_ZONE, INPUT_CLUSTERS: [ Basic.cluster_id, PowerConfiguration.cluster_id, Identify.cluster_id, IasZone.cluster_id, ], OUTPUT_CLUSTERS: [Ota.cluster_id], }, 2: { PROFILE_ID: zha.PROFILE_ID, DEVICE_TYPE: zha.DeviceType.SMART_PLUG, INPUT_CLUSTERS: [ Basic.cluster_id, PowerConfiguration.cluster_id, Identify.cluster_id, AQARA_CLUSTER_ID, ], OUTPUT_CLUSTERS: [AQARA_CLUSTER_ID, Ota.cluster_id], }, }, } replacement = { ENDPOINTS: { 1: { INPUT_CLUSTERS: [ Basic.cluster_id, XiaomiPowerConfiguration.cluster_id, Identify.cluster_id, XiaomiSmokeIASCluster.cluster_id, DeviceTemperature.cluster_id, AQARA_CLUSTER_ID, ], OUTPUT_CLUSTERS: [Ota.cluster_id], }, 2: { INPUT_CLUSTERS: [ Basic.cluster_id, XiaomiPowerConfiguration.cluster_id, Identify.cluster_id, AQARA_CLUSTER_ID, ], OUTPUT_CLUSTERS: [AQARA_CLUSTER_ID, Ota.cluster_id], }, }, } device_automation_triggers = { (COMMAND_ON, BUTTON_1): {COMMAND: 'click'}, (COMMAND_OFF, BUTTON_1): {COMMAND: 'double_click'}, (COMMAND_ON, BUTTON_2): {COMMAND: 'hold'}, (COMMAND_OFF, BUTTON_2): {COMMAND: 'release'}, (COMMAND_ON, BUTTON_BOTH): {COMMAND: 'triple_click'}, } def __init__(self, *args, **kwargs): """Init method.""" self.battery_size = 8 # CR123a super().__init__(*args, **kwargs) class AQARA_CLUSTER(XiaomiCustomDevice.cluster_class): """Aqara cluster implementation.""" cluster_id = 0xFD00 ep_attribute = 'aqara_cluster' manufacturer_code = 0x115F attributes = { 0x0000: ('smoke', t.uint8_t), 0x0001: ('smoke_density', t.uint8_t), 0x0002: ('selftest', t.uint8_t), 0x0003: ('buzzer', t.uint8_t), 0x0004: ('buzzer_manual_alarm', t.uint8_t), 0x0005: ('buzzer_manual_mute', t.uint8_t), 0x0006: ('heartbeat_indicator', t.uint8_t), 0x0007: ('linkage_alarm', t.uint8_t), 0x0008: ('linkage_alarm_state', t.uint8_t), 0x8002: ('battery', t.uint8_t), 0x8003: ('voltage', t.uint8_t), 0x8004: ('power_outage_count', t.uint16_t), } COMMANDS = { 0x00: ('aqara_alarm', (t.uint8_t,), False), 0x01: ('aqara_density', (t.uint8_t,), False), 0x02: ('aqara_selftest', (t.uint8_t,), False), 0x03: ('aqara_buzzer', (t.uint8_t,), False), 0x04: ('aqara_buzzer_manual', (t.uint8_t,), False), 0x05: ('JYGZ01AQ_heartbeat_indicator', (t.uint8_t,), False), 0x06: ('aqara_linkage_alarm', (t.uint8_t,), False), } def handle_cluster_request(self, hdr, args): """Handle cluster request.""" tsn = hdr.sequence_number cmd = args[0] if cmd not in self.COMMANDS: return super().handle_cluster_request(hdr, args) cmd, args, response_required = self.COMMANDS[cmd] if response_required: self.debug("Received command %s with response", cmd) else: self.debug("Received command %s without response", cmd) return self.endpoint.device.bus.issue_cluster_command( hdr, self.endpoint.endpoint_id, self.cluster_id, cmd, args, manufacturer=self.manufacturer_code, expect_reply=response_required, tsn=tsn, ) ```
TheJulianJES commented 1 year ago

Take a look at: https://github.com/TheJulianJES/zha-device-handlers/tree/tjj/aqara_smoke_detector If the entity doesn't appear (when removing + re-pairing device), try to see if something appears in the logs when the sensor detects smoke.

You either need to switch zhaquirks to debug level or do the following:

_LOGGER.debug(
    "%s - Attribute report. attribute_id: [%s] value: [%s]",

replace debug with warning in the above code (in the Xiaomi __init__.py file. That way, you'll easier see all custom Xiaomi reports (from the smoke sensor)).

To put this in a custom quirk, you have to put the added file and the Xiaomi __init__.py file in your custom quirk folder and then replace this import in the added smoke quirk file:

from zhaquirks.xiaomi import DeviceTemperatureCluster, XiaomiAqaraE1Cluster

with

from . import DeviceTemperatureCluster, XiaomiAqaraE1Cluster

(If I'm correct)


I'll have another look at this later. No clue if this works at all.

johnboiles commented 1 year ago

Ok! I'm away from the smoke alarms today but I'll give this a try tomorrow! To confirm, my custom_zha_quirks dir should look like this:

config/custom_zha_quirks/
∟xiaomi/
  ∟__init__.py
  ∟aqara/
    ∟smoke.py

Using xiaomi/__init__.py (with the from . import DeviceTemperatureCluster, XiaomiAqaraE1Cluster change and the _LOGGER.debug... change) and xiomi/aqara/smoke.py. Is that correct?

TheJulianJES commented 1 year ago

With the . import, both files need to be in the same folder (so no aqara folder).

Rest should be good I think.

johnboiles commented 1 year ago

Ok great, I'll give it a shot tomorrow. Thank you!

johnboiles commented 1 year ago

Nope did not have an effect. I removed the device. Re-paired it. Then made some smoke to set the alarm off. I didn't get any change or event in Home Assistant. The Quirk: xiaomi.smoke.LumiSensorSmokeAcn03 line shows that the quirk was loaded correct?

image

I'm seeing AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' in the logs as an obvious potential problem. But not sure if that'd affect the smoke things too. I'm also not seeing any temperature entity show up which looks like it maybe should from reading your quirk.

What should I try next?

Here are my full logs:

Logs ``` File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:05:47.610 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=161, profile_id=0, cluster_id=, data=Serialized[b'\xa1\xfe\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:05:47.611 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffc, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=161), 0, 162, b'\xa1\xfe\x00') 2023-02-23 10:05:47.614 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'27b321a9622ae94d59947c25aa5592489c4e86ab4fcdc675fdf9477e' 2023-02-23 10:05:47.617 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-23 10:05:47.623 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'73b3a1a9622a15ed60997e' 2023-02-23 10:05:47.623 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:05:47.625 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'30b021a9fb2aea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc47cf527e' 2023-02-23 10:05:47.627 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [, 95] 2023-02-23 10:05:47.630 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'03b3b5a94d2a89be187e' 2023-02-23 10:05:47.630 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:05:47.637 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'13b3b1a9112a10b259a24a25aa5593499c11d8abedce9874fe679d896ee77e' 2023-02-23 10:05:47.637 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:05:47.639 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'24b0a1a9fb2a15847c7e' 2023-02-23 10:05:47.639 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:05:47.640 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received stackStatusHandler: [] 2023-02-23 10:05:47.640 DEBUG (MainThread) [bellows.zigbee.application] Received stackStatusHandler frame with [] 2023-02-23 10:05:47.655 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=95), 255, 0, 0x0000, 255, 255, b'\xa1\xfe\x00'] 2023-02-23 10:05:47.656 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=95), 255, 0, 0x0000, 255, 255, b'\xa1\xfe\x00'] 2023-02-23 10:05:47.656 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: 2023-02-23 10:05:47.656 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received addTransientLinkKey: [] 2023-02-23 10:05:47.678 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setPolicy: (, ) 2023-02-23 10:05:47.681 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'43b121a9012a15b15952fb7e' 2023-02-23 10:05:47.687 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'35b1a1a9012a156a557e' 2023-02-23 10:05:47.687 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:05:47.692 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setPolicy: [] 2023-02-23 10:05:48.632 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'45b1b1a96b2a134ea6944a13aa5592499d4e27f44fa86772eb7e' 2023-02-23 10:05:48.633 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:05:48.636 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=95), 162, , b''] 2023-02-23 10:05:48.637 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=95), 162, , b''] 2023-02-23 10:05:48.640 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,) 2023-02-23 10:05:48.644 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'55b621a9762aeb60977e' 2023-02-23 10:05:48.652 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56b6a1a9762a1594147e' 2023-02-23 10:05:48.652 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:05:48.654 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [] 2023-02-23 10:05:52.353 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'66b6b1a9702a542659893b25ba117d1d9d4e27ab8f5f7e' 2023-02-23 10:05:52.353 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:05:52.356 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 10:05:52.357 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 10:05:52.358 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 10:05:52.359 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:05:52.360 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,) 2023-02-23 10:05:52.368 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'67b721a9212a15af28945a61450193d22a7e' 2023-02-23 10:05:52.376 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'77b7a1a9212aeac28d7e' 2023-02-23 10:05:52.376 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:05:52.377 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'70b421a9412a4aa37d5e917e' 2023-02-23 10:05:52.382 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'00b4a1a9412aad327e' 2023-02-23 10:05:52.383 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:05:52.385 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255] 2023-02-23 10:05:52.387 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-23 10:05:52.627 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'10b4b1a9112a11b259874a25aa5593499c488b6cac5a9874f115221dfc634ea7fb89313b0bfddccf7e' 2023-02-23 10:05:52.627 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:05:52.630 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 172, -57, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 10:05:52.631 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 172, -57, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 10:05:52.632 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=6, profile_id=0, cluster_id=19, data=Serialized[b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'], tx_options=, radius=0, non_member_radius=0, lqi=172, rssi=-57) 2023-02-23 10:05:52.633 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 10:05:52.635 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Device_annce: [0x9441, 54:ef:44:10:00:71:1d:00, 132] 2023-02-23 10:05:52.640 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'20b4b1a9772a14b318004a38db55820d731a2312cb7e' 2023-02-23 10:05:52.640 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:05:52.641 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:52.642 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:52.908 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'30b4b1a9112a15b259964a25aa1593499c498b6cac5a9874fe126389fe1cc97e' 2023-02-23 10:05:52.908 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:05:52.910 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 172, -57, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 10:05:52.910 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 172, -57, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 10:05:52.911 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=7, profile_id=0, cluster_id=2, data=Serialized[b'\xd4\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=172, rssi=-57) 2023-02-23 10:05:52.913 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000] 2023-02-23 10:05:52.913 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000]) 2023-02-23 10:05:53.144 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'40b4b1a96b2a134fa6944a36aa5592499d4e27ad12ce67aa0e7e' 2023-02-23 10:05:53.144 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:05:53.146 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 10:05:53.146 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 10:05:53.146 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 10:05:53.148 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50b4b1a9cf2a15af28945a61450194130c7e' 2023-02-23 10:05:53.148 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:05:53.149 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:53.149 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:53.248 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:05:53.248 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-23 10:05:53.331 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'60b4b1a9cf2a15af28945a614501a6d6837e' 2023-02-23 10:05:53.332 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:05:53.336 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:53.336 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:05:53.433 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70b4b1a9112a11b259a24a25aa5593499c448b6cac5a9874fe13d788fec3397e' 2023-02-23 10:05:53.433 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:05:53.436 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 172, -57, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 10:05:53.437 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 172, -57, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 10:05:53.438 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=10, profile_id=0, cluster_id=54, data=Serialized[b'\xd5\xb4\x01'], tx_options=, radius=0, non_member_radius=0, lqi=172, rssi=-57) 2023-02-23 10:05:53.439 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [180, ] 2023-02-23 10:05:53.917 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'00b4b1a96b2a134ea6944a13aa5592499d4e27a112ce67ecc17e' 2023-02-23 10:05:53.917 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:05:53.921 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 255, , b''] 2023-02-23 10:05:53.922 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 255, , b''] 2023-02-23 10:05:53.922 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 10:05:54.755 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'10b4b1a9112a15b658944a24ab5593499c458b6cac5a9874dfde1f83f97e7db087b8b306a18ca2b5a6bd1bd3354ec6871315c4891bb272994c0602b3d0927e' 2023-02-23 10:05:54.756 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:05:54.764 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=11), 172, -57, 0x9441, 255, 255, b'\x18|\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 10:05:54.765 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=11), 172, -57, 0x9441, 255, 255, b'\x18|\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 10:05:54.766 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=0, data=Serialized[b'\x18|\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'], tx_options=, radius=0, non_member_radius=0, lqi=172, rssi=-57) 2023-02-23 10:05:54.767 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18|\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11' 2023-02-23 10:05:54.768 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=124, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:05:54.771 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-23 10:05:54.772 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received command 0x0A (TSN 124): Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-23 10:05:54.774 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Attribute report received: model='lumi.sensor_smoke.acn03', app_version=17 2023-02-23 10:05:54.795 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-23 10:05:54.800 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 1, 17) params: FOREIGN KEY constraint failed 2023-02-23 10:05:56.112 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:05:56.115 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'02b521a9a52a8d6d7e' 2023-02-23 10:05:56.134 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'21b5a1a9a52a16b22a945a2192559849904e20abeace5b8bedc66389f07e3fa7e8cddd6f8fffc4dbd6d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048240a857e' 2023-02-23 10:05:56.134 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:05:56.135 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 115, 1040, 56, 10, 12, 7, 7, 60, 16, 0, 12, 0, 3, 3, 0, 3, 3, 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-23 10:05:56.136 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:05:56.138 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d33ba21a9fe2a16bbf47e' 2023-02-23 10:05:56.148 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32baa1a9fe2a15b3c151297e' 2023-02-23 10:05:56.148 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:05:56.152 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x98'] 2023-02-23 10:05:56.157 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 152 2023-02-23 10:05:56.158 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 4, MAC_TX_BROADCAST = 2834, MAC_RX_UNICAST = 10118, MAC_TX_UNICAST_SUCCESS = 122, MAC_TX_UNICAST_RETRY = 10, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 9, APS_DATA_TX_BROADCAST = 9, APS_DATA_RX_UNICAST = 156, APS_DATA_TX_UNICAST_SUCCESS = 58, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 3, NEIGHBOR_REMOVED = 3, NEIGHBOR_STALE = 0, JOIN_INDICATION = 3, CHILD_REMOVED = 3, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 152] 2023-02-23 10:06:00.776 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42bab1a9112a15b65854b624ab5593499c429763ac5a9874bada3c988174c8a7aaf3df4e05f3c4f3ccd64824472688fe763d81e975824198440702b0ea51381c0227ba83ea66ed659b25bfe79f57e2d9d4cb15a2f3b048873209187e2f0acfcfdd80087e' 2023-02-23 10:06:00.776 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:00.781 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=12), 176, -56, 0x9441, 255, 255, b'\x1c_\x11}\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:00.782 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=12), 176, -56, 0x9441, 255, 255, b'\x1c_\x11}\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:00.783 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=12, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11}\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=176, rssi=-56) 2023-02-23 10:06:00.786 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11}\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:00.788 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=125, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:00.789 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: XiaomiAqaraE1Cluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:00.790 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 125): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:00.792 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:00.793 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3210, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 18, 'X-attrib-6': 3, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:06:00.796 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:06:00.821 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 64704, 247, b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00') params: FOREIGN KEY constraint failed 2023-02-23 10:06:03.776 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'52bab1a9112a15b65854b624ab5593499c438b6cac5a9874bada3c988274c8a7aaf3df4e05f3c4f3ccd64824472688fe763d81eb75824198440702b0ea51381c0227ba83ea66ed659b25bfe79f57e2d9d4cb15a2f3b048873209187e2f0acfcfdd94857e' 2023-02-23 10:06:03.777 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:03.783 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=13), 172, -57, 0x9441, 255, 255, b'\x1c_\x11~\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:03.783 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=13), 172, -57, 0x9441, 255, 255, b'\x1c_\x11~\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:03.784 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=13, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11~\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=172, rssi=-57) 2023-02-23 10:06:03.788 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11~\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:03.790 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=126, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:03.792 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: XiaomiAqaraE1Cluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:03.794 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 126): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:03.795 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:03.796 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3210, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 18, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:06:03.799 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:06:03.825 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 64704, 247, b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x12\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00') params: FOREIGN KEY constraint failed 2023-02-23 10:06:05.820 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:06:05.822 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-23 10:06:06.160 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:06.162 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'26bb21a9a52a716c7e' 2023-02-23 10:06:06.180 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63bba1a9a52a16b22a94572192559849904e20abeace598bedc66389f07e3fa7e8cddd6f8fffc4dbd6d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824c83b7e' 2023-02-23 10:06:06.181 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:06.185 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 115, 1053, 56, 10, 12, 7, 7, 62, 16, 0, 12, 0, 3, 3, 0, 3, 3, 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-23 10:06:06.188 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:06.191 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'37b821a9fe2a169f847e' 2023-02-23 10:06:06.197 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'74b8a1a9fe2a15b3c1dbde7e' 2023-02-23 10:06:06.197 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:06.199 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x98'] 2023-02-23 10:06:06.201 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 152 2023-02-23 10:06:06.202 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 4, MAC_TX_BROADCAST = 2834, MAC_RX_UNICAST = 10131, MAC_TX_UNICAST_SUCCESS = 122, MAC_TX_UNICAST_RETRY = 10, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 9, APS_DATA_TX_BROADCAST = 9, APS_DATA_RX_UNICAST = 158, APS_DATA_TX_UNICAST_SUCCESS = 58, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 3, NEIGHBOR_REMOVED = 3, NEIGHBOR_STALE = 0, JOIN_INDICATION = 3, CHILD_REMOVED = 3, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 152] 2023-02-23 10:06:12.677 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'04b8b1a9112a15b65854b624ab5593499c40b76bac5a9874f4da3c988374c3a7fbcddc17af7e' 2023-02-23 10:06:12.678 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:12.681 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=14), 144, -64, 0x9441, 255, 255, b'\x1c_\x11\x7f\n\xfc\x00\x10\x00'] 2023-02-23 10:06:12.682 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=14), 144, -64, 0x9441, 255, 255, b'\x1c_\x11\x7f\n\xfc\x00\x10\x00'] 2023-02-23 10:06:12.682 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=14, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11\x7f\n\xfc\x00\x10\x00'], tx_options=, radius=0, non_member_radius=0, lqi=144, rssi=-64) 2023-02-23 10:06:12.685 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11\x7f\n\xfc\x00\x10\x00' 2023-02-23 10:06:12.687 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=127, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:12.689 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: XiaomiAqaraE1Cluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00FC, value=TypeValue(type=Bool, value=))]) 2023-02-23 10:06:12.692 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 127): Report_Attributes(attribute_reports=[Attribute(attrid=0x00FC, value=TypeValue(type=Bool, value=))]) 2023-02-23 10:06:12.694 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00FC= 2023-02-23 10:06:12.714 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 64704, 252, ) params: FOREIGN KEY constraint failed 2023-02-23 10:06:13.095 DEBUG (MainThread) [zigpy.application] Sending 'zdo_leave_req' failed: 2023-02-23 10:06:16.204 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:16.206 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'41b921a9a52aa2b67e' 2023-02-23 10:06:16.224 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'15b9a1a9a52a16b22d94672192559849904e20abeace588bedc66389f07e3fa7e8cddd6f8fffc4dbd6d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482451757e' 2023-02-23 10:06:16.224 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:16.226 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 116, 1069, 56, 10, 12, 7, 7, 63, 16, 0, 12, 0, 3, 3, 0, 3, 3, 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-23 10:06:16.227 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:16.230 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'52be21a9fe2a16d8d87e' 2023-02-23 10:06:16.235 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26bea1a9fe2a15b3c191557e' 2023-02-23 10:06:16.236 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:16.237 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x98'] 2023-02-23 10:06:16.241 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 152 2023-02-23 10:06:16.242 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 4, MAC_TX_BROADCAST = 2835, MAC_RX_UNICAST = 10147, MAC_TX_UNICAST_SUCCESS = 122, MAC_TX_UNICAST_RETRY = 10, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 9, APS_DATA_TX_BROADCAST = 9, APS_DATA_RX_UNICAST = 159, APS_DATA_TX_UNICAST_SUCCESS = 58, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 3, NEIGHBOR_REMOVED = 3, NEIGHBOR_STALE = 0, JOIN_INDICATION = 3, CHILD_REMOVED = 3, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 152] 2023-02-23 10:06:17.783 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36beb5a9772a14b218004a38db55820d731a2387477e' 2023-02-23 10:06:17.784 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:17.789 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'46beb1a9702a542659893b25ba117d1d9e4dd85416447e' 2023-02-23 10:06:17.790 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:17.792 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:17.792 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:17.793 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0xffff] 2023-02-23 10:06:17.794 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0xffff] 2023-02-23 10:06:17.794 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) left the network 2023-02-23 10:06:19.419 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56beb1a9702a542659893b25ba117d1d9d4e27aba2947e' 2023-02-23 10:06:19.419 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:19.422 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 10:06:19.422 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 10:06:19.423 INFO (MainThread) [zigpy.application] New device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 10:06:19.425 DEBUG (MainThread) [zigpy.device] [0x9441] Scheduling initialization 2023-02-23 10:06:19.426 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:19.428 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,) 2023-02-23 10:06:19.429 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'66bf21a9212a15af28945a6145019397bd7e' 2023-02-23 10:06:19.431 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 10:06:19.431 INFO (MainThread) [zigpy.device] [0x9441] Requesting 'Node Descriptor' 2023-02-23 10:06:19.432 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-02-23 10:06:19.433 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xa3 request 2023-02-23 10:06:19.433 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=163, profile_id=0, cluster_id=, data=Serialized[b'\xa3A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:19.434 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:19.436 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'67bfa1a9212aeaf8b47e' 2023-02-23 10:06:19.437 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:19.438 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'77bc21a9412a4aa32a247e' 2023-02-23 10:06:19.442 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255] 2023-02-23 10:06:19.444 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70bca1a9412aea837e' 2023-02-23 10:06:19.444 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:19.446 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'00bd21a92a2a15af28945a61450193da7d5d7e' 2023-02-23 10:06:19.452 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01bda1a92a2a973e7e' 2023-02-23 10:06:19.453 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:19.453 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-23 10:06:19.459 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:19.464 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=163), 164, b'\xa3A\x94') 2023-02-23 10:06:19.466 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d314221a9602a15f3cd944a27aa5592499d4e270849cdc4ca690b4c7e' 2023-02-23 10:06:19.478 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1242a1a9602a15d7477a7e' 2023-02-23 10:06:19.478 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:19.481 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 101] 2023-02-23 10:06:19.688 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2242b1a9112a11b259874a25aa5593499c48e767ac5a9874f115221dfc634ea7fb89313b0bfdd6a07e' 2023-02-23 10:06:19.689 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:19.696 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 192, -52, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 10:06:19.697 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 192, -52, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 10:06:19.697 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=6, profile_id=0, cluster_id=19, data=Serialized[b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:19.698 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 10:06:19.699 DEBUG (MainThread) [zigpy.device] [0x9441] Scheduling initialization 2023-02-23 10:06:19.699 DEBUG (MainThread) [zigpy.device] [0x9441] Canceling old initialize call 2023-02-23 10:06:19.700 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 19: b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84' 2023-02-23 10:06:19.700 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Device_annce: [0x9441, 54:ef:44:10:00:71:1d:00, 132] 2023-02-23 10:06:19.701 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3242b1a9772a14b318004a38db55820d731a2395cd7e' 2023-02-23 10:06:19.701 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:19.705 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 10:06:19.705 INFO (MainThread) [zigpy.device] [0x9441] Requesting 'Node Descriptor' 2023-02-23 10:06:19.706 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-02-23 10:06:19.706 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xa5 request 2023-02-23 10:06:19.707 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=165, profile_id=0, cluster_id=, data=Serialized[b'\xa5A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:19.707 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:19.708 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:19.709 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:19.710 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'244321a92a2a15af28945a614501931b2e7e' 2023-02-23 10:06:19.719 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4343a1a92a2a86907e' 2023-02-23 10:06:19.719 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:19.734 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:19.748 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=165), 166, b'\xa5A\x94') 2023-02-23 10:06:19.750 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'354021a9602a15f3cd944a27aa5592499d4e270e4bcdc2ca692ff17e' 2023-02-23 10:06:19.759 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5440a1a9602a15d461e17e' 2023-02-23 10:06:19.759 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:19.764 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 102] 2023-02-23 10:06:19.975 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6440b1a9112a15b259964a25aa1593499c49e767ac5a9874fe126389fedd0c7e' 2023-02-23 10:06:19.976 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:19.979 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 192, -52, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 10:06:19.979 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 192, -52, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 10:06:19.980 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=7, profile_id=0, cluster_id=2, data=Serialized[b'\xd4\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:19.981 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 2: b'\xd4\x00\x00' 2023-02-23 10:06:19.982 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000] 2023-02-23 10:06:19.982 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000]) 2023-02-23 10:06:20.075 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7440b1a96b2a15f3cd944a27aa5592499d4e27ce49ce67d4e17e' 2023-02-23 10:06:20.076 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:20.079 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=101), 164, , b''] 2023-02-23 10:06:20.080 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=101), 164, , b''] 2023-02-23 10:06:20.080 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 164 2023-02-23 10:06:20.092 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0440b1a9112a15b25996ca25aa1593499c46e767ac5a9874ec6563c8687c7f23b4dca10b8fffebbfd5d26b5d4d7e' 2023-02-23 10:06:20.092 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:20.095 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=8), 192, -52, 0x9441, 255, 255, b'\xa3\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 10:06:20.095 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=8), 192, -52, 0x9441, 255, 255, b'\xa3\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 10:06:20.096 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=8, profile_id=0, cluster_id=32770, data=Serialized[b'\xa3\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:20.097 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\xa3\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00' 2023-02-23 10:06:20.098 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [, 0x9441, NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)] 2023-02-23 10:06:20.100 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_rsp([, 0x9441, NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)]) 2023-02-23 10:06:20.189 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1440b1a96b2a15f3cd944a27aa5592499d4e27cd4bce6780697e' 2023-02-23 10:06:20.190 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:20.196 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=102), 166, , b''] 2023-02-23 10:06:20.197 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=102), 166, , b''] 2023-02-23 10:06:20.201 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2440b1a9112a15b25996ca25aa1593499c47e767ac5a9874ec6363c8687c7f23b4dca10b8fffebbfd5d26b71257e' 2023-02-23 10:06:20.201 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:20.207 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=9), 192, -52, 0x9441, 255, 255, b'\xa5\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 10:06:20.207 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=9), 192, -52, 0x9441, 255, 255, b'\xa5\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 10:06:20.208 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=9, profile_id=0, cluster_id=32770, data=Serialized[b'\xa5\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:20.210 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\xa5\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00' 2023-02-23 10:06:20.224 INFO (MainThread) [zigpy.device] [0x9441] Got Node Descriptor: NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False) 2023-02-23 10:06:20.226 INFO (MainThread) [zigpy.device] [0x9441] Discovering endpoints 2023-02-23 10:06:20.226 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 10:06:20.227 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xa7 request 2023-02-23 10:06:20.227 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=167, profile_id=0, cluster_id=, data=Serialized[b'\xa7A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:20.228 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:20.231 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3440b1a96b2a134fa6944a36aa5592499d4e27ad12ce67a0247e' 2023-02-23 10:06:20.232 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:20.234 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'444121a92a2a15af28945a614501935af17e' 2023-02-23 10:06:20.246 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4541a1a92a2a4ff27e' 2023-02-23 10:06:20.246 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:20.251 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 10:06:20.252 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 10:06:20.252 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 10:06:20.252 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:20.267 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=167), 168, b'\xa7A\x94') 2023-02-23 10:06:20.269 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'554621a9602a15f3cd944a20aa5592499d4e270c45cdc0ca699fed7e' 2023-02-23 10:06:20.279 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5646a1a9602a15daaeac7e' 2023-02-23 10:06:20.280 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:20.282 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 104] 2023-02-23 10:06:20.307 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6646b1a9cf2a15af28945a61450194c7c27e' 2023-02-23 10:06:20.307 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:20.310 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:20.310 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:20.583 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7646b1a96b2a15f3cd944a20aa5592499d4e27c345ce6726aa7e' 2023-02-23 10:06:20.584 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:20.590 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=104), 168, , b''] 2023-02-23 10:06:20.591 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=104), 168, , b''] 2023-02-23 10:06:20.597 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0646b1a9112a15b25991ca25aa1593499c45e366ac5a9874fb6163c8687f3ea592577e' 2023-02-23 10:06:20.597 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:20.599 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=11), 196, -51, 0x9441, 255, 255, b'\xa7\x00A\x94\x01\x01'] 2023-02-23 10:06:20.599 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=11), 196, -51, 0x9441, 255, 255, b'\xa7\x00A\x94\x01\x01'] 2023-02-23 10:06:20.600 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=11, profile_id=0, cluster_id=32773, data=Serialized[b'\xa7\x00A\x94\x01\x01'], tx_options=, radius=0, non_member_radius=0, lqi=196, rssi=-51) 2023-02-23 10:06:20.601 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32773: b'\xa7\x00A\x94\x01\x01' 2023-02-23 10:06:20.604 INFO (MainThread) [zigpy.device] [0x9441] Discovered endpoints: [1] 2023-02-23 10:06:20.605 INFO (MainThread) [zigpy.device] [0x9441] Initializing endpoints [>] 2023-02-23 10:06:20.605 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovering endpoint information 2023-02-23 10:06:20.606 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 10:06:20.606 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xa9 request 2023-02-23 10:06:20.606 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=169, profile_id=0, cluster_id=, data=Serialized[b'\xa9A\x94\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:20.607 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:20.608 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'614721a92a2a15af28945a61450193f9cc7e' 2023-02-23 10:06:20.621 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1747a1a92a2a79a37e' 2023-02-23 10:06:20.622 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:20.626 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:20.631 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=169), 170, b'\xa9A\x94\x01') 2023-02-23 10:06:20.638 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'724421a9602a15f3cd944a21aa5592499d4e270247caceca69c7d4df7e' 2023-02-23 10:06:20.647 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2044a1a9602a15d8deca7e' 2023-02-23 10:06:20.647 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:20.658 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 106] 2023-02-23 10:06:20.701 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3044b1a9cf2a15af28945a614501a695f97e' 2023-02-23 10:06:20.702 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:20.705 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:20.705 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 10:06:20.795 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4044b1a96b2a15f3cd944a21aa5592499d4e27c147ce6763e67e' 2023-02-23 10:06:20.795 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:20.800 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=106), 170, , b''] 2023-02-23 10:06:20.800 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=106), 170, , b''] 2023-02-23 10:06:20.808 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5044b1a9112a15b25990ca25aa1593499c43e767ac5a9874ea6f63c8686c3ea3eacfda6e8bffc7dbd0d1698d4622b0ec7431927e' 2023-02-23 10:06:20.808 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:20.811 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=13), 192, -52, 0x9441, 255, 255, b'\xa9\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-23 10:06:20.812 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=13), 192, -52, 0x9441, 255, 255, b'\xa9\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-23 10:06:20.813 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=13, profile_id=0, cluster_id=32772, data=Serialized[b'\xa9\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:20.814 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32772: b'\xa9\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00' 2023-02-23 10:06:20.825 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[0, 1280, 3, 1], output_clusters=[25]) 2023-02-23 10:06:20.827 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=171, command_id=, *direction=, *is_reply=False) 2023-02-23 10:06:20.828 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5]) 2023-02-23 10:06:20.829 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xab request 2023-02-23 10:06:20.830 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=171, profile_id=260, cluster_id=0, data=Serialized[b'\x00\xab\x00\x04\x00\x05\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:20.831 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:20.832 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'064521a92a2a15af28945a61450193c0847e' 2023-02-23 10:06:20.838 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6145a1a92a2af55d7e' 2023-02-23 10:06:20.839 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:20.843 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:20.854 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=171), 172, b'\x00\xab\x00\x04\x00\x05\x00') 2023-02-23 10:06:20.858 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'174a21a9602a15f3cd904b25aa5493499d4e270041c96720fdc2638cfc817f7e' 2023-02-23 10:06:20.867 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'724aa1a9602a15dec8467e' 2023-02-23 10:06:20.867 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:20.870 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 108] 2023-02-23 10:06:20.901 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'024ab1a9112a11b259a24a25aa5593499c40e767ac5a9874fe13d788fe9fa87e' 2023-02-23 10:06:20.901 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:20.902 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 192, -52, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 10:06:20.902 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 192, -52, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 10:06:20.903 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=14, profile_id=0, cluster_id=54, data=Serialized[b'\xd5\xb4\x01'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:20.904 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [180, ] 2023-02-23 10:06:21.358 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'124ab1a96b2a134ea6944a13aa5592499d4e27a512ce6746267e' 2023-02-23 10:06:21.358 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:21.361 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 255, , b''] 2023-02-23 10:06:21.362 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 255, , b''] 2023-02-23 10:06:21.362 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 10:06:22.232 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'224ab1a9112a15b658944a24ab5593499c41e767ac5a9874dfdea383f97e7db087b8b306a18ca2b5a6bd1bd3354ec6871315c4891bb272994c0602b3fa9d7e' 2023-02-23 10:06:22.233 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:22.238 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=15), 192, -52, 0x9441, 255, 255, b'\x18\xc0\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 10:06:22.238 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=15), 192, -52, 0x9441, 255, 255, b'\x18\xc0\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 10:06:22.239 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=15, profile_id=260, cluster_id=0, data=Serialized[b'\x18\xc0\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:22.241 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18\xc0\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11' 2023-02-23 10:06:22.243 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=192, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:22.246 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-23 10:06:22.247 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received command 0x0A (TSN 192): Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-23 10:06:22.249 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Attribute report received: model='lumi.sensor_smoke.acn03', app_version=17 2023-02-23 10:06:22.250 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'324ab1a96b2a15f3cd904b25aa5493499d4e27c741ce67bead7e' 2023-02-23 10:06:22.250 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:22.253 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=108), 172, , b''] 2023-02-23 10:06:22.253 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=108), 172, , b''] 2023-02-23 10:06:22.266 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'424ab1a9112a15b658944a24ab1593499c5ee767ac5a9874d5dec888f87e3fe5ef818b22c6fac7db97c505f92b4a879f1355d68507dd32f5234d769f8113562c3d0545427e' 2023-02-23 10:06:22.266 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:22.271 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-23 10:06:22.273 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=16), 192, -52, 0x9441, 255, 255, b'\x18\xab\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-23 10:06:22.274 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=16), 192, -52, 0x9441, 255, 255, b'\x18\xab\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-23 10:06:22.274 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=16, profile_id=260, cluster_id=0, data=Serialized[b'\x18\xab\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:22.275 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18\xab\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03' 2023-02-23 10:06:22.276 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=171, command_id=1, *direction=, *is_reply=True) 2023-02-23 10:06:22.280 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=CharacterString, value='LUMI')), ReadAttributeRecord(attrid=0x0005, status=, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03'))]) 2023-02-23 10:06:22.301 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 1, 17) params: FOREIGN KEY constraint failed 2023-02-23 10:06:22.303 INFO (MainThread) [zigpy.device] [0x9441] Read model 'lumi.sensor_smoke.acn03' and manufacturer 'LUMI' from > 2023-02-23 10:06:22.304 INFO (MainThread) [zigpy.device] [0x9441] Discovered basic device information for 2023-02-23 10:06:22.304 DEBUG (MainThread) [zigpy.application] Device is initialized 2023-02-23 10:06:22.305 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for LUMI lumi.sensor_smoke.acn03 (54:ef:44:10:00:71:1d:00) 2023-02-23 10:06:22.306 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-02-23 10:06:22.306 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for 54:ef:44:10:00:71:1d:00: 2023-02-23 10:06:22.320 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'IASZone' using ['ias_zone'] 2023-02-23 10:06:22.322 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'button' component -> 'ZHAIdentifyButton' using ['identify'] 2023-02-23 10:06:22.322 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'DeviceTemperature' using ['device_temperature'] 2023-02-23 10:06:22.324 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic'] 2023-02-23 10:06:22.324 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic'] 2023-02-23 10:06:22.329 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 entering async_device_initialized - is_new_join: True 2023-02-23 10:06:22.329 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 has joined the ZHA zigbee network 2023-02-23 10:06:22.330 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started configuration 2023-02-23 10:06:22.331 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_configure' stage succeeded 2023-02-23 10:06:22.343 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed 2023-02-23 10:06:22.347 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: started IASZoneChannel configuration 2023-02-23 10:06:22.348 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS 2023-02-23 10:06:22.350 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: wrote cie_addr: 38:5c:fb:ff:fe:e3:73:71 to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=)] 2023-02-23 10:06:22.351 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Sending pro-active IAS enroll response 2023-02-23 10:06:22.352 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished IASZoneChannel configuration 2023-02-23 10:06:22.353 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: Configuring cluster attribute reporting 2023-02-23 10:06:22.353 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel configuration 2023-02-23 10:06:22.354 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: Configuring cluster attribute reporting 2023-02-23 10:06:22.354 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel configuration 2023-02-23 10:06:22.354 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Performing cluster binding 2023-02-23 10:06:22.355 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: bound 'device_temperature' cluster: Status.SUCCESS 2023-02-23 10:06:22.355 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Configuring cluster attribute reporting 2023-02-23 10:06:22.356 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Successfully configured reporting for '{'current_temperature': (30, 900, 50)}' on 'device_temperature' cluster: [ConfigureReportingResponseRecord(status=)] 2023-02-23 10:06:22.356 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel configuration 2023-02-23 10:06:22.357 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing cluster binding 2023-02-23 10:06:22.358 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xad request 2023-02-23 10:06:22.358 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=173, profile_id=0, cluster_id=, data=Serialized[b'\xad\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:22.359 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:22.360 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'254b21a92a2a15af28945a614501935eb97e' 2023-02-23 10:06:22.363 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel configuration 2023-02-23 10:06:22.367 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'534ba1a92a2a9e397e' 2023-02-23 10:06:22.367 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:22.376 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=175, command_id=0, *direction=, *is_reply=False) 2023-02-23 10:06:22.378 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request: enroll_response(enroll_response_code=, zone_id=0) 2023-02-23 10:06:22.379 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xaf request 2023-02-23 10:06:22.379 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=175, profile_id=260, cluster_id=1280, data=Serialized[b'\x01\xaf\x00\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:22.381 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:22.415 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-23 10:06:22.420 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=173), 174, b'\xad\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01') 2023-02-23 10:06:22.423 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'364821a9602a15f3cd944a04aa5592499d4e270643d8ca8be0b76399b8916ba62b31dd1efc1c39242e8e518dde4d7e' 2023-02-23 10:06:22.438 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6448a1a9602a15df05fb7e' 2023-02-23 10:06:22.439 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:22.458 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 109] 2023-02-23 10:06:22.467 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:22.469 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'474921a92a2a15af28945a6145019352bf7e' 2023-02-23 10:06:22.477 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7549a1a92a2a62537e' 2023-02-23 10:06:22.477 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:22.479 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:22.482 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=175), 176, b'\x01\xaf\x00\x00\x00') 2023-02-23 10:06:22.491 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'504e21a9602a15f3cd904b25af5493499d4e27045dcb6624fdc66326887e' 2023-02-23 10:06:22.501 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'064ea1a9602a15dc96a37e' 2023-02-23 10:06:22.501 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:22.508 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 110] 2023-02-23 10:06:23.470 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'164eb1a96b2a15f3cd944a04aa5592499d4e27c643ce67b4ac7e' 2023-02-23 10:06:23.471 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:23.475 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=109), 174, , b''] 2023-02-23 10:06:23.475 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=109), 174, , b''] 2023-02-23 10:06:23.485 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'264eb1a9112a15b259b5ca25aa1593499c5fe767ac5a9874ff6b638b126a7e' 2023-02-23 10:06:23.485 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:23.488 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 192, -52, 0x9441, 255, 255, b'\xad\x00'] 2023-02-23 10:06:23.490 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 192, -52, 0x9441, 255, 255, b'\xad\x00'] 2023-02-23 10:06:23.491 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=17, profile_id=0, cluster_id=32801, data=Serialized[b'\xad\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:23.503 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: bound 'manufacturer_specific' cluster: Status.SUCCESS 2023-02-23 10:06:23.504 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Configuring cluster attribute reporting 2023-02-23 10:06:23.504 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel configuration 2023-02-23 10:06:23.513 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_configure' stage succeeded 2023-02-23 10:06:23.514 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_configure' stage succeeded 2023-02-23 10:06:23.514 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_configure' stage succeeded 2023-02-23 10:06:23.515 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_configure' stage succeeded 2023-02-23 10:06:23.515 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_configure' stage succeeded 2023-02-23 10:06:23.515 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_configure' stage succeeded 2023-02-23 10:06:23.522 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed configuration 2023-02-23 10:06:23.524 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=177, command_id=64, *direction=, *is_reply=False) 2023-02-23 10:06:23.525 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request: trigger_effect(effect_id=, effect_variant=) 2023-02-23 10:06:23.526 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0xb1 request 2023-02-23 10:06:23.527 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=177, profile_id=260, cluster_id=3, data=Serialized[b'\x01\xb1@\x02\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 10:06:23.528 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 10:06:23.530 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'634f21a92a2a15af28945a614501935f7d5e7e' 2023-02-23 10:06:23.539 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'374fa1a92a2a4e867e' 2023-02-23 10:06:23.540 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:23.544 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 10:06:23.550 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=177), 178, b'\x01\xb1@\x02\x00') 2023-02-23 10:06:23.553 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'744c21a9602a15f3cd904b26aa5493499d4e277d3a5fcb663abdc4636b067e' 2023-02-23 10:06:23.562 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'404ca1a9602a15dd907a7e' 2023-02-23 10:06:23.563 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:23.565 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 111] 2023-02-23 10:06:23.687 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'504cb1a96b2a15f3cd904b25af5493499d4e27c55dce67fb1a7e' 2023-02-23 10:06:23.687 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:23.690 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=110), 176, , b''] 2023-02-23 10:06:23.691 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=110), 176, , b''] 2023-02-23 10:06:24.894 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'604cb1a96b2a15f3cd904b26aa5493499d4e27c45fce673fc57e' 2023-02-23 10:06:24.894 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:24.896 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=111), 178, , b''] 2023-02-23 10:06:24.897 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=111), 178, , b''] 2023-02-23 10:06:24.904 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'704cb1a9112a15b658974a24ab1593499c5ce767ac5a9874f8ded282bc7e3dfbae7e' 2023-02-23 10:06:24.904 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:24.907 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=18), 192, -52, 0x9441, 255, 255, b'\x18\xb1\x0b@\x00'] 2023-02-23 10:06:24.908 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=18), 192, -52, 0x9441, 255, 255, b'\x18\xb1\x0b@\x00'] 2023-02-23 10:06:24.908 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=18, profile_id=260, cluster_id=3, data=Serialized[b'\x18\xb1\x0b@\x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:24.909 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Received ZCL frame: b'\x18\xb1\x0b@\x00' 2023-02-23 10:06:24.910 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=177, command_id=11, *direction=, *is_reply=True) 2023-02-23 10:06:24.911 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=64, status=) 2023-02-23 10:06:24.918 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: executed 'trigger_effect' command with args: '()' kwargs: '{'effect_id': , 'effect_variant': }' result: Default_Response(command_id=64, status=) 2023-02-23 10:06:24.919 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started initialization 2023-02-23 10:06:24.919 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_initialize' stage succeeded 2023-02-23 10:06:24.927 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing channel: from_cache: False 2023-02-23 10:06:24.928 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing cached channel attributes: ['zone_status', 'zone_type'] 2023-02-23 10:06:24.929 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_status', 'zone_type'] 2023-02-23 10:06:24.930 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing uncached channel attributes: ['zone_state'] - from cache[False] 2023-02-23 10:06:24.930 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_state'] 2023-02-23 10:06:24.931 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished channel initialization 2023-02-23 10:06:24.932 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: initializing channel: from_cache: False 2023-02-23 10:06:24.932 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel initialization 2023-02-23 10:06:24.932 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: initializing channel: from_cache: False 2023-02-23 10:06:24.933 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel initialization 2023-02-23 10:06:24.933 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing channel: from_cache: False 2023-02-23 10:06:24.933 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing uncached channel attributes: ['current_temperature'] - from cache[False] 2023-02-23 10:06:24.934 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Reading attributes in chunks: ['current_temperature'] 2023-02-23 10:06:24.934 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel initialization 2023-02-23 10:06:24.935 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: initializing channel: from_cache: False 2023-02-23 10:06:24.935 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing channel specific initialization: [] 2023-02-23 10:06:24.935 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel initialization 2023-02-23 10:06:24.936 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: initializing channel: from_cache: False 2023-02-23 10:06:24.936 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel initialization 2023-02-23 10:06:24.943 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.944 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.944 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.945 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.945 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.945 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_initialize' stage succeeded 2023-02-23 10:06:24.962 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): power source: Mains 2023-02-23 10:06:24.963 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed initialization 2023-02-23 10:06:25.052 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:71:1d:00, 1, 2, 0) params: FOREIGN KEY constraint failed 2023-02-23 10:06:26.244 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:26.246 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'004d21a9a52a3b567e' 2023-02-23 10:06:26.263 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'014da1a9a52a11b22f941221fa559f49904e2eabe4ce2f8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482435f47e' 2023-02-23 10:06:26.264 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:26.266 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 118, 1112, 80, 13, 12, 9, 9, 72, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:06:26.270 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:26.274 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d315221a9fe2a165d6d7e' 2023-02-23 10:06:26.285 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1252a1a9fe2a15b3c088177e' 2023-02-23 10:06:26.285 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:26.290 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:06:26.294 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:06:26.294 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2837, MAC_RX_UNICAST = 10190, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 168, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:06:36.296 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:36.299 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'225321a9a52a4eec7e' 2023-02-23 10:06:36.317 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2353a1a9a52a11b22e942921fa559f49904e2eabe4ce2f8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048247c6c7e' 2023-02-23 10:06:36.317 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:06:36.318 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 119, 1123, 80, 13, 12, 9, 9, 72, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:06:36.323 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:36.324 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'335021a9fe2a16d8387e' 2023-02-23 10:06:36.331 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3450a1a9fe2a15b3c0fac57e' 2023-02-23 10:06:36.331 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:06:36.332 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:06:36.338 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:06:36.338 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2838, MAC_RX_UNICAST = 10201, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 168, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:06:46.340 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:46.343 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'445121a9a52ad8967e' 2023-02-23 10:06:46.360 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4551a1a9a52a11b221942521fa559f49904e2eabe4ce2f8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824198f7e' 2023-02-23 10:06:46.361 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:06:46.365 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 120, 1135, 80, 13, 12, 9, 9, 72, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:06:46.368 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:46.371 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'555621a9fe2a1647e67e' 2023-02-23 10:06:46.378 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5656a1a9fe2a15b3c0444c7e' 2023-02-23 10:06:46.379 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:06:46.380 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:06:46.385 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:06:46.385 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2839, MAC_RX_UNICAST = 10213, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 168, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:06:53.171 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6656b1a9112a15b65854b624ab5593499c5de767ac5a9874bada3c983d74c8a7aaf3df4e05f3c4f3ccd64824472688ff763d81e075824198440702b0ea51381c0227ba83ea66ed659b25bfe79f57e2d9d4cb15a2f3b048873209187e2f0acfcfddcaac7e' 2023-02-23 10:06:53.171 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:06:53.174 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=19), 192, -52, 0x9441, 255, 255, b'\x1c_\x11\xc1\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:53.174 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=19), 192, -52, 0x9441, 255, 255, b'\x1c_\x11\xc1\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:53.175 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=19, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11\xc1\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:53.179 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11\xc1\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:53.181 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=193, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:53.183 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: XiaomiAqaraE1Cluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:53.185 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 193): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:53.187 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\n\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:53.188 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3210, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 19, 'X-attrib-6': 10, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:06:53.191 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:06:56.170 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7656b1a9112a15b65854b624ab5593499c5ae767ac5a9874bada3c983e74c8a7aaf3df4e05f3c4f3ccd64824472688ff763d81eb75824198440702b0ea51381c0227ba83ea66ed659b25bfe79f57e2d9d4cb15a2f3b048873209187e2f0acfcfdd6bed7e' 2023-02-23 10:06:56.171 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:06:56.174 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=20), 192, -52, 0x9441, 255, 255, b'\x1c_\x11\xc2\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:56.174 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=20), 192, -52, 0x9441, 255, 255, b'\x1c_\x11\xc2\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-23 10:06:56.175 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=20, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11\xc2\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-23 10:06:56.178 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11\xc2\n\xf7\x00A>\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:56.180 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=194, command_id=10, *direction=, *is_reply=True) 2023-02-23 10:06:56.183 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: XiaomiAqaraE1Cluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:56.184 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 194): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-23 10:06:56.185 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\x8a\x0c\x03(\x19\x04!\xa8\x01\x05!\x13\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-23 10:06:56.186 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3210, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 19, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:06:56.189 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:06:56.387 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:06:56.390 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'605721a9a52a26ba7e' 2023-02-23 10:06:56.407 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0757a1a9a52a11b221943621fa559f49904e2eabe4ce2d8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482421f37e' 2023-02-23 10:06:56.408 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 10:06:56.410 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 120, 1148, 80, 13, 12, 9, 9, 74, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:06:56.413 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:06:56.416 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'715421a9fe2a1663967e' 2023-02-23 10:06:56.425 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1054a1a9fe2a15b3c0cebb7e' 2023-02-23 10:06:56.425 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 10:06:56.427 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:06:56.432 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:06:56.433 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2839, MAC_RX_UNICAST = 10226, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 170, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:06:57.249 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:06:57.250 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-23 10:07:05.821 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:07:05.822 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-23 10:07:06.436 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:07:06.439 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'025521a9a52ab6617e' 2023-02-23 10:07:06.456 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2155a1a9a52a11b22094cd21fa559f49904e2eabe4ce2d8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048241fd37e' 2023-02-23 10:07:06.456 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 10:07:06.459 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 121, 1159, 80, 13, 12, 9, 9, 74, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:07:06.461 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:07:06.463 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d335a21a9fe2a1630cc7e' 2023-02-23 10:07:06.469 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'325aa1a9fe2a15b3c031317e' 2023-02-23 10:07:06.470 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 10:07:06.475 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:07:06.479 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:07:06.479 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2840, MAC_RX_UNICAST = 10237, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 170, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:07:16.481 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:07:16.484 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'245b21a9a52ac1207e' 2023-02-23 10:07:16.502 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'435ba1a9a52a11b22094de21fa559f49904e2eabe4ce2d8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048242f277e' 2023-02-23 10:07:16.502 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 10:07:16.504 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 121, 1172, 80, 13, 12, 9, 9, 74, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:07:16.505 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:07:16.507 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'355821a9fe2a16745f7e' 2023-02-23 10:07:16.513 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5458a1a9fe2a15b3c01c3a7e' 2023-02-23 10:07:16.513 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 10:07:16.516 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:07:16.517 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:07:16.517 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2840, MAC_RX_UNICAST = 10250, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 170, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:07:23.318 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:07:23.319 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-23 10:07:26.520 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 10:07:26.523 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'465921a9a52a51fb7e' 2023-02-23 10:07:26.540 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6559a1a9a52a11b22394d521fa559f49904e2eabe4ce2d8be5c66389f07e3fa7efcdda6f8fffc3dbd1d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824d11d7e' 2023-02-23 10:07:26.540 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:07:26.543 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[4, 122, 1183, 80, 13, 12, 9, 9, 74, 24, 0, 12, 0, 4, 4, 0, 4, 4, 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-23 10:07:26.546 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 10:07:26.549 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'575e21a9fe2a162a477e' 2023-02-23 10:07:26.555 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'765ea1a9fe2a15b3c0fd6a7e' 2023-02-23 10:07:26.556 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 10:07:26.558 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:07:26.561 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:07:26.561 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 5, MAC_TX_BROADCAST = 2841, MAC_RX_UNICAST = 10261, MAC_TX_UNICAST_SUCCESS = 146, MAC_TX_UNICAST_RETRY = 13, MAC_TX_UNICAST_FAILED = 18, APS_DATA_RX_BROADCAST = 11, APS_DATA_TX_BROADCAST = 11, APS_DATA_RX_UNICAST = 170, APS_DATA_TX_UNICAST_SUCCESS = 66, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 18, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 4, NEIGHBOR_REMOVED = 4, NEIGHBOR_STALE = 0, JOIN_INDICATION = 4, CHILD_REMOVED = 4, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] ```
johnboiles commented 1 year ago

I also triggered the smoke alarm with the logs open. I didn't see a log pop up when the alarm was triggered -- or at least it popped up kinda late. There were some attributes logged:

Logs ``` 2023-02-23 10:13:13.689 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,) 2023-02-23 10:13:13.694 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'762421a9762aeb93077e' 2023-02-23 10:13:13.701 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6024a1a9762a1529587e' 2023-02-23 10:13:13.701 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 10:13:13.705 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [] 2023-02-23 10:15:18.916 ERROR (MainThread) [custom_components.ultimaker.sensor] Timeout error occurred while polling ultimaker printer using url http://192.168.2.60/api/v1/printer 2023-02-23 10:15:18.920 ERROR (MainThread) [custom_components.ultimaker.sensor] Cannot parse data received from Ultimaker printer local variable 'response' referenced before assignment 2023-02-23 10:15:30.571 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3214, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 19, 'X-attrib-6': 6, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, '0xff01-161': 4, '0xff01-162': 0, '0xff01-163': 1, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:15:30.575 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' 2023-02-23 10:15:54.961 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3214, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 19, 'X-attrib-6': 4, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, '0xff01-161': 1, '0xff01-162': 0, '0xff01-163': 1, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 10:15:54.965 ERROR (MainThread) [bellows.ezsp] Exception running handler Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 351, in handle_callback handler(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 470, in ezsp_callback_handler self._handle_frame(*args) File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 515, in _handle_frame self.packet_received( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 873, in packet_received self.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 379, in handle_message return sender.handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 370, in handle_message self.endpoints[src_ep].handle_message( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 224, in handle_message handler(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 377, in handle_message self.handle_cluster_general_request(hdr, args, dst_addressing=dst_addressing) File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 423, in handle_cluster_general_request self._update_attribute(attr.attrid, value) File "/config/custom_zha_quirks/xiaomi/__init__.py", line 258, in _update_attribute self.endpoint.device.battery_bus.listener_event( AttributeError: 'LumiSensorSmokeAcn03' object has no attribute 'battery_bus' ```

Then after resetting the device I did see 'smoke': 0:

2023-02-23 10:16:44.266 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3195, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 20, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}]

So I guess that's the thing that needs to be hooked up to a HA entity.

TheJulianJES commented 1 year ago

Hmm, I pushed another commit to add the battery_bus for now.

I'd have expected to have 'smoke': 1 when there's smoke, but that doesn't look like it's the case? Edit: Nvm, it's the case with the new logs you provided. That's good.

Can you try again with the added commit for the battery bus? (https://github.com/TheJulianJES/zha-device-handlers/commit/c805d1cc05788bce8002df370ee23b7b5d25051d) (I've also created a draft PR from that branch: https://github.com/zigpy/zha-device-handlers/pull/2219)

johnboiles commented 1 year ago

That fixes the battery_bus error! No change in smoke behavior though. But strangely even when I trigger the smoke alarm I'm not getting any logs.

I'm literally right next to my Home Assistant Yellow making smoke in the server closet so it shouldn't be a signal strength thing :) Home assistant shows it last heard from the device the same minute I made smoke (~10:45a), but yet I'm not seeing updates in the logs from that time.

image
Logs ``` 2023-02-23 10:31:44.668 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-23 10:31:44.672 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-23 10:31:44.673 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 2, MAC_TX_BROADCAST = 28, MAC_RX_UNICAST = 257, MAC_TX_UNICAST_SUCCESS = 33, MAC_TX_UNICAST_RETRY = 8, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 24, APS_DATA_TX_UNICAST_SUCCESS = 11, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 0, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-23 10:31:52.469 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-23 10:31:52.470 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False ```

~Edit: My bad, when I pulled in your new smoke.py changes I reverted the logging oops. Will test again~ Edit edit: Nevermind the logging is in __init__.py which I didn't change. Strange I'm not seeing any Attribute report. attribute_id when I trigger the alarm

TheJulianJES commented 1 year ago

Strange I'm not seeing any Attribute report. attribute_id when I trigger the alarm

Did you change the import in the smoke.py file again? (import + log change needed for now) (so: from zhaquirks.xiaomi -> from .)

johnboiles commented 1 year ago

Good catch I did not. I need to probably pull these files into git so i'm not forgetting manual changes.

johnboiles commented 1 year ago

Also. This should be enough to enable debug logging for quirks in general right?

logger:
  default: info
  logs:
    zhaquirks: debug
    custom_zha_quirks: debug
TheJulianJES commented 1 year ago

zhaquirks: debug will put all official quirks into debug logger mode, yes. For the custom quirks, it depends on the folder structure. Looking at your logs, it looks like the logger is called xiaomi:

WARNING (MainThread) [xiaomi]

So xiaomi: debug would change that logger to debug. I guess you have xiaomi -> smoke folder -> both files?

(The import in smoke.py still needs to be changed to use the custom quirk __init__.py file as long as it's a custom quirk.) (Would be great if you could test the smoke sensor with the changed import again.)

johnboiles commented 1 year ago

I have both files in a dir named xiaomi

config/custom_zha_quirks/
∟xiaomi/
  ∟__init__.py
  ∟smoke.py

So I would do this?

logger:
  default: info
  logs:
    zhaquirks: debug
    custom_zha_quirks: debug
    xiaomi: debug
johnboiles commented 1 year ago

Ok changers are made and I've restarted HA and re-paired the detector. Here are the logs from pairing:

Logs during discovery ``` 2023-02-23 11:20:20.296 INFO (SyncWorker_1) [homeassistant.loader] Loaded iqvia from homeassistant.components.iqvia 2023-02-23 11:20:20.298 INFO (SyncWorker_1) [homeassistant.loader] Loaded hisense_aehw4a1 from homeassistant.components.hisense_aehw4a1 2023-02-23 11:20:20.299 INFO (SyncWorker_1) [homeassistant.loader] Loaded solaredge from homeassistant.components.solaredge 2023-02-23 11:20:20.300 INFO (SyncWorker_1) [homeassistant.loader] Loaded mikrotik from homeassistant.components.mikrotik 2023-02-23 11:20:20.302 INFO (SyncWorker_1) [homeassistant.loader] Loaded samsungtv from homeassistant.components.samsungtv 2023-02-23 11:20:44.372 INFO (MainThread) [homeassistant.components.zha.api] Removing node 54:ef:44:10:00:71:1d:00 2023-02-23 11:20:44.375 INFO (MainThread) [zigpy.application] Removing device 0x9441 (54:ef:44:10:00:71:1d:00) 2023-02-23 11:24:47.807 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=11, profile_id=0, cluster_id=, data=Serialized[b'\x0b\xfe\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:47.810 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffc, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=11), 0, 12, b'\x0b\xfe\x00') 2023-02-23 11:24:47.813 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'229321a9622ae94d59947c25aa5592489c4e2cabe1cd6c75fd93747e' 2023-02-23 11:24:47.817 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-23 11:24:47.825 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2393a1a9622a15f446137e' 2023-02-23 11:24:47.825 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:47.828 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'339021a9fb2aea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc473b4c7e' 2023-02-23 11:24:47.830 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [, 70] 2023-02-23 11:24:47.831 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3393b5a94d2a89d29d7e' 2023-02-23 11:24:47.832 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:47.834 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4393b1a9112a10b259a24a25aa5593499c08d8abedce9874fecd9d896ae97e' 2023-02-23 11:24:47.834 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:47.839 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received stackStatusHandler: [] 2023-02-23 11:24:47.840 DEBUG (MainThread) [bellows.zigbee.application] Received stackStatusHandler frame with [] 2023-02-23 11:24:47.841 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=70), 255, 0, 0x0000, 255, 255, b'\x0b\xfe\x00'] 2023-02-23 11:24:47.841 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=70), 255, 0, 0x0000, 255, 255, b'\x0b\xfe\x00'] 2023-02-23 11:24:47.842 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: 2023-02-23 11:24:47.847 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5490a1a9fb2a1535157e' 2023-02-23 11:24:47.848 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:47.850 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received addTransientLinkKey: [] 2023-02-23 11:24:47.855 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setPolicy: (, ) 2023-02-23 11:24:47.859 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'469121a9012a15b1595e5f7e' 2023-02-23 11:24:47.867 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6591a1a9012a15b5ca7e' 2023-02-23 11:24:47.867 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:47.869 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setPolicy: [] 2023-02-23 11:24:48.453 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 11:24:48.456 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'579621a9a52a589e7e' 2023-02-23 11:24:48.474 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7696a1a9a52a15b268942c25ab5592499c4e24abefce618bfec66389fc7e3fa7eacdde6f8bffc7dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482476e37e' 2023-02-23 11:24:48.474 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:48.480 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[0, 49, 102, 1, 0, 0, 3, 2, 6, 3, 0, 0, 0, 1, 0, 4, 0, 1, 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-23 11:24:48.485 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 11:24:48.488 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'609721a9fe2a169c5c7e' 2023-02-23 11:24:48.494 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0797a1a9fe2a15b3cf1e257e' 2023-02-23 11:24:48.495 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:24:48.505 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x96'] 2023-02-23 11:24:48.511 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 150 2023-02-23 11:24:48.511 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 0, MAC_TX_BROADCAST = 49, MAC_RX_UNICAST = 102, MAC_TX_UNICAST_SUCCESS = 1, MAC_TX_UNICAST_RETRY = 0, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 3, APS_DATA_TX_BROADCAST = 2, APS_DATA_RX_UNICAST = 6, APS_DATA_TX_UNICAST_SUCCESS = 3, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 0, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 1, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 4, JOIN_INDICATION = 0, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 150] 2023-02-23 11:24:48.828 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1797b1a96b2a134ea6944a13aa5592499d4e27ede1ce67b0ce7e' 2023-02-23 11:24:48.828 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:24:48.831 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=70), 12, , b''] 2023-02-23 11:24:48.831 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=70), 12, , b''] 2023-02-23 11:24:48.833 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,) 2023-02-23 11:24:48.836 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'729421a9762aeba96d7e' 2023-02-23 11:24:48.842 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2094a1a9762a150f187e' 2023-02-23 11:24:48.844 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:48.850 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [] 2023-02-23 11:24:55.033 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3094b1a9702a542659893b25ba117d1d9d4e27ab286e7e' 2023-02-23 11:24:55.034 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:55.038 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 11:24:55.039 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-23 11:24:55.040 INFO (MainThread) [zigpy.application] New device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 11:24:55.044 DEBUG (MainThread) [zigpy.device] [0x9441] Scheduling initialization 2023-02-23 11:24:55.049 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:55.053 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'049521a9212a15af28945a61450193ed1f7e' 2023-02-23 11:24:55.054 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,) 2023-02-23 11:24:55.055 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 11:24:55.056 INFO (MainThread) [zigpy.device] [0x9441] Requesting 'Node Descriptor' 2023-02-23 11:24:55.056 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-02-23 11:24:55.056 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x0d request 2023-02-23 11:24:55.057 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=13, profile_id=0, cluster_id=, data=Serialized[b'\rA\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:55.058 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:55.060 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4195a1a9212aea846d7e' 2023-02-23 11:24:55.061 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:55.063 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'159a21a9412a4aa3e7e97e' 2023-02-23 11:24:55.067 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255] 2023-02-23 11:24:55.069 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'529aa1a9412a91fa7e' 2023-02-23 11:24:55.069 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:55.070 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'269b21a92a2a15af28945a6145019307aa7e' 2023-02-23 11:24:55.077 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'639ba1a92a2a86577e' 2023-02-23 11:24:55.077 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:55.087 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-23 11:24:55.087 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:55.103 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=13), 14, b'\rA\x94') 2023-02-23 11:24:55.105 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'379821a9602a15f3cd944a27aa5592499d4e27a6e3cd6aca69af5a7e' 2023-02-23 11:24:55.115 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7498a1a9602a15fa0de67e' 2023-02-23 11:24:55.115 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:55.117 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 72] 2023-02-23 11:24:55.302 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'0498b1a9112a11b259874a25aa5593499c48eb64ac5a9874f115221dfc634ea7fb89313b0b53307e' 2023-02-23 11:24:55.302 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:24:55.304 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 204, -49, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 11:24:55.305 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 204, -49, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-23 11:24:55.306 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=6, profile_id=0, cluster_id=19, data=Serialized[b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'], tx_options=, radius=0, non_member_radius=0, lqi=204, rssi=-49) 2023-02-23 11:24:55.307 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-23 11:24:55.308 DEBUG (MainThread) [zigpy.device] [0x9441] Scheduling initialization 2023-02-23 11:24:55.308 DEBUG (MainThread) [zigpy.device] [0x9441] Canceling old initialize call 2023-02-23 11:24:55.311 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 19: b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84' 2023-02-23 11:24:55.312 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Device_annce: [0x9441, 54:ef:44:10:00:71:1d:00, 132] 2023-02-23 11:24:55.314 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 11:24:55.314 INFO (MainThread) [zigpy.device] [0x9441] Requesting 'Node Descriptor' 2023-02-23 11:24:55.315 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-02-23 11:24:55.315 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x0f request 2023-02-23 11:24:55.316 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=15, profile_id=0, cluster_id=, data=Serialized[b'\x0fA\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:55.317 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:55.318 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1498b1a9772a14b318004a38db55820d731a23fe247e' 2023-02-23 11:24:55.318 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:24:55.322 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:55.323 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:55.323 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'429921a92a2a15af28945a61450193ddc77e' 2023-02-23 11:24:55.331 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2599a1a92a2a25257e' 2023-02-23 11:24:55.331 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:55.335 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:55.343 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=15), 16, b'\x0fA\x94') 2023-02-23 11:24:55.348 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'539e21a9602a15f3cd944a27aa5592499d4e27a4fdcd68ca696deb7e' 2023-02-23 11:24:55.358 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'369ea1a9602a15fbc5947e' 2023-02-23 11:24:55.358 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:55.359 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 73] 2023-02-23 11:24:55.590 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'469eb1a9112a15b259964a25aa1593499c49f77bac5a9874fe126389feafaa7e' 2023-02-23 11:24:55.591 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:55.601 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 208, -48, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 11:24:55.602 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 208, -48, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-23 11:24:55.603 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=7, profile_id=0, cluster_id=2, data=Serialized[b'\xd4\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=208, rssi=-48) 2023-02-23 11:24:55.605 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 2: b'\xd4\x00\x00' 2023-02-23 11:24:55.605 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000] 2023-02-23 11:24:55.606 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000]) 2023-02-23 11:24:55.792 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'569eb5a96b2a15f3cd944a27aa5592499d4e27e2fdce67b3387e' 2023-02-23 11:24:55.793 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:55.796 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=73), 16, , b''] 2023-02-23 11:24:55.798 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=73), 16, , b''] 2023-02-23 11:24:55.802 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'669eb5a96b2a134fa6944a36aa5592499d4e27ad12ce670cfc7e' 2023-02-23 11:24:55.802 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:55.804 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 11:24:55.804 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-23 11:24:55.805 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 11:24:55.812 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'769eb1a9112a15b25996ca25aa1593499c46e366ac5a9874ecc963c8687c7f23b4dca10b8fffebbfd5d26b186e7e' 2023-02-23 11:24:55.812 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:55.815 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=8), 196, -51, 0x9441, 255, 255, b'\x0f\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 11:24:55.816 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=8), 196, -51, 0x9441, 255, 255, b'\x0f\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-23 11:24:55.816 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=8, profile_id=0, cluster_id=32770, data=Serialized[b'\x0f\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=196, rssi=-51) 2023-02-23 11:24:55.818 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\x0f\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00' 2023-02-23 11:24:55.833 INFO (MainThread) [zigpy.device] [0x9441] Got Node Descriptor: NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False) 2023-02-23 11:24:55.835 INFO (MainThread) [zigpy.device] [0x9441] Discovering endpoints 2023-02-23 11:24:55.836 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 11:24:55.837 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x11 request 2023-02-23 11:24:55.837 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=17, profile_id=0, cluster_id=, data=Serialized[b'\x11A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:55.839 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:55.844 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'609f21a92a2a15af28945a61450193066d7e' 2023-02-23 11:24:55.846 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'069eb1a9cf2a15af28945a6145019421827e' 2023-02-23 11:24:55.846 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:24:55.859 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'179fa1a92a2a4c6c7e' 2023-02-23 11:24:55.859 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:24:55.860 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:55.861 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:55.870 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:55.881 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 18, b'\x11A\x94') 2023-02-23 11:24:55.884 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'729c21a9602a15f3cd944a20aa5592499d4e27baffcd76ca69877d317e' 2023-02-23 11:24:55.894 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'209ca1a9602a15fe48ad7e' 2023-02-23 11:24:55.894 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:55.898 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 76] 2023-02-23 11:24:56.115 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'309cb1a9cf2a15af28945a614501a6c4a47e' 2023-02-23 11:24:56.116 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:56.118 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:56.118 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-23 11:24:56.206 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'409cb1a96b2a15f3cd944a20aa5592499d4e27e7ffce67ab307e' 2023-02-23 11:24:56.206 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:56.210 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=76), 18, , b''] 2023-02-23 11:24:56.211 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=76), 18, , b''] 2023-02-23 11:24:56.220 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'509cb1a9112a15b25991ca25aa1593499c45f37aac5a9874fbd763c8687f3ea5d3707e' 2023-02-23 11:24:56.221 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:56.225 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=11), 212, -47, 0x9441, 255, 255, b'\x11\x00A\x94\x01\x01'] 2023-02-23 11:24:56.226 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=11), 212, -47, 0x9441, 255, 255, b'\x11\x00A\x94\x01\x01'] 2023-02-23 11:24:56.226 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=11, profile_id=0, cluster_id=32773, data=Serialized[b'\x11\x00A\x94\x01\x01'], tx_options=, radius=0, non_member_radius=0, lqi=212, rssi=-47) 2023-02-23 11:24:56.227 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32773: b'\x11\x00A\x94\x01\x01' 2023-02-23 11:24:56.231 INFO (MainThread) [zigpy.device] [0x9441] Discovered endpoints: [1] 2023-02-23 11:24:56.232 INFO (MainThread) [zigpy.device] [0x9441] Initializing endpoints [>] 2023-02-23 11:24:56.233 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovering endpoint information 2023-02-23 11:24:56.233 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-23 11:24:56.233 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x13 request 2023-02-23 11:24:56.234 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=19, profile_id=0, cluster_id=, data=Serialized[b'\x13A\x94\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:56.235 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:56.241 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'069d21a92a2a15af28945a6145019391d97e' 2023-02-23 11:24:56.247 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'619da1a92a2ac0927e' 2023-02-23 11:24:56.247 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:56.253 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:56.259 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=19), 20, b'\x13A\x94\x01') 2023-02-23 11:24:56.262 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'17a221a9602a15f3cd944a21aa5592499d4e27b8f9ca74ca69c742eb7e' 2023-02-23 11:24:56.271 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72a2a1a9602a15fc47287e' 2023-02-23 11:24:56.271 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:56.274 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 78] 2023-02-23 11:24:56.316 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02a2b1a9112a11b259a24a25aa5593499c42f37aac5a9874fe13d788feab4a7e' 2023-02-23 11:24:56.316 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:24:56.321 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=12), 212, -47, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 11:24:56.322 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=12), 212, -47, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-23 11:24:56.323 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=12, profile_id=0, cluster_id=54, data=Serialized[b'\xd5\xb4\x01'], tx_options=, radius=0, non_member_radius=0, lqi=212, rssi=-47) 2023-02-23 11:24:56.325 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 54: b'\xd5\xb4\x01' 2023-02-23 11:24:56.326 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [180, ] 2023-02-23 11:24:56.715 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12a2b1a96b2a15f3cd944a27aa5592499c4e27e3e3a86788647e' 2023-02-23 11:24:56.715 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:24:56.720 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=72), 14, , b''] 2023-02-23 11:24:56.721 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=72), 14, , b''] 2023-02-23 11:24:56.722 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 14 2023-02-23 11:24:56.767 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22a2b1a96b2a134ea6944a13aa5592499d4e27a712ce67a0157e' 2023-02-23 11:24:56.768 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:56.770 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=12), 255, , b''] 2023-02-23 11:24:56.770 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=12), 255, , b''] 2023-02-23 11:24:56.771 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-23 11:24:57.644 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32a2b1a9112a15b658944a24ab5593499c43fb78ac5a9874dfdeda83f97e7db087b8b306a18ca2b5a6bd1bd3354ec6871315c4891bb272994c0602b368497e' 2023-02-23 11:24:57.644 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:57.650 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=13), 220, -45, 0x9441, 255, 255, b'\x18\xb9\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 11:24:57.651 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=13), 220, -45, 0x9441, 255, 255, b'\x18\xb9\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-23 11:24:57.651 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=13, profile_id=260, cluster_id=0, data=Serialized[b'\x18\xb9\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'], tx_options=, radius=0, non_member_radius=0, lqi=220, rssi=-45) 2023-02-23 11:24:57.652 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 1 to ep 1, cluster 0: b'\x18\xb9\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11' 2023-02-23 11:24:57.653 DEBUG (MainThread) [zigpy.device] Ignoring message (b'18b90a050042176c756d692e73656e736f725f736d6f6b652e61636e303301002011') on cluster 0: unknown endpoint or cluster id: 'No cluster ID 0x0000 on (54:ef:44:10:00:71:1d:00, 1)' 2023-02-23 11:24:57.656 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42a2b1a96b2a15f3cd944a21aa5592499d4e27e5f9ce67c8227e' 2023-02-23 11:24:57.656 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:57.669 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'52a2b1a9112a15b25990ca25aa1593499c40cf7dac5a9874ead563c8686c3ea3eacfda6e8bffc7dbd0d1698d4622b0ec7419387e' 2023-02-23 11:24:57.669 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:57.678 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=78), 20, , b''] 2023-02-23 11:24:57.678 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=78), 20, , b''] 2023-02-23 11:24:57.679 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 232, -42, 0x9441, 255, 255, b'\x13\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-23 11:24:57.680 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 232, -42, 0x9441, 255, 255, b'\x13\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-23 11:24:57.681 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=14, profile_id=0, cluster_id=32772, data=Serialized[b'\x13\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'], tx_options=, radius=0, non_member_radius=0, lqi=232, rssi=-42) 2023-02-23 11:24:57.683 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32772: b'\x13\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00' 2023-02-23 11:24:57.698 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[0, 1280, 3, 1], output_clusters=[25]) 2023-02-23 11:24:57.701 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=21, command_id=, *direction=, *is_reply=False) 2023-02-23 11:24:57.702 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5]) 2023-02-23 11:24:57.703 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x15 request 2023-02-23 11:24:57.704 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=21, profile_id=260, cluster_id=0, data=Serialized[b'\x00\x15\x00\x04\x00\x05\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:57.705 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:57.707 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'26a321a92a2a15af28945a61450193b7f97e' 2023-02-23 11:24:57.720 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63a3a1a92a2a88947e' 2023-02-23 11:24:57.721 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:57.725 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:57.730 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=21), 22, b'\x00\x15\x00\x04\x00\x05\x00') 2023-02-23 11:24:57.735 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'37a021a9602a15f3cd904b25aa5493499d4e27befbc9679efdc2638cfca2cb7e' 2023-02-23 11:24:57.744 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'74a0a1a9602a15fdb7217e' 2023-02-23 11:24:57.744 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:57.746 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 79] 2023-02-23 11:24:58.513 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 11:24:58.516 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'40a121a9a52ae1617e' 2023-02-23 11:24:58.533 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'05a1a1a9a52a14b26194c925ba5593499c4e22abe8ce6c8bfbc66289fd7e3ea7eacddf6f8bffc6dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482456cf7e' 2023-02-23 11:24:58.533 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:24:58.537 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[1, 56, 131, 16, 1, 0, 5, 5, 11, 6, 1, 1, 1, 1, 1, 4, 1, 1, 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-23 11:24:58.539 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 11:24:58.545 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'51a621a9fe2a16179c7e' 2023-02-23 11:24:58.551 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16a6a1a9fe2a15b3cfa7f77e' 2023-02-23 11:24:58.551 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:24:58.555 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x96'] 2023-02-23 11:24:58.559 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 150 2023-02-23 11:24:58.560 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 1, MAC_TX_BROADCAST = 56, MAC_RX_UNICAST = 131, MAC_TX_UNICAST_SUCCESS = 16, MAC_TX_UNICAST_RETRY = 1, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 5, APS_DATA_TX_BROADCAST = 5, APS_DATA_RX_UNICAST = 11, APS_DATA_TX_UNICAST_SUCCESS = 6, APS_DATA_TX_UNICAST_RETRY = 1, APS_DATA_TX_UNICAST_FAILED = 1, ROUTE_DISCOVERY_INITIATED = 1, NEIGHBOR_ADDED = 1, NEIGHBOR_REMOVED = 1, NEIGHBOR_STALE = 4, JOIN_INDICATION = 1, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 150] 2023-02-23 11:24:58.874 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26a6b1a96b2a15f3cd904b25aa5493499d4e27e4fbce6763fa7e' 2023-02-23 11:24:58.874 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:24:58.877 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=79), 22, , b''] 2023-02-23 11:24:58.878 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=79), 22, , b''] 2023-02-23 11:24:58.888 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36a6b1a9112a15b658944a24ab1593499c41fb78ac5a9874d5de7688f87e3fe5ef818b22c6fac7db97c505f92b4a879f1355d68507dd32f5234d769f8113562c3d0506c77e' 2023-02-23 11:24:58.888 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:24:58.894 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=15), 220, -45, 0x9441, 255, 255, b'\x18\x15\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-23 11:24:58.895 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=15), 220, -45, 0x9441, 255, 255, b'\x18\x15\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-23 11:24:58.895 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=15, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x15\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'], tx_options=, radius=0, non_member_radius=0, lqi=220, rssi=-45) 2023-02-23 11:24:58.896 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18\x15\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03' 2023-02-23 11:24:58.897 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=21, command_id=1, *direction=, *is_reply=True) 2023-02-23 11:24:58.901 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=CharacterString, value='LUMI')), ReadAttributeRecord(attrid=0x0005, status=, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03'))]) 2023-02-23 11:24:58.910 INFO (MainThread) [zigpy.device] [0x9441] Read model 'lumi.sensor_smoke.acn03' and manufacturer 'LUMI' from > 2023-02-23 11:24:58.911 INFO (MainThread) [zigpy.device] [0x9441] Discovered basic device information for 2023-02-23 11:24:58.911 DEBUG (MainThread) [zigpy.application] Device is initialized 2023-02-23 11:24:58.914 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for LUMI lumi.sensor_smoke.acn03 (54:ef:44:10:00:71:1d:00) 2023-02-23 11:24:58.914 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-02-23 11:24:58.916 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for 54:ef:44:10:00:71:1d:00: 2023-02-23 11:24:58.927 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'IASZone' using ['ias_zone'] 2023-02-23 11:24:58.927 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'button' component -> 'ZHAIdentifyButton' using ['identify'] 2023-02-23 11:24:58.928 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'DeviceTemperature' using ['device_temperature'] 2023-02-23 11:24:58.928 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic'] 2023-02-23 11:24:58.928 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic'] 2023-02-23 11:24:58.932 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 entering async_device_initialized - is_new_join: True 2023-02-23 11:24:58.933 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 has joined the ZHA zigbee network 2023-02-23 11:24:58.935 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started configuration 2023-02-23 11:24:58.935 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_configure' stage succeeded 2023-02-23 11:24:58.953 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed 2023-02-23 11:24:58.957 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Performing cluster binding 2023-02-23 11:24:58.957 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: bound 'device_temperature' cluster: Status.SUCCESS 2023-02-23 11:24:58.958 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Configuring cluster attribute reporting 2023-02-23 11:24:58.959 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Successfully configured reporting for '{'current_temperature': (30, 900, 50)}' on 'device_temperature' cluster: [ConfigureReportingResponseRecord(status=)] 2023-02-23 11:24:58.962 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel configuration 2023-02-23 11:24:58.963 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: Configuring cluster attribute reporting 2023-02-23 11:24:58.963 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel configuration 2023-02-23 11:24:58.963 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: Configuring cluster attribute reporting 2023-02-23 11:24:58.963 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel configuration 2023-02-23 11:24:58.964 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: started IASZoneChannel configuration 2023-02-23 11:24:58.965 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS 2023-02-23 11:24:58.965 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: wrote cie_addr: 38:5c:fb:ff:fe:e3:73:71 to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=)] 2023-02-23 11:24:58.966 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Sending pro-active IAS enroll response 2023-02-23 11:24:58.966 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished IASZoneChannel configuration 2023-02-23 11:24:58.967 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing cluster binding 2023-02-23 11:24:58.968 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x17 request 2023-02-23 11:24:58.969 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=23, profile_id=0, cluster_id=, data=Serialized[b'\x17\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:58.970 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:58.971 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel configuration 2023-02-23 11:24:58.973 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'64a721a92a2a15af28945a614501932d8c7e' 2023-02-23 11:24:58.976 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=25, command_id=0, *direction=, *is_reply=False) 2023-02-23 11:24:58.977 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request: enroll_response(enroll_response_code=, zone_id=0) 2023-02-23 11:24:58.979 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x19 request 2023-02-23 11:24:58.980 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=25, profile_id=260, cluster_id=1280, data=Serialized[b'\x01\x19\x00\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:24:58.987 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47a7a1a92a2a323b7e' 2023-02-23 11:24:58.987 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:24:59.020 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-23 11:24:59.021 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:59.041 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=23), 24, b'\x17\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01') 2023-02-23 11:24:59.046 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75a421a9602a15f3cd944a04aa5592499d4e27bcf5d8708be0b76399b8916ba62b31dd1efc1c39242e8e518d4f1d7e' 2023-02-23 11:24:59.059 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50a4a1a9602a15e2e13c7e' 2023-02-23 11:24:59.060 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:24:59.082 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 80] 2023-02-23 11:24:59.121 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:24:59.124 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'06a521a92a2a15af28945a61450193218a7e' 2023-02-23 11:24:59.132 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'61a5a1a92a2ace517e' 2023-02-23 11:24:59.132 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:24:59.133 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:24:59.138 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=25), 26, b'\x01\x19\x00\x00\x00') 2023-02-23 11:24:59.142 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'17aa21a9602a15f3cd904b25af5493499d4e27b2f7cb6692fdc66346887e' 2023-02-23 11:24:59.153 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72aaa1a9602a15e3375b7e' 2023-02-23 11:24:59.153 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:24:59.158 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 81] 2023-02-23 11:25:00.089 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02aab1a96b2a15f3cd944a04aa5592499d4e27fbf5ce67fbc47e' 2023-02-23 11:25:00.090 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:25:00.093 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=80), 24, , b''] 2023-02-23 11:25:00.094 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=80), 24, , b''] 2023-02-23 11:25:00.107 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12aab1a9112a15b259b5ca25aa1593499c5ed877ac5a9874ffd1638bb0ea7e' 2023-02-23 11:25:00.107 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-23 11:25:00.111 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=16), 255, -36, 0x9441, 255, 255, b'\x17\x00'] 2023-02-23 11:25:00.112 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=16), 255, -36, 0x9441, 255, 255, b'\x17\x00'] 2023-02-23 11:25:00.112 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=16, profile_id=0, cluster_id=32801, data=Serialized[b'\x17\x00'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=-36) 2023-02-23 11:25:00.118 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: bound 'manufacturer_specific' cluster: Status.SUCCESS 2023-02-23 11:25:00.118 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Configuring cluster attribute reporting 2023-02-23 11:25:00.120 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel configuration 2023-02-23 11:25:00.127 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_configure' stage succeeded 2023-02-23 11:25:00.128 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_configure' stage succeeded 2023-02-23 11:25:00.128 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_configure' stage succeeded 2023-02-23 11:25:00.129 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_configure' stage succeeded 2023-02-23 11:25:00.129 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_configure' stage succeeded 2023-02-23 11:25:00.129 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_configure' stage succeeded 2023-02-23 11:25:00.135 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed configuration 2023-02-23 11:25:00.137 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=27, command_id=64, *direction=, *is_reply=False) 2023-02-23 11:25:00.140 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request: trigger_effect(effect_id=, effect_variant=) 2023-02-23 11:25:00.141 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x1b request 2023-02-23 11:25:00.142 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=27, profile_id=260, cluster_id=3, data=Serialized[b'\x01\x1b@\x02\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-23 11:25:00.142 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-23 11:25:00.144 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'22ab21a92a2a15af28945a61450193c7207e' 2023-02-23 11:25:00.150 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'23aba1a92a2ae0a97e' 2023-02-23 11:25:00.151 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-23 11:25:00.156 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-23 11:25:00.165 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=27), 28, b'\x01\x1b@\x02\x00') 2023-02-23 11:25:00.169 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'33a821a9602a15f3cd904b26aa5493499d4e27b0f1cb6690bdc463b2567e' 2023-02-23 11:25:00.185 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'34a8a1a9602a15e011c07e' 2023-02-23 11:25:00.185 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-23 11:25:00.187 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 82] 2023-02-23 11:25:00.309 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'44a8b1a96b2a15f3cd904b25af5493499d4e27faf7ce676f187e' 2023-02-23 11:25:00.309 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-23 11:25:00.314 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=81), 26, , b''] 2023-02-23 11:25:00.315 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=81), 26, , b''] 2023-02-23 11:25:01.518 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'54a8b1a96b2a15f3cd904b26aa5493499d4e27f9f1ce67fa837e' 2023-02-23 11:25:01.519 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-23 11:25:01.523 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=82), 28, , b''] 2023-02-23 11:25:01.524 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=82), 28, , b''] 2023-02-23 11:25:01.527 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'64a8b1a9112a15b658974a24ab1593499c5fc77fac5a9874f8de7882bc7e3ddf127e' 2023-02-23 11:25:01.527 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-23 11:25:01.528 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=17), 224, -44, 0x9441, 255, 255, b'\x18\x1b\x0b@\x00'] 2023-02-23 11:25:01.529 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=17), 224, -44, 0x9441, 255, 255, b'\x18\x1b\x0b@\x00'] 2023-02-23 11:25:01.530 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=17, profile_id=260, cluster_id=3, data=Serialized[b'\x18\x1b\x0b@\x00'], tx_options=, radius=0, non_member_radius=0, lqi=224, rssi=-44) 2023-02-23 11:25:01.531 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Received ZCL frame: b'\x18\x1b\x0b@\x00' 2023-02-23 11:25:01.532 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=27, command_id=11, *direction=, *is_reply=True) 2023-02-23 11:25:01.534 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=64, status=) 2023-02-23 11:25:01.540 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: executed 'trigger_effect' command with args: '()' kwargs: '{'effect_id': , 'effect_variant': }' result: Default_Response(command_id=64, status=) 2023-02-23 11:25:01.541 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started initialization 2023-02-23 11:25:01.542 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_initialize' stage succeeded 2023-02-23 11:25:01.547 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing channel: from_cache: False 2023-02-23 11:25:01.548 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing uncached channel attributes: ['current_temperature'] - from cache[False] 2023-02-23 11:25:01.548 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Reading attributes in chunks: ['current_temperature'] 2023-02-23 11:25:01.549 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel initialization 2023-02-23 11:25:01.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: initializing channel: from_cache: False 2023-02-23 11:25:01.550 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel initialization 2023-02-23 11:25:01.551 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: initializing channel: from_cache: False 2023-02-23 11:25:01.551 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel initialization 2023-02-23 11:25:01.551 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing channel: from_cache: False 2023-02-23 11:25:01.552 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing cached channel attributes: ['zone_status', 'zone_type'] 2023-02-23 11:25:01.552 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_status', 'zone_type'] 2023-02-23 11:25:01.554 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing uncached channel attributes: ['zone_state'] - from cache[False] 2023-02-23 11:25:01.555 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_state'] 2023-02-23 11:25:01.556 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished channel initialization 2023-02-23 11:25:01.556 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: initializing channel: from_cache: False 2023-02-23 11:25:01.556 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing channel specific initialization: [] 2023-02-23 11:25:01.557 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel initialization 2023-02-23 11:25:01.557 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: initializing channel: from_cache: False 2023-02-23 11:25:01.558 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel initialization 2023-02-23 11:25:01.564 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.565 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.566 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.566 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_initialize' stage succeeded 2023-02-23 11:25:01.574 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:71:1d:00, 1, 2, 0) params: FOREIGN KEY constraint failed 2023-02-23 11:25:01.577 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): power source: Mains 2023-02-23 11:25:01.578 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed initialization 2023-02-23 11:25:01.604 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.zha entity: binary_sensor.lumi_lumi_sensor_smoke_acn03_iaszone 2023-02-23 11:25:01.606 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.zha entity: button.lumi_lumi_sensor_smoke_acn03_identify_2 2023-02-23 11:25:01.613 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.lumi_lumi_sensor_smoke_acn03_rssi_2 2023-02-23 11:25:01.615 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.lumi_lumi_sensor_smoke_acn03_lqi_2 2023-02-23 11:25:08.577 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-23 11:25:08.583 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'47a921a9a52a2b0d7e' 2023-02-23 11:25:08.600 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'75a9a1a9a52a14b26094d925bd5590499c4e22abe8ce698bf7c66289fd7e3ea7eacddf6f8bffc6dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048244f7b7e' 2023-02-23 11:25:08.600 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-23 11:25:08.602 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[1, 57, 147, 23, 2, 0, 5, 5, 14, 10, 1, 1, 1, 1, 1, 4, 1, 1, 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-23 11:25:08.603 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-23 11:25:08.607 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'50ae21a9fe2a16a2bf7e' 2023-02-23 11:25:08.622 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06aea1a9fe2a15b3c10b1d7e' 2023-02-23 11:25:08.622 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-23 11:25:08.626 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x98'] 2023-02-23 11:25:08.629 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 152 2023-02-23 11:25:08.629 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 1, MAC_TX_BROADCAST = 57, MAC_RX_UNICAST = 147, MAC_TX_UNICAST_SUCCESS = 23, MAC_TX_UNICAST_RETRY = 2, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 5, APS_DATA_TX_BROADCAST = 5, APS_DATA_RX_UNICAST = 14, APS_DATA_TX_UNICAST_SUCCESS = 10, APS_DATA_TX_UNICAST_RETRY = 1, APS_DATA_TX_UNICAST_FAILED = 1, ROUTE_DISCOVERY_INITIATED = 1, NEIGHBOR_ADDED = 1, NEIGHBOR_REMOVED = 1, NEIGHBOR_STALE = 4, JOIN_INDICATION = 1, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 152] 2023-02-23 11:25:34.830 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3197, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 25, 'X-attrib-6': 9, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 11:25:37.834 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3197, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 25, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] ```

Then when I make some smoke nothing happens. Until I press the button to mute the alarm. Once I press the button I get an attribute change that reflects smoke. But it seems no attribute change happens automatically when the smoke alarm goes off.

Logs from pressing the button to mute then rebooting the device ``` 2023-02-23 11:26:45.171 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3200, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 25, 'X-attrib-6': 3, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, '0xff01-161': 10, '0xff01-162': 0, '0xff01-163': 1, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 11:27:02.086 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3200, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 25, 'X-attrib-6': 5, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 1, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 11:27:22.579 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 0, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 27, 'X-attrib-6': 0, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 11:27:25.579 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 0, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 27, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] 2023-02-23 11:27:27.430 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3183, 'temperature': 25, 'X-attrib-4': 424, 'X-attrib-5': 27, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}] ```

Is there something the quirk would need to do to tell the smoke alarm to update its attributes when triggered?

Edit: In all cases the binary_sensor never triggers:

image
javicalle commented 1 year ago

@TheJulianJES can it be that you need to update the 0x0002 attribute (ZONE_STATUS) and not the ZONE_STATE?

TheJulianJES commented 1 year ago

can it be that you need to update the 0x0002 attribute (ZONE_STATUS) and not the ZONE_STATE?

I think that we need to send a "Zone Status Change Notification" command for the IasZone stuff. Here's how the motion sensor quirks do it: https://github.com/zigpy/zha-device-handlers/blob/f6ab87e1c48ccb6db262e8732ca6b63d67fb6252/zhaquirks/__init__.py#L287-L288

@johnboiles I've added another commit: https://github.com/zigpy/zha-device-handlers/pull/2219/commits/4d5116a9679c623298ce9b21c901055d4768e59a (modified __init__.py file)

johnboiles commented 1 year ago

Heyyy that's some progress!

image

But unfortunately this doesn't actually happen until someone hits the mute button. Then it seems to push the state out to the device. In these logs, I triggered the smoke alarm at ~16:38:00 then hit the mute button at 16:38:47. The state did not update until I hit the mute button.

2023-02-23 16:21:40.600 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1c:25 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3229, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 11, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}]
2023-02-23 16:38:47.880 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3195, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 28, 'X-attrib-6': 3, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, '0xff01-161': 10, '0xff01-162': 0, '0xff01-163': 1, '0xff01-164': 0, '0xff01-165': 0}]
2023-02-23 16:40:20.634 WARNING (MainThread) [xiaomi] 54:ef:44:10:00:71:1d:00 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3195, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 28, 'X-attrib-6': 8, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, '0xff01-161': 0, '0xff01-162': 0, '0xff01-163': 0, '0xff01-164': 0, '0xff01-165': 0}]

So the remaining question is, how do we get the device to update attributes when the smoke alarm is triggered.

TheJulianJES commented 1 year ago

Hmm, so the log message containing 'smoke': 0 did only arrive when you hit the mute button (and not when the alarm was actually triggered)?

And there was nothing in the logs when the alarm triggered, right?

Z2M does some attribute reads when pairing the device -- maybe that's related(?)

johnboiles commented 1 year ago

Correct on both counts: nothing logs at all when the alarm is triggered. It's not until I hit the mute button that the attribute gets logged (and the binary sensor switches to 'detected'). Generally I can get the device to send attributes anytime I want by hitting the button. Here's a video demonstration: https://youtu.be/Lmj14oUMV3o

I'm new to Zigbee. Is it typical to need to subscribe or bind to certain events in Zigbee?

TheJulianJES commented 1 year ago

Interesting, thanks for the video.

Is it typical to need to subscribe or bind to certain events in Zigbee?

Somewhat. Generally, you need to set up reporting for an attribute in order to get "attribute reports". However, Xiaomi/Aqara doesn't follow Zigbee spec at all and they set up their own little messaging system. Most of the time, their devices send these messages automatically (when anything changes). I'll look at what Z2M does that could solve this.

TheJulianJES commented 1 year ago

Also, what coordinator (and what coordinator firmware) are you using?

EDIT: I'm working on some more changes now. Regarding logs, please add the following for the next test:

homeassistant.components.zha: debug
bellows.zigbee.application: debug
bellows.ezsp: debug
zigpy: debug
zigpy_deconz.zigbee.application: debug
zigpy_deconz.api: debug
zigpy_xbee.zigbee.application: debug
zigpy_xbee.api: debug
zigpy_zigate: debug
zigpy_znp: debug
zhaquirks: debug
xiaomi: debug  # custom smoke sensor quirk
johnboiles commented 1 year ago

I have a Home Assistant Yellow on HA 2023.2.5 F2145D3A-404F-4F72-AF54-BC3EBA22196E

I think on the Yellow the firmware comes with HA but I'm not sure. Let me know if there's a place to see the firmware version.

I'm out of the office now (where the smoke alarms are) but I'll add logging and try tomorrow! Thanks for all your help on this!

TheJulianJES commented 1 year ago

Pushed some more changes: https://github.com/zigpy/zha-device-handlers/pull/2219/files

Just to explain it a bit, the added attribute_names.update(...) adds a proper name for the "special Xiaomi attribute reports" (the ones you see when you press the button). What's weird is that there are many duplicated ones (in Z2M's code).

-> Try to grab a log message when triggering the alarm (maybe you need to press the button for now) ('smoke': 1) -> Try to grab one where it switches back to 'smoke': 0


I've also added the "normal special" Zigbee attributes on the OppleCluster. I'm not sure the types I've given them are correct, because Z2M doesn't really type them.

I'm also unsure why Z2M reads all those attributes when "configuring"/pairing(?)

This time, please delete and re-pair the sensor again before trying anything (possibly so ZHA binds + sets up attribute reporting for those reports?) I'm not (yet) doing anything with possible "normal" attribute reports for the attributes on the OppleCluster. They should produce a log message (with the updated logger settings) if there is an attribute report though. I've tried to add some code to also parse normal attribute reports (if they exist) for the smoke attribute on the OppleCluster, so the entity gets updated. Still, please post the log messages when you trigger the alarm (and when you press the button).

You can also try to read/set those attributes on the OppleCluster using the clusters UI in HA. (Device page -> three dots -> Manage Zigbee device -> clusters, then select the OppleCluster and in the second drop down, you can select the attributes and read/set them. Do note that you always want to leave the second text field empty. If you want to write an attribute, put the text in the first text field (where it's also put if you read an attribute).)

johnboiles commented 1 year ago

I've applied the new changes, and the logging changes remotely and restarted HA.

I can read the OppleCluster things. I'm getting the following values:

Sometimes the attributes would fail to read with some logs like below. So I had to try several times on a few of the attributes. But I expect that's a normal thing when a zigbee device doesn't wake up at the right time right?

Logs when reading OppleCluster attributes fail ``` 2023-02-23 19:50:27.493 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=147), 28, , b''] 2023-02-23 19:50:27.494 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=147), 28, , b''] 2023-02-23 19:50:27.496 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547977646416] Error handling message: Unknown error (unknown_error) from 127.0.0.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 820, in websocket_read_zigbee_cluster_attributes success, failure = await cluster.read_attributes( File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 471, in read_attributes result = await self.read_attributes_raw(to_read, manufacturer=manufacturer) File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 219, in read_attributes_raw return await super().read_attributes_raw( File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 285, in _read_attributes return await super()._read_attributes( File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 324, in request return await self._endpoint.request( File "/usr/local/lib/python3.10/site-packages/zigpy/endpoint.py", line 237, in request return await self.device.request( File "/usr/local/lib/python3.10/site-packages/zigpy/device.py", line 297, in request await self._application.request( File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 690, in request await self.send_packet( File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 807, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver message: 2023-02-23 19:50:27.511 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingRouteErrorHandler: [, 0x9441] 2023-02-23 19:50:27.512 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteErrorHandler frame with [, 0x9441] 2023-02-23 19:50:27.512 DEBUG (MainThread) [bellows.zigbee.application] Processing route error: status=EmberStatus.MAC_INDIRECT_TIMEOUT, nwk=0x9441 ```

Ooooh if I write a 1 to buzzer_manual_alarm (id: 0x013d) I can turn on the alarm (as verified via audio from my security cameras).

Tomorrow I will

Let me know if there's anything else you want me to try!

Edit: Oh look temperature is showing up also. Def seems too hot, it is the same on all 3 smoke alarms I have and it's not changing at all so I bet it's just a fixed value at 25C.

image
TheJulianJES commented 1 year ago

Sounds good! (Reading attributes from a sleepy device fails very often. It depends on how often the device wakes up. For most Xiaomi devices, you actually need to press the button in order to read an attribute at all, so I'm a bit surprised you were able to read some at all.)

Actually, I saw that a later Z2M commit removed the device temperature sensor due to being fixed at 25°C like you mentioned, so I'll probably remove it in the next commit too.

johnboiles commented 1 year ago

It worked! The binary sensor showed Detected as soon as the alarm fired! Did you expect that it would work this time? I'm also wondering if setting linkage_alarm to 1 in the OppleCluster could have had an effect on the real-time alarm reporting. This post says linkage_alarm is needed to be able to manually trigger the alarm, perhaps it's also needed to automatically report?

Logs from discovery and re-pairing ``` 2023-02-24 16:21:21.220 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:21.221 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:24.260 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=143, profile_id=0, cluster_id=, data=Serialized[b'\x8f\xfe\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:24.261 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffc, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=143), 0, 144, b'\x8f\xfe\x00') 2023-02-24 16:21:24.263 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75e421a9622ae94d59947c25aa5592489c4ea8ab7d5dcde875fd5b7d387e' 2023-02-24 16:21:24.266 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-24 16:21:24.276 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50e4a1a9622a156f919d7e' 2023-02-24 16:21:24.276 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:24.278 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'06e521a9fb2aea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc4769ec7e' 2023-02-24 16:21:24.282 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'60e4b5a94d2a896d557e' 2023-02-24 16:21:24.282 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:24.286 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70e4b1a9112a10b259a24a25aa5593499c93d8abedce9874fe499d89f4fe7e' 2023-02-24 16:21:24.286 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:24.289 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [, 221] 2023-02-24 16:21:24.290 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received stackStatusHandler: [] 2023-02-24 16:21:24.290 DEBUG (MainThread) [bellows.zigbee.application] Received stackStatusHandler frame with [] 2023-02-24 16:21:24.290 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=221), 255, 0, 0x0000, 255, 255, b'\x8f\xfe\x00'] 2023-02-24 16:21:24.291 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=221), 255, 0, 0x0000, 255, 255, b'\x8f\xfe\x00'] 2023-02-24 16:21:24.291 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: 2023-02-24 16:21:24.294 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01e5a1a9fb2a15a0b87e' 2023-02-24 16:21:24.294 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:24.306 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received addTransientLinkKey: [] 2023-02-24 16:21:24.313 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setPolicy: (, ) 2023-02-24 16:21:24.315 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d31ea21a9012a15b15985707e' 2023-02-24 16:21:24.323 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12eaa1a9012a15aed17e' 2023-02-24 16:21:24.324 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:24.326 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setPolicy: [] 2023-02-24 16:21:25.211 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22eab1a96b2a134ea6944a13aa5592499d4e27767dce6742017e' 2023-02-24 16:21:25.211 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:25.220 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=221), 144, , b''] 2023-02-24 16:21:25.220 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=221), 144, , b''] 2023-02-24 16:21:25.241 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,) 2023-02-24 16:21:25.241 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'23eb21a9762aeb7b047e' 2023-02-24 16:21:25.252 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'33eba1a9762a15607e7e' 2023-02-24 16:21:25.252 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:25.256 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [] 2023-02-24 16:21:26.020 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:21:26.023 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'34e821a9a52a1b487e' 2023-02-24 16:21:26.040 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'44e8a1a9a52a14b248946525a85592499d4e26abecce658bfcc66389fc7e3fa7eacdde6f8fffc7dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a25190482451937e' 2023-02-24 16:21:26.041 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:26.043 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[1, 17, 47, 2, 0, 1, 1, 1, 2, 1, 0, 0, 0, 1, 0, 0, 0, 1, 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-24 16:21:26.044 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:21:26.048 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'45e921a9fe2a164e327e' 2023-02-24 16:21:26.056 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'55e9a1a9fe2a15b3c11bb67e' 2023-02-24 16:21:26.056 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:26.066 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x98'] 2023-02-24 16:21:26.070 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 152 2023-02-24 16:21:26.070 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 9, MAC_TX_BROADCAST = 4680, MAC_RX_UNICAST = 15639, MAC_TX_UNICAST_SUCCESS = 81, MAC_TX_UNICAST_RETRY = 12, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 3, APS_DATA_TX_BROADCAST = 3, APS_DATA_RX_UNICAST = 147, APS_DATA_TX_UNICAST_SUCCESS = 54, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 1, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 0, JOIN_INDICATION = 0, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 152] 2023-02-24 16:21:26.688 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'65e9b5a9772a14b318004a38db55820d731a23feae7e' 2023-02-24 16:21:26.688 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:26.692 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:26.693 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:26.694 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'75e9b1a9702a542659893b25ba117d1d9c4d27abce357e' 2023-02-24 16:21:26.694 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:26.696 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-24 16:21:26.697 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-24 16:21:26.698 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-24 16:21:26.700 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,) 2023-02-24 16:21:26.703 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'50ee21a9412a4aa31c207e' 2023-02-24 16:21:26.711 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06eea1a9412a734f7e' 2023-02-24 16:21:26.712 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:26.713 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-24 16:21:26.775 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16eeb1a9112a11b259874a25aa5593499cc1b76bac5a9874f110221dfc634ea7fb89313b0bfd4d837e' 2023-02-24 16:21:26.776 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:26.778 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=143), 144, -64, 0x9441, 255, 255, b'\xd6A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-24 16:21:26.778 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=143), 144, -64, 0x9441, 255, 255, b'\xd6A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-24 16:21:26.779 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=143, profile_id=0, cluster_id=19, data=Serialized[b'\xd6A\x94\x00\x1dq\x00\x10D\xefT\x84'], tx_options=, radius=0, non_member_radius=0, lqi=144, rssi=-64) 2023-02-24 16:21:26.780 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-24 16:21:26.782 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Device_annce: [0x9441, 54:ef:44:10:00:71:1d:00, 132] 2023-02-24 16:21:27.256 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26eeb1a96b2a134fa6944a36aa5592499d4e272412ce6786617e' 2023-02-24 16:21:27.257 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:27.264 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=143), 255, , b''] 2023-02-24 16:21:27.265 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=143), 255, , b''] 2023-02-24 16:21:27.266 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-24 16:21:27.346 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36eeb1a9112a15b65854b624ab5593499cdea717ac5a9874f4da3c981e74c3a7fbcddc6ffd7e' 2023-02-24 16:21:27.347 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:27.349 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=144), 128, -68, 0x9441, 255, 255, b'\x1c_\x11\xe2\n\xfc\x00\x10\x00'] 2023-02-24 16:21:27.349 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=144), 128, -68, 0x9441, 255, 255, b'\x1c_\x11\xe2\n\xfc\x00\x10\x00'] 2023-02-24 16:21:27.350 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=144, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11\xe2\n\xfc\x00\x10\x00'], tx_options=, radius=0, non_member_radius=0, lqi=128, rssi=-68) 2023-02-24 16:21:27.354 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x1c_\x11\xe2\n\xfc\x00\x10\x00' 2023-02-24 16:21:27.356 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=226, command_id=10, *direction=, *is_reply=True) 2023-02-24 16:21:27.359 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00FC, value=TypeValue(type=Bool, value=))]) 2023-02-24 16:21:27.360 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 226): Report_Attributes(attribute_reports=[Attribute(attrid=0x00FC, value=TypeValue(type=Bool, value=))]) 2023-02-24 16:21:27.361 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: 0x00FC= 2023-02-24 16:21:27.392 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 64704, 252, ) params: FOREIGN KEY constraint failed 2023-02-24 16:21:32.461 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'46eeb5a9772a14b218004a38db55820d731a231fb47e' 2023-02-24 16:21:32.461 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:32.466 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56eeb1a9702a542659893b25ba117d1d9e4dd8548c3e7e' 2023-02-24 16:21:32.466 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:32.468 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:32.468 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:32.469 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0xffff] 2023-02-24 16:21:32.469 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0xffff] 2023-02-24 16:21:32.469 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) left the network 2023-02-24 16:21:36.072 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:21:36.075 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'66ef21a9a52a87487e' 2023-02-24 16:21:36.096 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'67efa1a9a52a17b24a947125af5590499d4e25abefce648bfcc66389fc7e3fa7eacddf6f8fffc6dbd7d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824f9387e' 2023-02-24 16:21:36.096 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:36.099 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[2, 19, 59, 5, 2, 1, 2, 2, 3, 1, 0, 0, 0, 1, 1, 0, 1, 2, 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-24 16:21:36.105 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:21:36.108 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'77ec21a9fe2a16345d7e' 2023-02-24 16:21:36.113 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70eca1a9fe2a15b3c093197e' 2023-02-24 16:21:36.114 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:36.120 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:21:36.125 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:21:36.125 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 10, MAC_TX_BROADCAST = 4682, MAC_RX_UNICAST = 15651, MAC_TX_UNICAST_SUCCESS = 84, MAC_TX_UNICAST_RETRY = 14, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 4, APS_DATA_TX_BROADCAST = 4, APS_DATA_RX_UNICAST = 148, APS_DATA_TX_UNICAST_SUCCESS = 54, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 1, NEIGHBOR_REMOVED = 1, NEIGHBOR_STALE = 0, JOIN_INDICATION = 1, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:21:37.580 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'00ecb1a9702a542659893b25ba117d1d9d4e27ab94367e' 2023-02-24 16:21:37.580 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:37.586 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-24 16:21:37.586 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x9441, 54:ef:44:10:00:71:1d:00, , , 0x0000] 2023-02-24 16:21:37.587 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-24 16:21:37.595 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:37.596 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4447,) 2023-02-24 16:21:37.598 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'01ed21a9212a15af28945a6145019343bd7e' 2023-02-24 16:21:37.610 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'11eda1a9212aea26247e' 2023-02-24 16:21:37.610 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:37.612 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'12f221a9412a4aa300467e' 2023-02-24 16:21:37.614 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255] 2023-02-24 16:21:37.619 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22f2a1a9412acf977e' 2023-02-24 16:21:37.619 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:37.624 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-24 16:21:37.847 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32f2b1a9112a11b259874a25aa5593499c48bf69ac5a9874f115221dfc634ea7fb89313b0bfd54fa7e' 2023-02-24 16:21:37.848 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:37.853 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 152, -62, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-24 16:21:37.854 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 152, -62, 0x9441, 255, 255, b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'] 2023-02-24 16:21:37.855 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=6, profile_id=0, cluster_id=19, data=Serialized[b'\xd3A\x94\x00\x1dq\x00\x10D\xefT\x84'], tx_options=, radius=0, non_member_radius=0, lqi=152, rssi=-62) 2023-02-24 16:21:37.856 INFO (MainThread) [zigpy.application] Device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-24 16:21:37.857 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Device_annce: [0x9441, 54:ef:44:10:00:71:1d:00, 132] 2023-02-24 16:21:37.869 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42f2b1a9772a14b318004a38db55820d731a23e4617e' 2023-02-24 16:21:37.870 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:37.871 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:37.871 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [1, , 0x9441, 54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:38.137 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'52f2b1a9112a15b259964a25aa1593499c49bf69ac5a9874fe126389fecf657e' 2023-02-24 16:21:38.138 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:38.141 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 152, -62, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-24 16:21:38.142 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=7), 152, -62, 0x9441, 255, 255, b'\xd4\x00\x00'] 2023-02-24 16:21:38.143 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=7, profile_id=0, cluster_id=2, data=Serialized[b'\xd4\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=152, rssi=-62) 2023-02-24 16:21:38.145 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000] 2023-02-24 16:21:38.147 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_req([0x0000]) 2023-02-24 16:21:38.373 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'62f2b1a9cf2a15af28945a61450194ad937e' 2023-02-24 16:21:38.373 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:38.377 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72f2b1a96b2a134fa6944a36aa5592499d4e27ad12ce6799297e' 2023-02-24 16:21:38.378 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:38.385 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:38.385 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:38.386 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-24 16:21:38.387 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=6), 255, , b''] 2023-02-24 16:21:38.387 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-24 16:21:38.561 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02f2b1a9cf2a15af28945a614501a60c9f7e' 2023-02-24 16:21:38.561 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:38.562 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received zigbeeKeyEstablishmentHandler: [54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:38.563 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [54:ef:44:10:00:71:1d:00, ] 2023-02-24 16:21:38.662 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12f2b1a9112a11b259a24a25aa5593499c44bb68ac5a9874fe13d788fe2e977e' 2023-02-24 16:21:38.662 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:38.666 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 156, -61, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-24 16:21:38.667 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 156, -61, 0x9441, 255, 255, b'\xd5\xb4\x01'] 2023-02-24 16:21:38.667 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=10, profile_id=0, cluster_id=54, data=Serialized[b'\xd5\xb4\x01'], tx_options=, radius=0, non_member_radius=0, lqi=156, rssi=-61) 2023-02-24 16:21:38.670 DEBUG (MainThread) [zigpy.zdo] [0x9441:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [180, ] 2023-02-24 16:21:39.145 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22f2b1a96b2a134ea6944a13aa5592499d4e27a112ce67ef907e' 2023-02-24 16:21:39.145 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:39.150 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 255, , b''] 2023-02-24 16:21:39.151 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=10), 255, , b''] 2023-02-24 16:21:39.152 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 255 2023-02-24 16:21:39.994 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32f2b1a9112a15b658944a24ab5593499c45af15ac5a9874dfde0083f97e7db087b8b306a18ca2b5a6bd1bd3354ec6871315c4891bb272994c0602b357187e' 2023-02-24 16:21:39.994 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:39.998 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=11), 136, -66, 0x9441, 255, 255, b'\x18c\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-24 16:21:39.998 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=11), 136, -66, 0x9441, 255, 255, b'\x18c\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'] 2023-02-24 16:21:39.999 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=0, data=Serialized[b'\x18c\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11'], tx_options=, radius=0, non_member_radius=0, lqi=136, rssi=-66) 2023-02-24 16:21:40.001 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18c\n\x05\x00B\x17lumi.sensor_smoke.acn03\x01\x00 \x11' 2023-02-24 16:21:40.003 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=99, command_id=10, *direction=, *is_reply=True) 2023-02-24 16:21:40.005 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-24 16:21:40.007 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received command 0x0A (TSN 99): Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03')), Attribute(attrid=0x0001, value=TypeValue(type=uint8_t, value=17))]) 2023-02-24 16:21:40.008 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Attribute report received: model='lumi.sensor_smoke.acn03', app_version=17 2023-02-24 16:21:40.022 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-24 16:21:40.028 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 1, 17) params: FOREIGN KEY constraint failed 2023-02-24 16:21:43.523 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-24 16:21:43.523 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-24 16:21:43.534 DEBUG (MainThread) [zigpy.application] Sending 'zdo_leave_req' failed: 2023-02-24 16:21:46.015 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42f2b1a9112a15b65854b624ab5593499c42af15ac5a9874bada3c989874c8a7aaf3df4ee6f3c4f3ccd64824472688f1763d81e975824198440702b0ea51381c0227ba83ea66ed659b25bfe79f57e2d9d4cb15a2f3b048873209187e2f0acfcfdda3ed7e' 2023-02-24 16:21:46.016 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:46.018 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=12), 136, -66, 0x9441, 255, 255, b'\x1c_\x11d\n\xf7\x00A>\x01!i\x0c\x03(\x19\x04!\xa8\x01\x05!\x1d\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-24 16:21:46.019 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=12), 136, -66, 0x9441, 255, 255, b'\x1c_\x11d\n\xf7\x00A>\x01!i\x0c\x03(\x19\x04!\xa8\x01\x05!\x1d\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-24 16:21:46.019 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=12, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11d\n\xf7\x00A>\x01!i\x0c\x03(\x19\x04!\xa8\x01\x05!\x1d\x00\x06$\x03\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=136, rssi=-66) 2023-02-24 16:21:46.020 WARNING (MainThread) [zigpy.application] Unknown device AddrModeAddress(addr_mode=, address=0x9441) 2023-02-24 16:21:46.034 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=145, profile_id=0, cluster_id=, data=Serialized[b'\x91A\x94\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:46.035 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffd, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=145), 0, 146, b'\x91A\x94\x00\x00') 2023-02-24 16:21:46.037 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'25f321a9622ae84d59944b25aa5592489c4eb6ab7fcbf6ca69c663fed57e' 2023-02-24 16:21:46.045 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'53f3a1a9622a1550b06b7e' 2023-02-24 16:21:46.046 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:46.050 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [, 226] 2023-02-24 16:21:46.054 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63f3b1a9112a10b259954a25aa5593499cacd8abedce9874f857221dfc7e28227e' 2023-02-24 16:21:46.054 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:46.060 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=226), 255, 0, 0x0000, 255, 255, b'\x91A\x94\x00\x00'] 2023-02-24 16:21:46.060 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=226), 255, 0, 0x0000, 255, 255, b'\x91A\x94\x00\x00'] 2023-02-24 16:21:46.060 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: 2023-02-24 16:21:46.063 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'73f3b1a9112a15b25995ca25aa1593499cadd8abedce9874f1576389e10f3fb7af228a2e1bac2d7e' 2023-02-24 16:21:46.064 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:46.065 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32769, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=227), 255, 0, 0x0000, 255, 255, b'\x91\x00\x00\x1dq\x00\x10D\xefTA\x94'] 2023-02-24 16:21:46.066 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32769, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=227), 255, 0, 0x0000, 255, 255, b'\x91\x00\x00\x1dq\x00\x10D\xefTA\x94'] 2023-02-24 16:21:46.066 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=227, profile_id=0, cluster_id=32769, data=Serialized[b'\x91\x00\x00\x1dq\x00\x10D\xefTA\x94'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=0) 2023-02-24 16:21:46.067 DEBUG (MainThread) [zigpy.application] Discovered IEEE address for NWK=0x9441: 54:ef:44:10:00:71:1d:00 2023-02-24 16:21:46.068 INFO (MainThread) [zigpy.application] New device 0x9441 (54:ef:44:10:00:71:1d:00) joined the network 2023-02-24 16:21:46.068 DEBUG (MainThread) [zigpy.device] [0x9441] Scheduling initialization 2023-02-24 16:21:46.069 DEBUG (MainThread) [zigpy.zdo] [0x0000:zdo] ZDO request ZDOCmd.IEEE_addr_rsp: [, 54:ef:44:10:00:71:1d:00, 0x9441, None, None, []] 2023-02-24 16:21:46.070 DEBUG (MainThread) [zigpy.zdo] [0x0000:zdo] No handler for ZDO request:ZDOCmd.IEEE_addr_rsp([, 54:ef:44:10:00:71:1d:00, 0x9441, None, None, []]) 2023-02-24 16:21:46.074 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-24 16:21:46.074 INFO (MainThread) [zigpy.device] [0x9441] Requesting 'Node Descriptor' 2023-02-24 16:21:46.074 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-02-24 16:21:46.075 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x93 request 2023-02-24 16:21:46.075 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=147, profile_id=0, cluster_id=, data=Serialized[b'\x93A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:46.076 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:46.078 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'30f021a92a2a15af28945a614501934ff37e' 2023-02-24 16:21:46.084 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'04f0a1a92a2ae42d7e' 2023-02-24 16:21:46.085 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:46.092 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:46.103 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=147), 148, b'\x93A\x94') 2023-02-24 16:21:46.108 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'41f121a9602a15f3cd944a27aa5592499d4e273879cdf4ca6922757e' 2023-02-24 16:21:46.119 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'15f1a1a9602a15562b3d7e' 2023-02-24 16:21:46.119 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:46.125 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 228] 2023-02-24 16:21:46.144 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:21:46.145 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'52f621a9a52a02437e' 2023-02-24 16:21:46.164 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26f6a1a9a52a16b24e941c25a45591499d4e22abe9ce608bfcc66389fc7e3fa7e9cddc6f8fffc5dbd7d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824e29d7e' 2023-02-24 16:21:46.164 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:46.166 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 23, 86, 14, 3, 1, 5, 4, 7, 1, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:21:46.177 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:21:46.178 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'63f721a9fe2a161bc67e' 2023-02-24 16:21:46.184 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'37f7a1a9fe2a15b3cf679f7e' 2023-02-24 16:21:46.184 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:46.189 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x96'] 2023-02-24 16:21:46.193 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 150 2023-02-24 16:21:46.193 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4686, MAC_RX_UNICAST = 15678, MAC_TX_UNICAST_SUCCESS = 93, MAC_TX_UNICAST_RETRY = 15, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 6, APS_DATA_RX_UNICAST = 152, APS_DATA_TX_UNICAST_SUCCESS = 54, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 150] 2023-02-24 16:21:47.005 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47f7b1a96b2a15f3cd944a27aa5592499d4e274f79ce6739187e' 2023-02-24 16:21:47.006 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:47.012 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=228), 148, , b''] 2023-02-24 16:21:47.013 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=228), 148, , b''] 2023-02-24 16:21:47.019 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'57f7b1a9112a15b25996ca25aa1593499c43af15ac5a9874ec5563c8687c7f23b4dca10b8fffebbfd5d26b7c7e7e' 2023-02-24 16:21:47.019 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:47.022 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=13), 136, -66, 0x9441, 255, 255, b'\x93\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-24 16:21:47.023 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=13), 136, -66, 0x9441, 255, 255, b'\x93\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'] 2023-02-24 16:21:47.024 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=13, profile_id=0, cluster_id=32770, data=Serialized[b'\x93\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=136, rssi=-66) 2023-02-24 16:21:47.025 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\x93\x00A\x94\x02@\x84_\x11\x7fd\x00\x00,d\x00\x00' 2023-02-24 16:21:47.028 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'67f7b1a96b2a134fa6944a24aa5592499d4e27497fce67245b7e' 2023-02-24 16:21:47.028 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:47.032 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65533, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=226), 146, , b''] 2023-02-24 16:21:47.033 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65533, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=226), 146, , b''] 2023-02-24 16:21:47.039 INFO (MainThread) [zigpy.device] [0x9441] Got Node Descriptor: NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=True, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False) 2023-02-24 16:21:47.040 INFO (MainThread) [zigpy.device] [0x9441] Discovering endpoints 2023-02-24 16:21:47.040 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-24 16:21:47.041 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x95 request 2023-02-24 16:21:47.041 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=149, profile_id=0, cluster_id=, data=Serialized[b'\x95A\x94'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:47.043 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:47.045 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'77f421a92a2a15af28945a61450193e0c87e' 2023-02-24 16:21:47.054 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70f4a1a92a2a2e167e' 2023-02-24 16:21:47.054 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:47.066 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:47.080 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=149), 150, b'\x95A\x94') 2023-02-24 16:21:47.084 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'00f521a9602a15f3cd944a20aa5592499d4e273e7bcdf2ca69df197e' 2023-02-24 16:21:47.092 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01f5a1a9602a1557c8037e' 2023-02-24 16:21:47.092 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:47.101 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 229] 2023-02-24 16:21:48.216 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'11f5b1a96b2a15f3cd944a20aa5592499d4e274e7bce674d827e' 2023-02-24 16:21:48.216 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:48.220 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=229), 150, , b''] 2023-02-24 16:21:48.221 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=229), 150, , b''] 2023-02-24 16:21:48.225 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'21f5b1a9112a15b25991ca25aa1593499c40a316ac5a9874fb5363c8687f3ea5d9cd7e' 2023-02-24 16:21:48.225 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:48.227 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 132, -67, 0x9441, 255, 255, b'\x95\x00A\x94\x01\x01'] 2023-02-24 16:21:48.227 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=14), 132, -67, 0x9441, 255, 255, b'\x95\x00A\x94\x01\x01'] 2023-02-24 16:21:48.228 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=14, profile_id=0, cluster_id=32773, data=Serialized[b'\x95\x00A\x94\x01\x01'], tx_options=, radius=0, non_member_radius=0, lqi=132, rssi=-67) 2023-02-24 16:21:48.229 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32773: b'\x95\x00A\x94\x01\x01' 2023-02-24 16:21:48.234 INFO (MainThread) [zigpy.device] [0x9441] Discovered endpoints: [1] 2023-02-24 16:21:48.234 INFO (MainThread) [zigpy.device] [0x9441] Initializing endpoints [>] 2023-02-24 16:21:48.235 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovering endpoint information 2023-02-24 16:21:48.235 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-02-24 16:21:48.236 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x97 request 2023-02-24 16:21:48.236 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=151, profile_id=0, cluster_id=, data=Serialized[b'\x97A\x94\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:48.237 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:48.238 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d33fa21a92a2a15af28945a614501932c6b7e' 2023-02-24 16:21:48.251 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32faa1a92a2a00ee7e' 2023-02-24 16:21:48.251 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:48.258 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:48.265 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=151), 152, b'\x97A\x94\x01') 2023-02-24 16:21:48.267 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'24fb21a9602a15f3cd944a21aa5592499d4e273c75caf0ca69c791307e' 2023-02-24 16:21:48.275 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'43fba1a9602a1554b39e7e' 2023-02-24 16:21:48.275 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:48.283 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 230] 2023-02-24 16:21:49.427 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'53fbb1a96b2a15f3cd944a21aa5592499d4e274d75ce67e7b67e' 2023-02-24 16:21:49.428 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:49.432 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=230), 152, , b''] 2023-02-24 16:21:49.433 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=230), 152, , b''] 2023-02-24 16:21:49.440 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63fbb1a9112a15b25990ca25aa1593499c415312ac5a9874ea5163c8686c3ea3eacfda6e8bffc7dbd0d1698d4622b0ec7442cf7e' 2023-02-24 16:21:49.440 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:49.443 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=15), 116, -71, 0x9441, 255, 255, b'\x97\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-24 16:21:49.444 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=15), 116, -71, 0x9441, 255, 255, b'\x97\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'] 2023-02-24 16:21:49.444 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=15, profile_id=0, cluster_id=32772, data=Serialized[b'\x97\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00'], tx_options=, radius=0, non_member_radius=0, lqi=116, rssi=-71) 2023-02-24 16:21:49.446 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32772: b'\x97\x00A\x94\x12\x01\x04\x01\x02\x04\x01\x04\x00\x00\x00\x05\x03\x00\x01\x00\x01\x19\x00' 2023-02-24 16:21:49.457 INFO (MainThread) [zigpy.endpoint] [0x9441:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[0, 1280, 3, 1], output_clusters=[25]) 2023-02-24 16:21:49.459 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=153, command_id=, *direction=, *is_reply=False) 2023-02-24 16:21:49.461 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5]) 2023-02-24 16:21:49.462 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x99 request 2023-02-24 16:21:49.462 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=153, profile_id=260, cluster_id=0, data=Serialized[b'\x00\x99\x00\x04\x00\x05\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:49.463 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:49.465 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'37f821a92a2a15af28945a61450193dc0f7e' 2023-02-24 16:21:49.477 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'74f8a1a92a2aa39c7e' 2023-02-24 16:21:49.477 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:49.482 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:49.493 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=153), 154, b'\x00\x99\x00\x04\x00\x05\x00') 2023-02-24 16:21:49.497 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'40f921a9602a15f3cd904b25aa5493499d4e273277c96712fdc2638cfc95c17e' 2023-02-24 16:21:49.507 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'05f9a1a9602a1555b5477e' 2023-02-24 16:21:49.508 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:49.509 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 231] 2023-02-24 16:21:50.642 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'15f9b1a96b2a15f3cd904b25aa5493499d4e274c77ce679a657e' 2023-02-24 16:21:50.642 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:50.645 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=231), 154, , b''] 2023-02-24 16:21:50.646 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=231), 154, , b''] 2023-02-24 16:21:50.657 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'25f9b1a9112a15b658944a24ab1593499c5ea717ac5a9874d5defa88f87e3fe5ef818b22c6fac7db97c505f92b4a879f1355d68507dd32f5234d769f8113562c3d052ed17e' 2023-02-24 16:21:50.658 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:50.662 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=16), 128, -68, 0x9441, 255, 255, b'\x18\x99\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-24 16:21:50.663 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=16), 128, -68, 0x9441, 255, 255, b'\x18\x99\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-24 16:21:50.664 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=16, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x99\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03'], tx_options=, radius=0, non_member_radius=0, lqi=128, rssi=-68) 2023-02-24 16:21:50.665 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Received ZCL frame: b'\x18\x99\x01\x04\x00\x00B\x04LUMI\x05\x00\x00B\x17lumi.sensor_smoke.acn03' 2023-02-24 16:21:50.666 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=153, command_id=1, *direction=, *is_reply=True) 2023-02-24 16:21:50.669 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=CharacterString, value='LUMI')), ReadAttributeRecord(attrid=0x0005, status=, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03'))]) 2023-02-24 16:21:50.678 INFO (MainThread) [zigpy.device] [0x9441] Read model 'lumi.sensor_smoke.acn03' and manufacturer 'LUMI' from > 2023-02-24 16:21:50.678 INFO (MainThread) [zigpy.device] [0x9441] Discovered basic device information for 2023-02-24 16:21:50.679 DEBUG (MainThread) [zigpy.application] Device is initialized 2023-02-24 16:21:50.682 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for LUMI lumi.sensor_smoke.acn03 (54:ef:44:10:00:71:1d:00) 2023-02-24 16:21:50.683 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-02-24 16:21:50.684 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for 54:ef:44:10:00:71:1d:00: 2023-02-24 16:21:50.692 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'IASZone' using ['ias_zone'] 2023-02-24 16:21:50.693 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'button' component -> 'ZHAIdentifyButton' using ['identify'] 2023-02-24 16:21:50.693 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'DeviceTemperature' using ['device_temperature'] 2023-02-24 16:21:50.693 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic'] 2023-02-24 16:21:50.694 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic'] 2023-02-24 16:21:50.699 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 entering async_device_initialized - is_new_join: True 2023-02-24 16:21:50.699 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x9441:54:ef:44:10:00:71:1d:00 has joined the ZHA zigbee network 2023-02-24 16:21:50.701 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started configuration 2023-02-24 16:21:50.701 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_configure' stage succeeded 2023-02-24 16:21:50.720 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: started IASZoneChannel configuration 2023-02-24 16:21:50.720 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS 2023-02-24 16:21:50.721 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: wrote cie_addr: 38:5c:fb:ff:fe:e3:73:71 to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=)] 2023-02-24 16:21:50.722 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Sending pro-active IAS enroll response 2023-02-24 16:21:50.722 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished IASZoneChannel configuration 2023-02-24 16:21:50.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: Configuring cluster attribute reporting 2023-02-24 16:21:50.723 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel configuration 2023-02-24 16:21:50.724 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Performing cluster binding 2023-02-24 16:21:50.724 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: bound 'device_temperature' cluster: Status.SUCCESS 2023-02-24 16:21:50.725 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Configuring cluster attribute reporting 2023-02-24 16:21:50.726 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Successfully configured reporting for '{'current_temperature': (30, 900, 50)}' on 'device_temperature' cluster: [ConfigureReportingResponseRecord(status=)] 2023-02-24 16:21:50.727 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel configuration 2023-02-24 16:21:50.727 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: Configuring cluster attribute reporting 2023-02-24 16:21:50.728 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel configuration 2023-02-24 16:21:50.728 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing cluster binding 2023-02-24 16:21:50.729 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x9b request 2023-02-24 16:21:50.730 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=0, source_route=None, extended_timeout=True, tsn=155, profile_id=0, cluster_id=, data=Serialized[b'\x9b\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:50.730 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:50.731 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel configuration 2023-02-24 16:21:50.732 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 4, 'LUMI') params: FOREIGN KEY constraint failed 2023-02-24 16:21:50.738 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'53fe21a92a2a15af28945a61450193fbc77e' 2023-02-24 16:21:50.743 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=157, command_id=0, *direction=, *is_reply=False) 2023-02-24 16:21:50.744 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0500] Sending request: enroll_response(enroll_response_code=, zone_id=0) 2023-02-24 16:21:50.745 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x9d request 2023-02-24 16:21:50.746 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=157, profile_id=260, cluster_id=1280, data=Serialized[b'\x01\x9d\x00\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:50.748 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36fea1a92a2a8f497e' 2023-02-24 16:21:50.748 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:50.755 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:50.755 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (54:ef:44:10:00:71:1d:00, 1, 0, 5, 'lumi.sensor_smoke.acn03') params: FOREIGN KEY constraint failed 2023-02-24 16:21:50.765 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=155), 156, b'\x9b\x00\x1dq\x00\x10D\xefT\x01\xc0\xfc\x03qs\xe3\xfe\xff\xfb\\8\x01') 2023-02-24 16:21:50.767 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'64ff21a9602a15f3cd944a04aa5592499d4e273071d8fc8be0b76399b8916ba62b31dd1efc1c39242e8e518d5c177e' 2023-02-24 16:21:50.781 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47ffa1a9602a155a9cfb7e' 2023-02-24 16:21:50.781 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:50.783 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 232] 2023-02-24 16:21:50.787 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:50.789 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75fc21a92a2a15af28945a61450193467a7e' 2023-02-24 16:21:50.798 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50fca1a92a2a19337e' 2023-02-24 16:21:50.798 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:50.803 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:50.805 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=157), 158, b'\x01\x9d\x00\x00\x00') 2023-02-24 16:21:50.809 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'06fd21a9602a15f3cd904b25af5493499d4e273673cb6616fdc66305e27e' 2023-02-24 16:21:50.827 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'61fda1a9602a155b179a7e' 2023-02-24 16:21:50.827 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:50.830 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 233] 2023-02-24 16:21:51.853 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'71fdb1a96b2a15f3cd944a04aa5592499d4e274371ce672f267e' 2023-02-24 16:21:51.853 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:51.859 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=232), 156, , b''] 2023-02-24 16:21:51.860 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=232), 156, , b''] 2023-02-24 16:21:51.868 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01fdb1a9112a15b259b5ca25aa1593499c5fa316ac5a9874ff5d638b30737e' 2023-02-24 16:21:51.868 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-02-24 16:21:51.870 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 132, -67, 0x9441, 255, 255, b'\x9b\x00'] 2023-02-24 16:21:51.871 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 132, -67, 0x9441, 255, 255, b'\x9b\x00'] 2023-02-24 16:21:51.871 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=17, profile_id=0, cluster_id=32801, data=Serialized[b'\x9b\x00'], tx_options=, radius=0, non_member_radius=0, lqi=132, rssi=-67) 2023-02-24 16:21:51.881 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: bound 'opple_cluster' cluster: Status.SUCCESS 2023-02-24 16:21:51.882 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Configuring cluster attribute reporting 2023-02-24 16:21:51.883 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel configuration 2023-02-24 16:21:51.892 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_configure' stage succeeded 2023-02-24 16:21:51.892 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_configure' stage succeeded 2023-02-24 16:21:51.893 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_configure' stage succeeded 2023-02-24 16:21:51.893 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_configure' stage succeeded 2023-02-24 16:21:51.894 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_configure' stage succeeded 2023-02-24 16:21:51.894 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_configure' stage succeeded 2023-02-24 16:21:51.905 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed configuration 2023-02-24 16:21:51.907 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=False), tsn=159, command_id=64, *direction=, *is_reply=False) 2023-02-24 16:21:51.908 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Sending request: trigger_effect(effect_id=, effect_variant=) 2023-02-24 16:21:51.909 DEBUG (MainThread) [zigpy.device] [0x9441] Extending timeout for 0x9f request 2023-02-24 16:21:51.910 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x9441), dst_ep=1, source_route=None, extended_timeout=True, tsn=159, profile_id=260, cluster_id=3, data=Serialized[b'\x01\x9f@\x02\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-02-24 16:21:51.911 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (54:ef:44:10:00:71:1d:00, True) 2023-02-24 16:21:51.914 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d318221a92a2a15af28945a61450193fa5e7e' 2023-02-24 16:21:51.923 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'1282a1a92a2a2a4d7e' 2023-02-24 16:21:51.924 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-02-24 16:21:51.933 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-02-24 16:21:51.940 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x9441, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=159), 160, b'\x01\x9f@\x02\x00') 2023-02-24 16:21:51.943 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'228321a9602a15f3cd904b26aa5493499d4e27344dcb6614bdc463bdd07e' 2023-02-24 16:21:51.952 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'2383a1a9602a1558e8667e' 2023-02-24 16:21:51.952 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-02-24 16:21:51.953 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 234] 2023-02-24 16:21:52.068 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'3383b1a96b2a15f3cd904b25af5493499d4e274273ce67c4a47e' 2023-02-24 16:21:52.068 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-02-24 16:21:52.071 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=233), 158, , b''] 2023-02-24 16:21:52.072 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=1280, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=233), 158, , b''] 2023-02-24 16:21:53.276 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'4383b1a96b2a15f3cd904b26aa5493499d4e27414dce679c0f7e' 2023-02-24 16:21:53.277 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-02-24 16:21:53.280 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=234), 160, , b''] 2023-02-24 16:21:53.281 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 37953, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=234), 160, , b''] 2023-02-24 16:21:53.286 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5383b1a9112a15b658974a24ab1593499c5ca717ac5a9874f8defc82bc7e3d789b7e' 2023-02-24 16:21:53.286 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-02-24 16:21:53.288 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=18), 128, -68, 0x9441, 255, 255, b'\x18\x9f\x0b@\x00'] 2023-02-24 16:21:53.288 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=3, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=18), 128, -68, 0x9441, 255, 255, b'\x18\x9f\x0b@\x00'] 2023-02-24 16:21:53.289 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=18, profile_id=260, cluster_id=3, data=Serialized[b'\x18\x9f\x0b@\x00'], tx_options=, radius=0, non_member_radius=0, lqi=128, rssi=-68) 2023-02-24 16:21:53.290 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Received ZCL frame: b'\x18\x9f\x0b@\x00' 2023-02-24 16:21:53.291 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=159, command_id=11, *direction=, *is_reply=True) 2023-02-24 16:21:53.296 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0x0003] Decoded ZCL frame: Identify:Default_Response(command_id=64, status=) 2023-02-24 16:21:53.307 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: executed 'trigger_effect' command with args: '()' kwargs: '{'effect_id': , 'effect_variant': }' result: Default_Response(command_id=64, status=) 2023-02-24 16:21:53.309 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): started initialization 2023-02-24 16:21:53.309 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:ZDO](lumi.sensor_smoke.acn03): 'async_initialize' stage succeeded 2023-02-24 16:21:53.324 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing channel: from_cache: False 2023-02-24 16:21:53.324 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing cached channel attributes: ['zone_status', 'zone_type'] 2023-02-24 16:21:53.325 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_status', 'zone_type'] 2023-02-24 16:21:53.325 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: initializing uncached channel attributes: ['zone_state'] - from cache[False] 2023-02-24 16:21:53.326 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Reading attributes in chunks: ['zone_state'] 2023-02-24 16:21:53.326 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: finished channel initialization 2023-02-24 16:21:53.327 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: initializing channel: from_cache: False 2023-02-24 16:21:53.327 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: finished channel initialization 2023-02-24 16:21:53.328 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing channel: from_cache: False 2023-02-24 16:21:53.328 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: initializing uncached channel attributes: ['current_temperature'] - from cache[False] 2023-02-24 16:21:53.328 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: Reading attributes in chunks: ['current_temperature'] 2023-02-24 16:21:53.329 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: finished channel initialization 2023-02-24 16:21:53.330 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: initializing channel: from_cache: False 2023-02-24 16:21:53.330 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: finished channel initialization 2023-02-24 16:21:53.330 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: initializing channel: from_cache: False 2023-02-24 16:21:53.331 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: Performing channel specific initialization: [] 2023-02-24 16:21:53.331 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: finished channel initialization 2023-02-24 16:21:53.331 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: initializing channel: from_cache: False 2023-02-24 16:21:53.332 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: finished channel initialization 2023-02-24 16:21:53.350 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.351 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0003]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.352 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0002]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.352 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0000]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.353 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0xfcc0]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.353 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0019]: 'async_initialize' stage succeeded 2023-02-24 16:21:53.380 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): power source: Mains 2023-02-24 16:21:53.382 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x9441](lumi.sensor_smoke.acn03): completed initialization 2023-02-24 16:21:53.402 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.zha entity: binary_sensor.lumi_lumi_sensor_smoke_acn03_iaszone 2023-02-24 16:21:53.404 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.zha entity: button.lumi_lumi_sensor_smoke_acn03_identify_2 2023-02-24 16:21:53.406 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.lumi_lumi_sensor_smoke_acn03_rssi_2 2023-02-24 16:21:53.410 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.lumi_lumi_sensor_smoke_acn03_lqi_2 2023-02-24 16:21:53.447 DEBUG (MainThread) [zigpy.appdb] Error handling '_unsupported_attribute_added' event with (54:ef:44:10:00:71:1d:00, 1, 2, 0) params: FOREIGN KEY constraint failed 2023-02-24 16:21:56.196 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:21:56.199 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'368021a9a52a8bf97e' 2023-02-24 16:21:56.216 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6480a1a9a52a16b240942625b15596499d4e22abe8ce6a8bf5c66389fc7e3fa7e9cddc6f8fffc5dbd7d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824f9227e' 2023-02-24 16:21:56.216 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-02-24 16:21:56.219 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 25, 108, 27, 4, 1, 5, 5, 13, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:21:56.222 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:21:56.224 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'478121a9fe2a167c8b7e' 2023-02-24 16:21:56.230 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'7581a1a9fe2a15b3c03f097e' 2023-02-24 16:21:56.231 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-02-24 16:21:56.234 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:21:56.238 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:21:56.238 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4688, MAC_RX_UNICAST = 15700, MAC_TX_UNICAST_SUCCESS = 106, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 158, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:22:06.241 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:22:06.262 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 26, 120, 27, 4, 1, 5, 5, 13, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:22:06.264 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:22:06.272 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:22:06.276 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:22:06.276 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4689, MAC_RX_UNICAST = 15712, MAC_TX_UNICAST_SUCCESS = 106, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 158, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] ```
Logs from triggering the alarm ``` 2023-02-24 16:24:16.741 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:24:16.760 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 34, 276, 27, 4, 1, 5, 5, 14, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:24:16.763 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:24:16.773 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:24:16.774 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:24:16.774 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4697, MAC_RX_UNICAST = 15868, MAC_TX_UNICAST_SUCCESS = 106, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 159, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:24:26.776 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:24:26.797 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 35, 289, 27, 4, 1, 5, 5, 14, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:24:26.799 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:24:26.809 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:24:26.813 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:24:26.813 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4698, MAC_RX_UNICAST = 15881, MAC_TX_UNICAST_SUCCESS = 106, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 159, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:24:28.753 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-24 16:24:28.754 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x61A0](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-24 16:24:36.814 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:24:36.834 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 35, 301, 27, 4, 1, 5, 5, 14, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:24:36.836 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:24:36.847 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:24:36.849 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:24:36.849 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4698, MAC_RX_UNICAST = 15893, MAC_TX_UNICAST_SUCCESS = 106, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 159, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:24:37.632 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setManufacturerCode: (4169,) 2023-02-24 16:24:37.642 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setManufacturerCode: [] 2023-02-24 16:24:39.229 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=20), 156, -61, 0x9441, 255, 255, b'\x18f\n;\x01 \n'] 2023-02-24 16:24:39.230 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=20), 156, -61, 0x9441, 255, 255, b'\x18f\n;\x01 \n'] 2023-02-24 16:24:39.231 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=20, profile_id=260, cluster_id=64704, data=Serialized[b'\x18f\n;\x01 \n'], tx_options=, radius=0, non_member_radius=0, lqi=156, rssi=-61) 2023-02-24 16:24:39.237 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x18f\n;\x01 \n' 2023-02-24 16:24:39.238 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=102, command_id=10, *direction=, *is_reply=True) 2023-02-24 16:24:39.239 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-24 16:24:39.240 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 102): Report_Attributes(attribute_reports=[Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-24 16:24:39.240 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: smoke_density=10 2023-02-24 16:24:41.525 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Device seen - marking the device available and resetting counter 2023-02-24 16:24:41.525 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xBC5C](lumi.sensor_smoke.acn03): Update device availability - device available: True - new availability: True - changed: False 2023-02-24 16:24:43.962 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=21), 140, -65, 0x9441, 255, 255, b'\x18g\n:\x01!\x01\x00;\x01 \n'] 2023-02-24 16:24:43.963 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=21), 140, -65, 0x9441, 255, 255, b'\x18g\n:\x01!\x01\x00;\x01 \n'] 2023-02-24 16:24:43.964 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=21, profile_id=260, cluster_id=64704, data=Serialized[b'\x18g\n:\x01!\x01\x00;\x01 \n'], tx_options=, radius=0, non_member_radius=0, lqi=140, rssi=-65) 2023-02-24 16:24:43.966 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x18g\n:\x01!\x01\x00;\x01 \n' 2023-02-24 16:24:43.967 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=103, command_id=10, *direction=, *is_reply=True) 2023-02-24 16:24:43.969 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=1)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-24 16:24:43.970 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 103): Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=1)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-24 16:24:43.971 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: smoke=1, smoke_density=10 2023-02-24 16:24:43.972 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9441:1:0x0500]: Updated alarm state: 1 2023-02-24 16:24:46.852 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:24:46.873 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 36, 316, 28, 4, 1, 5, 5, 16, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:24:46.875 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:24:46.885 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:24:46.888 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:24:46.888 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4699, MAC_RX_UNICAST = 15908, MAC_TX_UNICAST_SUCCESS = 107, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 161, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] 2023-02-24 16:24:48.530 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=22), 156, -61, 0x9441, 255, 255, b'\x18h\n;\x01 \x00'] 2023-02-24 16:24:48.531 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=22), 156, -61, 0x9441, 255, 255, b'\x18h\n;\x01 \x00'] 2023-02-24 16:24:48.531 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x9441), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=22, profile_id=260, cluster_id=64704, data=Serialized[b'\x18h\n;\x01 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=156, rssi=-61) 2023-02-24 16:24:48.537 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received ZCL frame: b'\x18h\n;\x01 \x00' 2023-02-24 16:24:48.538 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=104, command_id=10, *direction=, *is_reply=True) 2023-02-24 16:24:48.539 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=0))]) 2023-02-24 16:24:48.539 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Received command 0x0A (TSN 104): Report_Attributes(attribute_reports=[Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=0))]) 2023-02-24 16:24:48.540 DEBUG (MainThread) [zigpy.zcl] [0x9441:1:0xfcc0] Attribute report received: smoke_density=0 2023-02-24 16:24:56.890 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-02-24 16:24:56.910 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[3, 36, 329, 28, 4, 1, 5, 5, 17, 8, 0, 0, 0, 2, 2, 0, 2, 2, 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-24 16:24:56.911 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-02-24 16:24:56.923 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\x99'] 2023-02-24 16:24:56.924 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 153 2023-02-24 16:24:56.924 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 11, MAC_TX_BROADCAST = 4699, MAC_RX_UNICAST = 15921, MAC_TX_UNICAST_SUCCESS = 107, MAC_TX_UNICAST_RETRY = 16, MAC_TX_UNICAST_FAILED = 16, APS_DATA_RX_BROADCAST = 7, APS_DATA_TX_BROADCAST = 7, APS_DATA_RX_UNICAST = 162, APS_DATA_TX_UNICAST_SUCCESS = 61, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 15, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 2, NEIGHBOR_STALE = 0, JOIN_INDICATION = 2, CHILD_REMOVED = 2, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, 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 = 153] ```

I also tried some of the OppleCluster things. I was able to read smoke:1 and smoke_density:3 (and 10 at one point). And I was able to send buzzer_manual_mute:1 to mute the alarm. Very cool.

Probably the next step would be to expose a few of these OppleCluster entities:

@TheJulianJES do you want me to send one of these to you to be able to land the plane on this?

johnboiles commented 1 year ago

Ok I tested with another smoke alarm on which I hadn't touched linkage_alarm and it was still reporting smoke immediately on the binary_sensor :tada:

TheJulianJES commented 1 year ago

Awesome!

So the sensor didn't fire a "Xiaomi attribute report", but a normal Zigbee attribute report for the smoke and smoke_density attributes.

Could you press the button on the smoke alarm to generate one of the "Xiaomi attribute reports" again? (which includes a bunch of data that should now be properly named) Should start with this [xiaomi] 54:ef:44:10:00:71:1c:25 - Attribute report. That's what all of these are for: https://github.com/zigpy/zha-device-handlers/blob/23994028004c49b1379706c8f681af5ed11ff89e/zhaquirks/xiaomi/__init__.py#L383-L397 I'd like to see if smoke and smoke2 are both present and work (or if just one works) and that for each of the duplicated entries.

Probably the next step would be to expose a few of these OppleCluster entities:

Yep, we could probably do this, but that would need to be done in ZHA (HA Core) itself, as they're custom attributes. (I'll track the progress for this here when I get to it)

The "Xiaomi attribute reports" should probably also update the cache for the attributes on the OppleCluster for that (for now, that's only implemented for smoke (but for smoke that uses a normal attribute report apparently)).

do you want me to send one of these to you to be able to land the plane on this?

I'd love to have one, but I'm based in Germany, so I guess shipping will be a bit difficult. I might just buy one of these sensors for myself.

Axionkt commented 1 year ago

Here is the result with JY-GZ-03AQ I am not sure how it differs from JY-GZ-01AQ Reading and writing values to the OppleCluster seems to work, they report the correct value and they seem to react appropriately when writing the attributes. buzzer_manual_alarm to 1: Sounds the alarm buzzer_manual_mute to 1: Mutes the alarm

When I put the smoke detector in smoke it changes smoke to 1 and it clears to 0 after 10 min smoke_density seem to be either 0 (when smoke=0) or 10 (when smoke=1) this seems to be the case whether I introduct a small or a large amount of smoke. Although this his quite hard to tell as I have no idea how sensitive the detector is. It is probably behaving as it should but manually setting smoke to 0 when it is 1 doesn't work (read only)

The binary_sensor.lumi_lumi_sensor_smoke_acn03_iaszone updates when smoke is detected and returns to cleared after 10minutes

Button press

``` 2023-02-25 15:32:19.715 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=50), 255, -34, 0xeaf0, 255, 255, b'\x18)\n\x05\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-25 15:32:19.716 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=50), 255, -34, 0xeaf0, 255, 255, b'\x18)\n\x05\x00B\x17lumi.sensor_smoke.acn03'] 2023-02-25 15:32:19.716 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=50, profile_id=260, cluster_id=0, data=Serialized[b'\x18)\n\x05\x00B\x17lumi.sensor_smoke.acn03'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=-34) 2023-02-25 15:32:19.717 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0x0000] Received ZCL frame: b'\x18)\n\x05\x00B\x17lumi.sensor_smoke.acn03' 2023-02-25 15:32:19.717 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=41, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:32:19.718 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0x0000] Decoded ZCL frame: Basic:Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03'))]) 2023-02-25 15:32:19.718 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0x0000] Received command 0x0A (TSN 41): Report_Attributes(attribute_reports=[Attribute(attrid=0x0005, value=TypeValue(type=CharacterString, value='lumi.sensor_smoke.acn03'))]) 2023-02-25 15:32:19.719 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0x0000] Attribute report received: model='lumi.sensor_smoke.acn03' 2023-02-25 15:32:19.723 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=51), 255, -33, 0xeaf0, 255, 255, b'\x1c_\x11*\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-25 15:32:19.723 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=51), 255, -33, 0xeaf0, 255, 255, b'\x1c_\x11*\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'] 2023-02-25 15:32:19.723 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=51, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11*\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=-33) 2023-02-25 15:32:19.724 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x1c_\x11*\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-25 15:32:19.725 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=42, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:32:19.725 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-25 15:32:19.726 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 42): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00'))]) 2023-02-25 15:32:19.726 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x01\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x00\x00\xa1 \x00\xa2 \x00\xa3 \x00\xa4 \x00\xa5 \x00' 2023-02-25 15:32:19.726 DEBUG (MainThread) [xiaomi] 54:ef:44:10:00:5a:6f:93 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3070, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 43, 'X-attrib-6': 1, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 0, 'smoke_density': 0, 'test': 0, 'buzzer_manual_mute': 0, 'heartbeat_indicator': 0, 'linkage_alarm': 0}] 2023-02-25 15:32:19.729 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEAF0:1:0x0500]: Updated alarm state: 0 ```

Smoke Detected

``` 2023-02-25 15:34:04.202 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=53), 192, -52, 0xeaf0, 255, 255, b'\x18,\n:\x01!\x01\x00;\x01 \n'] 2023-02-25 15:34:04.203 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=53), 192, -52, 0xeaf0, 255, 255, b'\x18,\n:\x01!\x01\x00;\x01 \n'] 2023-02-25 15:34:04.203 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=53, profile_id=260, cluster_id=64704, data=Serialized[b'\x18,\n:\x01!\x01\x00;\x01 \n'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-02-25 15:34:04.204 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x18,\n:\x01!\x01\x00;\x01 \n' 2023-02-25 15:34:04.204 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=44, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:34:04.205 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=1)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-25 15:34:04.206 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 44): Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=1)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=10))]) 2023-02-25 15:34:04.206 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: smoke=1, smoke_density=10 2023-02-25 15:34:04.206 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEAF0:1:0x0500]: Updated alarm state: 1 ```

Button mute

``` 2023-02-25 15:34:06.063 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=55), 196, -51, 0xeaf0, 255, 255, b'\x1c_\x11.\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00'] 2023-02-25 15:34:06.063 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=55), 196, -51, 0xeaf0, 255, 255, b'\x1c_\x11.\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00'] 2023-02-25 15:34:06.063 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=55, profile_id=260, cluster_id=64704, data=Serialized[b'\x1c_\x11.\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=196, rssi=-51) 2023-02-25 15:34:06.064 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x1c_\x11.\n\xf7\x00A>\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00' 2023-02-25 15:34:06.065 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=True, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), manufacturer=4447, tsn=46, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:34:06.065 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00'))]) 2023-02-25 15:34:06.066 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 46): Report_Attributes(attribute_reports=[Attribute(attrid=0x00F7, value=TypeValue(type=LVBytes, value=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00'))]) 2023-02-25 15:34:06.066 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: 0x00F7=b'\x01!\xfe\x0b\x03(\x19\x04!\xa8\x13\x05!+\x00\x06$\x04\x00\x00\x00\x00\x08!\x11\x01\n!\x00\x00\x0c \x01f \x03g \x01h!\xa8\x00\xa0!\x01\x00\xa1 \n\xa2 \x00\xa3 \x01\xa4 \x00\xa5 \x00' 2023-02-25 15:34:06.066 DEBUG (MainThread) [xiaomi] 54:ef:44:10:00:5a:6f:93 - Attribute report. attribute_id: [247] value: [{'battery_voltage_mV': 3070, 'temperature': 25, 'X-attrib-4': 5032, 'X-attrib-5': 43, 'X-attrib-6': 4, '0xff01-8': 273, 'path': 0, '0xff01-12': 1, '0xff01-102': 3, '0xff01-103': 1, '0xff01-104': 168, 'smoke': 1, 'smoke_density': 10, 'test': 0, 'buzzer_manual_mute': 1, 'heartbeat_indicator': 0, 'linkage_alarm': 0}] 2023-02-25 15:34:06.067 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEAF0:1:0x0500]: Updated alarm state: 1 2023-02-25 15:34:06.339 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=56), 196, -51, 0xeaf0, 255, 255, b'\x18/\n&\x01 \x01'] 2023-02-25 15:34:06.339 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=56), 196, -51, 0xeaf0, 255, 255, b'\x18/\n&\x01 \x01'] 2023-02-25 15:34:06.340 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=56, profile_id=260, cluster_id=64704, data=Serialized[b'\x18/\n&\x01 \x01'], tx_options=, radius=0, non_member_radius=0, lqi=196, rssi=-51) 2023-02-25 15:34:06.340 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x18/\n&\x01 \x01' 2023-02-25 15:34:06.341 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=47, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:34:06.341 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0126, value=TypeValue(type=uint8_t, value=1))]) 2023-02-25 15:34:06.341 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 47): Report_Attributes(attribute_reports=[Attribute(attrid=0x0126, value=TypeValue(type=uint8_t, value=1))]) 2023-02-25 15:34:06.341 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: buzzer_manual_mute=1 ```

Cleared after 10min

``` 2023-02-25 15:44:16.564 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=59), 255, -36, 0xeaf0, 255, 255, b'\x182\n:\x01!\x00\x00;\x01 \x00'] 2023-02-25 15:44:16.565 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=59), 255, -36, 0xeaf0, 255, 255, b'\x182\n:\x01!\x00\x00;\x01 \x00'] 2023-02-25 15:44:16.565 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=59, profile_id=260, cluster_id=64704, data=Serialized[b'\x182\n:\x01!\x00\x00;\x01 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=-36) 2023-02-25 15:44:16.566 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x182\n:\x01!\x00\x00;\x01 \x00' 2023-02-25 15:44:16.566 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=50, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:44:16.566 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=0)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=0))]) 2023-02-25 15:44:16.567 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 50): Report_Attributes(attribute_reports=[Attribute(attrid=0x013A, value=TypeValue(type=uint16_t, value=0)), Attribute(attrid=0x013B, value=TypeValue(type=uint8_t, value=0))]) 2023-02-25 15:44:16.567 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: smoke=0, smoke_density=0 2023-02-25 15:44:16.567 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEAF0:1:0x0500]: Updated alarm state: 0 2023-02-25 15:44:16.569 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=60), 255, -36, 0xeaf0, 255, 255, b'\x183\n&\x01 \x00'] 2023-02-25 15:44:16.569 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=64704, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=60), 255, -36, 0xeaf0, 255, 255, b'\x183\n&\x01 \x00'] 2023-02-25 15:44:16.569 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0xEAF0), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=60, profile_id=260, cluster_id=64704, data=Serialized[b'\x183\n&\x01 \x00'], tx_options=, radius=0, non_member_radius=0, lqi=255, rssi=-36) 2023-02-25 15:44:16.570 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received ZCL frame: b'\x183\n&\x01 \x00' 2023-02-25 15:44:16.570 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=51, command_id=10, *direction=, *is_reply=True) 2023-02-25 15:44:16.570 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Decoded ZCL frame: OppleCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0126, value=TypeValue(type=uint8_t, value=0))]) 2023-02-25 15:44:16.570 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Received command 0x0A (TSN 51): Report_Attributes(attribute_reports=[Attribute(attrid=0x0126, value=TypeValue(type=uint8_t, value=0))]) 2023-02-25 15:44:16.571 DEBUG (MainThread) [zigpy.zcl] [0xEAF0:1:0xfcc0] Attribute report received: buzzer_manual_mute=0 ```