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
705 stars 650 forks source link

[Device Support Request] Tuya ZG-102ZL / _TZE200_pay2byax #1502

Open centershock opened 2 years ago

centershock commented 2 years ago

Is your feature request related to a problem? Please describe. The device is not supported, I request a full support of this device.

Describe the solution you'd like Full support for the device, primarily to check "open" and "close" of a window / door.

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

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0402",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0500"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_pay2byax",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}

Join logs:

New device 0x0df7 (a4:c1:38:4d:82:df:a6:b0) joined the network
[0x0df7] Scheduling initialization
Received frame on uninitialized device <Device model=None manuf=None nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x00\xf7\r\xb0\xa6\xdf\x82M8\xc1\xa4\x80'
[0x0df7:zdo] ZDO request ZDOCmd.Device_annce: [0x0DF7, a4:c1:38:4d:82:df:a6:b0, 128]
Tries remaining: 3
[0x0df7] Requesting 'Node Descriptor'
Tries remaining: 2
[0x0df7] Extending timeout for 0x77 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'w\x00\xf7\r\x02@\x80A\x11BB\x00\x00*B\x00\x00'
[0x0df7] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)
[0x0df7] Discovering endpoints
Tries remaining: 3
[0x0df7] Extending timeout for 0x79 request
light.hue_runner_spot_1_1: polling current state
[0x3808:11:0x0006] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=123, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x3808:11:0x0006] Sending request: Read_Attributes(attribute_ids=[0])
Received frame on uninitialized device <Device model=None manuf=None nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32773: b'y\x00\xf7\r\x01\x01'
[0x0df7] Discovered endpoints: [1]
[0x0df7] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
[0x0df7:1] Discovering endpoint information
Tries remaining: 3
[0x0df7] Extending timeout for 0x7d request
[0x3808:11:0x0006] Received ZCL frame: b'\x18{\x01\x00\x00\x00\x10\x00'
[0x3808:11:0x0006] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=123, command_id=1, *is_reply=True)
[0x3808:11:0x0006] Decoded ZCL frame: OnOff:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=Bool, value=<Bool.false: 0>))])
[0x3808:11:0x0008] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=127, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x3808:11:0x0008] Sending request: Read_Attributes(attribute_ids=[0])
[0x3808:11:0x0008] Received ZCL frame: b'\x18\x7f\x01\x00\x00\x00 \xfe'
[0x3808:11:0x0008] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=127, command_id=1, *is_reply=True)
[0x3808:11:0x0008] Decoded ZCL frame: LevelControl:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=254))])
[0x3808:11:0x0008]: received attribute: 0 update with value: 254
[0x3808:11:0x0300] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=129, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x3808:11:0x0300] Sending request: Read_Attributes(attribute_ids=[8, 7, 3, 4, 16386])
Received frame on uninitialized device <Device model=None manuf=None nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'}\x00\xf7\r\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00'
[0x0df7:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[1, 1280, 0], output_clusters=[25, 10])
[0x0DF7:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=131, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x0DF7:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
[0x0df7] Extending timeout for 0x83 request
[0x3808:11:0x0300] Received ZCL frame: b'\x18\x81\x01\x08\x00\x000\x02\x07\x00\x00!n\x01\x03\x00\x00!\x0fu\x04\x00\x00!\xf5h\x02@\x86'
[0x3808:11:0x0300] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=129, command_id=1, *is_reply=True)
[0x3808:11:0x0300] Decoded ZCL frame: Color:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0008, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum8, value=<enum8.undefined_0x02: 2>)), ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=366)), ReadAttributeRecord(attrid=0x0003, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=29967)), ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint16_t, value=26869)), ReadAttributeRecord(attrid=0x4002, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
[0x0DF7:1:0x0000] Received ZCL frame: b'\x18\x83\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601'
[0x0DF7:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=131, command_id=1, *is_reply=True)
[0x0DF7:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_pay2byax')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
[0x0df7] Read model 'TS0601' and manufacturer '_TZE200_pay2byax' from <Endpoint id=1 in=[power:0x0001, ias_zone:0x0500, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
[0x0df7] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Device is initialized <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x0DF7 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Checking quirks for _TZE200_pay2byax TS0601 (a4:c1:38:4d:82:df:a6:b0)
Considering <class 'zhaquirks.xbee.xbee_io.XBeeSensor'>
Fail because endpoint list mismatch: {232, 230} {1}
Considering <class 'zhaquirks.xbee.xbee3_io.XBee3Sensor'>
Fail because endpoint list mismatch: {232, 230} {1}
Considering <class 'zhaquirks.smartthings.tag_v4.SmartThingsTagV4'>
Fail because device_type mismatch on at least one endpoint
Considering <class 'zhaquirks.smartthings.multi.SmartthingsMultiPurposeSensor'>
Fail because input cluster mismatch on at least one endpoint
Considering <class 'zhaquirks.netvox.z308e3ed.Z308E3ED'>
Fail because input cluster mismatch on at least one endpoint
Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
Fail because endpoint list mismatch: {11, 13} {1}
Considering <class 'bellows.zigbee.application.EZSPCoordinator'>
Fail because device_type mismatch on at least one endpoint
'binary_sensor' component -> 'IASZone' using ['ias_zone']
'sensor' component -> 'Battery' using ['power']
'sensor' component -> 'RSSISensor' using ['basic']
'sensor' component -> 'LQISensor' using ['basic']
device - 0x0DF7:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: True
device - 0x0DF7:a4:c1:38:4d:82:df:a6:b0 has joined the ZHA zigbee network
[0x0DF7](TS0601): started configuration
[0x0DF7:ZDO](TS0601): 'async_configure' stage succeeded
[0x0DF7:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=133, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x0DF7:1:0x0500] Sending request: Read_Attributes(attribute_ids=[1])
[0x0df7] Extending timeout for 0x85 request
[0x0DF7:1:0x0000]: finished channel configuration
[0x0df7] Extending timeout for 0x87 request
[0x0DF7:1:0x0019]: finished channel configuration
Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 4, '_TZE200_pay2byax') params: FOREIGN KEY constraint failed
Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 5, 'TS0601') params: FOREIGN KEY constraint failed
Ignoring message (b'09940200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
[0x0DF7:1:0x0500] Received ZCL frame: b'\x18\x85\x01\x01\x00\x001(\x00'
[0x0DF7:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=133, command_id=1, *is_reply=True)
[0x0DF7:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0001, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum16, value=<enum16.undefined_0x0028: 40>))])
[0x0DF7:1:0x0500]: started IASZoneChannel configuration
[0x0df7] Extending timeout for 0x89 request
[0x0DF7:1:0x0001]: bound 'power' cluster: Status.SUCCESS
[0x0DF7:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=139, command_id=<GeneralCommand.Configure_Reporting: 6>, *is_reply=False)
[0x0DF7:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)])
[0x0df7] Extending timeout for 0x8b request
Ignoring message (b'09940200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
[0x0DF7:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS
[0x0DF7:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=141, command_id=<GeneralCommand.Write_Attributes: 2>, *is_reply=False)
[0x0DF7:1:0x0500] Sending request: Write_Attributes(attributes=[Attribute(attrid=0x0010, value=TypeValue(type=EUI64, value=00:21:2e:ff:ff:07:79:3e))])
[0x0df7] Extending timeout for 0x8d request
Ignoring message (b'09940200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
[0x0DF7:1:0x0001] Received ZCL frame: b'\x18\x8b\x07\x00\x00 \x00\x00\x00!\x00'
[0x0DF7:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=139, command_id=7, *is_reply=True)
[0x0DF7:1:0x0001] Decoded ZCL frame: PowerConfiguration:Configure_Reporting_rsp(status_records=[ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)])
[0x0DF7:1:0x0001]: Successfully configured reporting for '{'battery_voltage', 'battery_percentage_remaining'}' on 'power' cluster
[0x0DF7:1:0x0001]: Failed to configure reporting for '[]' on 'power' cluster: [ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)]
[0x0DF7:1:0x0001]: finished channel configuration
[0x0DF7:1:0x0500] Received ZCL frame: b'\x18\x8d\x04\x00'
[0x0DF7:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=141, command_id=4, *is_reply=True)
[0x0DF7:1:0x0500] Decoded ZCL frame: IasZone:Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)])
[0x0DF7:1:0x0500]: wrote cie_addr: 00:21:2e:ff:ff:07:79:3e to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]
[0x0DF7:1:0x0500]: Sending pro-active IAS enroll response
[0x0DF7:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=143, command_id=0, *is_reply=False)
[0x0DF7:1:0x0500] Sending request: enroll_response(enroll_response_code=<EnrollResponse.Success: 0>, zone_id=0)
[0x0DF7:1:0x0500]: finished IASZoneChannel configuration
[0x0df7] Extending timeout for 0x8f request
[0x0DF7:1:0x0500]: 'async_configure' stage succeeded
[0x0DF7:1:0x0000]: 'async_configure' stage succeeded
[0x0DF7:1:0x0001]: 'async_configure' stage succeeded
[0x0DF7:1:0x0019]: 'async_configure' stage succeeded
[0x0DF7](TS0601): completed configuration
[0x0DF7](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_pay2byax TS0601', ieee='a4:c1:38:4d:82:df:a6:b0', last_seen=1650114287.8170516)
[0x0DF7](TS0601): started initialization
[0x0DF7:ZDO](TS0601): 'async_initialize' stage succeeded
[0x0DF7:1:0x0500]: initializing channel: from_cache: False
[0x0DF7:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=145, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x0DF7:1:0x0500] Sending request: Read_Attributes(attribute_ids=[0])
[0x0df7] Extending timeout for 0x91 request
[0x0DF7:1:0x0000]: initializing channel: from_cache: False
[0x0DF7:1:0x0000]: finished channel initialization
[0x0DF7:1:0x0001]: initializing channel: from_cache: False
[0x0DF7:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=147, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x0DF7:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33])
[0x0df7] Extending timeout for 0x93 request
[0x0DF7:1:0x0019]: initializing channel: from_cache: False
[0x0DF7:1:0x0019]: finished channel initialization
[0x0DF7:1:0x0500] Received ZCL frame: b'\x18\x8f\x0b\x00\x00'
[0x0DF7:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=143, command_id=11, *is_reply=True)
[0x0DF7:1:0x0500] Decoded ZCL frame: IasZone:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
[0x0DF7:1:0x0500] Received ZCL frame: b'\x18\x91\x01\x00\x00\x000\x00'
[0x0DF7:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=145, command_id=1, *is_reply=True)
[0x0DF7:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum8, value=<enum8.undefined_0x00: 0>))])
[0x0DF7:1:0x0500]: finished channel initialization
[0x0DF7:1:0x0001] Received ZCL frame: b'\x18\x93\x01 \x00\x00 \x00!\x00\x00 \x00'
[0x0DF7:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=147, command_id=1, *is_reply=True)
[0x0DF7:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0020, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0)), ReadAttributeRecord(attrid=0x0021, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0))])
[0x0DF7:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x0DF7:1:0x0001] Sending request: Read_Attributes(attribute_ids=[49, 51])
[0x0df7] Extending timeout for 0x95 request
[0x0DF7:1:0x000a] Received ZCL frame: b'\x00\x95\x00\x07\x00'
[0x0DF7:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=0, *is_reply=False)
[0x0DF7:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
[0x0DF7:1:0x000a] Received command 0x00 (TSN 149): Read_Attributes(attribute_ids=[7])
[0x0DF7:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *is_reply=True)
[0x0DF7:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=703436690))])
Duplicate 149 TSN
[0x0DF7:1:0x0001] Received ZCL frame: b'\x18\x95\x011\x00\x863\x00\x86'
[0x0DF7:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=1, *is_reply=True)
[0x0DF7:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0031, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0033, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
[0x0DF7:1:0x0001]: finished channel initialization
[0x0DF7:1:0x0500]: 'async_initialize' stage succeeded
[0x0DF7:1:0x0000]: 'async_initialize' stage succeeded
[0x0DF7:1:0x0001]: 'async_initialize' stage succeeded
[0x0DF7:1:0x0019]: 'async_initialize' stage succeeded
[0x0DF7](TS0601): power source: Battery or Unknown
[0x0DF7](TS0601): completed initialization
[0x0DF7:1:0x000a] Received ZCL frame: b'\x00\x95\x00\x07\x00'
[0x0DF7:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=0, *is_reply=False)
[0x0DF7:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
[0x0DF7:1:0x000a] Received command 0x00 (TSN 149): Read_Attributes(attribute_ids=[7])
[0x0DF7:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *is_reply=True)
[0x0DF7:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=703436691))])
Ignoring message (b'09960200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09960200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09960200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
[0x3808:11:0x0300] Received ZCL frame: b'\x18y\n\x04\x00!\xf5h\x03\x00!\x0fu\x07\x00!n\x01'
[0x3808:11:0x0300] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=121, command_id=10, *is_reply=True)
[0x3808:11:0x0300] Decoded ZCL frame: Color:Report_Attributes(attribute_reports=[Attribute(attrid=0x0004, value=TypeValue(type=uint16_t, value=26869)), Attribute(attrid=0x0003, value=TypeValue(type=uint16_t, value=29967)), Attribute(attrid=0x0007, value=TypeValue(type=uint16_t, value=366))])
[0x3808:11:0x0300] Received command 0x0A (TSN 121): Report_Attributes(attribute_reports=[Attribute(attrid=0x0004, value=TypeValue(type=uint16_t, value=26869)), Attribute(attrid=0x0003, value=TypeValue(type=uint16_t, value=29967)), Attribute(attrid=0x0007, value=TypeValue(type=uint16_t, value=366))])
[0x3808:11:0x0300] Attribute report received: current_y=26869, current_x=29967, color_temperature=366
Ignoring message (b'09970200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09970200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09970200020101000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09980200090202000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09980200090202000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'
Ignoring message (b'09980200090202000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'

Additional context Add any other context or screenshots about the feature request here.

Tropaion commented 2 years ago

Do you have an link to the device?

centershock commented 2 years ago

Can find it only in my AliExpress order: https://de.aliexpress.com/item/1005003518715880.html?gatewayAdapt=glo2deu&spm=a2g0o.order_detail.0.0.328363687Th9Lw

Tropaion commented 2 years ago

Normally, this device should work without a quirk since it uses standard clusters, did you try it? Do you have some problems with it?

centershock commented 2 years ago

Ohne Titel The power is always 0%, and there is not update whatsoever for ias_zone. I tried with three different devices of the same model, same result.

Tropaion commented 2 years ago

Try if this quirk works: ts0601_magnet.zip

centershock commented 2 years ago

Unfortunately, no success and the same behavior. The log when pairing: [0x340B:1:0x0402] Received ZCL frame: b'\x18\x1b\n\x00\x00)\xe8\x08' [0x340B:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=10, *is_reply=True) [0x340B:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2280))]) [0x340B:1:0x0402] Received command 0x0A (TSN 27): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2280))]) [0x340B:1:0x0402] Attribute report received: measured_value=2280 [0x340B:1:0x0405] Received ZCL frame: b'\x18\x1c\n\x00\x00!T\x0f' [0x340B:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=28, command_id=10, *is_reply=True) [0x340B:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3924))]) [0x340B:1:0x0405] Received command 0x0A (TSN 28): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3924))]) [0x340B:1:0x0405] Attribute report received: measured_value=3924 [0x340B:1:0x0403] Received ZCL frame: b"\x18\x1d\n\x00\x00)\xfb\x03\x14\x00(\xff\x10\x00)\xd1'" [0x340B:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=29, command_id=10, *is_reply=True) [0x340B:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1019)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10193))]) [0x340B:1:0x0403] Received command 0x0A (TSN 29): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1019)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10193))]) [0x340B:1:0x0403] Attribute report received: measured_value=1019, 0x0014=-1, 0x0010=10193 Device 0x877f (a4:c1:38:4d:82:df:a6:b0) joined the network Device a4:c1:38:4d:82:df:a6:b0 changed id (0x877f => 0x877f) [0x877f] Skipping initialization, device is fully initialized Device is initialized <TuyaContactSensor model='TS0601' manuf='_TZE200_pay2byax' nwk=0x877F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True> [0x877f:zdo] ZDO request ZDOCmd.Device_annce: [0x877F, a4:c1:38:4d:82:df:a6:b0, 128] 'binary_sensor' component -> 'IASZone' using ['ias_zone'] 'sensor' component -> 'Battery' using ['power'] 'sensor' component -> 'RSSISensor' using ['basic'] 'sensor' component -> 'LQISensor' using ['basic'] device - 34687:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: True device - 34687:a4:c1:38:4d:82:df:a6:b0 has joined the ZHA zigbee network [34687](TS0601): started configuration [34687:ZDO](TS0601): 'async_configure' stage succeeded [34687:1:0x0000]: finished channel configuration [0x877f] Extending timeout for 0x27 request [0x877F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=41, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False) [0x877F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[1]) [0x877f] Extending timeout for 0x29 request [34687:1:0x0019]: finished channel configuration [34687:1:0x0001]: bound 'power' cluster: Status.SUCCESS [0x877F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=43, command_id=<GeneralCommand.Configure_Reporting: 6>, *is_reply=False) [0x877F:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)]) [0x877f] Extending timeout for 0x2b request [0x877F:1:0x0500] Received ZCL frame: b'\x18)\x01\x01\x00\x001(\x00' [0x877F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=41, command_id=1, *is_reply=True) [0x877F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0001, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum16, value=<enum16.undefined_0x0028: 40>))]) [34687:1:0x0500]: started IASZoneChannel configuration [0x877f] Extending timeout for 0x2d request [0x877F:1:0x0001] Received ZCL frame: b'\x18+\x07\x00\x00 \x00\x00\x00!\x00' [0x877F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=43, command_id=7, *is_reply=True) [0x877F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Configure_Reporting_rsp(status_records=[ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)]) [34687:1:0x0001]: Successfully configured reporting for '{'battery_percentage_remaining', 'battery_voltage'}' on 'power' cluster [34687:1:0x0001]: Failed to configure reporting for '[]' on 'power' cluster: [ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)] [34687:1:0x0001]: finished channel configuration [34687:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS [0x877F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=<GeneralCommand.Write_Attributes: 2>, *is_reply=False) [0x877F:1:0x0500] Sending request: Write_Attributes(attributes=[Attribute(attrid=0x0010, value=TypeValue(type=EUI64, value=00:21:2e:ff:ff:07:79:3e))]) [0x877f] Extending timeout for 0x2f request [0x877F:1:0x0500] Received ZCL frame: b'\x18/\x04\x00' [0x877F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=4, *is_reply=True) [0x877F:1:0x0500] Decoded ZCL frame: IasZone:Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)]) [34687:1:0x0500]: wrote cie_addr: 00:21:2e:ff:ff:07:79:3e to 'ias_zone' cluster: [WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)] [34687:1:0x0500]: Sending pro-active IAS enroll response [0x877F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=49, command_id=0, *is_reply=False) [0x877F:1:0x0500] Sending request: enroll_response(enroll_response_code=<EnrollResponse.Success: 0>, zone_id=0) [34687:1:0x0500]: finished IASZoneChannel configuration [0x877f] Extending timeout for 0x31 request [34687:1:0x0000]: 'async_configure' stage succeeded [34687:1:0x0001]: 'async_configure' stage succeeded [34687:1:0x0500]: 'async_configure' stage succeeded [34687:1:0x0019]: 'async_configure' stage succeeded [34687](TS0601): completed configuration [34687](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_pay2byax TS0601', ieee='a4:c1:38:4d:82:df:a6:b0', last_seen=1650195016.5551138) [34687](TS0601): started initialization [34687:ZDO](TS0601): 'async_initialize' stage succeeded [34687:1:0x0000]: initializing channel: from_cache: False [34687:1:0x0000]: finished channel initialization [34687:1:0x0001]: initializing channel: from_cache: False [0x877F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=51, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False) [0x877F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33]) [0x877f] Extending timeout for 0x33 request [34687:1:0x0500]: initializing channel: from_cache: False [0x877F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False) [0x877F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[0]) [0x877f] Extending timeout for 0x35 request [34687:1:0x0019]: initializing channel: from_cache: False [34687:1:0x0019]: finished channel initialization [0x877F:1:0x0500] Received ZCL frame: b'\x181\x0b\x00\x00' [0x877F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=49, command_id=11, *is_reply=True) [0x877F:1:0x0500] Decoded ZCL frame: IasZone:Default_Response(command_id=0, status=<Status.SUCCESS: 0>) [0x877F:1:0x0001] Received ZCL frame: b'\x183\x01 \x00\x00 \x00!\x00\x00 \x00' [0x877F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=51, command_id=1, *is_reply=True) [0x877F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0020, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0)), ReadAttributeRecord(attrid=0x0021, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0))]) [0x877F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False) [0x877F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[49, 51]) [0x877f] Extending timeout for 0x37 request [0x877F:1:0x0500] Received ZCL frame: b'\x185\x01\x00\x00\x000\x00' [0x877F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=1, *is_reply=True) [0x877F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum8, value=<enum8.undefined_0x00: 0>))]) [34687:1:0x0500]: finished channel initialization Ignoring message (b'0917020024650200040000030a') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)' [0x877F:1:0x0001] Received ZCL frame: b'\x187\x011\x00\x863\x00\x86' [0x877F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=1, *is_reply=True) [0x877F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0031, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0033, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)]) [34687:1:0x0001]: finished channel initialization [34687:1:0x0000]: 'async_initialize' stage succeeded [34687:1:0x0001]: 'async_initialize' stage succeeded [34687:1:0x0500]: 'async_initialize' stage succeeded [34687:1:0x0019]: 'async_initialize' stage succeeded [34687](TS0601): power source: Battery or Unknown [34687](TS0601): completed initialization Ignoring message (b'0917020024650200040000030a') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)' Ignoring message (b'0917020024650200040000030a') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)' Ignoring message (b'091802002b0202000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)' Ignoring message (b'091802002b0202000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (a4:c1:38:4d:82:df:a6:b0, 1)'

Can I provide more information? Happy Easter and thanks for your help!

Tropaion commented 2 years ago

Thanks, also Happy Easter 😄 The information you provide is ok, mabye you can look if there is something else interesting in the logs. It looks like the device sends data on cluster 0xEF00 even though it isn't shown in the device signature, this is also new for me 😄 . Try this: ts0601_magnet.zip

You can also enable debug logging, maybe it shows more:

logger:
  default: info
  logs:
    zigpy: debug
    zigpy_znp: debug
    zhaquirks: debug
centershock commented 2 years ago

Again no change in behavior. The log when pairing:

[0x877f]` Delivery error for seq # 0x21, on endpoint id 0 cluster 0x0034: message send failure
Sending 'zdo_leave_req' failed: [0x877f:0:0x0034]: Message send failure
[0x3808:11:0x0008] Received ZCL frame: b'\x18\x03\n\x00\x00 ;'
[0x3808:11:0x0008] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=3, command_id=10, *is_reply=True)
[0x3808:11:0x0008] Decoded ZCL frame: LevelControl:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=59))])
[0x3808:11:0x0008] Received command 0x0A (TSN 3): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=59))])
[0x3808:11:0x0008] Attribute report received: current_level=59
[0x3808:11:0x0008]: received attribute: 0 update with value: 59
New device 0x035f (a4:c1:38:4d:82:df:a6:b0) joined the network
[0x035f] Scheduling initialization
Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x07_\x03\xb0\xa6\xdf\x82M8\xc1\xa4\x80'
[0x035f:zdo] ZDO request ZDOCmd.Device_annce: [0x035F, a4:c1:38:4d:82:df:a6:b0, 128]
Tries remaining: 3
[0x035f] Requesting 'Node Descriptor'
Tries remaining: 2
[0x035f] Extending timeout for 0x27 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32770: b"'\x00_\x03\x02@\x80A\x11BB\x00\x00*B\x00\x00"
[0x035f] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)
[0x035f] Discovering endpoints
Tries remaining: 3
[0x035f] Extending timeout for 0x29 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32773: b')\x00_\x03\x01\x01'
[0x035f] Discovered endpoints: [1]
[0x035f] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
[0x035f:1] Discovering endpoint information
Tries remaining: 3
[0x035f] Extending timeout for 0x2b request
Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'+\x00_\x03\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00'
[0x035f:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[1, 1280, 0], output_clusters=[25, 10])
[0x035F:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=45, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x035F:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
[0x035f] Extending timeout for 0x2d request
[0x035F:1:0x0000] Received ZCL frame: b'\x18-\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601'
[0x035F:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=45, command_id=1, *is_reply=True)
[0x035F:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_pay2byax')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
[0x035f] Read model 'TS0601' and manufacturer '_TZE200_pay2byax' from <Endpoint id=1 in=[power:0x0001, ias_zone:0x0500, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
[0x035f] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Device is initialized <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Checking quirks for _TZE200_pay2byax TS0601 (a4:c1:38:4d:82:df:a6:b0)
Considering <class 'ts0601_magnet.TuyaContactSensor'>
Found custom device replacement for a4:c1:38:4d:82:df:a6:b0: <class 'ts0601_magnet.TuyaContactSensor'>
'binary_sensor' component -> 'IASZone' using ['ias_zone']
'sensor' component -> 'Battery' using ['power']
'sensor' component -> 'RSSISensor' using ['basic']
'sensor' component -> 'LQISensor' using ['basic']
device - 0x035F:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: True
device - 0x035F:a4:c1:38:4d:82:df:a6:b0 has joined the ZHA zigbee network
[0x035F](TS0601): started configuration
[0x035F:ZDO](TS0601): 'async_configure' stage succeeded
[0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x035F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[1])
[0x035f] Extending timeout for 0x2f request
[0x035f] Extending timeout for 0x31 request
[0x035F:1:0x0000]: finished channel configuration
[0x035F:1:0x0019]: finished channel configuration
Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 4, '_TZE200_pay2byax') params: FOREIGN KEY constraint failed
Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 5, 'TS0601') params: FOREIGN KEY constraint failed
[0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0xef00] Received command 0x02 (TSN 55): set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0x0500] Received ZCL frame: b'\x18/\x01\x01\x00\x001(\x00'
[0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=1, *is_reply=True)
[0x035F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0001, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum16, value=<enum16.undefined_0x0028: 40>))])
[0x035F:1:0x0500]: started IASZoneChannel configuration
[0x035f] Extending timeout for 0x33 request
[0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0xef00] Received command 0x02 (TSN 55): set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0x0001]: bound 'power' cluster: Status.SUCCESS
[0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=<GeneralCommand.Configure_Reporting: 6>, *is_reply=False)
[0x035F:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)])
[0x035f] Extending timeout for 0x35 request
[0x035F:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS
[0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=<GeneralCommand.Write_Attributes: 2>, *is_reply=False)
[0x035F:1:0x0500] Sending request: Write_Attributes(attributes=[Attribute(attrid=0x0010, value=TypeValue(type=EUI64, value=00:21:2e:ff:ff:07:79:3e))])
[0x035f] Extending timeout for 0x37 request
[0x035F:1:0x0001] Received ZCL frame: b'\x185\x07\x00\x00 \x00\x00\x00!\x00'
[0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=7, *is_reply=True)
[0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Configure_Reporting_rsp(status_records=[ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)])
[0x035F:1:0x0001]: Successfully configured reporting for '{'battery_percentage_remaining', 'battery_voltage'}' on 'power' cluster
[0x035F:1:0x0001]: Failed to configure reporting for '[]' on 'power' cluster: [ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)]
[0x035F:1:0x0001]: finished channel configuration
[0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
[0x035F:1:0x0500]: wrote cie_addr: 00:21:2e:ff:ff:07:79:3e to 'ias_zone' cluster: Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122])
[0x035F:1:0x0500]: Sending pro-active IAS enroll response
[0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=0, *is_reply=False)
[0x035F:1:0x0500] Sending request: enroll_response(enroll_response_code=<EnrollResponse.Success: 0>, zone_id=0)
[0x035F:1:0x0500]: finished IASZoneChannel configuration
[0x035f] Extending timeout for 0x39 request
[0x035F:1:0x0500]: 'async_configure' stage succeeded
[0x035F:1:0x0001]: 'async_configure' stage succeeded
[0x035F:1:0x0000]: 'async_configure' stage succeeded
[0x035F:1:0x0019]: 'async_configure' stage succeeded
[0x035F](TS0601): completed configuration
[0x035F](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_pay2byax TS0601', ieee='a4:c1:38:4d:82:df:a6:b0', last_seen=1650220280.3852458)
[0x035F](TS0601): started initialization
[0x035F:ZDO](TS0601): 'async_initialize' stage succeeded
[0x035F:1:0x0500]: initializing channel: from_cache: False
[0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=59, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x035F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[0])
[0x035f] Extending timeout for 0x3b request
[0x035F:1:0x0001]: initializing channel: from_cache: False
[0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=61, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x035F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33])
[0x035f] Extending timeout for 0x3d request
[0x035F:1:0x0000]: initializing channel: from_cache: False
[0x035F:1:0x0000]: finished channel initialization
[0x035F:1:0x0019]: initializing channel: from_cache: False
[0x035F:1:0x0019]: finished channel initialization
[0x035F:1:0x0500] Received ZCL frame: b'\x187\x04\x00'
[0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=4, *is_reply=True)
[0x035F:1:0x0500] Decoded ZCL frame: IasZone:Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)])
[0x035F:1:0x0500] Received command 0x04 (TSN 55): Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)])
[0x035F:1:0x0500] Received ZCL frame: b'\x189\x0b\x00\x00'
[0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=57, command_id=11, *is_reply=True)
[0x035F:1:0x0500] Decoded ZCL frame: IasZone:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
[0x035F:1:0x0500] Received ZCL frame: b'\x18;\x01\x00\x00\x000\x00'
[0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=59, command_id=1, *is_reply=True)
[0x035F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum8, value=<enum8.undefined_0x00: 0>))])
[0x035F:1:0x0500]: finished channel initialization
[0x035F:1:0x0001] Received ZCL frame: b'\x18=\x01 \x00\x00 \x00!\x00\x00 \x00'
[0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=61, command_id=1, *is_reply=True)
[0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0020, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0)), ReadAttributeRecord(attrid=0x0021, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0))])
[0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=63, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0x035F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[49, 51])
[0x035f] Extending timeout for 0x3f request
[0x035F:1:0x0001] Received ZCL frame: b'\x18?\x011\x00\x863\x00\x86'
[0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=63, command_id=1, *is_reply=True)
[0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0031, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0033, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
[0x035F:1:0x0001]: finished channel initialization
[0x035F:1:0x0500]: 'async_initialize' stage succeeded
[0x035F:1:0x0001]: 'async_initialize' stage succeeded
[0x035F:1:0x0000]: 'async_initialize' stage succeeded
[0x035F:1:0x0019]: 'async_initialize' stage succeeded
[0x035F](TS0601): power source: Battery or Unknown
[0x035F](TS0601): completed initialization
[0x035F:1:0x000a] Received ZCL frame: b'\x008\x00\x07\x00'
[0x035F:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=56, command_id=0, *is_reply=False)
[0x035F:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
[0x035F:1:0x000a] Received command 0x00 (TSN 56): Read_Attributes(attribute_ids=[7])
[0x035F:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=56, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *is_reply=True)
[0x035F:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=703542683))])
[0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x67EF:1:0x0402] Received ZCL frame: b'\x18\xab\n\x00\x00)\x95\x08'
[0x67EF:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=171, command_id=10, *is_reply=True)
[0x67EF:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2197))])
[0x67EF:1:0x0402] Received command 0x0A (TSN 171): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2197))])
[0x67EF:1:0x0402] Attribute report received: measured_value=2197
[0x67EF:1:0x0405] Received ZCL frame: b'\x18\xac\n\x00\x00!T\x0b'
[0x67EF:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=172, command_id=10, *is_reply=True)
[0x67EF:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=2900))])
[0x67EF:1:0x0405] Received command 0x0A (TSN 172): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=2900))])
[0x67EF:1:0x0405] Attribute report received: measured_value=2900
[0x67EF:1:0x0403] Received ZCL frame: b"\x18\xad\n\x00\x00)\xf6\x03\x14\x00(\xff\x10\x00)\xa1'"
[0x67EF:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=173, command_id=10, *is_reply=True)
[0x67EF:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1014)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10145))])
[0x67EF:1:0x0403] Received command 0x0A (TSN 173): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1014)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10145))])
[0x67EF:1:0x0403] Attribute report received: measured_value=1014, 0x0014=-1, 0x0010=10145
[0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
[0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
[0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
[0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))

Also the log from Home Assistant with your advised settings. In this log the pairing can be found and my tries to force an update for ias_zone with moving the magnets of the sensor:

2022-04-17 20:31:03 INFO (MainThread) [zigpy.application] Removing device 0x877f (a4:c1:38:4d:82:df:a6:b0)
2022-04-17 20:31:03 DEBUG (MainThread) [zigpy.application] Sending leave request for a4:c1:38:4d:82:df:a6:b0 to 00:21:2e:ff:ff:07:79:3e parent
2022-04-17 20:31:03 DEBUG (MainThread) [zigpy.application] Sending leave request for a4:c1:38:4d:82:df:a6:b0 to 00:17:88:01:04:7a:5e:80 parent
2022-04-17 20:31:03 DEBUG (MainThread) [zigpy.device] [0x877f] Extending timeout for 0x21 request
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee broadcast with tsn 37 under 38 request id, data: b'253c00'
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 38, 0, <DeconzAddressEndpoint address_mode=2 address=65532 endpoint=0>, 0, 54, 0, b'%<\x00', 2, 0)
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x125c0019001200260002fcff0000003600000300253c000200
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x125c00090002002226
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 38]
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5d000700a600
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x045d0007000000
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x045d0013000c00222602fcff00000000000000
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 38: 00
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x26 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfffc endpoint=0>, status: 0x00
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.write_parameter (2, <NetworkParameter.permit_join: 33>, b'<')
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x0b5e0009000200213c
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0b5e000800010021
2022-04-17 20:31:04 DEBUG (MainThread) [zigpy_deconz.api] Write parameter permit_join: SUCCESS
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5f000700a600
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x045f0007000000
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x045f0013000c002224027f870000f000000000
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 36: f0
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x24 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x877f endpoint=0>, status: 0xf0
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 36 req id frame: TXStatus.MAC_TRANSACTION_EXPIRED
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy.device] [0x877f] Delivery error for seq # 0x21, on endpoint id 0 cluster 0x0034: message send failure
2022-04-17 20:31:10 DEBUG (MainThread) [zigpy.application] Sending 'zdo_leave_req' failed: [0x877f:0:0x0034]: Message send failure
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e60000700aa00
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1760000800010001
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17600025001e0022020000010208380b04010800070018030a0000203b00af87ff101b00b3
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [30, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x3808>, 11, 260, 8, b'\x18\x03\n\x00\x00 ;', 0, 175, 135, 255, 16, 27, 0, -77]
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Received ZCL frame: b'\x18\x03\n\x00\x00 ;'
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=3, command_id=10, *is_reply=True)
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Decoded ZCL frame: LevelControl:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=59))])
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Received command 0x0A (TSN 3): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint8_t, value=59))])
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Attribute report received: current_level=59
2022-04-17 20:31:12 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3808:11:0x0008]: received attribute: 0 update with value: 59
2022-04-17 20:31:12 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x3808>, ep: 11, profile: 0x0104, cluster_id: 0x0008, data: b'18030a0000203b'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e61000700aa00
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1761000800010001
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1761002a0023002202fdff00025f0300000013000c00075f03b0a6df824d38c1a48000afff7b2b0020c2
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [35, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfffd>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 19, b'\x07_\x03\xb0\xa6\xdf\x82M8\xc1\xa4\x80', 0, 175, 255, 123, 43, 0, 32, -62]
2022-04-17 20:31:16 INFO (MainThread) [zigpy_deconz.zigbee.application] New device joined: 0x035f, a4:c1:38:4d:82:df:a6:b0
2022-04-17 20:31:16 INFO (MainThread) [zigpy.application] New device 0x035f (a4:c1:38:4d:82:df:a6:b0) joined the network
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.device] [0x035f] Scheduling initialization
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x07_\x03\xb0\xa6\xdf\x82M8\xc1\xa4\x80'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.zdo] [0x035f:zdo] ZDO request ZDOCmd.Device_annce: [0x035F, a4:c1:38:4d:82:df:a6:b0, 128]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2022-04-17 20:31:16 INFO (MainThread) [zigpy.device] [0x035f] Requesting 'Node Descriptor'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.util] Tries remaining: 2
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x27 request
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 39 under 40 request id, data: b'275f03'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x0013, data: b'075f03b0a6df824d38c1a480'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 40, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=0>, 0, <ZDOCmd.Node_Desc_req: 0x0002>, 0, b"'_\x03", 2, 0)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126200190012002800025f030000000200000300275f030200
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x126200090002002228
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 40]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e63000700a600
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04630007000000
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04630013000c002228025f0300000000000000
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 40: 00
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x28 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=0>, status: 0x00
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e64000700aa00
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1764000800010001
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1764002f0028002202000000025f030000000280110027005f030240804111424200002a42000000aff700000000c1
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 32770, b"'\x00_\x03\x02@\x80A\x11BB\x00\x00*B\x00\x00", 0, 175, 247, 0, 0, 0, 0, -63]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32770: b"'\x00_\x03\x02@\x80A\x11BB\x00\x00*B\x00\x00"
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x8002, data: b'27005f030240804111424200002a420000'
2022-04-17 20:31:16 INFO (MainThread) [zigpy.device] [0x035f] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)
2022-04-17 20:31:16 INFO (MainThread) [zigpy.device] [0x035f] Discovering endpoints
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x29 request
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 41 under 42 request id, data: b'295f03'
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 42, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=0>, 0, <ZDOCmd.Active_EP_req: 0x0005>, 0, b')_\x03', 2, 0)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126500190012002a00025f030000000500000300295f030200
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12650009000200222a
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 42]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e66000700a600
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04660007000000
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04660013000c00222a025f0300000000000000
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 42: 00
2022-04-17 20:31:16 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x2a 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=0>, status: 0x00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e67000700aa00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1767000800010001
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17670024001d002202000000025f030000000580060029005f03010100aff700000000c1
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [29, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 32773, b')\x00_\x03\x01\x01', 0, 175, 247, 0, 0, 0, 0, -63]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32773: b')\x00_\x03\x01\x01'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x8005, data: b'29005f030101'
2022-04-17 20:31:17 INFO (MainThread) [zigpy.device] [0x035f] Discovered endpoints: [1]
2022-04-17 20:31:17 INFO (MainThread) [zigpy.device] [0x035f] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2022-04-17 20:31:17 INFO (MainThread) [zigpy.endpoint] [0x035f:1] Discovering endpoint information
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x2b request
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 43 under 44 request id, data: b'2b5f0301'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (19, 44, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=0>, 0, <ZDOCmd.Simple_Desc_req: 0x0004>, 0, b'+_\x03\x01', 2, 0)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1268001a0013002c00025f0300000004000004002b5f03010200
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12680009000200222c
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 44]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e69000700a600
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04690007000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04690013000c00222c025f0300000000000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 44: 00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x2c 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=0>, status: 0x00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6a000700aa00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176a000800010001
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176a0035002e002202000000025f03000000048017002b005f0312010401020401030100000500000219000a0000aff757171b00c1
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [46, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 32772, b'+\x00_\x03\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00', 0, 175, 247, 87, 23, 27, 0, -63]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'+\x00_\x03\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x8004, data: b'2b005f0312010401020401030100000500000219000a00'
2022-04-17 20:31:17 INFO (MainThread) [zigpy.endpoint] [0x035f:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[1, 1280, 0], output_clusters=[25, 10])
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=45, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x2d request
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 45 under 46 request id, data: b'002d0004000500'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 46, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 0, 1, b'\x00-\x00\x04\x00\x05\x00', 2, 0)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126b001d0016002e00025f030104010000010700002d00040005000200
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x126b0009000200222e
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 46]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6c000700a600
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x046c0007000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x046c0013000c00222e025f0301010000000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 46: 00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x2e 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6d000700aa00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176d000800010001
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176d0041003a002202000001025f0301040100002300182d0104000042105f545a453230305f7061793262796178050000420654533036303100aff757171b00c1
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [58, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 0, b'\x18-\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601', 0, 175, 247, 87, 23, 27, 0, -63]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0000] Received ZCL frame: b'\x18-\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=45, command_id=1, *is_reply=True)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_pay2byax')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'182d0104000042105f545a453230305f70617932627961780500004206545330363031'
2022-04-17 20:31:17 INFO (MainThread) [zigpy.device] [0x035f] Read model 'TS0601' and manufacturer '_TZE200_pay2byax' from <Endpoint id=1 in=[power:0x0001, ias_zone:0x0500, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2022-04-17 20:31:17 INFO (MainThread) [zigpy.device] [0x035f] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0x035F ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_pay2byax TS0601 (a4:c1:38:4d:82:df:a6:b0)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'ts0601_magnet.TuyaContactSensor'>
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for a4:c1:38:4d:82:df:a6:b0: <class 'ts0601_magnet.TuyaContactSensor'>
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'binary_sensor' component -> 'IASZone' using ['ias_zone']
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'Battery' using ['power']
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic']
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic']
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x035F:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: True
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x035F:a4:c1:38:4d:82:df:a6:b0 has joined the ZHA zigbee network
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): started configuration
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:ZDO](TS0601): 'async_configure' stage succeeded
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[1])
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x2f request
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 47 under 48 request id, data: b'002f000100'
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 48, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1280, 1, b'\x00/\x00\x01\x00', 2, 0)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126e001b0014003000025f030104010005010500002f0001000200
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x31 request
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 49 under 50 request id, data: b'31b0a6df824d38c1a4010100033e7907ffff2e210001'
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0000]: finished channel configuration
2022-04-17 20:31:17 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0019]: finished channel configuration
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 4, '_TZE200_pay2byax') params: FOREIGN KEY constraint failed
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x126e00090002002230
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 48]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6f000700a600
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:4d:82:df:a6:b0, 1, 0, 5, 'TS0601') params: FOREIGN KEY constraint failed
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (37, 50, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=0>, 0, <ZDOCmd.Bind_req: 0x0021>, 0, b'1\xb0\xa6\xdf\x82M8\xc1\xa4\x01\x01\x00\x03>y\x07\xff\xff.!\x00\x01', 2, 0)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126f002c0025003200025f03000000210000160031b0a6df824d38c1a4010100033e7907ffff2e2100010200
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x126f00090002002632
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 38>, 50]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04700007000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04700013000c002230025f0301010000000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 48: 00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x30 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e71000700a600
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04710007000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04710013000c002232025f0300000000000000
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 50: 00
2022-04-17 20:31:17 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x32 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=0>, status: 0x00
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e72000700aa00
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1772000800010001
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1772002b0024002202000001025f0301040100ef0d000937020039650200040000027a00aff760171b00c1
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 55): set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'0937020039650200040000027a'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e73000700aa00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1773000800010001
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177300270020002202000001025f0301040100050900182f0101000031280000aff760171b00c1
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1280, b'\x18/\x01\x01\x00\x001(\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Received ZCL frame: b'\x18/\x01\x01\x00\x001(\x00'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=47, command_id=1, *is_reply=True)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0001, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum16, value=<enum16.undefined_0x0028: 40>))])
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'182f01010000312800'
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: started IASZoneChannel configuration
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x33 request
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 51 under 52 request id, data: b'33b0a6df824d38c1a4010005033e7907ffff2e210001'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (37, 52, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=0>, 0, <ZDOCmd.Bind_req: 0x0021>, 0, b'3\xb0\xa6\xdf\x82M8\xc1\xa4\x01\x00\x05\x03>y\x07\xff\xff.!\x00\x01', 2, 0)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1274002c0025003400025f03000000210000160033b0a6df824d38c1a4010005033e7907ffff2e2100010200
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127400090002002234
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 52]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e75000700a600
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04750007000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04750013000c002234025f0300000000000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 52: 00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x34 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=0>, status: 0x00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e76000700aa00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1776000800010001
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1776002b0024002202000001025f0301040100ef0d000937020039650200040000027a00aff760171b00c1
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 55): set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'0937020039650200040000027a'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e77000700aa00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1777000800010001
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177700200019002202000000025f0300000021800200310000aff760171b00c1
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [25, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 32801, b'1\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x8021, data: b'3100'
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: bound 'power' cluster: Status.SUCCESS
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=<GeneralCommand.Configure_Reporting: 6>, *is_reply=False)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)])
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x35 request
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 53 under 54 request id, data: b'00350600200020100e302a0100210020100e302a01'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (36, 54, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1, 1, b'\x005\x06\x00 \x00 \x10\x0e0*\x01\x00!\x00 \x10\x0e0*\x01', 2, 0)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1278002b0024003600025f03010401010001150000350600200020100e302a0100210020100e302a010200
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127800090002002236
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 54]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e79000700a600
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04790007000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04790013000c002236025f0301010000000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 54: 00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x36 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7a000700aa00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x177a000800010001
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177a00200019002202000000025f0300000021800200330000aff760171b00c1
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [25, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 0, 0, 32801, b'3\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 0, profile: 0x0000, cluster_id: 0x8021, data: b'3300'
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=<GeneralCommand.Write_Attributes: 2>, *is_reply=False)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request: Write_Attributes(attributes=[Attribute(attrid=0x0010, value=TypeValue(type=EUI64, value=00:21:2e:ff:ff:07:79:3e))])
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x37 request
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 55 under 56 request id, data: b'0037021000f03e7907ffff2e2100'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (29, 56, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1280, 1, b'\x007\x02\x10\x00\xf0>y\x07\xff\xff.!\x00', 2, 0)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x127b0024001d003800025f030104010005010e000037021000f03e7907ffff2e21000200
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127b00090002002238
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 56]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7c000700a600
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x047c0007000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x047c0013000c002238025f0301010000000000
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 56: 00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x38 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7d000700aa00
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x177d000800010001
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177d00290022002202000001025f0301040101000b00183507000020000000210000aff760171b00c1
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [34, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1, b'\x185\x07\x00\x00 \x00\x00\x00!\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Received ZCL frame: b'\x185\x07\x00\x00 \x00\x00\x00!\x00'
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=53, command_id=7, *is_reply=True)
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Configure_Reporting_rsp(status_records=[ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)])
2022-04-17 20:31:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0001, data: b'1835070000200000002100'
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: Successfully configured reporting for '{'battery_percentage_remaining', 'battery_voltage'}' on 'power' cluster
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: Failed to configure reporting for '[]' on 'power' cluster: [ConfigureReportingResponseRecord(status=0), ConfigureReportingResponseRecord(status=0)]
2022-04-17 20:31:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: finished channel configuration
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7e000700aa00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x177e000800010001
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177e002b0024002202000001025f0301040100ef0d000937020039650200040000027a00aff760171b00c1
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t7\x02\x009e\x02\x00\x04\x00\x00\x02z'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=55, command_id=2, *is_reply=True)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122]))
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'0937020039650200040000027a'
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: wrote cie_addr: 00:21:2e:ff:ff:07:79:3e to 'ias_zone' cluster: Command(status=0, tsn=57, command_id=613, function=0, data=[4, 0, 0, 2, 122])
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: Sending pro-active IAS enroll response
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=0, *is_reply=False)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request: enroll_response(enroll_response_code=<EnrollResponse.Success: 0>, zone_id=0)
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: finished IASZoneChannel configuration
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x39 request
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 57 under 58 request id, data: b'0139000000'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 58, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1280, 1, b'\x019\x00\x00\x00', 2, 0)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x127f001b0014003a00025f03010401000501050001390000000200
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: 'async_configure' stage succeeded
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: 'async_configure' stage succeeded
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0000]: 'async_configure' stage succeeded
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0019]: 'async_configure' stage succeeded
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): completed configuration
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_pay2byax TS0601', ieee='a4:c1:38:4d:82:df:a6:b0', last_seen=1650220280.3852458)
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): started initialization
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:ZDO](TS0601): 'async_initialize' stage succeeded
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127f0009000200223a
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 58]
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: initializing channel: from_cache: False
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=59, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Sending request: Read_Attributes(attribute_ids=[0])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x3b request
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 59 under 60 request id, data: b'003b000000'
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: initializing channel: from_cache: False
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=61, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x3d request
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 61 under 62 request id, data: b'003d0020002100'
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0000]: initializing channel: from_cache: False
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0000]: finished channel initialization
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0019]: initializing channel: from_cache: False
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0019]: finished channel initialization
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 60, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1280, 1, b'\x00;\x00\x00\x00', 2, 0)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1280001b0014003c00025f030104010005010500003b0000000200
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e80000700a600
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12800009000200263c
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 38>, 60]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 62, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1, 1, b'\x00=\x00 \x00!\x00', 2, 0)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1281001d0016003e00025f030104010100010700003d00200021000200
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e81000700a600
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12810009000200263e
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 38>, 62]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04820007000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04820013000c00263a025f0301010000000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 58: 00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x3a 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04830007000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e83000700a600
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04830013000c00263c025f0301010000000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 60: 00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x3c 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04840007000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04840013000c00223e025f0301010000000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 62: 00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x3e 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04850007000000
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0485050800010022
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e86000700aa00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1786000800010001
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17860022001b002202000001025f03010401000504001837040000afff60171b00c2
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [27, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1280, b'\x187\x04\x00', 0, 175, 255, 96, 23, 27, 0, -62]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Received ZCL frame: b'\x187\x04\x00'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=55, command_id=4, *is_reply=True)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame: IasZone:Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Received command 0x04 (TSN 55): Write_Attributes_rsp(status_records=[WriteAttributesStatusRecord(status=<Status.SUCCESS: 0>)])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'18370400'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e87000700aa00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1787000800010001
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17870023001c002202000001025f030104010005050018390b000000aff760171b00c1
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1280, b'\x189\x0b\x00\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Received ZCL frame: b'\x189\x0b\x00\x00'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=57, command_id=11, *is_reply=True)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame: IasZone:Default_Response(command_id=0, status=<Status.SUCCESS: 0>)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'18390b0000'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e88000700aa00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1788000800010001
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17880026001f002202000001025f0301040100050800183b01000000300000afff60171b00c2
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1280, b'\x18;\x01\x00\x00\x000\x00', 0, 175, 255, 96, 23, 27, 0, -62]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Received ZCL frame: b'\x18;\x01\x00\x00\x000\x00'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=59, command_id=1, *is_reply=True)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0500] Decoded ZCL frame: IasZone:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=<Status.SUCCESS: 0>, value=TypeValue(type=enum8, value=<enum8.undefined_0x00: 0>))])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'183b010000003000'
2022-04-17 20:31:20 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: finished channel initialization
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e89000700aa00
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1789000800010001
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1789002b0024002202000001025f0301040101000d00183d012000002000210000200000aff760171b00c1
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1, b'\x18=\x01 \x00\x00 \x00!\x00\x00 \x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Received ZCL frame: b'\x18=\x01 \x00\x00 \x00!\x00\x00 \x00'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=61, command_id=1, *is_reply=True)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0020, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0)), ReadAttributeRecord(attrid=0x0021, status=<Status.SUCCESS: 0>, value=TypeValue(type=uint8_t, value=0))])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0001, data: b'183d0120000020002100002000'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=63, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[49, 51])
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy.device] [0x035f] Extending timeout for 0x3f request
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 63 under 64 request id, data: b'003f0031003300'
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 64, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 1, 1, b'\x00?\x001\x003\x00', 2, 0)
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x128a001d0016004000025f030104010100010700003f00310033000200
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x128a00090002002240
2022-04-17 20:31:20 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 64]
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e8b000700a600
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x048b0007000000
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x048b0013000c002240025f0301010000000000
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 64: 00
2022-04-17 20:31:21 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x40 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e8c000700aa00
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x178c000800010001
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x178c00270020002202000001025f0301040101000900183f0131008633008600aff760171b00c1
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 1, b'\x18?\x011\x00\x863\x00\x86', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Received ZCL frame: b'\x18?\x011\x00\x863\x00\x86'
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=63, command_id=1, *is_reply=True)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x0001] Decoded ZCL frame: PowerConfiguration:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0031, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>), ReadAttributeRecord(attrid=0x0033, status=<Status.UNSUPPORTED_ATTRIBUTE: 134>)])
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x0001, data: b'183f01310086330086'
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: finished channel initialization
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0500]: 'async_initialize' stage succeeded
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0001]: 'async_initialize' stage succeeded
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0000]: 'async_initialize' stage succeeded
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x035F:1:0x0019]: 'async_initialize' stage succeeded
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): power source: Battery or Unknown
2022-04-17 20:31:23 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x035F](TS0601): completed initialization
2022-04-17 20:31:23 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.tze200_pay2byax_ts0601_b0a6df82_power
2022-04-17 20:31:23 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.tze200_pay2byax_ts0601_b0a6df82_basic_rssi
2022-04-17 20:31:23 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.zha entity: sensor.tze200_pay2byax_ts0601_b0a6df82_basic_lqi
2022-04-17 20:31:23 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.zha entity: binary_sensor.tze200_pay2byax_ts0601_b0a6df82_ias_zone
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e8d000700aa00
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x178d000800010001
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x178d0023001c002202000001025f030104010a000500003800070000aff760171b00c1
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [28, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 10, b'\x008\x00\x07\x00', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Received ZCL frame: b'\x008\x00\x07\x00'
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=56, command_id=0, *is_reply=False)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Received command 0x00 (TSN 56): Read_Attributes(attribute_ids=[7])
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=56, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *is_reply=True)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=703542683))])
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 56 under 65 request id, data: b'183801070000239b35ef29'
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0x000a, data: b'0038000700'
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (26, 65, 0, <DeconzAddressEndpoint address_mode=2 address=0x035F endpoint=1>, 260, 10, 1, b'\x188\x01\x07\x00\x00#\x9b5\xef)', 2, 0)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x128e0021001a004100025f030104010a00010b00183801070000239b35ef290200
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x128e00090002002241
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 65]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e8f000700a600
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x048f0007000000
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x048f0013000c002241025f0301010000000000
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 65: 00
2022-04-17 20:31:23 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x41 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x035f endpoint=1>, status: 0x00
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e90000700aa00
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1790000800010001
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1790002b0024002202000001025f0301040100ef0d000939020040020200040000006400aff760171b00c1
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:24 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09390200400202000400000064'
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e91000700aa00
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1791000800010001
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1791002b0024002202000001025f0301040100ef0d000939020040020200040000006400aff760171b00c1
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 247, 96, 23, 27, 0, -63]
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:25 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09390200400202000400000064'
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e92000700aa00
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1792000800010001
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e93000700aa00
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17920026001f002a0200000102ef670104010204080018ab0a000029950800af7f60171b00b2
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 42>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, 1, 260, 1026, b'\x18\xab\n\x00\x00)\x95\x08', 0, 175, 127, 96, 23, 27, 0, -78]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Received ZCL frame: b'\x18\xab\n\x00\x00)\x95\x08'
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=171, command_id=10, *is_reply=True)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2197))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Received command 0x0A (TSN 171): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2197))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Attribute report received: measured_value=2197
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e93000700aa00
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, ep: 1, profile: 0x0104, cluster_id: 0x0402, data: b'18ab0a0000299508'
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1793000800010001
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17930026001f002a0200000102ef670104010504080018ac0a000021540b00af7f60171b00b2
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 42>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, 1, 260, 1029, b'\x18\xac\n\x00\x00!T\x0b', 0, 175, 127, 96, 23, 27, 0, -78]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Received ZCL frame: b'\x18\xac\n\x00\x00!T\x0b'
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=172, command_id=10, *is_reply=True)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=2900))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Received command 0x0A (TSN 172): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=2900))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Attribute report received: measured_value=2900
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, ep: 1, profile: 0x0104, cluster_id: 0x0405, data: b'18ac0a000021540b'
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1794000800010001
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1794002f002800220200000102ef670104010304110018ad0a000029f603140028ff100029a12700af7f60171b00b2
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, 1, 260, 1027, b"\x18\xad\n\x00\x00)\xf6\x03\x14\x00(\xff\x10\x00)\xa1'", 0, 175, 127, 96, 23, 27, 0, -78]
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Received ZCL frame: b"\x18\xad\n\x00\x00)\xf6\x03\x14\x00(\xff\x10\x00)\xa1'"
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=173, command_id=10, *is_reply=True)
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1014)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10145))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Received command 0x0A (TSN 173): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1014)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10145))])
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Attribute report received: measured_value=1014, 0x0014=-1, 0x0010=10145
2022-04-17 20:31:26 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x67ef>, ep: 1, profile: 0x0104, cluster_id: 0x0403, data: b'18ad0a000029f603140028ff100029a127'
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e95000700aa00
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1795000800010001
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1795002b0024002202000001025f0301040100ef0d000939020040020200040000006400aff761171b00c1
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 247, 97, 23, 27, 0, -63]
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t9\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=57, command_id=2, *is_reply=True)
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 57): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09390200400202000400000064'
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e96000700aa00
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1796000800010001
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1796002b0024002202000001025f0301040100ef0d00093a020040020200040000006400afff70171b00c2
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 112, 23, 27, 0, -62]
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=58, command_id=2, *is_reply=True)
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 58): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:38 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093a0200400202000400000064'
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e97000700aa00
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1797000800010001
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1797002b0024002202000001025f0301040100ef0d00093a020040020200040000006400afff70171b00c2
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 112, 23, 27, 0, -62]
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=58, command_id=2, *is_reply=True)
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 58): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:39 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093a0200400202000400000064'
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e98000700aa00
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1798000800010001
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1798002b0024002202000001025f0301040100ef0d00093a020040020200040000006400afff70171b00c2
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 112, 23, 27, 0, -62]
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t:\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=58, command_id=2, *is_reply=True)
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 58): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:40 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093a0200400202000400000064'
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e99000700aa00
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1799000800010001
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1799002b0024002202000001025f0301040100ef0d00093b020040020200040000006400afff70171b00c2
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 112, 23, 27, 0, -62]
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=59, command_id=2, *is_reply=True)
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 59): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:44 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093b0200400202000400000064'
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e9a000700aa00
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x179a000800010001
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x179a002b0024002202000001025f0301040100ef0d00093b020040020200040000006400afff71171b00c2
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 113, 23, 27, 0, -62]
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=59, command_id=2, *is_reply=True)
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 59): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:45 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093b0200400202000400000064'
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e9b000700aa00
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x179b000800010001
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x179b002b0024002202000001025f0301040100ef0d00093b020040020200040000006400afff71171b00c2
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, 1, 260, 61184, b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 255, 113, 23, 27, 0, -62]
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t;\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=59, command_id=2, *is_reply=True)
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 59): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:47 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x035f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'093b0200400202000400000064'
2022-04-17 20:31:56 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t<\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:56 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=60, command_id=2, *is_reply=True)
2022-04-17 20:31:56 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:56 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 60): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:56 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:57 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t<\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:57 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=60, command_id=2, *is_reply=True)
2022-04-17 20:31:57 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:57 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 60): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:57 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:58 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t<\x02\x00@\x02\x02\x00\x04\x00\x00\x00d'
2022-04-17 20:31:58 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=60, command_id=2, *is_reply=True)
2022-04-17 20:31:58 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:58 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 60): set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:31:58 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=64, command_id=514, function=0, data=[4, 0, 0, 0, 100]))
2022-04-17 20:32:01 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t=\x02\x00G\x01\x01\x00\x01\x01'
2022-04-17 20:32:01 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=61, command_id=2, *is_reply=True)
2022-04-17 20:32:01 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:01 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 61): set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:01 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:02 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t=\x02\x00G\x01\x01\x00\x01\x01'
2022-04-17 20:32:02 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=61, command_id=2, *is_reply=True)
2022-04-17 20:32:02 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:02 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 61): set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:02 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:04 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t=\x02\x00G\x01\x01\x00\x01\x01'
2022-04-17 20:32:04 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=61, command_id=2, *is_reply=True)
2022-04-17 20:32:04 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:04 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 61): set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:04 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=71, command_id=257, function=0, data=[1, 1]))
2022-04-17 20:32:05 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t>\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:05 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=62, command_id=2, *is_reply=True)
2022-04-17 20:32:05 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:05 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 62): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:05 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:06 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t>\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:06 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=62, command_id=2, *is_reply=True)
2022-04-17 20:32:06 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:06 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 62): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:06 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:08 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t>\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:08 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=62, command_id=2, *is_reply=True)
2022-04-17 20:32:08 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:08 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 62): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:08 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:14 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t?\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:14 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=63, command_id=2, *is_reply=True)
2022-04-17 20:32:14 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:14 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 63): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:14 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:15 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t?\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:15 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=63, command_id=2, *is_reply=True)
2022-04-17 20:32:15 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:15 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 63): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:15 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:16 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received ZCL frame: b'\t?\x02\x00N\x01\x01\x00\x01\x00'
2022-04-17 20:32:16 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=63, command_id=2, *is_reply=True)
2022-04-17 20:32:16 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Decoded ZCL frame: TuyaManufCluster:set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:16 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] Received command 0x02 (TSN 63): set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
2022-04-17 20:32:16 DEBUG (MainThread) [zigpy.zcl] [0x035F:1:0xef00] No explicit handler for cluster command 0x02: set_data_response(param=Command(status=0, tsn=78, command_id=257, function=0, data=[1, 0]))
Tropaion commented 2 years ago

What is the NWK-Address of the device you used? And can you put the logs in a more readable format please? It's really hard like this, you can do it like this: ``` logs.... ```

centershock commented 2 years ago

NWK-Adress should be 0x035f. Sorry about the logs, changed it for the last post.

centershock commented 2 years ago

Anything I can help with to get a solution? Would really appreciate it, if a solution can be found. Thank you :)

Tropaion commented 2 years ago

@centershock Sorry, the next two weeks I'm very busy and don't have much time. @javicalle Should be able to help better in this issue.

centershock commented 2 years ago

@Tropaion No need for apologies, thank you for forwarding the issue 😊

javicalle commented 2 years ago

I believe that can be done. Device reports 2 DP:

DP1 is the sensor status. DP2 seems to be battery percentage remaining Maybe there is also a tamper sensor (when battery closure is opened) and/or a low battery sensor (not clear in the vendor site).

I have followed a different approach than @Tropaion . Neither better nor worse, just my approach. ts0601_magnet.py.txt

Download, rename (remove the .txt in filename) and replace your local quirk with this one. Remove any local cache (__pycache__ folder) and restart.

I'm 'coding' from secondary laptop and can't validate code. Lots of compile errors can be expected.

centershock commented 2 years ago

There is one chance, as the ias_zone now shows "Closed" all the time, instead of "Open" which it did before. Again the pairing log:

New device 0xf273 (a4:c1:38:4d:82:df:a6:b0) joined the network
[0xf273] Scheduling initialization
Received frame on uninitialized device <Device model=None manuf=None nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x00s\xf2\xb0\xa6\xdf\x82M8\xc1\xa4\x80'
[0xf273:zdo] ZDO request ZDOCmd.Device_annce: [0xF273, a4:c1:38:4d:82:df:a6:b0, 128]
Tries remaining: 3
[0xf273] Requesting 'Node Descriptor'
Tries remaining: 2
[0xf273] Extending timeout for 0xd5 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\xd5\x00s\xf2\x02@\x80A\x11BB\x00\x00*B\x00\x00'
[0xf273] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)
[0xf273] Discovering endpoints
Tries remaining: 3
[0xf273] Extending timeout for 0xd7 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32773: b'\xd7\x00s\xf2\x01\x01'
[0xf273] Discovered endpoints: [1]
[0xf273] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
[0xf273:1] Discovering endpoint information
Tries remaining: 3
[0xf273] Extending timeout for 0xd9 request
Received frame on uninitialized device <Device model=None manuf=None nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01'
[0xf273] Received ZCL while uninitialized on endpoint id 1, cluster 0xef00 id, hdr: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=20, command_id=2, *is_reply=True), payload: b'\x00\x07\x01\x01\x00\x01\x01'
Received frame on uninitialized device <Device model=None manuf=None nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'\xd9\x00s\xf2\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00'
[0xf273:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[1, 1280, 0], output_clusters=[25, 10])
[0xF273:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=219, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
[0xF273:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
[0xf273] Extending timeout for 0xdb request
[0xF273:1:0x0000] Received ZCL frame: b'\x18\xdb\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601'
[0xF273:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=219, command_id=1, *is_reply=True)
[0xF273:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TZE200_pay2byax')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='TS0601'))])
[0xf273] Read model 'TS0601' and manufacturer '_TZE200_pay2byax' from <Endpoint id=1 in=[power:0x0001, ias_zone:0x0500, basic:0x0000] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
[0xf273] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Device is initialized <Device model='TS0601' manuf='_TZE200_pay2byax' nwk=0xF273 ieee=a4:c1:38:4d:82:df:a6:b0 is_initialized=True>
Checking quirks for _TZE200_pay2byax TS0601 (a4:c1:38:4d:82:df:a6:b0)
Considering <class 'ts0601_magnet.TuyaContactSensor'>
Found custom device replacement for a4:c1:38:4d:82:df:a6:b0: <class 'ts0601_magnet.TuyaContactSensor'>
device - 0xF273:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: False
device - 0xF273:a4:c1:38:4d:82:df:a6:b0 has been reset and re-added or its nwk address changed
skipping discovery for previously discovered device - 5056:a4:c1:38:4d:82:df:a6:b0
[5056](TS0601): started configuration
[5056:ZDO](TS0601): 'async_configure' stage succeeded
[0x13c0] Extending timeout for 0xdd request
[5056:1:0x0500]: started IASZoneChannel configuration
[5056:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS
[5056:1:0x0000]: finished channel configuration
[5056:1:0x0019]: finished channel configuration
[0xF273:1:0xef00] Received ZCL frame: b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=20, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=7, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Received command 0x02 (TSN 20): set_data_response(data=TuyaCommand(status=0, tsn=7, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=20, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x15\x02\x00\x08\x02\x02\x00\x04\x00\x00\x00d'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=21, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=8, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Received command 0x02 (TSN 21): set_data_response(data=TuyaCommand(status=0, tsn=8, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=21, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x16\x02\x00\t\x01\x01\x00\x01\x01'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=22, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=9, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Received command 0x02 (TSN 22): set_data_response(data=TuyaCommand(status=0, tsn=9, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=22, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x17\x02\x00\n\x02\x02\x00\x04\x00\x00\x00d'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=23, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=10, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Received command 0x02 (TSN 23): set_data_response(data=TuyaCommand(status=0, tsn=10, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=23, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x18\x02\x00\x0be\x02\x00\x04\x00\x00\x02\x0e'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=24, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0e\x02\x00\x00', *payload=526)))
[0xF273:1:0xef00] Received command 0x02 (TSN 24): set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0e\x02\x00\x00', *payload=526)))
[0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0e\x02\x00\x00', *payload=526))
[0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x0e\x02\x00\x00', *payload=526)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=24, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
[0x1A53:1:0x0402] Received ZCL frame: b'\x18\x1b\n\x00\x00)\xf2\x08'
[0x1A53:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=10, *is_reply=True)
[0x1A53:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2290))])
[0x1A53:1:0x0402] Received command 0x0A (TSN 27): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2290))])
[0x1A53:1:0x0402] Attribute report received: measured_value=2290
[0x1A53:1:0x0405] Received ZCL frame: b'\x18\x1c\n\x00\x00!\x13\x10'
[0x1A53:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=28, command_id=10, *is_reply=True)
[0x1A53:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4115))])
[0x1A53:1:0x0405] Received command 0x0A (TSN 28): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4115))])
[0x1A53:1:0x0405] Attribute report received: measured_value=4115
[0x1A53:1:0x0403] Received ZCL frame: b"\x18\x1d\n\x00\x00)\xfa\x03\x14\x00(\xff\x10\x00)\xca'"
[0x1A53:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=29, command_id=10, *is_reply=True)
[0x1A53:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1018)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10186))])
[0x1A53:1:0x0403] Received command 0x0A (TSN 29): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1018)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10186))])
[0x1A53:1:0x0403] Attribute report received: measured_value=1018, 0x0014=-1, 0x0010=10186
[0xF273:1:0x000a] Received ZCL frame: b'\x00\x19\x00\x07\x00'
[0xF273:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=25, command_id=0, *is_reply=False)
[0xF273:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7])
[0xF273:1:0x000a] Received command 0x00 (TSN 25): Read_Attributes(attribute_ids=[7])
[0xF273:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=25, command_id=<GeneralCommand.Read_Attributes_rsp: 1>, *is_reply=True)
[0xF273:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=<Status.SUCCESS: 0>, value=TypeValue(type=LocalTime, value=704407024))])
[0x3189:1:0x0500]: Updated alarm state: 0
[0xF273:1:0xef00] Received ZCL frame: b'\t\x1a\x02\x00\x0c\x01\x01\x00\x01\x01'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=26, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Received command 0x02 (TSN 26): set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=26, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x1b\x02\x00\re\x02\x00\x04\x00\x00\x01\xaa'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=27, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xaa\x01\x00\x00', *payload=426)))
[0xF273:1:0xef00] Received command 0x02 (TSN 27): set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xaa\x01\x00\x00', *payload=426)))
[0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xaa\x01\x00\x00', *payload=426))
[0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xaa\x01\x00\x00', *payload=426)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
[0xF273:1:0xef00] Received ZCL frame: b'\t\x1c\x02\x00\x0e\x02\x02\x00\x04\x00\x00\x00d'
[0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=28, command_id=2, *is_reply=True)
[0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=14, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Received command 0x02 (TSN 28): set_data_response(data=TuyaCommand(status=0, tsn=14, dp=2, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'd\x00\x00\x00', *payload=100)))
[0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=28, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
[0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
HA Log: ``` 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04370007000000 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04370013000c0022d402fcff00000000000000 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 212: 00 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xd4 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.api] Command Command.write_parameter (2, , b'<') 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x0b380009000200213c 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0b38000800010021 2022-04-27 20:36:54 DEBUG (MainThread) [zigpy_deconz.api] Write parameter permit_join: SUCCESS 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e39000700aa00 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1739000800010001 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1739002a0023002202fdff000273f200000013000c000073f2b0a6df824d38c1a48000af7711761c00b1 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [35, , , 0, , 0, 0, 19, b'\x00s\xf2\xb0\xa6\xdf\x82M8\xc1\xa4\x80', 0, 175, 119, 17, 118, 28, 0, -79] 2022-04-27 20:36:56 INFO (MainThread) [zigpy_deconz.zigbee.application] New device joined: 0xf273, a4:c1:38:4d:82:df:a6:b0 2022-04-27 20:36:56 INFO (MainThread) [zigpy.application] New device 0xf273 (a4:c1:38:4d:82:df:a6:b0) joined the network 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.device] [0xf273] Scheduling initialization 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 19: b'\x00s\xf2\xb0\xa6\xdf\x82M8\xc1\xa4\x80' 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.zdo] [0xf273:zdo] ZDO request ZDOCmd.Device_annce: [0xF273, a4:c1:38:4d:82:df:a6:b0, 128] 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2022-04-27 20:36:56 INFO (MainThread) [zigpy.device] [0xf273] Requesting 'Node Descriptor' 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy.device] [0xf273] Extending timeout for 0xd5 request 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 213 under 214 request id, data: b'd573f2' 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 0, profile: 0x0000, cluster_id: 0x0013, data: b'0073f2b0a6df824d38c1a480' 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 214, 0, , 0, , 0, b'\xd5s\xf2', 2, 0) 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x123a0019001200d6000273f20000000200000300d573f20200 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x123a000900020022d6 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 214] 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e3b000700a600 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x043b0007000000 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x043b0013000c0022d60273f200000000000000 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 214: 00 2022-04-27 20:36:56 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xd6 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e3c000700aa00 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x173c000800010001 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x173c002f00280022020000000273f200000002801100d50073f20240804111424200002a42000000af7737771c00b1 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, , , 0, , 0, 0, 32770, b'\xd5\x00s\xf2\x02@\x80A\x11BB\x00\x00*B\x00\x00', 0, 175, 119, 55, 119, 28, 0, -79] 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\xd5\x00s\xf2\x02@\x80A\x11BB\x00\x00*B\x00\x00' 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 0, profile: 0x0000, cluster_id: 0x8002, data: b'd50073f20240804111424200002a420000' 2022-04-27 20:36:57 INFO (MainThread) [zigpy.device] [0xf273] 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=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False) 2022-04-27 20:36:57 INFO (MainThread) [zigpy.device] [0xf273] Discovering endpoints 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy.device] [0xf273] Extending timeout for 0xd7 request 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 215 under 216 request id, data: b'd773f2' 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 216, 0, , 0, , 0, b'\xd7s\xf2', 2, 0) 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x123d0019001200d8000273f20000000500000300d773f20200 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x123d000900020022d8 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 216] 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e3e000700a600 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x043e0007000000 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x043e0013000c0022d80273f200000000000000 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 216: 00 2022-04-27 20:36:57 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xd8 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e3f000700aa00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x173f000800010001 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x173f0024001d0022020000000273f200000005800600d70073f2010100af7737771c00b1 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [29, , , 0, , 0, 0, 32773, b'\xd7\x00s\xf2\x01\x01', 0, 175, 119, 55, 119, 28, 0, -79] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32773: b'\xd7\x00s\xf2\x01\x01' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 0, profile: 0x0000, cluster_id: 0x8005, data: b'd70073f20101' 2022-04-27 20:36:58 INFO (MainThread) [zigpy.device] [0xf273] Discovered endpoints: [1] 2022-04-27 20:36:58 INFO (MainThread) [zigpy.device] [0xf273] Initializing endpoints [>] 2022-04-27 20:36:58 INFO (MainThread) [zigpy.endpoint] [0xf273:1] Discovering endpoint information 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.device] [0xf273] Extending timeout for 0xd9 request 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 217 under 218 request id, data: b'd973f201' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (19, 218, 0, , 0, , 0, b'\xd9s\xf2\x01', 2, 0) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1240001a001300da000273f20000000400000400d973f2010200 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e40000700aa00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x124000090002002ada 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 218] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e41000700ae00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1741000800010001 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1741002800210026020000010273f201040100ef0a000914020007010100010100af7740771c00b1 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, , , 1, , 1, 260, 61184, b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01', 0, 175, 119, 64, 119, 28, 0, -79] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 1 to ep 1, cluster 61184: b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.device] [0xf273] Received ZCL while uninitialized on endpoint id 1, cluster 0xef00 id, hdr: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=20, command_id=2, *is_reply=True), payload: b'\x00\x07\x01\x01\x00\x01\x01' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09140200070101000101' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04420007000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04420013000c0022da0273f200000000000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 218: 00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xda 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e43000700aa00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1743000800010001 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17430035002e0022020000000273f200000004801700d90073f212010401020401030100000500000219000a0000af7740771c00b1 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [46, , , 0, , 0, 0, 32772, b'\xd9\x00s\xf2\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00', 0, 175, 119, 64, 119, 28, 0, -79] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32772: b'\xd9\x00s\xf2\x12\x01\x04\x01\x02\x04\x01\x03\x01\x00\x00\x05\x00\x00\x02\x19\x00\n\x00' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 0, profile: 0x0000, cluster_id: 0x8004, data: b'd90073f212010401020401030100000500000219000a00' 2022-04-27 20:36:58 INFO (MainThread) [zigpy.endpoint] [0xf273:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, input_clusters=[1, 1280, 0], output_clusters=[25, 10]) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=219, command_id=, *is_reply=False) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5]) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.device] [0xf273] Extending timeout for 0xdb request 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 219 under 220 request id, data: b'00db0004000500' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 220, 0, , 260, 0, 1, b'\x00\xdb\x00\x04\x00\x05\x00', 2, 0) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1244001d001600dc000273f2010401000001070000db00040005000200 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1244000900020022dc 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 220] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e45000700a600 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04450007000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04450013000c0022dc0273f201010000000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 220: 00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xdc 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e46000700aa00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1746000800010001 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17460041003a0022020000010273f20104010000230018db0104000042105f545a453230305f7061793262796178050000420654533036303100af7740771c00b1 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [58, , , 1, , 1, 260, 0, b'\x18\xdb\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601', 0, 175, 119, 64, 119, 28, 0, -79] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x0000] Received ZCL frame: b'\x18\xdb\x01\x04\x00\x00B\x10_TZE200_pay2byax\x05\x00\x00B\x06TS0601' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=219, command_id=1, *is_reply=True) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=CharacterString, value='_TZE200_pay2byax')), ReadAttributeRecord(attrid=0x0005, status=, value=TypeValue(type=CharacterString, value='TS0601'))]) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18db0104000042105f545a453230305f70617932627961780500004206545330363031' 2022-04-27 20:36:58 INFO (MainThread) [zigpy.device] [0xf273] Read model 'TS0601' and manufacturer '_TZE200_pay2byax' from > 2022-04-27 20:36:58 INFO (MainThread) [zigpy.device] [0xf273] Discovered basic device information for 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.application] Device is initialized 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_pay2byax TS0601 (a4:c1:38:4d:82:df:a6:b0) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for a4:c1:38:4d:82:df:a6:b0: 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xF273:a4:c1:38:4d:82:df:a6:b0 entering async_device_initialized - is_new_join: False 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xF273:a4:c1:38:4d:82:df:a6:b0 has been reset and re-added or its nwk address changed 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] skipping discovery for previously discovered device - 5056:a4:c1:38:4d:82:df:a6:b0 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): started configuration 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:ZDO](TS0601): 'async_configure' stage succeeded 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xdd request 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 221 under 222 request id, data: b'ddb0a6df824d38c1a4010100033e7907ffff2e210001' 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (37, 222, 0, , 0, , 0, b'\xdd\xb0\xa6\xdf\x82M8\xc1\xa4\x01\x01\x00\x03>y\x07\xff\xff.!\x00\x01', 2, 0) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1247002c002500de0002c0130000002100001600ddb0a6df824d38c1a4010100033e7907ffff2e2100010200 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: started IASZoneChannel configuration 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: bound 'ias_zone' cluster: Status.SUCCESS 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0000]: finished channel configuration 2022-04-27 20:36:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0019]: finished channel configuration 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1247000900020022de 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 222] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e48000700a600 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04480007000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04480013000c0022de02c01300000000000000 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 222: 00 2022-04-27 20:36:58 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xde 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e49000700aa00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1749000800010001 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1749002800210022020000010273f201040100ef0a000914020007010100010100af7749771c00b1 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, , , 1, , 1, 260, 61184, b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x14\x02\x00\x07\x01\x01\x00\x01\x01' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=20, command_id=2, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=7, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 20): set_data_response(data=TuyaCommand(status=0, tsn=7, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=20, command_id=, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 20 under 223 request id, data: b'18140b0200' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09140200070101000101' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 223, 0, , 260, 61184, 1, b'\x18\x14\x0b\x02\x00', 2, 0) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x124a001b001400df000273f201040100ef01050018140b02000200 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x124a000900020022df 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 223] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4b000700a600 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x044b0007000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x044b0013000c0022df0273f201010000000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 223: 00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xdf 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4c000700aa00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174c000800010001 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174c002b00240022020000010273f201040100ef0d000915020008020200040000006400af7749771c00b1 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, , , 1, , 1, 260, 61184, b'\t\x15\x02\x00\x08\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x15\x02\x00\x08\x02\x02\x00\x04\x00\x00\x00d' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=21, command_id=2, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=8, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 21): set_data_response(data=TuyaCommand(status=0, tsn=8, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=21, command_id=, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 21 under 224 request id, data: b'18150b0200' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09150200080202000400000064' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 224, 0, , 260, 61184, 1, b'\x18\x15\x0b\x02\x00', 2, 0) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x124d001b001400e0000273f201040100ef01050018150b02000200 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x124d000900020022e0 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 224] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4e000700a600 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x044e0007000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x044e0013000c0022e00273f201010000000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 224: 00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe0 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4f000700aa00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174f000800010001 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174f002800210022020000010273f201040100ef0a000916020009010100010100af7749771c00b1 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, , , 1, , 1, 260, 61184, b'\t\x16\x02\x00\t\x01\x01\x00\x01\x01', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x16\x02\x00\t\x01\x01\x00\x01\x01' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=22, command_id=2, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=9, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 22): set_data_response(data=TuyaCommand(status=0, tsn=9, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=22, command_id=, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 22 under 225 request id, data: b'18160b0200' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09160200090101000101' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 225, 0, , 260, 61184, 1, b'\x18\x16\x0b\x02\x00', 2, 0) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1250001b001400e1000273f201040100ef01050018160b02000200 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1250000900020022e1 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 225] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e51000700a600 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04510007000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04510013000c0022e10273f201010000000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 225: 00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe1 'aps_data_confirm' for , status: 0x00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e52000700aa00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1752000800010001 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1752002b00240022020000010273f201040100ef0d00091702000a020200040000006400af7749771c00b1 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, , , 1, , 1, 260, 61184, b'\t\x17\x02\x00\n\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x17\x02\x00\n\x02\x02\x00\x04\x00\x00\x00d' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=23, command_id=2, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=10, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 23): set_data_response(data=TuyaCommand(status=0, tsn=10, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=23, command_id=, *is_reply=True) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 23 under 226 request id, data: b'18170b0200' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'091702000a0202000400000064' 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 226, 0, , 260, 61184, 1, b'\x18\x17\x0b\x02\x00', 2, 0) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1253001b001400e2000273f201040100ef01050018170b02000200 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1253000900020022e2 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 226] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e54000700a600 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04540007000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04540013000c0022e20273f201010000000000 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 226: 00 2022-04-27 20:36:59 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe2 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:00 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e55000700aa00 2022-04-27 20:37:00 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1755000800010001 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1755002b00240022020000010273f201040100ef0d00091802000b650200040000020e00af7749771c00b1 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, , , 1, , 1, 260, 61184, b'\t\x18\x02\x00\x0be\x02\x00\x04\x00\x00\x02\x0e', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x18\x02\x00\x0be\x02\x00\x04\x00\x00\x02\x0e' 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=24, command_id=2, *is_reply=True) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\x0e\x02\x00\x00', *payload=526))) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 24): set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\x0e\x02\x00\x00', *payload=526))) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\x0e\x02\x00\x00', *payload=526)) 2022-04-27 20:37:01 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\x0e\x02\x00\x00', *payload=526))) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=24, command_id=, *is_reply=True) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 24 under 227 request id, data: b'18180b0281' 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'091802000b650200040000020e' 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 227, 0, , 260, 61184, 1, b'\x18\x18\x0b\x02\x81', 2, 0) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1256001b001400e3000273f201040100ef01050018180b02810200 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1256000900020022e3 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 227] 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e57000700a600 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04570007000000 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04570013000c0022e30273f201010000000000 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 227: 00 2022-04-27 20:37:01 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe3 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e58000700aa00 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1758000800010001 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e59000700aa00 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5a000700aa00 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17580026001f002a0200000102531a01040102040800181b0a000029f20800afff49771c00cf 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1026, b'\x18\x1b\n\x00\x00)\xf2\x08', 0, 175, 255, 73, 119, 28, 0, -49] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0402] Received ZCL frame: b'\x18\x1b\n\x00\x00)\xf2\x08' 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=10, *is_reply=True) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2290))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0402] Received command 0x0A (TSN 27): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2290))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0402] Attribute report received: measured_value=2290 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0402, data: b'181b0a000029f208' 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1759000800010001 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17590026001f002a0200000102531a01040105040800181c0a000021131000afff49771c00cf 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1029, b'\x18\x1c\n\x00\x00!\x13\x10', 0, 175, 255, 73, 119, 28, 0, -49] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0405] Received ZCL frame: b'\x18\x1c\n\x00\x00!\x13\x10' 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=28, command_id=10, *is_reply=True) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4115))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0405] Received command 0x0A (TSN 28): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4115))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0405] Attribute report received: measured_value=4115 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0405, data: b'181c0a0000211310' 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x175a000800010001 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x175a002f002800220200000102531a01040103041100181d0a000029fa03140028ff100029ca2700afff49771c00cf 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, , , 1, , 1, 260, 1027, b"\x18\x1d\n\x00\x00)\xfa\x03\x14\x00(\xff\x10\x00)\xca'", 0, 175, 255, 73, 119, 28, 0, -49] 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0403] Received ZCL frame: b"\x18\x1d\n\x00\x00)\xfa\x03\x14\x00(\xff\x10\x00)\xca'" 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=29, command_id=10, *is_reply=True) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1018)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10186))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0403] Received command 0x0A (TSN 29): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1018)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10186))]) 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy.zcl] [0x1A53:1:0x0403] Attribute report received: measured_value=1018, 0x0014=-1, 0x0010=10186 2022-04-27 20:37:02 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0403, data: b'181d0a000029fa03140028ff100029ca27' 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5b000700aa00 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x175b000800010001 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x175b0023001c0022020000010273f20104010a000500001900070000af7749771c00b1 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [28, , , 1, , 1, 260, 10, b'\x00\x19\x00\x07\x00', 0, 175, 119, 73, 119, 28, 0, -79] 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Received ZCL frame: b'\x00\x19\x00\x07\x00' 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=25, command_id=0, *is_reply=False) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Decoded ZCL frame: Time:Read_Attributes(attribute_ids=[7]) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Received command 0x00 (TSN 25): Read_Attributes(attribute_ids=[7]) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=25, command_id=, *is_reply=True) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0x000a] Sending reply: Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0007, status=, value=TypeValue(type=LocalTime, value=704407024))]) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 25 under 228 request id, data: b'18190107000023f065fc29' 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x000a, data: b'0019000700' 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (26, 228, 0, , 260, 10, 1, b'\x18\x19\x01\x07\x00\x00#\xf0e\xfc)', 2, 0) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x125c0021001a00e4000273f20104010a00010b0018190107000023f065fc290200 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x125c000900020022e4 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 228] 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5d000700a600 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x045d0007000000 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x045d0013000c0022e40273f201010000000000 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 228: 00 2022-04-27 20:37:04 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe4 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:12 DEBUG (MainThread) [zigpy_deconz.api] Command Command.write_parameter (5, , b'X\x02\x00\x00') 2022-04-27 20:37:12 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x0b5e000c0005002658020000 2022-04-27 20:37:12 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0b5e000800010026 2022-04-27 20:37:12 DEBUG (MainThread) [zigpy_deconz.api] Write parameter watchdog_ttl: SUCCESS 2022-04-27 20:37:13 DEBUG (MainThread) [zhaquirks] 00:15:8d:00:07:c4:a2:c8 - Resetting motion sensor 2022-04-27 20:37:13 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x3189:1:0x0500]: Updated alarm state: 0 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e5f000700aa00 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x175f000800010001 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x175f002800210022020000010273f201040100ef0a00091a02000c010100010100af7751771c00b1 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, , , 1, , 1, 260, 61184, b'\t\x1a\x02\x00\x0c\x01\x01\x00\x01\x01', 0, 175, 119, 81, 119, 28, 0, -79] 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x1a\x02\x00\x0c\x01\x01\x00\x01\x01' 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=26, command_id=2, *is_reply=True) 2022-04-27 20:37:17 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 26): set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=, function=0, raw=b'\x01', *payload=))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=26, command_id=, *is_reply=True) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 26 under 229 request id, data: b'181a0b0200' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'091a02000c0101000101' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 229, 0, , 260, 61184, 1, b'\x18\x1a\x0b\x02\x00', 2, 0) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1260001b001400e5000273f201040100ef010500181a0b02000200 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1260000900020022e5 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 229] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e61000700a600 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04610007000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04610013000c0022e50273f201010000000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 229: 00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe5 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e62000700aa00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1762000800010001 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1762002b00240022020000010273f201040100ef0d00091b02000d65020004000001aa00af7751771c00b1 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, , , 1, , 1, 260, 61184, b'\t\x1b\x02\x00\re\x02\x00\x04\x00\x00\x01\xaa', 0, 175, 119, 81, 119, 28, 0, -79] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x1b\x02\x00\re\x02\x00\x04\x00\x00\x01\xaa' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=27, command_id=2, *is_reply=True) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\xaa\x01\x00\x00', *payload=426))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 27): set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\xaa\x01\x00\x00', *payload=426))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\xaa\x01\x00\x00', *payload=426)) 2022-04-27 20:37:18 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=13, dp=101, data=TuyaData(dp_type=, function=0, raw=b'\xaa\x01\x00\x00', *payload=426))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=, *is_reply=True) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 27 under 230 request id, data: b'181b0b0281' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'091b02000d65020004000001aa' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 230, 0, , 260, 61184, 1, b'\x18\x1b\x0b\x02\x81', 2, 0) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1263001b001400e6000273f201040100ef010500181b0b02810200 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1263000900020022e6 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 230] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e64000700a600 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04640007000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04640013000c0022e60273f201010000000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 230: 00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe6 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e65000700aa00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1765000800010001 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1765002b00240022020000010273f201040100ef0d00091c02000e020200040000006400af7751771c00b1 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, , , 1, , 1, 260, 61184, b'\t\x1c\x02\x00\x0e\x02\x02\x00\x04\x00\x00\x00d', 0, 175, 119, 81, 119, 28, 0, -79] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x1c\x02\x00\x0e\x02\x02\x00\x04\x00\x00\x00d' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=28, command_id=2, *is_reply=True) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=14, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 28): set_data_response(data=TuyaCommand(status=0, tsn=14, dp=2, data=TuyaData(dp_type=, function=0, raw=b'd\x00\x00\x00', *payload=100))) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=28, command_id=, *is_reply=True) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 28 under 231 request id, data: b'181c0b0200' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'091c02000e0202000400000064' 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 231, 0, , 260, 61184, 1, b'\x18\x1c\x0b\x02\x00', 2, 0) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1266001b001400e7000273f201040100ef010500181c0b02000200 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1266000900020022e7 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 231] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e67000700a600 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04670007000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04670013000c0022e70273f201010000000000 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 231: 00 2022-04-27 20:37:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe7 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:25 DEBUG (MainThread) [zhaquirks] 00:15:8d:00:07:be:f3:01 - Resetting motion sensor 2022-04-27 20:37:25 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xA6FF:1:0x0500]: Updated alarm state: 0 2022-04-27 20:37:26 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: Failed to bind 'power' cluster: 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=232, command_id=, *is_reply=False) 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request: Configure_Reporting(config_records=[AttributeReportingConfig(direction=0, attrid=0x0020, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1), AttributeReportingConfig(direction=0, attrid=0x0021, datatype=32, min_interval=3600, max_interval=10800, reportable_change=1)]) 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xe8 request 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 232 under 233 request id, data: b'00e80600200020100e302a0100210020100e302a01' 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (36, 233, 0, , 260, 1, 1, b'\x00\xe8\x06\x00 \x00 \x10\x0e0*\x01\x00!\x00 \x10\x0e0*\x01', 2, 0) 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1268002b002400e90002c013010401010001150000e80600200020100e302a0100210020100e302a010200 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1268000900020022e9 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 233] 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e69000700a600 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04690007000000 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04690013000c0022e902c01301010000000000 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 233: 00 2022-04-27 20:37:26 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xe9 'aps_data_confirm' for , status: 0x00 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: failed to set reporting on 'power' cluster for: 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: finished channel configuration 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: 'async_configure' stage succeeded 2022-04-27 20:37:54 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: 'async_configure' stage failed: 'cie_addr' 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0000]: 'async_configure' stage succeeded 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0019]: 'async_configure' stage succeeded 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): completed configuration 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_pay2byax TS0601', ieee='a4:c1:38:4d:82:df:a6:b0', last_seen=1651084646.5656128) 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): started initialization 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:ZDO](TS0601): 'async_initialize' stage succeeded 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: initializing channel: from_cache: False 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=234, command_id=, *is_reply=False) 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33]) 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xea request 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 234 under 235 request id, data: b'00ea0020002100' 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 235, 0, , 260, 1, 1, b'\x00\xea\x00 \x00!\x00', 2, 0) 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x126a001d001600eb0002c013010401010001070000ea00200021000200 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: initializing channel: from_cache: False 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: finished channel initialization 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0000]: initializing channel: from_cache: False 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0000]: finished channel initialization 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0019]: initializing channel: from_cache: False 2022-04-27 20:37:54 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0019]: finished channel initialization 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x126a000900020022eb 2022-04-27 20:37:54 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 235] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6b000700aa00 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176b000800010001 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6c000700aa00 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176b0026001f002a0200000102ef6701040102040800183a0a000029230900af7f5d771c00b2 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1026, b'\x18:\n\x00\x00)#\t', 0, 175, 127, 93, 119, 28, 0, -78] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Received ZCL frame: b'\x18:\n\x00\x00)#\t' 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=58, command_id=10, *is_reply=True) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2339))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Received command 0x0A (TSN 58): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2339))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0402] Attribute report received: measured_value=2339 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6c000700aa00 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0402, data: b'183a0a0000292309' 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176c000800010001 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176c0026001f002a0200000102ef6701040105040800183b0a000021290f00af7f5d771c00b2 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1029, b'\x18;\n\x00\x00!)\x0f', 0, 175, 127, 93, 119, 28, 0, -78] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Received ZCL frame: b'\x18;\n\x00\x00!)\x0f' 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=59, command_id=10, *is_reply=True) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3881))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Received command 0x0A (TSN 59): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3881))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0405] Attribute report received: measured_value=3881 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0405, data: b'183b0a000021290f' 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176d000800010001 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176d002f002800220200000102ef6701040103041100183c0a000029f903140028ff100029c22700af775d771c00b1 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, , , 1, , 1, 260, 1027, b"\x18<\n\x00\x00)\xf9\x03\x14\x00(\xff\x10\x00)\xc2'", 0, 175, 119, 93, 119, 28, 0, -79] 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Received ZCL frame: b"\x18<\n\x00\x00)\xf9\x03\x14\x00(\xff\x10\x00)\xc2'" 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=60, command_id=10, *is_reply=True) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1017)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10178))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Received command 0x0A (TSN 60): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1017)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10178))]) 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0403] Attribute report received: measured_value=1017, 0x0014=-1, 0x0010=10178 2022-04-27 20:37:59 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0403, data: b'183c0a000029f903140028ff100029c227' 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6e000700aa00 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176e000800010001 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176e0026001f00220200000102edaf0104010204080018600a000029700900afc75d771c00bb 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1026, b'\x18`\n\x00\x00)p\t', 0, 175, 199, 93, 119, 28, 0, -69] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0402] Received ZCL frame: b'\x18`\n\x00\x00)p\t' 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=96, command_id=10, *is_reply=True) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2416))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0402] Received command 0x0A (TSN 96): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2416))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0402] Attribute report received: measured_value=2416 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0402, data: b'18600a0000297009' 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e6f000700aa00 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x176f000800010001 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x176f0026001f00220200000102edaf0104010504080018610a000021320f00afbf5d771c00ba 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1029, b'\x18a\n\x00\x00!2\x0f', 0, 175, 191, 93, 119, 28, 0, -70] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0405] Received ZCL frame: b'\x18a\n\x00\x00!2\x0f' 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=97, command_id=10, *is_reply=True) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3890))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0405] Received command 0x0A (TSN 97): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=3890))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0405] Attribute report received: measured_value=3890 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0405, data: b'18610a000021320f' 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e70000700aa00 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1770000800010001 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1770002f002800220200000102edaf0104010304110018620a000029fc03140028ff100029df2700afc75d771c00bb 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, , , 1, , 1, 260, 1027, b"\x18b\n\x00\x00)\xfc\x03\x14\x00(\xff\x10\x00)\xdf'", 0, 175, 199, 93, 119, 28, 0, -69] 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0403] Received ZCL frame: b"\x18b\n\x00\x00)\xfc\x03\x14\x00(\xff\x10\x00)\xdf'" 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=98, command_id=10, *is_reply=True) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1020)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10207))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0403] Received command 0x0A (TSN 98): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1020)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10207))]) 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy.zcl] [0xAFED:1:0x0403] Attribute report received: measured_value=1020, 0x0014=-1, 0x0010=10207 2022-04-27 20:38:01 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0403, data: b'18620a000029fc03140028ff100029df27' 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e71000700a600 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04710007000000 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04710013000c0022eb02c0130101d000000000 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 235: d0 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xeb 'aps_data_confirm' for , status: 0xd0 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 235 req id frame: TXStatus.NWK_ROUTE_DISCOVERY_FAILED 2022-04-27 20:38:04 DEBUG (MainThread) [zigpy.device] [0x13c0] Delivery error for seq # 0xea, on endpoint id 1 cluster 0x0001: message send failure 2022-04-27 20:38:04 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: failed to get attributes '['battery_voltage', 'battery_percentage_remaining']' on 'power' cluster: [0x13c0:1:0x0001]: Message send failure 2022-04-27 20:38:04 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: async_initialize: retryable request #1 failed: [0x13c0:1:0x0001]: Message send failure. Retrying in 0.9s 2022-04-27 20:38:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: initializing channel: from_cache: False 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=236, command_id=, *is_reply=False) 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33]) 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xec request 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 236 under 237 request id, data: b'00ec0020002100' 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 237, 0, , 260, 1, 1, b'\x00\xec\x00 \x00!\x00', 2, 0) 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1272001d001600ed0002c013010401010001070000ec00200021000200 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1272000900020022ed 2022-04-27 20:38:05 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 237] 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e73000700a600 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04730007000000 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04730013000c0022ed02c0130101d000000000 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 237: d0 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xed 'aps_data_confirm' for , status: 0xd0 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 237 req id frame: TXStatus.NWK_ROUTE_DISCOVERY_FAILED 2022-04-27 20:38:15 DEBUG (MainThread) [zigpy.device] [0x13c0] Delivery error for seq # 0xec, on endpoint id 1 cluster 0x0001: message send failure 2022-04-27 20:38:15 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: failed to get attributes '['battery_voltage', 'battery_percentage_remaining']' on 'power' cluster: [0x13c0:1:0x0001]: Message send failure 2022-04-27 20:38:15 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: async_initialize: retryable request #2 failed: [0x13c0:1:0x0001]: Message send failure. Retrying in 0.9s 2022-04-27 20:38:16 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: initializing channel: from_cache: False 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=238, command_id=, *is_reply=False) 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33]) 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xee request 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 238 under 239 request id, data: b'00ee0020002100' 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 239, 0, , 260, 1, 1, b'\x00\xee\x00 \x00!\x00', 2, 0) 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1274001d001600ef0002c013010401010001070000ee00200021000200 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1274000900020022ef 2022-04-27 20:38:16 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 239] 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e75000700a600 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04750007000000 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04750013000c0022ef02c0130101d000000000 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 239: d0 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xef 'aps_data_confirm' for , status: 0xd0 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 239 req id frame: TXStatus.NWK_ROUTE_DISCOVERY_FAILED 2022-04-27 20:38:26 DEBUG (MainThread) [zigpy.device] [0x13c0] Delivery error for seq # 0xee, on endpoint id 1 cluster 0x0001: message send failure 2022-04-27 20:38:26 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: failed to get attributes '['battery_voltage', 'battery_percentage_remaining']' on 'power' cluster: [0x13c0:1:0x0001]: Message send failure 2022-04-27 20:38:26 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: async_initialize: retryable request #3 failed: [0x13c0:1:0x0001]: Message send failure. Retrying in 3.2s 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e76000700aa00 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1776000800010001 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e77000700aa00 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17760026001f002a020000010295730104010204080018940a0000291c0900af8740771c00b3 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1026, b'\x18\x94\n\x00\x00)\x1c\t', 0, 175, 135, 64, 119, 28, 0, -77] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0402] Received ZCL frame: b'\x18\x94\n\x00\x00)\x1c\t' 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0402] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=148, command_id=10, *is_reply=True) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0402] Decoded ZCL frame: TemperatureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2332))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0402] Received command 0x0A (TSN 148): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=2332))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0402] Attribute report received: measured_value=2332 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e77000700aa00 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0402, data: b'18940a0000291c09' 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1777000800010001 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17770026001f002a020000010295730104010504080018950a000021631000af8740771c00b3 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 1, 260, 1029, b'\x18\x95\n\x00\x00!c\x10', 0, 175, 135, 64, 119, 28, 0, -77] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0405] Received ZCL frame: b'\x18\x95\n\x00\x00!c\x10' 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=149, command_id=10, *is_reply=True) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0405] Decoded ZCL frame: RelativeHumidityCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4195))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0405] Received command 0x0A (TSN 149): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4195))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0405] Attribute report received: measured_value=4195 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0405, data: b'18950a0000216310' 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1778000800010001 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1778002f00280022020000010295730104010304110018960a000029f903140028ff100029c22700af8740771c00b3 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, , , 1, , 1, 260, 1027, b"\x18\x96\n\x00\x00)\xf9\x03\x14\x00(\xff\x10\x00)\xc2'", 0, 175, 135, 64, 119, 28, 0, -77] 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0403] Received ZCL frame: b"\x18\x96\n\x00\x00)\xf9\x03\x14\x00(\xff\x10\x00)\xc2'" 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0403] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=150, command_id=10, *is_reply=True) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0403] Decoded ZCL frame: PressureMeasurementCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1017)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10178))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0403] Received command 0x0A (TSN 150): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=int16s, value=1017)), Attribute(attrid=0x0014, value=TypeValue(type=int8s, value=-1)), Attribute(attrid=0x0010, value=TypeValue(type=int16s, value=10178))]) 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy.zcl] [0x7395:1:0x0403] Attribute report received: measured_value=1017, 0x0014=-1, 0x0010=10178 2022-04-27 20:38:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 1, profile: 0x0104, cluster_id: 0x0403, data: b'18960a000029f903140028ff100029c227' 2022-04-27 20:38:30 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: initializing channel: from_cache: False 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=240, command_id=, *is_reply=False) 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy.zcl] [0x13C0:1:0x0001] Sending request: Read_Attributes(attribute_ids=[32, 33]) 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy.device] [0x13c0] Extending timeout for 0xf0 request 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 240 under 241 request id, data: b'00f00020002100' 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 241, 0, , 260, 1, 1, b'\x00\xf0\x00 \x00!\x00', 2, 0) 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1279001d001600f10002c013010401010001070000f000200021000200 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1279000900020022f1 2022-04-27 20:38:30 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 241] 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7a000700a600 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x047a0007000000 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x047a0013000c0022f102c0130101d000000000 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 241: d0 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xf1 'aps_data_confirm' for , status: 0xd0 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 241 req id frame: TXStatus.NWK_ROUTE_DISCOVERY_FAILED 2022-04-27 20:38:40 DEBUG (MainThread) [zigpy.device] [0x13c0] Delivery error for seq # 0xf0, on endpoint id 1 cluster 0x0001: message send failure 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: failed to get attributes '['battery_voltage', 'battery_percentage_remaining']' on 'power' cluster: [0x13c0:1:0x0001]: Message send failure 2022-04-27 20:38:40 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x13c0:1:0x0001]: Message send failure'), DeliveryError('[0x13c0:1:0x0001]: Message send failure'), DeliveryError('[0x13c0:1:0x0001]: Message send failure'), DeliveryError('[0x13c0:1:0x0001]: Message send failure')] 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0001]: 'async_initialize' stage succeeded 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0500]: 'async_initialize' stage succeeded 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0000]: 'async_initialize' stage succeeded 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [5056:1:0x0019]: 'async_initialize' stage succeeded 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): power source: Battery or Unknown 2022-04-27 20:38:40 DEBUG (MainThread) [homeassistant.components.zha.core.device] [5056](TS0601): completed initialization 2022-04-27 20:38:42 DEBUG (MainThread) [homeassistant.components.zha.entity] light.philips_hue_go: polling current state 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0006] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=242, command_id=, *is_reply=False) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0006] Sending request: Read_Attributes(attribute_ids=[0]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 242 under 243 request id, data: b'00f2000000' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 243, 0, , 260, 6, 1, b'\x00\xf2\x00\x00\x00', 2, 0) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x127b001b001400f30002e31c0b0401060001050000f20000000200 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127b000900020022f3 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 243] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7c000700a600 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x047c0007000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x047c0013000c0022f302e31c0b010000000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 243: 00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xf3 'aps_data_confirm' for , status: 0x00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7d000700aa00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x177d000800010001 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x177d0026001f00220200000102e31c0b04010600080018f201000000100000afd76c771c00bd 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 11, 260, 6, b'\x18\xf2\x01\x00\x00\x00\x10\x00', 0, 175, 215, 108, 119, 28, 0, -67] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0006] Received ZCL frame: b'\x18\xf2\x01\x00\x00\x00\x10\x00' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0006] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=242, command_id=1, *is_reply=True) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0006] Decoded ZCL frame: OnOff:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=, value=TypeValue(type=Bool, value=))]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 11, profile: 0x0104, cluster_id: 0x0006, data: b'18f2010000001000' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0008] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=244, command_id=, *is_reply=False) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0008] Sending request: Read_Attributes(attribute_ids=[0]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 244 under 245 request id, data: b'00f4000000' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 245, 0, , 260, 8, 1, b'\x00\xf4\x00\x00\x00', 2, 0) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x127e001b001400f50002e31c0b0401080001050000f40000000200 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x127e000900020022f5 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 245] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e7f000700a600 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x047f0007000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x047f0013000c0022f502e31c0b010000000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 245: 00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xf5 'aps_data_confirm' for , status: 0x00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e80000700aa00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1780000800010001 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17800026001f00220200000102e31c0b04010800080018f401000000206e00afd740771c00bd 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, , , 1, , 11, 260, 8, b'\x18\xf4\x01\x00\x00\x00 n', 0, 175, 215, 64, 119, 28, 0, -67] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0008] Received ZCL frame: b'\x18\xf4\x01\x00\x00\x00 n' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0008] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=244, command_id=1, *is_reply=True) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0008] Decoded ZCL frame: LevelControl:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=, value=TypeValue(type=uint8_t, value=110))]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 11, profile: 0x0104, cluster_id: 0x0008, data: b'18f401000000206e' 2022-04-27 20:38:42 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1CE3:11:0x0008]: received attribute: 0 update with value: 110 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0300] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=246, command_id=, *is_reply=False) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0300] Sending request: Read_Attributes(attribute_ids=[8, 7, 3, 4, 16386]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 246 under 247 request id, data: b'00f60008000700030004000240' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (28, 247, 0, , 260, 768, 1, b'\x00\xf6\x00\x08\x00\x07\x00\x03\x00\x04\x00\x02@', 2, 0) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x12810023001c00f70002e31c0b04010003010d0000f600080007000300040002400200 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1281000900020022f7 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, , 247] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e82000700a600 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04820007000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04820013000c0022f702e31c0b010000000000 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 247: 00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0xf7 'aps_data_confirm' for , status: 0x00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e83000700aa00 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [, 0] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1783000800010001 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1783003d003600220200000102e31c0b040100031f0018f601080000300207000021b20103000021d47e040000214d6a024000200000afd76f771c00bd 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [54, , , 1, , 11, 260, 768, b'\x18\xf6\x01\x08\x00\x000\x02\x07\x00\x00!\xb2\x01\x03\x00\x00!\xd4~\x04\x00\x00!Mj\x02@\x00 \x00', 0, 175, 215, 111, 119, 28, 0, -67] 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0300] Received ZCL frame: b'\x18\xf6\x01\x08\x00\x000\x02\x07\x00\x00!\xb2\x01\x03\x00\x00!\xd4~\x04\x00\x00!Mj\x02@\x00 \x00' 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0300] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=246, command_id=1, *is_reply=True) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy.zcl] [0x1CE3:11:0x0300] Decoded ZCL frame: Color:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0008, status=, value=TypeValue(type=enum8, value=)), ReadAttributeRecord(attrid=0x0007, status=, value=TypeValue(type=uint16_t, value=434)), ReadAttributeRecord(attrid=0x0003, status=, value=TypeValue(type=uint16_t, value=32468)), ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=uint16_t, value=27213)), ReadAttributeRecord(attrid=0x4002, status=, value=TypeValue(type=uint8_t, value=0))]) 2022-04-27 20:38:42 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from , ep: 11, profile: 0x0104, cluster_id: 0x0300, data: b'18f601080000300207000021b20103000021d47e040000214d6a0240002000' 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0000] Received ZCL frame: b'\x18=\n\x01\xffA%\x01!\xc7\x0b\x04!\xa8C\x05!?\x00\x06$\x01\x00\x00\x00\x00d)%\te!-\x0ff+\x9d\x8d\x01\x00\n!\x088' 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=61, command_id=10, *is_reply=True) 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0000] Decoded ZCL frame: BasicCluster:Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b'\x01!\xc7\x0b\x04!\xa8C\x05!?\x00\x06$\x01\x00\x00\x00\x00d)%\te!-\x0ff+\x9d\x8d\x01\x00\n!\x088'))]) 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0000] Received command 0x0A (TSN 61): Report_Attributes(attribute_reports=[Attribute(attrid=0xFF01, value=TypeValue(type=LVBytes, value=b'\x01!\xc7\x0b\x04!\xa8C\x05!?\x00\x06$\x01\x00\x00\x00\x00d)%\te!-\x0ff+\x9d\x8d\x01\x00\n!\x088'))]) 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0000] Attribute report received: 0xFF01=b'\x01!\xc7\x0b\x04!\xa8C\x05!?\x00\x06$\x01\x00\x00\x00\x00d)%\te!-\x0ff+\x9d\x8d\x01\x00\n!\x088' 2022-04-27 20:39:00 DEBUG (MainThread) [zhaquirks.xiaomi] 00:15:8d:00:06:ed:ac:d3 - Attribute report. attribute_id: [65281] value: [{'battery_voltage_mV': 3015, 'X-attrib-4': 17320, 'X-attrib-5': 63, 'X-attrib-6': 1, 'temperature_measurement': 2341, 'humidity_measurement': 3885, 'pressure_measurement': 101789, 'path': 14344}] 2022-04-27 20:39:00 DEBUG (MainThread) [zigpy.zcl] [0x67EF:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3015 < [Max]:3100, Battery Percent: 69.5 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0006] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=248, command_id=, *is_reply=False) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0006] Sending request: Read_Attributes(attribute_ids=[0]) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0006] Received ZCL frame: b'\x18\xf8\x01\x00\x00\x00\x10\x00' 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0006] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=248, command_id=1, *is_reply=True) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0006] Decoded ZCL frame: OnOff:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=, value=TypeValue(type=Bool, value=))]) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=250, command_id=, *is_reply=False) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Sending request: Read_Attributes(attribute_ids=[0]) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Received ZCL frame: b'\x18\xfa\x01\x00\x00\x00 \xfe' 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=250, command_id=1, *is_reply=True) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0008] Decoded ZCL frame: LevelControl:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0000, status=, value=TypeValue(type=uint8_t, value=254))]) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0300] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=252, command_id=, *is_reply=False) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0300] Sending request: Read_Attributes(attribute_ids=[8, 7, 3, 4, 16386]) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0300] Received ZCL frame: b'\x18\xfc\x01\x08\x00\x000\x02\x07\x00\x00!n\x01\x03\x00\x00!\x0fu\x04\x00\x00!\xf5h\x02@\x86' 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0300] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=252, command_id=1, *is_reply=True) 2022-04-27 20:39:03 DEBUG (MainThread) [zigpy.zcl] [0x3808:11:0x0300] Decoded ZCL frame: Color:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0008, status=, value=TypeValue(type=enum8, value=)), ReadAttributeRecord(attrid=0x0007, status=, value=TypeValue(type=uint16_t, value=366)), ReadAttributeRecord(attrid=0x0003, status=, value=TypeValue(type=uint16_t, value=29967)), ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=uint16_t, value=26869)), ReadAttributeRecord(attrid=0x4002, status=)]) ```
Anything else I can provide or do?
javicalle commented 2 years ago

Sorry @centershock but 752 lines of mostly non-device related log doesn't help me to help you. Please try to include only the traces that are relevant to fixing the device, for example, those generated when you open the sensor and when you close it (better if they are in separate logs).

I am aware that it is not easy to know what information is relevant, but it is necessary to make the analysis of the information as easy as possible in order to reach more cases.

A can see the battery report. It's the device battery showing a value? Your previous logs (with @Tropaion version) have a lot of sensor open/closed reports. In the last logs I can only see 2 reports (both open sensor). Can you include a log with multip`le open/close reports?

You can also try a code change, just in case that's the problem. In the local quirk modify the following part of the code (zone_status --> zone_state):

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            ContactSwitchCluster.ep_attribute,
            # "zone_status",
            "zone_state",
            dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            DoublingPowerConfigurationCluster.ep_attribute,
            "battery_percentage_remaining",  # 0x0021
            dp_type=TuyaDPType.ENUM,
        ),
    }

From your logs, also we can see that there is another DP:

centershock commented 2 years ago

Hey @javicalle, sorry about that, but as I don't really understand how zha works I did not know the important information. In the following log there are some changes from from "open" to "closed" and back to "open", however, I don't know if there is something to see. The device battery shows always 0%.

I already integrated your proposed change from 'zone_status' -> 'zone_state'

2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\tw\x02\x00ae\x02\x00\x04\x00\x00\x03\x82'
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=119, command_id=2, *is_reply=True)
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=97, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 119): set_data_response(data=TuyaCommand(status=0, tsn=97, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=97, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898))
2022-04-28 14:52:31 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=97, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=119, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\tx\x02\x00b\x01\x01\x00\x01\x01'
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=120, command_id=2, *is_reply=True)
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=98, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 120): set_data_response(data=TuyaCommand(status=0, tsn=98, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=120, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:31 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\ty\x02\x00ce\x02\x00\x04\x00\x00\x03\x82'
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=121, command_id=2, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=99, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 121): set_data_response(data=TuyaCommand(status=0, tsn=99, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=99, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898))
2022-04-28 14:52:36 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=99, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x82\x03\x00\x00', *payload=898)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=121, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\tz\x02\x00d\x01\x01\x00\x01\x00'
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=122, command_id=2, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=100, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 122): set_data_response(data=TuyaCommand(status=0, tsn=100, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=122, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t{\x02\x00e\x01\x01\x00\x01\x00'
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=123, command_id=2, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=101, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 123): set_data_response(data=TuyaCommand(status=0, tsn=101, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=123, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t|\x02\x00f\x01\x01\x00\x01\x01'
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=124, command_id=2, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=102, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 124): set_data_response(data=TuyaCommand(status=0, tsn=102, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=124, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:36 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:38 DEBUG (MainThread) [zhaquirks] 00:15:8d:00:07:c4:a2:c8 - Resetting motion sensor
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t}\x02\x00ge\x02\x00\x04\x00\x00\x03\x8e'
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=125, command_id=2, *is_reply=True)
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=103, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8e\x03\x00\x00', *payload=910)))
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 125): set_data_response(data=TuyaCommand(status=0, tsn=103, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8e\x03\x00\x00', *payload=910)))
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=103, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8e\x03\x00\x00', *payload=910))
2022-04-28 14:52:38 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=103, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x8e\x03\x00\x00', *payload=910)))
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=125, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:38 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t~\x02\x00h\x01\x01\x00\x01\x00'
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=126, command_id=2, *is_reply=True)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=104, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 126): set_data_response(data=TuyaCommand(status=0, tsn=104, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=126, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x7f\x02\x00i\x01\x01\x00\x01\x01'
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=127, command_id=2, *is_reply=True)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=105, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 127): set_data_response(data=TuyaCommand(status=0, tsn=105, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=127, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:39 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received ZCL frame: b'\t\x80\x02\x00je\x02\x00\x04\x00\x00\x03\x16'
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=128, command_id=2, *is_reply=True)
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=106, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x16\x03\x00\x00', *payload=790)))
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Received command 0x02 (TSN 128): set_data_response(data=TuyaCommand(status=0, tsn=106, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x16\x03\x00\x00', *payload=790)))
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=106, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x16\x03\x00\x00', *payload=790))
2022-04-28 14:52:42 WARNING (MainThread) [zigpy.zcl] [0xF273:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=106, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\x16\x03\x00\x00', *payload=790)))
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=128, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-04-28 14:52:42 DEBUG (MainThread) [zigpy.zcl] [0xF273:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
javicalle commented 2 years ago

There is something I want to check. Can you test with this version? ts0601_magnet.py.txt

Delete cache, restart and test.

Also, can you check from HA the device clusters attributes? From the device view, "Clusters administration" option:

javicalle commented 2 years ago

And I want to ask you to put the logs from https://github.com/zigpy/zha-device-handlers/issues/1502#issuecomment-1111357062 in a collapsable section, this will help to scroll the conversation.

<details>
<summary>HA Log:</summary>

Paste your logs here keeping spaces and all the ` .


</details>
centershock commented 2 years ago

Hey @javicalle, sorry, took a while :/ For ContactSwitchCluster with zone_status the value is always "None", no matter, if sensor is open or closed. For DoublingPowerConfigurationCluster no value occurs, simply nothing happens when I push "GET ZIGBEE ATTRIBUTE".

Do you need the logs or other information? I did not repair the device...

javicalle commented 2 years ago

Another iteration:

ts0601_magnet.py ```python """Tuya contact sensor device.""" from typing import Dict from zigpy.profiles import zha from zigpy.quirks import CustomDevice from zigpy.zcl.clusters.general import Basic, Ota, PowerConfiguration, Time from zigpy.zcl.clusters.security import IasZone from zhaquirks import LocalDataCluster, DoublingPowerConfigurationCluster from zhaquirks.const import ( DEVICE_TYPE, ENDPOINTS, INPUT_CLUSTERS, MODELS_INFO, OUTPUT_CLUSTERS, PROFILE_ID, ZONE_STATUS, ZONE_TYPE, ) from zhaquirks.tuya import TuyaLocalCluster from zhaquirks.tuya.mcu import DPToAttributeMapping, TuyaAttributesCluster, TuyaMCUCluster, TuyaDPType IASZONE_ZONE_STATUS_ATTR = 0x0002 class ContactSwitchCluster(TuyaLocalCluster, IasZone): """Tuya ContactSwitch Sensor.""" _CONSTANT_ATTRIBUTES = {ZONE_TYPE: IasZone.ZoneType.Contact_Switch} def _update_attribute(self, attrid, value): self.debug("_update_attribute '%s': %s", attrid, value) super()._update_attribute(attrid, value) class ContactSwitchManufCluster(TuyaMCUCluster): """Tuya Manufacturer Cluster with ContactSwitch Sensor data points.""" dp_to_attribute: Dict[int, DPToAttributeMapping] = { 1: DPToAttributeMapping( ContactSwitchCluster.ep_attribute, "zone_status", dp_type=TuyaDPType.BOOL, converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x else 0, ), 2: DPToAttributeMapping( DoublingPowerConfigurationCluster.ep_attribute, "battery_percentage_remaining", # 0x0021 dp_type=TuyaDPType.VALUE, ), } data_point_handlers = { 1: "_dp_2_attr_update", 2: "_dp_2_attr_update", } class TuyaContactSensor(CustomDevice): """Tuya contact sensor device.""" signature = { # NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, 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=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)] # device_version=1 # SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1, # input_clusters=[0, 1, 1280], # output_clusters=[10, 25]) MODELS_INFO: [("_TZE200_pay2byax", "TS0601")], ENDPOINTS: { 1: { PROFILE_ID: zha.PROFILE_ID, DEVICE_TYPE: zha.DeviceType.IAS_ZONE, INPUT_CLUSTERS: [ Basic.cluster_id, PowerConfiguration.cluster_id, IasZone.cluster_id, ], OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id], } }, } replacement = { ENDPOINTS: { 1: { INPUT_CLUSTERS: [ Basic.cluster_id, DoublingPowerConfigurationCluster, ContactSwitchCluster, ContactSwitchManufCluster, ], OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id], } } } ```

Enable logs, delete cache and restart.

Look in the logs for events when you open/close the sensor. Also (from HA UI) get the clusters attributes and look at the logs, there must be sometraces when you ask for attributes.

centershock commented 2 years ago

Hey, sorry for the delay, just got a newborn kid ;) This is what happens when I try to get the zone_status (id: 0x0002) from ContactSwitchCluster (Endpoint id: 1, ...). Result shown in the UI is always Bool.true, no matter the physical state of the sensor.

2022-05-26 18:31:50 DEBUG (MainThread) [zigpy.zcl] [0x3CB8:1:0x0500] read_attributes --> attrs: [2]
2022-05-26 18:32:05 DEBUG (MainThread) [zigpy.zcl] [0x3CB8:1:0x0500] read_attributes --> attrs: [2]

There are no log entries whatsoever when I open / close the sensor in the same time span. Just to make sure my logger:

logger:
  default: info
  logs:
    zigpy: debug
    zigpy_znp: debug
    zhaquirks: debug

There are other log entries for the zha integration for other devices, therefore I think that should be correct. Does not seem to be too much information to work with, if I can do more, just tell me.

javicalle commented 2 years ago

Have you deleted the cache (any __pycache__ folder inside yours custom_zha_quirks folder)?

Could you try to repeat the tests with this logs?:

logger:
  default: info
  logs:
    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

sorry for the delay, just got a newborn kid

Congratulations. 🎉 That's a very big and important project. 👨‍🍼

centershock commented 2 years ago

Thank you very much javicalle :)

I doublechecked that I deleted the old __pycache__ The result and the log for the query of the cluster is the same.

Here is the enhanced log for the opening and close action. Nwk is 0x711f.

2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 8 under 30 request id, data: b'18080b0281'
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'090802000765020004000002c2'
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 30, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\x08\x0b\x02\x81', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 30]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 30: 00
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x1e 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, 1, 260, 61184, b'\t\t\x02\x00\x08\x01\x01\x00\x01\x01', 0, 175, 255, 213, 181, 32, 0, -55]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received ZCL frame: b'\t\t\x02\x00\x08\x01\x01\x00\x01\x01'
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=9, command_id=2, *is_reply=True)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=8, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received command 0x02 (TSN 9): set_data_response(data=TuyaCommand(status=0, tsn=8, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.true
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=9, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 9 under 31 request id, data: b'18090b0200'
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09090200080101000101'
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 31, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\t\x0b\x02\x00', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 31]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 31: 00
2022-05-28 19:56:16 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x1f 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, 1, 260, 61184, b'\t\n\x02\x00\te\x02\x00\x04\x00\x00\x02\xce', 0, 175, 255, 213, 181, 32, 0, -57]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received ZCL frame: b'\t\n\x02\x00\te\x02\x00\x04\x00\x00\x02\xce'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=10, command_id=2, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=9, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xce\x02\x00\x00', *payload=718)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received command 0x02 (TSN 10): set_data_response(data=TuyaCommand(status=0, tsn=9, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xce\x02\x00\x00', *payload=718)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=9, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xce\x02\x00\x00', *payload=718))
2022-05-28 19:56:18 WARNING (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=9, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xce\x02\x00\x00', *payload=718)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=10, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 10 under 32 request id, data: b'180a0b0281'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'090a02000965020004000002ce'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 32, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\n\x0b\x02\x81', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 32]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 32: 00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x20 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, 1, 260, 61184, b'\t\x0b\x02\x00\n\x01\x01\x00\x01\x00', 0, 175, 255, 213, 181, 32, 0, -56]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received ZCL frame: b'\t\x0b\x02\x00\n\x01\x01\x00\x01\x00'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=11, command_id=2, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=10, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received command 0x02 (TSN 11): set_data_response(data=TuyaCommand(status=0, tsn=10, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x00', *payload=<Bool.false: 0>)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.false
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=11, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 11 under 33 request id, data: b'180b0b0200'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'090b02000a0101000100'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 33, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\x0b\x0b\x02\x00', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 33]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 33: 00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x21 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [36, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, 1, 260, 61184, b'\t\x0c\x02\x00\x0be\x02\x00\x04\x00\x00\x03^', 0, 175, 255, 213, 181, 32, 0, -55]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received ZCL frame: b'\t\x0c\x02\x00\x0be\x02\x00\x04\x00\x00\x03^'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=12, command_id=2, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'^\x03\x00\x00', *payload=862)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received command 0x02 (TSN 12): set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'^\x03\x00\x00', *payload=862)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'^\x03\x00\x00', *payload=862))
2022-05-28 19:56:18 WARNING (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No 'handle_set_data_response' tuya handler found for set_data_response(data=TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'^\x03\x00\x00', *payload=862)))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=12, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.UNSUP_CLUSTER_COMMAND: 129>)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 12 under 34 request id, data: b'180c0b0281'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'090c02000b650200040000035e'
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 34, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\x0c\x0b\x02\x81', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 34]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 34: 00
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x22 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [33, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, 1, 260, 61184, b'\t\r\x02\x00\x0c\x01\x01\x00\x01\x01', 0, 175, 255, 213, 181, 32, 0, -55]
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received ZCL frame: b'\t\r\x02\x00\x0c\x01\x01\x00\x01\x01'
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.CLUSTER_COMMAND: 1>, is_manufacturer_specific=0, is_reply=1, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False), tsn=13, command_id=2, *is_reply=True)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Decoded ZCL frame: ContactSwitchManufCluster:set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Received command 0x02 (TSN 13): set_data_response(data=TuyaCommand(status=0, tsn=12, dp=1, data=TuyaData(dp_type=<TuyaDPType.BOOL: 1>, function=0, raw=b'\x01', *payload=<Bool.true: 1>)))
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.true
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=1, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=13, command_id=<GeneralCommand.Default_Response: 11>, *is_reply=True)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] Sending reply: Default_Response(command_id=2, status=<Status.SUCCESS: 0>)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 13 under 35 request id, data: b'180d0b0200'
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x711f>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'090d02000c0101000101'
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 35, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 61184, 1, b'\x18\r\x0b\x02\x00', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 35]
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 35: 00
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x23 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0x00
javicalle commented 2 years ago

That's what I can see from your logs:

2022-05-28 19:56:16 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.true
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.false
2022-05-28 19:56:19 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0500] _update_attribute '2': Bool.true

So attribute 2 from IasZone cluster (0x0500) it's updating its value.

Maybe the data type is not good, let's try with a converter. Can you replace the ContactSwitchManufCluster with this version?:

class ContactSwitchManufCluster(TuyaMCUCluster):
    """Tuya Manufacturer Cluster with ContactSwitch Sensor data points."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            ContactSwitchCluster.ep_attribute,
            "zone_status",
            dp_type=TuyaDPType.BOOL,
            converter=lambda x: 1 if x else 0,
        ),
        2: DPToAttributeMapping(
            DoublingPowerConfigurationCluster.ep_attribute,
            "battery_percentage_remaining",  # 0x0021
            dp_type=TuyaDPType.VALUE,
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
    }

Device is also reporting a dp_101 with some values (718, 862, ...):

2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=9, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'\xce\x02\x00\x00', *payload=718))
2022-05-28 19:56:18 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0xef00] No datapoint handler for TuyaCommand(status=0, tsn=11, dp=101, data=TuyaData(dp_type=<TuyaDPType.VALUE: 2>, function=0, raw=b'^\x03\x00\x00', *payload=862))

But I have no idea what these values can be.

centershock commented 2 years ago

The update for ias_zone works now. Values are "on" for an "open window", "off" for a "closed window". Thank you very much so far!

For the battery_percentage_remaining. I tried to get battery_percentage_remaining (id: 0x0021) from DoublingPowerConfigurationCluster (Endpoint id: 1, ...) but there is no incoming value. Following the log, I can see an error but don't know what it means ;)

2022-05-29 20:20:50 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0001] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, is_reply=0, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=69, command_id=<GeneralCommand.Read_Attributes: 0>, *is_reply=False)
2022-05-29 20:20:51 DEBUG (MainThread) [zigpy.zcl] [0x711F:1:0x0001] Sending request: Read_Attributes(attribute_ids=[33])
2022-05-29 20:20:51 DEBUG (MainThread) [zigpy.device] [0x711f] Extending timeout for 0x45 request
2022-05-29 20:20:51 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 69 under 70 request id, data: b'0045002100'
2022-05-29 20:20:51 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (20, 70, <DeconzSendDataFlags.NONE: 0>, <DeconzAddressEndpoint address_mode=2 address=0x711F endpoint=1>, 260, 1, 1, b'\x00E\x00!\x00', <DeconzTransmitOptions.USE_NWK_KEY_SECURITY: 2>, 0)
2022-05-29 20:20:51 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 70]
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 70: f0
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x46 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0xf0
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 70 req id frame: TXStatus.MAC_TRANSACTION_EXPIRED
2022-05-29 20:20:58 DEBUG (MainThread) [zigpy.device] [0x711f] Delivery error for seq # 0x45, on endpoint id 1 cluster 0x0001: message send failure
javicalle commented 2 years ago

I can't say what is the reported error, but not seems related to the battery status. The logs from a previous comment show several dp_2 reports:

Maybe if battery is low, the report is less frequent, but just guessing.

centershock commented 2 years ago

Maybe not related, but i tried some more, and there I produced a stacktrace, maybe that helps.

2022-05-29 20:44:22 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2022-05-29 20:44:22 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2022-05-29 20:44:22 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 157: f0
2022-05-29 20:44:22 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x9d 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x711f endpoint=1>, status: 0xf0
2022-05-29 20:44:22 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Error while sending 157 req id frame: TXStatus.MAC_TRANSACTION_EXPIRED
2022-05-29 20:44:22 DEBUG (MainThread) [zigpy.device] [0x711f] Delivery error for seq # 0x9c, on endpoint id 1 cluster 0x0001: message send failure
2022-05-29 20:44:22 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547226071200] Error handling message: Unknown error (unknown_error)
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 762, in websocket_read_zigbee_cluster_attributes
    success, failure = await cluster.read_attributes(
  File "/usr/local/lib/python3.9/site-packages/zigpy/zcl/__init__.py", line 441, in read_attributes
    result = await self.read_attributes_raw(to_read, manufacturer=manufacturer)
  File "/usr/local/lib/python3.9/site-packages/zigpy/quirks/__init__.py", line 212, in read_attributes_raw
    return await super().read_attributes_raw(
  File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 315, in request
    raise zigpy.exceptions.DeliveryError(
zigpy.exceptions.DeliveryError: [0x711f:1:0x0001]: Message send failure
javicalle commented 2 years ago

Ummm, there is a report from other quirk that DoublingPowerConfigurationCluster isn't working. Let's try with the same approach:

  1. add a new TuyaPowerConfigurationCluster class (above the ContactSwitchManufCluster definition):
    
    class TuyaPowerConfigurationCluster(
    TuyaLocalCluster, DoublingPowerConfigurationCluster
    ):
    """PowerConfiguration cluster for battery-operated tuya devices reporting percentage."""

2. Use the new `TuyaPowerConfigurationCluster` class as replacement:
```python
    replacement = {
        ENDPOINTS: {
            1: {
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    TuyaPowerConfigurationCluster,
                    ContactSwitchCluster,
                    ContactSwitchManufCluster,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        }
    }

Reference:

centershock commented 2 years ago

Did this, when i try to get the attribute for TuyaPowerConfigurationCluster and the battery_remaining_percentage I get a 0 (more than I got before ;)) but the 0 is constant...

javicalle commented 2 years ago

Are you sure? The proposed implementation for TuyaPowerConfigurationCluster is a new one that you must add in your quirk. Is not the existing from zhaquirks.tuya.

centershock commented 2 years ago

Bildschirmfoto 2022-05-29 um 22 24 55 ts0601_magnet.py.txt

I attached a screen of the Cluster-Management and attached my current ts0601_magnet.py. I tried to follow your instructions... ;)

domi190399 commented 1 year ago

I tested the qirk, posted here and at least the Occupancy works for me, but _TZE200_3towulqd has to be changed to _TZE200_pay2byax. Battery state is still listed as unavailable. Also as least my version of the sensor seems to have a luminance sensor which is not shown at all.

darouss99 commented 1 year ago

Hi, I use this quirks for my ZG-102ZL (TZE200_pay2byax), the door sensor work great, and have the battery level. But I don't have the illuminance mesurement. I tried to modify the Quirks I but didn't get the illuminance working. I'm a noob for this kind of script. Is someone have a solution and have the illuminance working? Thank you ts0601_magnet.py.txt

javicalle commented 1 year ago

If the illuminance is the already reported dp=101 (but I don't know) you could try to change this part in your local quirk:

        101: DPToAttributeMapping(
            TuyaIlluminanceMeasurement.ep_attribute,
            "measured_value",
            dp_type=TuyaDPType.VALUE,
            converter=lambda x: 10000.0 * math.log10(x + 1.0),
        ),
darouss99 commented 1 year ago

Hi, Thank you for you help, but unfortunately that didn't work.

Don't know if it can help, there is the "reconfigure" result on Home Assistant on this sensor.

image

How can I find the DP number?

Thank you

javicalle commented 1 year ago

You will need to enable the debug logs and analyze the ones from your device:

https://www.home-assistant.io/integrations/zha/#debug-logging

Look for the Nwk of your device. You should get the report messages from your device. The messages will include some dp=101 (or whatever). Then you need to match the reported value with its meaning (iluminance, battery,...)

antoweb commented 1 year ago

Try if this quirk works: ts0601_magnet.zip

Hello, how to use this zip file?

antoweb commented 1 year ago

Hi, I use this quirks for my ZG-102ZL (TZE200_pay2byax), the door sensor work great, and have the battery level. But I don't have the illuminance mesurement. I tried to modify the Quirks I but didn't get the illuminance working. I'm a noob for this kind of script. Is someone have a solution and have the illuminance working? Thank you ts0601_magnet.py.txt

Hello same issue here but my pir sensor wont work. Wich py file have used you?

javicalle commented 1 year ago

Hello, how to use this zip file?

You need to enable the local quirk folder:

Once enabled create a new file with the proposed quirk, save changes, restart HA and repair the device again. Take the quirk version from:

Hello same issue here but my pir sensor wont work.

The proposed quirk is for a door sensor (magnet) not a PIR sensor.

antoweb commented 1 year ago

Hello, how to use this zip file?

You need to enable the local quirk folder:

Once enabled create a new file with the proposed quirk, save changes, restart HA and repair the device again. Take the quirk version from:

Hello same issue here but my pir sensor wont work.

The proposed quirk is for a door sensor (magnet) not a PIR sensor.

Sorry mine is a door sensor. And works thanks

javicalle commented 1 year ago

Could someone try with this version? :

"""Tuya contact sensor device."""

from typing import Dict

from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import Basic, Ota, PowerConfiguration, Time
from zigpy.zcl.clusters.measurement import IlluminanceMeasurement
from zigpy.zcl.clusters.security import IasZone

from zhaquirks import LocalDataCluster, DoublingPowerConfigurationCluster

from zhaquirks.const import (
    DEVICE_TYPE,
    ENDPOINTS,
    INPUT_CLUSTERS,
    MODELS_INFO,
    OUTPUT_CLUSTERS,
    PROFILE_ID,
    ZONE_STATUS,
    ZONE_TYPE,
)

from zhaquirks.tuya import TuyaLocalCluster

from zhaquirks.tuya.mcu import DPToAttributeMapping, TuyaAttributesCluster, TuyaMCUCluster, TuyaDPType

IASZONE_ZONE_STATUS_ATTR = 0x0002 

class ContactSwitchCluster(TuyaLocalCluster, IasZone):
    """Tuya ContactSwitch Sensor."""

    _CONSTANT_ATTRIBUTES = {ZONE_TYPE: IasZone.ZoneType.Contact_Switch}

    def _update_attribute(self, attrid, value):
        self.debug("_update_attribute '%s': %s", attrid, value)
        super()._update_attribute(attrid, value)

class TuyaIlluminanceMeasurement(IlluminanceMeasurement, TuyaLocalCluster):
    """Tuya local IlluminanceMeasurement cluster."""

class ContactSwitchManufCluster(TuyaMCUCluster):
    """Tuya Manufacturer Cluster with ContactSwitch Sensor data points."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            ContactSwitchCluster.ep_attribute,
            "zone_status",
            dp_type=TuyaDPType.BOOL,
            converter=lambda x: IasZone.ZoneStatus.Alarm_1 if x else 0,
        ),
        2: DPToAttributeMapping(
            DoublingPowerConfigurationCluster.ep_attribute,
            "battery_percentage_remaining",  # 0x0021
            dp_type=TuyaDPType.VALUE,
        ),
        101: DPToAttributeMapping(
            TuyaIlluminanceMeasurement.ep_attribute,
            "measured_value",
            dp_type=TuyaDPType.VALUE,
            converter=lambda x: 10000.0 * math.log10(x + 1.0),
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        101: "_dp_2_attr_update",
    }

class TuyaContactSensor(CustomDevice):
    """Tuya contact sensor device."""

    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: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)]
        # device_version=1
        # SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1,
        # input_clusters=[0, 1, 1280],
        # output_clusters=[10, 25])
        MODELS_INFO: [("_TZE200_pay2byax", "TS0601")],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.IAS_ZONE,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    PowerConfiguration.cluster_id,
                    IasZone.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    DoublingPowerConfigurationCluster,
                    ContactSwitchCluster,
                    ContactSwitchManufCluster,
                    TuyaIlluminanceMeasurement, 
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        }
    } 
darouss99 commented 1 year ago

@javicalle Yes it seem to work, But the value seem a bit strange if I compare with my cellphone luxmeter.

4.0 lux = 10 lux on my cellphone 66 lux = 184 lux on my cellphone 145 lux = 407 lux on mycell phone

So the converter formula seem to be wrong. But we have values now. Thank you.

javicalle commented 1 year ago

You can try with this other version for the converter (but I keep thinking that is wrong):

            converter=lambda x: 10000 * math.log10(x) + 1,
darouss99 commented 1 year ago

The converter seem to be a little bit better, but still wrong.

7.0 lux = 18 lux on my phone 95 lux = 241 lux on my phone 342 lux = 474 lux on my phone

converter=lambda x: 10000 * math.log10(x) + 1,

javicalle commented 1 year ago

None of the conversions seem appropriate. Can you get and post the raw values for several measures. Just comment the converter line and take some values as you have done until now.

darouss99 commented 1 year ago

Yes for sure. I commented the converter. There is some exemple of value on the sensor.

1.0 lux in HA = 15 lux on cellphone = 6 (Mesured_value (id:0x0000)) 1.0 lux in HA = 216 on cellphone = 180 (Mesured_value (id:0x0000)) 1.1 lux in HA = 485 lux on cellphone = 502 (Mesured_value (id:0x0000))

So the raw value seem about good without the converter, but homeassistant don't show the good value in the sensor.

image image

domusonline commented 1 year ago

Hi. I bought this same sensor from AliExpress and I'm having issues with it. Keep in mind that I started using HA 2-3 weeks ago... I created the quirk file based on the above suggestions and it is able to identify the sensor and it's usable as a contact sensor. But although it shows the luminance entity it always shows "unknown". I tried to look at the file, but I never touched python... and I didn't try to look at the logs... Besides this the sensor behavior looks a bit strange: 1- If I remove it from HA it seems to enter pairing mode automatically 2- It seems to identify differently on different attempts. In most situations I end up with a sensor named "unk_manufacturer unk_model". I've found an issue reported some time ago that was fixed (and not related to this device specifically). 3- After some attempts of pairing I get the behavior above: contact and battery seem to work (contact I am sure, battery shows 100% which I assume is correct)

I connected the Tuya app to my gateway, paired it, and verified the luminance sensor is there and works (it responds to different light conditions with what seems to be reasonable values).

So I'm requesting what was the final "quirk" content? I'd like to be sure I'm using the correct values. If with the final one it doesn't work, what should I do? Collect debug info and share it here? Could it be that different sensor versions require different configurations? Thanks!

domusonline commented 1 year ago

Hi. I bought this same sensor from AliExpress and I'm having issues with it. Keep in mind that I started using HA 2-3 weeks ago... I created the quirk file based on the above suggestions and it is able to identify the sensor and it's usable as a contact sensor. But although it shows the luminance entity it always shows "unknown". I tried to look at the file, but I never touched python... and I didn't try to look at the logs... Besides this the sensor behavior looks a bit strange: 1- If I remove it from HA it seems to enter pairing mode automatically 2- It seems to identify differently on different attempts. In most situations I end up with a sensor named "unk_manufacturer unk_model". I've found an issue reported some time ago that was fixed (and not related to this device specifically). 3- After some attempts of pairing I get the behavior above: contact and battery seem to work (contact I am sure, battery shows 100% which I assume is correct)

I connected the Tuya app to my gateway, paired it, and verified the luminance sensor is there and works (it responds to different light conditions with what seems to be reasonable values).

So I'm requesting what was the final "quirk" content? I'd like to be sure I'm using the correct values. If with the final one it doesn't work, what should I do? Collect debug info and share it here? Could it be that different sensor versions require different configurations? Thanks!

After some debug I noticed in the logs it was complaining about "math not found". I added "import math" at the top and I'm now able to get the three entities (open/close, battery and illuminance. I'm still having weird behaviors in the pairing. The lux value is updated when I open/close. Apart from that it seems to be updated but with a long interval (I assume that's normal in this type of sensors).

The quirk I have at this moment is (note the "import math" - newbie, no experience with Python - maybe that's not the best way to solve my issue) :

"""Tuya contact sensor device."""

import math

from typing import Dict

from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import Basic, Ota, PowerConfiguration, Time
from zigpy.zcl.clusters.measurement import IlluminanceMeasurement
from zigpy.zcl.clusters.security import IasZone

from zhaquirks import LocalDataCluster, DoublingPowerConfigurationCluster

from zhaquirks.const import (
    DEVICE_TYPE,
    ENDPOINTS,
    INPUT_CLUSTERS,
    MODELS_INFO,
    OUTPUT_CLUSTERS,
    PROFILE_ID,
    ZONE_STATUS,
    ZONE_TYPE,
)

from zhaquirks.tuya import TuyaLocalCluster

from zhaquirks.tuya.mcu import DPToAttributeMapping, TuyaAttributesCluster, TuyaMCUCluster, TuyaDPType

IASZONE_ZONE_STATUS_ATTR = 0x0002

class ContactSwitchCluster(TuyaAttributesCluster, IasZone):
    """Tuya ContactSwitch Sensor."""

    _CONSTANT_ATTRIBUTES = {ZONE_TYPE: IasZone.ZoneType.Contact_Switch}

    def _update_attribute(self, attrid, value):
        self.debug("_update_attribute '%s': %s", attrid, value)
        super()._update_attribute(attrid, value)

class TuyaPowerConfigurationCluster(
    TuyaLocalCluster, DoublingPowerConfigurationCluster
):
    """PowerConfiguration cluster for battery-operated tuya devices reporting percentage."""

class TuyaIlluminanceMeasurement(IlluminanceMeasurement, TuyaLocalCluster):
    """Tuya local IlluminanceMeasurement cluster."""

class ContactSwitchManufCluster(TuyaMCUCluster):
    """Tuya Manufacturer Cluster with ContactSwitch Sensor data points."""

    dp_to_attribute: Dict[int, DPToAttributeMapping] = {
        1: DPToAttributeMapping(
            ContactSwitchCluster.ep_attribute,
            "zone_status",
            dp_type=TuyaDPType.BOOL,
        ),
        2: DPToAttributeMapping(
            DoublingPowerConfigurationCluster.ep_attribute,
            "battery_percentage_remaining",  # 0x0021
            dp_type=TuyaDPType.VALUE,
        ),
        101: DPToAttributeMapping(
            TuyaIlluminanceMeasurement.ep_attribute,
            "measured_value",
            dp_type=TuyaDPType.VALUE,
            converter=lambda x: 10000 * math.log10(x) + 1,
        ),
    }

    data_point_handlers = {
        1: "_dp_2_attr_update",
        2: "_dp_2_attr_update",
        101: "_dp_2_attr_update",
    }

class TuyaContactSensor(CustomDevice):
    """Tuya contact sensor device."""

    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: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)]
        # device_version=1
        # SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1026, device_version=1,
        # input_clusters=[0, 1, 1280],
        # output_clusters=[10, 25])
        MODELS_INFO: [("_TZE200_pay2byax", "TS0601")],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.IAS_ZONE,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    PowerConfiguration.cluster_id,
                    IasZone.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        },
    }

    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.IAS_ZONE,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    TuyaPowerConfigurationCluster,
                    ContactSwitchCluster,
                    ContactSwitchManufCluster,
                    TuyaIlluminanceMeasurement,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            }
        }
    }
domusonline commented 1 year ago

It seems I was over optimistic... After some more testing I noticed it apparently wasn't working in the dark... Looking at the logs I got:

 File "/usr/local/lib/python3.10/site-packages/zhaquirks/tuya/init.py", line 1498, in _dp_2_attr_update
    value = dp_map.converter(value)
  File "/config/custom_zha_quirks/teste.py", line 67, in <lambda>
    converter=lambda x: 10000 * math.log10(x) + 1,
ValueError: math domain error

It seems that in darkness the values read cause a problem in the formula...