Repository: zigpy/zha-device-handlers

Issue:
[Device Support Request] Hysen HY10 TRV 
**Is your feature request related to a problem? Please describe.**
I have some hysen HY-10 zigbee trvs that are partially detected from tuya ts601 module as Moes type2. ZHA is intervieweing them but cannot add them. I have the following error in the logs and I believe that these have the attirbute present in the moes type1... 

Following the logs-->

```
WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 3 of 3)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 174, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 163, in new
    await app._load_db()
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 80, in _load_db
    await self._dblistener.load()
  File "/usr/local/lib/python3.10/site-packages/zigpy/appdb.py", line 577, in load
    device = zigpy.quirks.get_device(device)
  File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 34, in get_device
    return _DEVICE_REGISTRY.get_device(device)
  File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/registry.py", line 148, in get_device
    device = candidate(device._application, device.ieee, device.nwk, device)
  File "/usr/local/lib/python3.10/site-packages/zhaquirks/tuya/__init__.py", line 874, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 85, in __init__
    self.add_endpoint(endpoint_id, replace_device=replaces)
  File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 100, in add_endpoint
    ep = custom_ep_type(self, endpoint_id, replacement_data, replace_device)
  File "/usr/local/lib/python3.10/site-packages/zigpy/quirks/__init__.py", line 124, in __init__
    cluster = c(self, is_server=True)
  File "/usr/local/lib/python3.10/site-packages/zhaquirks/tuya/ts0601_trv.py", line 785, in __init__
    self.endpoint.device.window_detection_bus.add_listener(self)
AttributeError: 'MoesHY368_Type2' object has no attribute 'window_detection_bus'
```

**Describe the solution you'd like**
Maybe the block of code from Moes type1 may be the solution but in HASSos I cannot (actually do not know) how to access and change the file zhaquirks/tuya/ts0601_trv.py
```
    def __init__(self, *args, **kwargs):
        """Init device."""
        self.window_detection_bus = Bus()
        super().__init__(*args, **kwargs)
```



Discussion:
Please fill out the issue template. Device signature and diagnostic information from the device are still missing.
Hi and thanks for your answer, is there a way to get these information? Is there a guide to help me retrieve the missing data? Thank you and sorry for any inconvenience caused!
I have tried following the guidlines from HA ZHA document but the part:
Both the “Zigbee Device Signature” and “Diagnostics” information can be found by clicking Settings -> Devices & Services -> Zigbee Home Automation (click Configure) -> Devices (pick your device) -> Click “Zigbee Device Signature” and “Download Diagnostics” respectively.

Is not usable as the device is not added and not showing in ZHA addon,,,

Thia is the log when adding the device as new

```
New device 0x9957 (ec:1b:bd:ff:fe:95:40:50) joined the network
[0x9957] Scheduling initialization
Tries remaining: 3
[0x9957] Requesting 'Node Descriptor'
Tries remaining: 2
[0x9957] Extending timeout for 0x2b request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=252, profile_id=0, cluster_id=19, data=Serialized[b'\x85W\x99P@\x95\xfe\xff\xbd\x1b\xec\x80'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=232, rssi=-42)
Device 0x9957 (ec:1b:bd:ff:fe:95:40:50) joined the network
[0x9957] Scheduling initialization
[0x9957] Canceling old initialize call
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 0 to ep 0, cluster 19: b'\x85W\x99P@\x95\xfe\xff\xbd\x1b\xec\x80'
[0x9957:zdo] ZDO request ZDOCmd.Device_annce: [0x9957, ec:1b:bd:ff:fe:95:40:50, 128]
Tries remaining: 3
[0x9957] Requesting 'Node Descriptor'
Tries remaining: 2
[0x9957] Extending timeout for 0x2d request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=253, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x17$\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x17$\x00\x00'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=23, command_id=36, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x00\x00'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=254, profile_id=0, cluster_id=32770, data=Serialized[b'-\x00W\x99\x02@\x80\x00\x00R\xff\x00\x00,\xff\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'-\x00W\x99\x02@\x80\x00\x00R\xff\x00\x00,\xff\x00\x00'
[0x9957] 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=0, maximum_buffer_size=82, maximum_incoming_transfer_size=255, server_mask=11264, maximum_outgoing_transfer_size=255, 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)
[0x9957] Discovering endpoints
Tries remaining: 3
[0x9957] Extending timeout for 0x2f request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=255, profile_id=0, cluster_id=32770, data=Serialized[b'-\x00W\x99\x02@\x80\x00\x00R\xff\x00\x00,\xff\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 0 to ep 0, cluster 32770: b'-\x00W\x99\x02@\x80\x00\x00R\xff\x00\x00,\xff\x00\x00'
[0x9957:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [<Status.SUCCESS: 0>, 0x9957, 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=0, maximum_buffer_size=82, maximum_incoming_transfer_size=255, server_mask=11264, maximum_outgoing_transfer_size=255, 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)]
[0x9957:zdo] No handler for ZDO request:ZDOCmd.Node_Desc_rsp([<Status.SUCCESS: 0>, 0x9957, 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=0, maximum_buffer_size=82, maximum_incoming_transfer_size=255, server_mask=11264, maximum_outgoing_transfer_size=255, 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)])
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=0, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x18\x01\x13Mf\x02\x00\x04\x00\x00\x00\x05'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x18\x01\x13Mf\x02\x00\x04\x00\x00\x00\x05'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=24, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13Mf\x02\x00\x04\x00\x00\x00\x05'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=1, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x19\x01\x13Ng\x02\x00\x04\x00\x00\x00#'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x19\x01\x13Ng\x02\x00\x04\x00\x00\x00#'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=25, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13Ng\x02\x00\x04\x00\x00\x00#'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=2, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1a\x01\x13O\x02\x02\x00\x04\x00\x00\x00\xf0'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x1a\x01\x13O\x02\x02\x00\x04\x00\x00\x00\xf0'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=26, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13O\x02\x02\x00\x04\x00\x00\x00\xf0'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=3, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1b\x01\x13P\x03\x02\x00\x04\x00\x00\x00\xe1'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x1b\x01\x13P\x03\x02\x00\x04\x00\x00\x00\xe1'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=27, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13P\x03\x02\x00\x04\x00\x00\x00\xe1'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=4, profile_id=0, cluster_id=32773, data=Serialized[b'/\x00W\x99\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 0 to ep 0, cluster 32773: b'/\x00W\x99\x01\x01'
[0x9957] Discovered endpoints: [1]
[0x9957] Initializing endpoints [<Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
[0x9957:1] Discovering endpoint information
Tries remaining: 3
[0x9957] Extending timeout for 0x31 request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=5, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1c\x01\x13Q\x04\x04\x00\x01\x02'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x1c\x01\x13Q\x04\x04\x00\x01\x02'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=28, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13Q\x04\x04\x00\x01\x02'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=6, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1d\x01\x13R\x07\x01\x00\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x1d\x01\x13R\x07\x01\x00\x01\x01'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=29, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13R\x07\x01\x00\x01\x01'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=7, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1e\x01\x13S\r\x05\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 1 to ep 1, cluster 61184: b'\t\x1e\x01\x13S\r\x05\x00\x01\x00'
[0x9957] 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, direction=<Direction.Client_to_Server: 1>, disable_default_response=0, reserved=0, *is_cluster=True, *is_general=False, *is_reply=True), tsn=30, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True), payload: b'\x13S\r\x05\x00\x01\x00'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=8, profile_id=0, cluster_id=32772, data=Serialized[b'1\x00W\x99\x10\x01\x04\x01\x00\x00\x00\x02\x00\x00\x03\x00\x02\x03\x00\x19\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=232, rssi=-42)
Received frame on uninitialized device <Device model=None manuf=None nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=False> from ep 0 to ep 0, cluster 32772: b'1\x00W\x99\x10\x01\x04\x01\x00\x00\x00\x02\x00\x00\x03\x00\x02\x03\x00\x19\x00'
[0x9957:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=0, device_version=0, input_clusters=[0, 3], output_clusters=[3, 25])
[0x9957:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=False, direction=<Direction.Server_to_Client: 0>, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True, *is_reply=False), tsn=51, command_id=<GeneralCommand.Read_Attributes: 0>, *direction=<Direction.Server_to_Client: 0>, *is_reply=False)
[0x9957:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5])
[0x9957] Extending timeout for 0x33 request
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=9, profile_id=0, cluster_id=32772, data=Serialized[b'1\x00W\x99\x10\x01\x04\x01\x00\x00\x00\x02\x00\x00\x03\x00\x02\x03\x00\x19\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
[0x9957:zdo] ZDO request ZDOCmd.Simple_Desc_rsp: [<Status.SUCCESS: 0>, 0x9957, SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=0, device_version=0, input_clusters=[0, 3], output_clusters=[3, 25])]
[0x9957:zdo] No handler for ZDO request:ZDOCmd.Simple_Desc_rsp([<Status.SUCCESS: 0>, 0x9957, SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=0, device_version=0, input_clusters=[0, 3], output_clusters=[3, 25])])
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=10, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x1f\x01\x13T,\x02\x00\x04\xff\xff\xff\xf6'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'091f0113542c020004fffffff6') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=11, profile_id=260, cluster_id=61184, data=Serialized[b'\t \x01\x13U\x03\x02\x00\x04\x00\x00\x00\xe1'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Ignoring message (b'092001135503020004000000e1') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=12, profile_id=260, cluster_id=61184, data=Serialized[b'\t!\x01\x13Vh\x00\x00\x03\x00u\xc8'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=204, rssi=-49)
Ignoring message (b'0921011356680000030075c8') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=13, profile_id=260, cluster_id=0, data=Serialized[b'\x183\x01\x04\x00\x00B\x10_TYST11_ckud7u2l\x05\x00\x00B\x08kud7u2l\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=168, rssi=-58)
[0x9957:1:0x0000] Received ZCL frame: b'\x183\x01\x04\x00\x00B\x10_TYST11_ckud7u2l\x05\x00\x00B\x08kud7u2l\x00'
[0x9957:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=<FrameType.GLOBAL_COMMAND: 0>, is_manufacturer_specific=0, direction=<Direction.Client_to_Server: 1>, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True, *is_reply=True), tsn=51, command_id=1, *direction=<Direction.Client_to_Server: 1>, *is_reply=True)
[0x9957:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='_TYST11_ckud7u2l')), ReadAttributeRecord(attrid=0x0005, status=<Status.SUCCESS: 0>, value=TypeValue(type=CharacterString, value='kud7u2l'))])
[0x9957] Read model 'kud7u2l' and manufacturer '_TYST11_ckud7u2l' from <Endpoint id=1 in=[basic:0x0000, identify:0x0003] out=[identify:0x0003, ota:0x0019] status=<Status.ZDO_INIT: 1>>
[0x9957] Discovered basic device information for <Device model='kud7u2l' manuf='_TYST11_ckud7u2l' nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=True>
Device is initialized <Device model='kud7u2l' manuf='_TYST11_ckud7u2l' nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=True>
Checking quirks for _TYST11_ckud7u2l kud7u2l (ec:1b:bd:ff:fe:95:40:50)
Considering <class 'zhaquirks.tuya.ts0601_trv.MoesHY368_Type2'>
Found custom device replacement for ec:1b:bd:ff:fe:95:40:50: <class 'zhaquirks.tuya.ts0601_trv.MoesHY368_Type2'>
Device <Device model='kud7u2l' manuf='_TYST11_ckud7u2l' nwk=0x9957 ieee=ec:1b:bd:ff:fe:95:40:50 is_initialized=True> failed to initialize due to unexpected error
Error handling '_save_attribute' event with (ec:1b:bd:ff:fe:95:40:50, 1, 0, 4, '_TYST11_ckud7u2l') params: FOREIGN KEY constraint failed
Error handling '_save_attribute' event with (ec:1b:bd:ff:fe:95:40:50, 1, 0, 5, 'kud7u2l') params: FOREIGN KEY constraint failed
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=14, profile_id=260, cluster_id=61184, data=Serialized[b'\t"\x01\x13Wi\x02\x00\x04\x00\x00\x01,'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=180, rssi=-55)
Ignoring message (b'0922011357690200040000012c') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=15, profile_id=260, cluster_id=61184, data=Serialized[b'\t#\x01\x13Xj\x04\x00\x01\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=208, rssi=-48)
Ignoring message (b'09230113586a04000101') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=16, profile_id=260, cluster_id=61184, data=Serialized[b'\t$\x01\x13Yk\x02\x00\x04\x00\x00\x00\x14'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=172, rssi=-57)
Ignoring message (b'09240113596b02000400000014') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=17, profile_id=260, cluster_id=61184, data=Serialized[b'\t%\x01\x13Zl\x02\x00\x04\x00\x00\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=152, rssi=-62)
Ignoring message (b'092501135a6c0200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=18, profile_id=260, cluster_id=61184, data=Serialized[b'\t&\x01\x13[m\x02\x00\x04\x00\x00\x00d'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=180, rssi=-55)
Ignoring message (b'092601135b6d02000400000064') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=19, profile_id=260, cluster_id=61184, data=Serialized[b"\t'\x01\x13\\n\x01\x00\x01\x00"], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=188, rssi=-53)
Ignoring message (b'092701135c6e01000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=20, profile_id=260, cluster_id=61184, data=Serialized[b'\t(\x01\x13]o\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=216, rssi=-46)
Ignoring message (b'092801135d6f04000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=21, profile_id=260, cluster_id=61184, data=Serialized[b'\t)\x01\x13^p\x00\x00\x12\x06\x00\x14\x08\x00\x0f\x0b\x1e\x0f\x0c\x1e\x0f\x11\x1e\x14\x16\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=228, rssi=-43)
Ignoring message (b'092901135e7000001206001408000f0b1e0f0c1e0f111e1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=22, profile_id=260, cluster_id=61184, data=Serialized[b'\t*\x01\x13_q\x00\x00\x12\x06\x00\x14\x08\x00\x0f\x0b\x1e\x0f\x0c\x1e\x0f\x11\x1e\x14\x16\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=228, rssi=-43)
Ignoring message (b'092a01135f7100001206001408000f0b1e0f0c1e0f111e1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=23, profile_id=260, cluster_id=61184, data=Serialized[b'\t+\x01\x13`r\x02\x00\x04\x00\x00\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'092b011360720200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=24, profile_id=260, cluster_id=61184, data=Serialized[b'\t,\x01\x13as\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'092c0113617301000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=25, profile_id=260, cluster_id=61184, data=Serialized[b'\t-\x01\x13bt\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=228, rssi=-43)
Ignoring message (b'092d0113627401000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=26, profile_id=260, cluster_id=61184, data=Serialized[b'\t.\x01\x13cu\x02\x00\x04\x00\x00\x00\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=240, rssi=-40)
Ignoring message (b'092e0113637502000400000001') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Device 0x9957 (ec:1b:bd:ff:fe:95:40:50) joined the network
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.Broadcast: 15>, address=<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>), dst_ep=0, source_route=None, extended_timeout=False, tsn=55, profile_id=0, cluster_id=19, data=Serialized[b'\x81W\x99P@\x95\xfe\xff\xbd\x1b\xec\x80'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=204, rssi=-49)
Device 0x9957 (ec:1b:bd:ff:fe:95:40:50) joined the network
[0x9957:zdo] ZDO request ZDOCmd.Device_annce: [0x9957, ec:1b:bd:ff:fe:95:40:50, 128]
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=56, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x00$\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=212, rssi=-47)
Ignoring message (b'0900240000') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=57, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x01\x01\x00\x02f\x02\x00\x04\x00\x00\x00\x05'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09010100026602000400000005') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=58, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x02\x01\x00\x03g\x02\x00\x04\x00\x00\x00#'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'09020100036702000400000023') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=59, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x03\x01\x00\x04\x02\x02\x00\x04\x00\x00\x00\xf0'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090301000402020004000000f0') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=60, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x04\x01\x00\x05\x03\x02\x00\x04\x00\x00\x00\xe1'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090401000503020004000000e1') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=61, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x05\x01\x00\x06\x04\x04\x00\x01\x02'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'09050100060404000102') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=62, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x06\x01\x00\x07\x07\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=228, rssi=-43)
Ignoring message (b'09060100070701000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=63, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x07\x01\x00\x08\r\x05\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09070100080d05000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=64, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x08\x01\x00\t,\x02\x00\x04\xff\xff\xff\xf6'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09080100092c020004fffffff6') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=65, profile_id=260, cluster_id=61184, data=Serialized[b'\t\t\x01\x00\nh\x00\x00\x03\x00u\xc8'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'090901000a680000030075c8') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=66, profile_id=260, cluster_id=61184, data=Serialized[b'\t\n\x01\x00\x0bi\x02\x00\x04\x00\x00\x01,'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090a01000b690200040000012c') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=67, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0b\x01\x00\x0cj\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090b01000c6a04000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=68, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0c\x01\x00\rk\x02\x00\x04\x00\x00\x00\x14'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090c01000d6b02000400000014') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=69, profile_id=260, cluster_id=61184, data=Serialized[b'\t\r\x01\x00\x0el\x02\x00\x04\x00\x00\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'090d01000e6c0200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=70, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0e\x01\x00\x0fm\x02\x00\x04\x00\x00\x00\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=232, rssi=-42)
Ignoring message (b'090e01000f6d02000400000000') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=71, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x0f\x01\x00\x10n\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'090f0100106e01000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=72, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x10\x01\x00\x11o\x04\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09100100116f04000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=73, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x11\x01\x00\x12p\x00\x00\x12\x06\x00\x14\x08\x00\x0f\x0b\x1e\x0f\x0c\x1e\x0f\x11\x1e\x14\x16\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09110100127000001206001408000f0b1e0f0c1e0f111e1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=74, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x12\x01\x00\x13q\x00\x00\x12\x06\x00\x14\x08\x00\x0f\x0b\x1e\x0f\x0c\x1e\x0f\x11\x1e\x14\x16\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'09120100137100001206001408000f0b1e0f0c1e0f111e1416000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=75, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x13\x01\x00\x14r\x02\x00\x04\x00\x00\x00\x0f'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'0913010014720200040000000f') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=76, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x14\x01\x00\x15s\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=232, rssi=-42)
Ignoring message (b'09140100157301000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=77, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x15\x01\x00\x16t\x01\x00\x01\x00'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=224, rssi=-44)
Ignoring message (b'09150100167401000100') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'
Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x9957), src_ep=1, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=78, profile_id=260, cluster_id=61184, data=Serialized[b'\t\x16\x01\x00\x17u\x02\x00\x04\x00\x00\x00\x01'], tx_options=<TransmitOptions.NONE: 0>, radius=0, non_member_radius=0, lqi=220, rssi=-45)
Ignoring message (b'09160100177502000400000001') on cluster 61184: unknown endpoint or cluster id: 'No cluster ID 0xef00 on (ec:1b:bd:ff:fe:95:40:50, 1)'

```
Ah, missed that part initially. What HA version are you running?
I'm using HAOS with 2023.2.0 on x86 machine. I'm using the SONOFF Zigbee 3.0 USB Dongle Plus-E. 
Might be a duplicate of: https://github.com/zigpy/zha-device-handlers/issues/2114
FYI @xonestonex, as you did the initial implementation

It seems like just adding the bus to the ``MoesHY368_Type2`` constructor should be enough to fix this (and Tuya TRVs really need to be cleaned up in the future)
```python
self.window_detection_bus = Bus()
```
@grego1981 Please setup custom quirks like this: https://github.com/zigpy/zha-device-handlers/discussions/693#discussioncomment-857274

So add a ``custom_zha_quirks`` folder in your HA ``/config`` directory. Then, add the following to your ``configuration.yaml``:
```yaml
zha:
  custom_quirks_path: /config/custom_zha_quirks/
```

[ts0601_trv.py.zip](https://github.com/zigpy/zha-device-handlers/files/10609089/ts0601_trv.py.zip)


In that ``custom_zha_quirks`` folder, extract the above file and put the extracted ``.py`` file in that folder. Then restart HA. Then see if you can pair the thermostat. If it works, let me know and we'll fix it for the next HA release (by which point you should remove the custom quirk).

If HA doesn't start or it still doesn't pair, remove the ``.py`` file and send me the logs.

Resolving patch:
diff --git a/zhaquirks/tuya/ts0601_trv.py b/zhaquirks/tuya/ts0601_trv.py
--- a/zhaquirks/tuya/ts0601_trv.py
+++ b/zhaquirks/tuya/ts0601_trv.py
@@ -1621,6 +1621,11 @@ def __init__(self, *args, **kwargs):
 class MoesHY368_Type2(TuyaThermostat):
     """MoesHY368 Thermostatic radiator valve (2nd cluster signature)."""
 
+    def __init__(self, *args, **kwargs):
+        """Init device."""
+        self.window_detection_bus = Bus()
+        super().__init__(*args, **kwargs)
+
     signature = {
         #  endpoint=1 profile=260 device_type=0 device_version=0 input_clusters=[0, 3]
         #  output_clusters=[3, 25]>


Test patch: