Repository: zigpy/zha-device-handlers

Issue:
[Device Support Request] _TZE200_yenbr4om Tuya curtain wall switch
**Is your feature request related to a problem? Please describe.**
At the moment it just adds it as a "router" device, doesn't detect as a curtain

**Describe the solution you'd like**
Use it to open/close curtains

**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.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_yenbr4om",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}
```

Logs:
```
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee broadcast with tsn 5 under 6 request id, data: b'053c00'
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (17, 6, 0, <DeconzAddressEndpoint address_mode=1 address=65532 endpoint=None>, 0, 54, 0, b'\x05<\x00', 2, 0)
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x121b0018001100060001fcff00003600000300053c000200
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x121b00090002002206
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 6]
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e1c000700ae00
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|APSDE_DATA_CONFIRM|2: 174>, 0]
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x171c000800010001
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x171c0021001a002601fcff0102000000000036000300053c0000afd95334040004
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [26, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 38>, <DeconzAddress address_mode=ADDRESS_MODE.GROUP address=0xfffc>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, 0, 54, b'\x05<\x00', 0, 175, 217, 83, 52, 4, 0, 4]
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy.zdo] [0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, ep: 0, profile: 0x0000, cluster_id: 0x0036, data: b'053c00'
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x041d0007000000
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x041d0012000b00220601fcff000000000000
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 6: 00
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x06 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.GROUP address=0xfffc endpoint=None>, status: 0x00
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Command Command.write_parameter (2, <NetworkParameter.permit_join: 33>, b'<')
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x0b1e0009000200213c
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0b1e000800010021
2021-10-17 01:44:51 DEBUG (MainThread) [zigpy_deconz.api] Write parameter permit_join: SUCCESS
2021-10-17 01:44:52 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c1f000c000500026fc6ffc7
2021-10-17 01:44:53 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c20000c000500026fc6ffcf
2021-10-17 01:44:54 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c21000c000500026fc6ffcd
2021-10-17 01:44:55 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c22000c000500026fc6ffce
2021-10-17 01:44:56 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c23000c000500026fc6ffce
2021-10-17 01:44:57 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c24000c000500026fc6ffd2
2021-10-17 01:44:58 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c25000c000500026fc6ffc6
2021-10-17 01:44:59 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c26000c000500026fc6ffc9
2021-10-17 01:45:00 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c27000c000500026fc6ffc0
2021-10-17 01:45:01 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c28000c000500026fc6ffc6
2021-10-17 01:45:02 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c29000c000500026fc6ffbc
2021-10-17 01:45:03 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c2a000c000500026fc6ffcd
2021-10-17 01:45:04 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c2b000c000500026fc6ffcb
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c2c0012000b000300797ffeff15cd04ffc1
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2d000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x171f000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x171f002a0023002202fdff000217fc00000013000c008117fc00797ffeff15cd048e00afff55340400c2
2021-10-17 01:45:05 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=0xfc17>, 0, 0, 19, b'\x81\x17\xfc\x00y\x7f\xfe\xff\x15\xcd\x04\x8e', 0, 175, 255, 85, 52, 4, 0, -62]
2021-10-17 01:45:05 INFO (MainThread) [zigpy_deconz.zigbee.application] New device joined: 0xfc17, 04:cd:15:ff:fe:7f:79:00
2021-10-17 01:45:05 INFO (MainThread) [zigpy.application] New device 0xfc17 (04:cd:15:ff:fe:7f:79:00) joined the network
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.device] [0xfc17] Scheduling initialization
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x81\x17\xfc\x00y\x7f\xfe\xff\x15\xcd\x04\x8e'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.zdo] [0xfc17:zdo] ZDO request ZDOCmd.Device_annce: [0xFC17, 04:cd:15:ff:fe:7f:79:00, 142]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Requesting 'Node Descriptor'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.util] Tries remaining: 2
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.device] [0xfc17] Extending timeout for 0x07 request
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 7 under 8 request id, data: b'0717fc'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 0, profile: 0x0000, cluster_id: 0x0013, data: b'8117fc00797ffeff15cd048e'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 8, 0, <DeconzAddressEndpoint address_mode=2 address=0xFC17 endpoint=0>, 0, <ZDOCmd.Node_Desc_req: 0x0002>, 0, b'\x07\x17\xfc', 2, 0)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1220001900120008000217fc00000002000003000717fc0200
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x122000090002002208
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 8]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e21000700a600
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04210007000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04210013000c0022080217fc00000000000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 8: 00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x08 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfc17 endpoint=0>, status: 0x00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e22000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1722000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1722002f00280022020000000217fc00000002801100070017fc01408e0210525200002c52000000afff55340400c6
2021-10-17 01:45:05 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=0xfc17>, 0, 0, 32770, b'\x07\x00\x17\xfc\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00', 0, 175, 255, 85, 52, 4, 0, -58]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'\x07\x00\x17\xfc\x01@\x8e\x02\x10RR\x00\x00,R\x00\x00'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 0, profile: 0x0000, cluster_id: 0x8002, data: b'070017fc01408e0210525200002c520000'
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Discovering endpoints
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 9 under 10 request id, data: b'0917fc'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 10, 0, <DeconzAddressEndpoint address_mode=2 address=0xFC17 endpoint=0>, 0, <ZDOCmd.Active_EP_req: 0x0005>, 0, b'\t\x17\xfc', 2, 0)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x122300190012000a000217fc00000005000003000917fc0200
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12230009000200220a
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 10]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e24000700a600
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04240007000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04240013000c00220a0217fc00000000000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 10: 00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x0a 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfc17 endpoint=0>, status: 0x00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c25000c000500026fc6ffd2
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e26000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1725000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17250024001d0022020000000217fc00000005800600090017fc010100afff55340400c1
2021-10-17 01:45:05 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=0xfc17>, 0, 0, 32773, b'\t\x00\x17\xfc\x01\x01', 0, 175, 255, 85, 52, 4, 0, -63]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=False> from ep 0 to ep 0, cluster 32773: b'\t\x00\x17\xfc\x01\x01'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 0, profile: 0x0000, cluster_id: 0x8005, data: b'090017fc0101'
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Discovered endpoints: [1]
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2021-10-17 01:45:05 INFO (MainThread) [zigpy.endpoint] [0xfc17:1] Discovering endpoint information
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.util] Tries remaining: 3
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 11 under 12 request id, data: b'0b17fc01'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (19, 12, 0, <DeconzAddressEndpoint address_mode=2 address=0xFC17 endpoint=0>, 0, <ZDOCmd.Simple_Desc_req: 0x0004>, 0, b'\x0b\x17\xfc\x01', 2, 0)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1226001a0013000c000217fc00000004000004000b17fc010200
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12260009000200220c
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 12]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e27000700a600
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04270007000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04270013000c00220c0217fc00000000000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 12: 00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x0c 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfc17 endpoint=0>, status: 0x00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e28000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1728000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1728003700300022020000000217fc000000048019000b0017fc140104015100010400000400050000ef0219000a0000afff55340400c6
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [48, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, 0, 0, 32772, b'\x0b\x00\x17\xfc\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00', 0, 175, 255, 85, 52, 4, 0, -58]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device <Device model=None manuf=None nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'\x0b\x00\x17\xfc\x14\x01\x04\x01Q\x00\x01\x04\x00\x00\x04\x00\x05\x00\x00\xef\x02\x19\x00\n\x00'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 0, profile: 0x0000, cluster_id: 0x8004, data: b'0b0017fc140104015100010400000400050000ef0219000a00'
2021-10-17 01:45:05 INFO (MainThread) [zigpy.endpoint] [0xfc17:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10])
2021-10-17 01:45:05 WARNING (MainThread) [zigpy.zcl] Unknown cluster 61184
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 13 under 14 request id, data: b'000d0004000500'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (22, 14, 0, <DeconzAddressEndpoint address_mode=2 address=0xFC17 endpoint=1>, 260, 0, 1, b'\x00\r\x00\x04\x00\x05\x00', 2, 0)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1229001d0016000e000217fc0104010000010700000d00040005000200
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x12290009000200220e
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 14]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2a000700a600
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x042a0007000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x042a0013000c00220e0217fc01010000000000
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 14: 00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x0e 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0xfc17 endpoint=1>, status: 0x00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2b000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x172b000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x172b002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c9
2021-10-17 01:45:05 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -55]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:05 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2c000700aa00
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x172c000800010001
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x172c0041003a0022020000010217fc01040100002300180d0104000042105f545a453230305f79656e6272346f6d050000420654533036303100aff855340400c9
2021-10-17 01:45:05 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=0xfc17>, 1, 260, 0, b'\x18\r\x01\x04\x00\x00B\x10_TZE200_yenbr4om\x05\x00\x00B\x06TS0601', 0, 175, 248, 85, 52, 4, 0, -55]
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=13 command_id=Command.Read_Attributes_rsp>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'180d0104000042105f545a453230305f79656e6272346f6d0500004206545330363031'
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Read model 'TS0601' and manufacturer '_TZE200_yenbr4om' from <Endpoint id=1 in=[basic:0x0000, groups:0x0004, scenes:0x0005, None:0xEF00] out=[ota:0x0019, time:0x000A] status=<Status.ZDO_INIT: 1>>
2021-10-17 01:45:05 INFO (MainThread) [zigpy.device] [0xfc17] Discovered basic device information for <Device model='TS0601' manuf='_TZE200_yenbr4om' nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=True>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.application] Device is initialized <Device model='TS0601' manuf='_TZE200_yenbr4om' nwk=0xFC17 ieee=04:cd:15:ff:fe:7f:79:00 is_initialized=True>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_yenbr4om TS0601 (04:cd:15:ff:fe:7f:79:00)
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee_io.XBeeSensor'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee3_io.XBee3Sensor'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.tag_v4.SmartThingsTagV4'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.multi.SmartthingsMultiPurposeSensor'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.netvox.z308e3ed.Z308E3ED'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {1}
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'bellows.zigbee.application.EZSPCoordinator'>
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xFC17:04:cd:15:ff:fe:7f:79:00 entering async_device_initialized - is_new_join: True
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xFC17:04:cd:15:ff:fe:7f:79:00 has joined the ZHA zigbee network
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): started configuration
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:ZDO](TS0601): 'async_configure' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (04:cd:15:ff:fe:7f:79:00, 1, 0, 4, '_TZE200_yenbr4om') params: FOREIGN KEY constraint failed
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0000]: finished channel configuration
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0019]: finished channel configuration
2021-10-17 01:45:05 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (04:cd:15:ff:fe:7f:79:00, 1, 0, 5, 'TS0601') params: FOREIGN KEY constraint failed
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0000]: 'async_configure' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0019]: 'async_configure' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): completed configuration
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_yenbr4om TS0601', ieee='04:cd:15:ff:fe:7f:79:00', last_seen=1634431505.7304544)
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): started initialization
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:ZDO](TS0601): 'async_initialize' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0000]: initializing channel: from_cache: False
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0000]: finished channel configuration
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0019]: initializing channel: from_cache: False
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0019]: finished channel configuration
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0000]: 'async_initialize' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC17:1:0x0019]: 'async_initialize' stage succeeded
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): power source: Mains
2021-10-17 01:45:05 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFC17](TS0601): completed initialization
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2d000700aa00
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x172d000800010001
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x172d002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c6
2021-10-17 01:45:06 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -58]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:06 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c2e000c000500026fc6ffc6
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2f000700aa00
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x172e000800010001
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x172e002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400ca
2021-10-17 01:45:06 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -54]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:06 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e2f000700aa00
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x172f000800010001
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x172f002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c7
2021-10-17 01:45:06 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -57]
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:06 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:06 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e30000700aa00
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1730000800010001
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1730002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400cc
2021-10-17 01:45:07 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -52]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:07 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e31000700aa00
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1731000800010001
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1731002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400ca
2021-10-17 01:45:07 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -54]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:07 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e32000700aa00
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1732000800010001
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1732002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c9
2021-10-17 01:45:07 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -55]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:07 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c33000c000500026fc6ffcf
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e34000700aa00
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1733000800010001
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1733002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400cb
2021-10-17 01:45:07 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -53]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:07 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e34000700aa00
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1734000800010001
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1734002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c8
2021-10-17 01:45:07 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -56]
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:07 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e35000700aa00
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1735000800010001
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1735002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c8
2021-10-17 01:45:08 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -56]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:08 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e36000700aa00
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1736000800010001
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1736002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400ca
2021-10-17 01:45:08 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -54]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:08 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e37000700aa00
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1737000800010001
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1737002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400cd
2021-10-17 01:45:08 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -51]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:08 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c38000c000500026fc6ffc1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e39000700aa00
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1738000800010001
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1738002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400ca
2021-10-17 01:45:08 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -54]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:08 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e39000700aa00
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1739000800010001
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1739002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400ca
2021-10-17 01:45:08 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -54]
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
2021-10-17 01:45:08 WARNING (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] Unknown cluster-specific command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL request 0x0001: b'\x00\x00\n\x02\x00\x04\x00\x00t0'
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] No handler for cluster command 1
2021-10-17 01:45:08 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfc17>, ep: 1, profile: 0x0104, cluster_id: 0xef00, data: b'09000100000a02000400007430'
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e3a000700aa00
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0]
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1)
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x173a000800010001
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x173a002b00240022020000010217fc01040100ef0d0009000100000a0200040000743000afff55340400c8
2021-10-17 01:45:09 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=0xfc17>, 1, 260, 61184, b'\t\x00\x01\x00\x00\n\x02\x00\x04\x00\x00t0', 0, 175, 255, 85, 52, 4, 0, -56]
2021-10-17 01:45:09 DEBUG (MainThread) [zigpy.zcl] [0xfc17:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=0 command_id=1>
```


**Additional context**
Thanks in advance for all your help and hard work 🙇 



Discussion:
Update:
Added the model to this quirk:
```
class TuyaZemismartSmartCover0601_3(TuyaWindowCover):
    """Tuya Zemismart blind cover motor."""

    signature = {
        # "node_descriptor": "<NodeDescriptor byte1=1 byte2=64 mac_capability_flags=142 manufacturer_code=4098
        #                       maximum_buffer_size=82 maximum_incoming_transfer_size=82 server_mask=11264
        #                       maximum_outgoing_transfer_size=82 descriptor_capability_field=0>",
        # input_clusters=[0x0000, 0x0004, 0x0005, 0x000a, 0xef00]
        # output_clusters=[0x0019]
        # <SimpleDescriptor endpoint=1 profile=260 device_type=51 input_clusters=[0, 4, 5, 61184] output_clusters=[25]>
        MODELS_INFO: [
            ("_TZE200_fzo2pocs", "TS0601"),
            ("_TZE200_yenbr4om", "TS0601"),
        ],
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufCluster.cluster_id,
                ],
                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
            },
        },
    }
    replacement = {
        ENDPOINTS: {
            1: {
                PROFILE_ID: zha.PROFILE_ID,
                DEVICE_TYPE: zha.DeviceType.WINDOW_COVERING_DEVICE,
                INPUT_CLUSTERS: [
                    Basic.cluster_id,
                    Groups.cluster_id,
                    Scenes.cluster_id,
                    TuyaManufacturerWindowCover,
                    TuyaWindowCoverControl,
                ],
                OUTPUT_CLUSTERS: [Ota.cluster_id],
            },
        },
    }
```

And now it seems to get an entity but gives this error when trying to open or close:
```
2021-10-17 03:27:32 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547829836144] '_TZE200_yenbr4om'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/zha/cover.py", line 147, in async_stop_cover
res = await self._cover_channel.stop()
File "/usr/src/homeassistant/homeassistant/components/zha/core/channels/base.py", line 59, in wrapper
result = await command(*args, **kwds)
File "/usr/local/lib/python3.9/site-packages/zhaquirks/tuya/__init__.py", line 882, in command
TUYA_COVER_COMMAND[manufacturer][command_id],
KeyError: '_TZE200_yenbr4om'
```

Does anyone have any idea of the next steps?
I've tried to add a `__init__.py` to `zha_custom_quirks/tuya/__init__.py` and added the key but it doesn't seem to overwrite the init file

Thanks in advance
I think you have finding all right places for putting your device id but local quirk have one limiting, they is reading all import from the HA container. So your updated `ts0601.py` is getting the data / code from `__init__.py` from the container and not from `zha_custom_quirks/tuya/__init__.py`.

For getting it working you need putting the device id in` /usr/local/lib/python3.9/site-packages/zhaquirks/tuya/__init__.py`. 
Instruction to editing files in the container https://github.com/zigpy/zha-device-handlers/discussions/693.

You can doing the same with `ts0601.py` but not needed and is easier changing witch class you need to have for it working OK if letting in local quirk folder.
Thanks but I haven't found a way to install any editor to edit files in the container. pip gives an error ModuleNotFoundError: No module named 'distutils.cmd'
I think that's the only thing missing as I get the position reported fine, it's just the commands that need to be in that property and tested but I can't test it because I can't edit my container files... Any more ideas?
I was just trying installing supplemon from the instruction in my updated test system and its looks like this in the HA docker container CLI:
```
ash-5.1# pip install suplemon
Collecting suplemon
  Downloading Suplemon-0.2.1.tar.gz (61 kB)
     |████████████████████████████████| 61 kB 7.5 kB/s 
Requirement already satisfied: pygments in /usr/local/lib/python3.9/site-packages (from suplemon) (2.10.0)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.9/site-packages (from suplemon) (0.2.5)
Building wheels for collected packages: suplemon
  Building wheel for suplemon (setup.py) ... done
  Created wheel for suplemon: filename=Suplemon-0.2.1-py3-none-any.whl size=79533 sha256=d7de82c3d7a03c458f18b77d1c4e3595576f9dee5c90f61db92d7cdf756c7f32
  Stored in directory: /root/.cache/pip/wheels/8f/c5/9e/ec09aab5ddafc77f070d908285411f10ef8ff649e23bfb8cdb
Successfully built suplemon
Installing collected packages: suplemon
Successfully installed suplemon-0.2.1
WARNING: You are using pip version 20.2.4; however, version 21.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
bash-5.1# 
```
The pip warning that is old you can ignoring :-))

You can using `vi` but its not so "user friendly" but working without installing and thing in the container.

One other method is editing it in your HA config folder (from "out side") and then copy it from inside the container to its real location but its little tricky 2.
The "copy method " but you need updating the paths and putting the new file in your ha config directory that you can accessing from outside and then do the copy.
https://github.com/zigpy/zha-device-handlers#testing-quirks-in-development-in-docker-based-install
And the question is what version of Python you is running.
My test system with Home Assistant 2021.10.1 is saying inside the container CLI:
```
bash-5.1# python
Python 3.9.7 (default, Sep  9 2021, 11:03:41) 
[GCC 10.3.1 20210424] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
```
Thanks!
So now I can control it fine but I've tried all the classes in the file ts0601.py and none seems to work fine, seems the position of the blind doesn't get reported.
Here is the log when I run the up/stop/down commands:
```
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 618, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/yi_hack/switch.py", line 43, in update
self._state = get_privacy(self.hass, self._device_name, conf)
File "/config/custom_components/yi_hack/common.py", line 195, in get_privacy
privacy_dict: dict = response.json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-10-17 21:33:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547366325504] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/zha/cover.py", line 149, in async_stop_cover
self._state = STATE_OPEN if self._current_position > 0 else STATE_CLOSED
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2021-10-17 21:33:11 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547366325504] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/zha/cover.py", line 149, in async_stop_cover
self._state = STATE_OPEN if self._current_position > 0 else STATE_CLOSED
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2021-10-17 21:34:37 ERROR (MainThread) [zigpy_deconz.uart] Unexpected error handling the frame: handle_cluster_request() takes 3 positional arguments but 5 were given
2021-10-17 21:34:57 WARNING (MainThread) [zigpy.zcl] [0xc597:1:0xef00] Unknown cluster-specific command 17
```

I have no idea what to do next, any help would be appreciated. Thanks!
Good and bad :-)(,

After making changes you must deleting `__pycache__` folders in both local quirk and the the container folder there the change was made or it can the the system is reusing "old" code / data.

The last error is pointing to the "/usr/src/homeassistant/homeassistant/components/zha/cover.py" and its depends so take one more look if the changes you have made in the `/usr/local/lib/python3.9/site-packages/zhaquirks/tuya/__init__.py` so not one extra spaces or other caters have jumping in the code.
So, the only thing missing is actually getting the position of the blind, else I don't have any more errors.
I get this in the logs but have no idea of what to do to translate it correctly:
`2021-10-18 11:14:05 DEBUG (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:79:00 Received Attribute Report - Unknown Command. Self [<zhaquirks.tuya.TuyaManufacturerWindowCover object at 0x7f7cd16070>], Header [<ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=45 command_id=1>], Tuya Paylod [[Command(status=0, tsn=0, command_id=515, function=0, data=[4, 0, 0, 0, 18])]]`

18 is the position of the blind, when I move it it changes the value

Thanks!
Not so bad :-)))

May i doing one PR and adding your device so other user can using it out of the box ?
For ding  that i need the string you was putting in the `__init__.py` and the rest was only the ID in the `class TuyaZemismartSmartCover0601_3(TuyaWindowCover):`.

In the original implanting thread #744 is some user and devs on the hut for the problem with missing position reporting and its looks like they have founding the problem but not implanting it.
Didn't manage to make it work, I keep getting errors and the position doesn't work unfortunately. I'm not that experienced to be able to fix it as I don't understand how to debug and what arguments arrive and what needs to be sent back to the curtain switch.
I think its need being fixed in the code used for the quirk and hopefully they is fixing it and your position reporting is getting working.

Shall i making one PR as i was asked in https://github.com/zigpy/zha-device-handlers/issues/1075#issuecomment-945193329 ??
I can create a PR when I manage to make it work. I'll wait for the fix #744 and then if it works I'll add the device in a PR :)
Is there a reason why 4 exactly the same curtain switches can report different command_id's?
```
2021-10-21 15:05:12 INFO (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:79:00 Received Attribute Report. Command is 0x0001, Tuya Payload values[Status : 0, TSN: 0, Command: 0x050c, Function: 0x00, Data: [1, 0]]
2021-10-21 15:05:12 INFO (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:7a:31 Received Attribute Report. Command is 0x0001, Tuya Payload values[Status : 0, TSN: 0, Command: 0x0407, Function: 0x00, Data: [1, 1]]
2021-10-21 15:05:12 INFO (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:8d:e1:c3 Received Attribute Report. Command is 0x0001, Tuya Payload values[Status : 0, TSN: 0, Command: 0x020a, Function: 0x00, Data: [4, 0, 0, 116, 48]]
2021-10-21 15:05:12 INFO (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:79:5a Received Attribute Report. Command is 0x0001, Tuya Payload values[Status : 0, TSN: 0, Command: 0x0407, Function: 0x00, Data: [1, 0]]
2021-10-21 15:05:13 INFO (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:79:00 Received Attribute Report. Command is 0x0001, Tuya Payload values[Status : 0, TSN: 0, Command: 0x050c, Function: 0x00, Data: [1, 0]]
```
I don't really understand zigbee...
How did you getting all switches sending one command at the same time or was you restarting HA and it was reading the cached information ??

One more thing with the position reporting problem, its look the devs have finding one fix and correcting one string in the INIT that you have editing. https://github.com/zigpy/zha-device-handlers/issues/1086#issuecomment-948549134
Can you trying doing the change and reporting back if its helping with the error you is having ?
That's reading the logs, they are all sending those constantly... but I don't understand them... the  Command: 0x050c it's different from them and the Data it's 5 in size others 2 in size
It's because of this
`if hdr.command_id in (TUYA_GET_DATA, TUYA_SET_DATA_RESPONSE):` https://github.com/zigpy/zha-device-handlers/issues/744#issuecomment-945191501
All the commands sent by the switches go through that logger.debug
so I've removed all the crazy changes and code I've added and just left the https://github.com/zigpy/zha-device-handlers/issues/1086#issuecomment-948549134
I've turned off all the switches from power and turned them on again and this is what I get
`2021-10-21 18:15:57 DEBUG (MainThread) [zhaquirks.tuya] 04:cd:15:ff:fe:7f:79:00 Received Attribute Report - Unknown Command. Self [<zhaquirks.tuya.TuyaManufacturerWindowCover object at 0x7fa79c4640>], Header [<ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=51 command_id=1>], Tuya Paylod [[Command(status=0, tsn=0, command_id=522, function=0, data=[4, 0, 0, 116, 48])]]`
from all of them.
Does anyone know what the command_id=522 is? and what means the data=[4, 0, 0, 116, 48]
Im still sorry but i have not writing the code for the tuya curtain controllers so i cant helping you with debugging more then helping adding switches in the quirk but the underlying code is not my part :-((
No problem at all, you've already helped
If you want to add the PR device for others to test (automations work fine, just the position isn't right)
`("_TZE200_yenbr4om", "TS0601")` to `class TuyaMoesCover0601(TuyaWindowCover):`
and `"_TZE200_yenbr4om": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},` to `TUYA_COVER_COMMAND` in __init__.py

Resolving patch:
diff --git a/zhaquirks/tuya/__init__.py b/zhaquirks/tuya/__init__.py
--- a/zhaquirks/tuya/__init__.py
+++ b/zhaquirks/tuya/__init__.py
@@ -94,6 +94,7 @@
     "_TZE200_zpzndjez": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
     "_TZE200_cowvfni3": {0x0000: 0x0002, 0x0001: 0x0000, 0x0002: 0x0001},
     "_TYST11_wmcdj3aq": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
+    "_TZE200_yenbr4om": {0x0000: 0x0000, 0x0001: 0x0002, 0x0002: 0x0001},
 }
 # ---------------------------------------------------------
 # TUYA Switch Custom Values
diff --git a/zhaquirks/tuya/ts0601.py b/zhaquirks/tuya/ts0601.py
--- a/zhaquirks/tuya/ts0601.py
+++ b/zhaquirks/tuya/ts0601.py
@@ -233,6 +233,7 @@ class TuyaMoesCover0601(TuyaWindowCover):
             ("_TZE200_rddyvrci", "TS0601"),
             ("_TZE200_nueqqe6k", "TS0601"),
             ("_TZE200_gubdgai2", "TS0601"),
+            ("_TZE200_yenbr4om", "TS0601"),
         ],  # Not tested
         ENDPOINTS: {
             1: {


Test patch: