zigpy / zha-device-handlers

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

[Device Support Request] _TZE200_z1tyspqw TS0601 (Tuya ? Sold as TRV606 on aliexpress) #2347

Closed berowicz closed 10 months ago

berowicz commented 1 year ago

Hello, I got 3 TRV's from aliexpress

https://de.aliexpress.com/item/1005004732463260.html?spm=a2g0o.order_list.order_list_main.59.32f55c5fI542OG&gatewayAdapt=glo2deu

They are sold as TRV606 with OLED Display.

TRV_ali

Device signature ```yaml { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 260, "device_type": "0x0051", "in_clusters": [ "0x0000", "0x0004", "0x0005", "0xef00" ], "out_clusters": [ "0x000a", "0x0019" ] } }, "manufacturer": "_TZE200_z1tyspqw", "model": "TS0601", "class": "zigpy.device.Device" } ```
Diagnostic information ```yaml { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.4.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.10", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.1.21-v8", "supervisor": "2023.04.0", "host_os": "Home Assistant OS 10.0", "docker_version": "23.0.3", "chassis": "embedded", "run_as_root": true }, "custom_components": {}, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "requirements": [ "bellows==0.35.1", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.97", "zigpy-deconz==0.20.0", "zigpy==0.54.1", "zigpy-xbee==0.17.0", "zigpy-zigate==0.10.3", "zigpy-znp==0.10.0" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*tubeszb*", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "*zigstar*", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "*conbee*", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "*zigbee*", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "*zigate*", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "*zigate*", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "*bv 2010/10*", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "*zigate*" }, { "type": "_zigstar_gw._tcp.local.", "name": "*zigstar*" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "ieee": "**REDACTED**", "nwk": 2660, "manufacturer": "_TZE200_z1tyspqw", "model": "TS0601", "name": "_TZE200_z1tyspqw TS0601", "quirk_applied": false, "quirk_class": "zigpy.device.Device", "manufacturer_code": 4417, "power_source": "Battery or Unknown", "lqi": 192, "rssi": -52, "last_seen": "2023-04-20T20:17:26", "available": true, "device_type": "EndDevice", "signature": { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)", "endpoints": { "1": { "profile_id": 260, "device_type": "0x0051", "in_clusters": [ "0x0000", "0x0004", "0x0005", "0xef00" ], "out_clusters": [ "0x000a", "0x0019" ] } } }, "active_coordinator": false, "entities": [], "neighbors": [], "routes": [], "endpoint_names": [ { "name": "SMART_PLUG" } ], "user_given_name": "Heizung", "device_reg_id": "237e35d8d42b0d1982131a9c714ea5a2", "area_id": "schlafzimmer", "cluster_details": { "1": { "device_type": { "name": "SMART_PLUG", "id": 81 }, "profile_id": 260, "in_clusters": { "0x0004": { "endpoint_attribute": "groups", "attributes": {}, "unsupported_attributes": {} }, "0x0005": { "endpoint_attribute": "scenes", "attributes": {}, "unsupported_attributes": {} }, "0xef00": { "endpoint_attribute": null, "attributes": {}, "unsupported_attributes": {} }, "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0001": { "attribute_name": "app_version", "value": 72 }, "0x0004": { "attribute_name": "manufacturer", "value": "_TZE200_z1tyspqw" }, "0x0005": { "attribute_name": "model", "value": "TS0601" } }, "unsupported_attributes": {} } }, "out_clusters": { "0x0019": { "endpoint_attribute": "ota", "attributes": {}, "unsupported_attributes": {} }, "0x000a": { "endpoint_attribute": "time", "attributes": {}, "unsupported_attributes": { "0x0000": { "attribute_name": "time" } } } } } } } } ```
Additional logs ``` 2023-04-20 20:10:16.866 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x57B8), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=230, profile_id=260, cluster_id=1029, data=Serialized[b'\x18)\n\x00\x00!S\x12'], tx_options=, radius=0, non_member_radius=0, lqi=192, rssi=-52) 2023-04-20 20:10:16.872 DEBUG (MainThread) [zigpy.zcl] [0x57B8:1:0x0405] Received ZCL frame: b'\x18)\n\x00\x00!S\x12' 2023-04-20 20:10:16.875 DEBUG (MainThread) [zigpy.zcl] [0x57B8:1:0x0405] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=41, command_id=10, *direction=) 2023-04-20 20:10:16.878 DEBUG (MainThread) [zigpy.zcl] [0x57B8:1:0x0405] Decoded ZCL frame: RelativeHumidity:Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4691))]) 2023-04-20 20:10:16.881 DEBUG (MainThread) [zigpy.zcl] [0x57B8:1:0x0405] Received command 0x0A (TSN 41): Report_Attributes(attribute_reports=[Attribute(attrid=0x0000, value=TypeValue(type=uint16_t, value=4691))]) 2023-04-20 20:10:16.882 DEBUG (MainThread) [zigpy.zcl] [0x57B8:1:0x0405] Attribute report received: measured_value=4691 2023-04-20 20:10:30.848 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF611](CLA60 RGBW Z3): Device seen - marking the device available and resetting counter 2023-04-20 20:10:30.849 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF611](CLA60 RGBW Z3): Update device availability - device available: True - new availability: True - changed: False 2023-04-20 20:10:31.104 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=17, profile_id=0, cluster_id=, data=Serialized[b'\x11\xfe\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:31.106 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (0xfffc, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=17), 0, 18, b'\x11\xfe\x00') 2023-04-20 20:10:31.110 DEBUG (MainThread) [bellows.ezsp.protocol] Send command addTransientLinkKey: (ff:ff:ff:ff:ff:ff:ff:ff, [90, 105, 103, 66, 101, 101, 65, 108, 108, 105, 97, 110, 99, 101, 48, 57]) 2023-04-20 20:10:31.113 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'31a821a9622ae94d59947c25aa5592489c4e36abffcd7675fdfcc07e' 2023-04-20 20:10:31.126 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'14a8a1a9622a157cc5f57e' 2023-04-20 20:10:31.127 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-04-20 20:10:31.130 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendBroadcast: [, 206] 2023-04-20 20:10:31.133 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (254,) 2023-04-20 20:10:31.135 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'42a921a9fb2aea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc47e0617e' 2023-04-20 20:10:31.136 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'24a8b5a94d2a89108c7e' 2023-04-20 20:10:31.137 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-04-20 20:10:31.138 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received stackStatusHandler: [] 2023-04-20 20:10:31.139 DEBUG (MainThread) [bellows.zigbee.application] Received stackStatusHandler frame with [] 2023-04-20 20:10:31.140 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'34a8b1a9112a10b259a24a25aa5593499c80d8abedce9874fed79d896bf57e' 2023-04-20 20:10:31.140 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-04-20 20:10:31.143 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=206), 255, 0, 0x0000, 255, 255, b'\x11\xfe\x00'] 2023-04-20 20:10:31.144 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=206), 255, 0, 0x0000, 255, 255, b'\x11\xfe\x00'] 2023-04-20 20:10:31.145 DEBUG (MainThread) [bellows.zigbee.application] Ignoring message type: 2023-04-20 20:10:31.158 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'45a9a1a9fb2a15dd617e' 2023-04-20 20:10:31.159 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-04-20 20:10:31.161 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'55ae21a9762aeb77517e' 2023-04-20 20:10:31.163 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received addTransientLinkKey: [] 2023-04-20 20:10:31.166 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setPolicy: (, ) 2023-04-20 20:10:31.170 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56aea1a9762a1583d27e' 2023-04-20 20:10:31.170 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-04-20 20:10:31.173 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received permitJoining: [] 2023-04-20 20:10:31.176 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'66af21a9012a15b159216e7e' 2023-04-20 20:10:31.185 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'67afa1a9012a157a067e' 2023-04-20 20:10:31.185 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-04-20 20:10:31.187 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setPolicy: [] 2023-04-20 20:10:31.192 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-04-20 20:10:31.196 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'77ac21a9a52a27d67e' 2023-04-20 20:10:31.218 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70aca1a9a52a39b26e945c25a75593499c4e23abeece6c8bf5c66289fc7e3ea7e9cdde6f8fffc7dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a251904824dc8c7e' 2023-04-20 20:10:31.218 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-04-20 20:10:31.222 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[44, 55, 22, 13, 1, 0, 4, 3, 11, 8, 1, 0, 1, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] 2023-04-20 20:10:31.225 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-04-20 20:10:31.229 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'00ad21a9fe2a1686c87e' 2023-04-20 20:10:31.237 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01ada1a9fe2a15b3afffab7e' 2023-04-20 20:10:31.238 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-04-20 20:10:31.241 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\xf6'] 2023-04-20 20:10:31.243 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 246 2023-04-20 20:10:31.243 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 44, MAC_TX_BROADCAST = 55, MAC_RX_UNICAST = 22, MAC_TX_UNICAST_SUCCESS = 13, MAC_TX_UNICAST_RETRY = 1, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 4, APS_DATA_TX_BROADCAST = 3, APS_DATA_RX_UNICAST = 11, APS_DATA_TX_UNICAST_SUCCESS = 8, APS_DATA_TX_UNICAST_RETRY = 1, APS_DATA_TX_UNICAST_FAILED = 0, ROUTE_DISCOVERY_INITIATED = 1, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 0, JOIN_INDICATION = 0, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 0, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 246] 2023-04-20 20:10:32.113 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'11adb1a96b2a134ea6944a13aa5592499d4e2765ffce67acb47e' 2023-04-20 20:10:32.114 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-04-20 20:10:32.120 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=206), 18, , b''] 2023-04-20 20:10:32.121 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=206), 18, , b''] 2023-04-20 20:10:32.122 DEBUG (MainThread) [bellows.zigbee.application] Unexpected message send notification tag: 18 2023-04-20 20:10:41.247 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: () 2023-04-20 20:10:41.251 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'12b221a9a52af03d7e' 2023-04-20 20:10:41.271 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22b2a1a9a52a39b263945c25a75593499c4e23abe9ce6c8bf5c66289fc7e3ea7e9cdde6f8fffc7dbd4d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca658a459a4d9e4f9ff7c3d9d46a35a2519048242f6a7e' 2023-04-20 20:10:41.271 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-04-20 20:10:41.276 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[44, 58, 22, 13, 1, 0, 4, 4, 11, 8, 1, 0, 1, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] 2023-04-20 20:10:41.279 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (,) 2023-04-20 20:10:41.284 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'23b321a9fe2a16aa9b7e' 2023-04-20 20:10:41.293 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'33b3a1a9fe2a15b3ae7e4a7e' 2023-04-20 20:10:41.294 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-04-20 20:10:41.298 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [, b'\xf7'] 2023-04-20 20:10:41.301 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 247 2023-04-20 20:10:41.301 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 44, MAC_TX_BROADCAST = 58, MAC_RX_UNICAST = 22, MAC_TX_UNICAST_SUCCESS = 13, MAC_TX_UNICAST_RETRY = 1, MAC_TX_UNICAST_FAILED = 0, APS_DATA_RX_BROADCAST = 4, APS_DATA_TX_BROADCAST = 4, APS_DATA_RX_UNICAST = 11, APS_DATA_TX_UNICAST_SUCCESS = 8, APS_DATA_TX_UNICAST_RETRY = 1, APS_DATA_TX_UNICAST_FAILED = 0, ROUTE_DISCOVERY_INITIATED = 1, NEIGHBOR_ADDED = 2, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 0, JOIN_INDICATION = 0, CHILD_REMOVED = 1, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 0, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 247] 2023-04-20 20:10:45.633 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'43b3b1a9702a71b83ac33f7ff26d53ed9d4e27ab1a487e' 2023-04-20 20:10:45.634 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-04-20 20:10:45.639 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received trustCenterJoinHandler: [0x0a64, a4:c1:38:58:5a:75:57:63, , , 0x0000] 2023-04-20 20:10:45.640 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0x0a64, a4:c1:38:58:5a:75:57:63, , , 0x0000] 2023-04-20 20:10:45.642 INFO (MainThread) [zigpy.application] New device 0x0a64 (a4:c1:38:58:5a:75:57:63) joined the network 2023-04-20 20:10:45.647 DEBUG (MainThread) [zigpy.device] [0x0a64] Scheduling initialization 2023-04-20 20:10:45.649 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:45.653 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-04-20 20:10:45.654 INFO (MainThread) [zigpy.device] [0x0a64] Requesting 'Node Descriptor' 2023-04-20 20:10:45.655 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-04-20 20:10:45.656 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x13 request 2023-04-20 20:10:45.658 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=0, source_route=None, extended_timeout=True, tsn=19, profile_id=0, cluster_id=, data=Serialized[b'\x13d\n'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:45.664 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'35b021a9212a76e52cce121d6bf1939eef7e' 2023-04-20 20:10:45.663 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:45.679 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'54b0a1a9212aeabcb87e' 2023-04-20 20:10:45.680 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-04-20 20:10:45.682 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received findKeyTableEntry: [255] 2023-04-20 20:10:45.683 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'46b121a92a2a76e52cce121d6bf19325487e' 2023-04-20 20:10:45.693 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'65b1a1a92a2a45ac7e' 2023-04-20 20:10:45.693 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-04-20 20:10:45.696 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:45.697 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=19), 20, b'\x13d\n') 2023-04-20 20:10:45.702 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'57b621a9602a15d653944a27aa5592499d4e27b8f9cd74eff7889e7e' 2023-04-20 20:10:45.716 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'76b6a1a9602a1562dc8f7e' 2023-04-20 20:10:45.717 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-04-20 20:10:45.719 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 208] 2023-04-20 20:10:46.227 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06b6b1a9112a11b259874a25aa5592499c00fb7889c49874f1c707839f294afdb3f51fcb0f34517e' 2023-04-20 20:10:46.228 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-04-20 20:10:46.235 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=78), 220, -45, 0x0a64, 255, 255, b'\x01d\ncWuZX8\xc1\xa4\x80'] 2023-04-20 20:10:46.236 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=78), 220, -45, 0x0a64, 255, 255, b'\x01d\ncWuZX8\xc1\xa4\x80'] 2023-04-20 20:10:46.238 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=0, dst=AddrModeAddress(addr_mode=, address=), dst_ep=0, source_route=None, extended_timeout=False, tsn=78, profile_id=0, cluster_id=19, data=Serialized[b'\x01d\ncWuZX8\xc1\xa4\x80'], tx_options=, radius=0, non_member_radius=0, lqi=220, rssi=-45) 2023-04-20 20:10:46.242 INFO (MainThread) [zigpy.application] Device 0x0a64 (a4:c1:38:58:5a:75:57:63) joined the network 2023-04-20 20:10:46.244 DEBUG (MainThread) [zigpy.device] [0x0a64] Scheduling initialization 2023-04-20 20:10:46.245 DEBUG (MainThread) [zigpy.device] [0x0a64] Canceling old initialize call 2023-04-20 20:10:46.246 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 19: b'\x01d\ncWuZX8\xc1\xa4\x80' 2023-04-20 20:10:46.248 DEBUG (MainThread) [zigpy.zdo] [0x0a64:zdo] ZDO request ZDOCmd.Device_annce: [0x0A64, a4:c1:38:58:5a:75:57:63, 128] 2023-04-20 20:10:46.250 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16b6b1a9772a15b33d9e2972df0fca715dea236cb77e' 2023-04-20 20:10:46.251 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-04-20 20:10:46.253 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-04-20 20:10:46.254 INFO (MainThread) [zigpy.device] [0x0a64] Requesting 'Node Descriptor' 2023-04-20 20:10:46.255 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2023-04-20 20:10:46.255 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x15 request 2023-04-20 20:10:46.256 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=0, source_route=None, extended_timeout=True, tsn=21, profile_id=0, cluster_id=, data=Serialized[b'\x15d\n'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:46.259 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:46.263 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received childJoinHandler: [0, , 0x0a64, a4:c1:38:58:5a:75:57:63, ] 2023-04-20 20:10:46.263 DEBUG (MainThread) [bellows.zigbee.application] Received childJoinHandler frame with [0, , 0x0a64, a4:c1:38:58:5a:75:57:63, ] 2023-04-20 20:10:46.267 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'62b721a92a2a76e52cce121d6bf19328897e' 2023-04-20 20:10:46.278 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'27b7a1a92a2a69797e' 2023-04-20 20:10:46.279 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-04-20 20:10:46.280 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:46.284 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=21), 22, b'\x15d\n') 2023-04-20 20:10:46.290 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'73b421a9602a15d653944a27aa5592499d4e27befbcd72eff7ac237e' 2023-04-20 20:10:46.302 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'30b4a1a9602a1563da567e' 2023-04-20 20:10:46.303 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-04-20 20:10:46.306 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 209] 2023-04-20 20:10:46.356 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'40b4b1a96b2a15d653944a27aa5592499d4e277afbce6731f87e' 2023-04-20 20:10:46.357 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-04-20 20:10:46.362 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 2660, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=209), 22, , b''] 2023-04-20 20:10:46.364 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 2660, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=209), 22, , b''] 2023-04-20 20:10:46.370 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50b4b1a9112a15b25996ca25aa1593499c01ff7989c49874ecd363edf67c7f27aadc9c2d8fffed99d5d26ba5187e' 2023-04-20 20:10:46.371 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-04-20 20:10:46.374 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=79), 216, -46, 0x0a64, 255, 255, b'\x15\x00d\n\x02@\x80A\x11BB\x00\x00*B\x00\x00'] 2023-04-20 20:10:46.375 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32770, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=79), 216, -46, 0x0a64, 255, 255, b'\x15\x00d\n\x02@\x80A\x11BB\x00\x00*B\x00\x00'] 2023-04-20 20:10:46.377 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=79, profile_id=0, cluster_id=32770, data=Serialized[b'\x15\x00d\n\x02@\x80A\x11BB\x00\x00*B\x00\x00'], tx_options=, radius=0, non_member_radius=0, lqi=216, rssi=-46) 2023-04-20 20:10:46.381 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32770: b'\x15\x00d\n\x02@\x80A\x11BB\x00\x00*B\x00\x00' 2023-04-20 20:10:46.388 INFO (MainThread) [zigpy.device] [0x0a64] Got Node Descriptor: NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False) 2023-04-20 20:10:46.391 INFO (MainThread) [zigpy.device] [0x0a64] Discovering endpoints 2023-04-20 20:10:46.392 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-04-20 20:10:46.393 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x17 request 2023-04-20 20:10:46.394 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=0, source_route=None, extended_timeout=True, tsn=23, profile_id=0, cluster_id=, data=Serialized[b'\x17d\n'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:46.396 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:46.400 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'06b521a92a2a76e52cce121d6bf193f2e47e' 2023-04-20 20:10:46.412 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'61b5a1a92a2aca0b7e' 2023-04-20 20:10:46.413 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-04-20 20:10:46.416 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:46.418 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=23), 24, b'\x17d\n') 2023-04-20 20:10:46.423 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'17ba21a9602a15d653944a20aa5592499d4e27bcf5cd70eff7b2f77e' 2023-04-20 20:10:46.437 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72baa1a9602a1560a1cb7e' 2023-04-20 20:10:46.438 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-04-20 20:10:46.440 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 210] 2023-04-20 20:10:46.477 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02bab1a96b2a15d653944a20aa5592499d4e2779f5ce6790f27e' 2023-04-20 20:10:46.478 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-04-20 20:10:46.483 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 2660, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=210), 24, , b''] 2023-04-20 20:10:46.485 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 2660, EmberApsFrame(profileId=0, clusterId=5, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=210), 24, , b''] 2023-04-20 20:10:46.492 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12bab1a9112a15b25991ca25aa1593499c1eff7989c49874fbd163edf67f3ea5e9497e' 2023-04-20 20:10:46.492 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-04-20 20:10:46.495 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=80), 216, -46, 0x0a64, 255, 255, b'\x17\x00d\n\x01\x01'] 2023-04-20 20:10:46.497 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32773, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=80), 216, -46, 0x0a64, 255, 255, b'\x17\x00d\n\x01\x01'] 2023-04-20 20:10:46.498 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=80, profile_id=0, cluster_id=32773, data=Serialized[b'\x17\x00d\n\x01\x01'], tx_options=, radius=0, non_member_radius=0, lqi=216, rssi=-46) 2023-04-20 20:10:46.502 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32773: b'\x17\x00d\n\x01\x01' 2023-04-20 20:10:46.505 INFO (MainThread) [zigpy.device] [0x0a64] Discovered endpoints: [1] 2023-04-20 20:10:46.506 INFO (MainThread) [zigpy.device] [0x0a64] Initializing endpoints [>] 2023-04-20 20:10:46.508 INFO (MainThread) [zigpy.endpoint] [0x0a64:1] Discovering endpoint information 2023-04-20 20:10:46.509 DEBUG (MainThread) [zigpy.util] Tries remaining: 3 2023-04-20 20:10:46.510 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x19 request 2023-04-20 20:10:46.511 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=0, source_route=None, extended_timeout=True, tsn=25, profile_id=0, cluster_id=, data=Serialized[b'\x19d\n\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:46.513 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:46.521 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'22bb21a92a2a76e52cce121d6bf193144e7e' 2023-04-20 20:10:46.529 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'23bba1a92a2ae4f37e' 2023-04-20 20:10:46.530 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-04-20 20:10:46.532 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:46.533 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=25), 26, b'\x19d\n\x01') 2023-04-20 20:10:46.541 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'33b821a9602a15d653944a21aa5592499d4e27b2f7ca7d5eeff7c7df927e' 2023-04-20 20:10:46.554 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'34b8a1a9602a1561a7127e' 2023-04-20 20:10:46.554 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-04-20 20:10:46.558 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 211] 2023-04-20 20:10:46.600 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'44b8b1a96b2a15d653944a21aa5592499d4e2778f7ce67df207e' 2023-04-20 20:10:46.601 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-04-20 20:10:46.606 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 2660, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=211), 26, , b''] 2023-04-20 20:10:46.608 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 2660, EmberApsFrame(profileId=0, clusterId=4, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=211), 26, , b''] 2023-04-20 20:10:46.618 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'54b8b1a9112a15b25990ca25aa1593499c1ff37a89c49874e4df63edf66a3ea3ea9cde6e8bfbc7ded5d2868c4621b0ec7c3ba750bb7e' 2023-04-20 20:10:46.619 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-04-20 20:10:46.622 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=81), 212, -47, 0x0a64, 255, 255, b'\x19\x00d\n\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00'] 2023-04-20 20:10:46.623 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32772, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=81), 212, -47, 0x0a64, 255, 255, b'\x19\x00d\n\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00'] 2023-04-20 20:10:46.624 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=81, profile_id=0, cluster_id=32772, data=Serialized[b'\x19\x00d\n\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00'], tx_options=, radius=0, non_member_radius=0, lqi=212, rssi=-47) 2023-04-20 20:10:46.629 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device from ep 0 to ep 0, cluster 32772: b'\x19\x00d\n\x14\x01\x04\x01Q\x00\x01\x04\x04\x00\x05\x00\x00\xef\x00\x00\x02\x19\x00\n\x00' 2023-04-20 20:10:46.633 INFO (MainThread) [zigpy.endpoint] [0x0a64:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[4, 5, 61184, 0], output_clusters=[25, 10]) 2023-04-20 20:10:46.636 DEBUG (MainThread) [zigpy.zcl] Unknown cluster 0xEF00 2023-04-20 20:10:46.642 DEBUG (MainThread) [zigpy.zcl] [0x0A64:1:0x0000] Sending request header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=False, direction=, disable_default_response=0, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=, *direction=) 2023-04-20 20:10:46.646 DEBUG (MainThread) [zigpy.zcl] [0x0A64:1:0x0000] Sending request: Read_Attributes(attribute_ids=[4, 5]) 2023-04-20 20:10:46.648 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x1b request 2023-04-20 20:10:46.650 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=1, source_route=None, extended_timeout=True, tsn=27, profile_id=260, cluster_id=0, data=Serialized[b'\x00\x1b\x00\x04\x00\x05\x00'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:46.651 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:46.657 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'46b921a92a2a76e52cce121d6bf193ce237e' 2023-04-20 20:10:46.667 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'65b9a1a92a2a47817e' 2023-04-20 20:10:46.668 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e' 2023-04-20 20:10:46.669 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:46.671 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=27), 28, b'\x00\x1b\x00\x04\x00\x05\x00') 2023-04-20 20:10:46.677 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'57be21a9602a15d653904b25aa5493499d4e27b0f1c96790fdc2638cfc588a7e' 2023-04-20 20:10:46.689 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'76bea1a9602a15660fa67e' 2023-04-20 20:10:46.690 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e' 2023-04-20 20:10:46.694 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 212] 2023-04-20 20:10:46.714 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06beb1a96b2a15d653904b25aa5493499d4e277ff1ce677ae67e' 2023-04-20 20:10:46.714 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e' 2023-04-20 20:10:46.718 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 2660, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=212), 28, , b''] 2023-04-20 20:10:46.719 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 2660, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=212), 28, , b''] 2023-04-20 20:10:46.737 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16beb1a9112a15b658944a24ab1593499c1cef6589c49874dede7888f87e3fe5fb928a35cacdf7eb8aa858f83f50d99d013ea5ea378415cb7c102380e204857e' 2023-04-20 20:10:46.737 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e' 2023-04-20 20:10:46.743 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=82), 200, -50, 0x0a64, 255, 255, b'\x18\x1b\x01\x04\x00\x00B\x10_TZE200_z1tyspqw\x05\x00\x00B\x06TS0601'] 2023-04-20 20:10:46.744 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=, groupId=0, sequence=82), 200, -50, 0x0a64, 255, 255, b'\x18\x1b\x01\x04\x00\x00B\x10_TZE200_z1tyspqw\x05\x00\x00B\x06TS0601'] 2023-04-20 20:10:46.746 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=1, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=1, source_route=None, extended_timeout=False, tsn=82, profile_id=260, cluster_id=0, data=Serialized[b'\x18\x1b\x01\x04\x00\x00B\x10_TZE200_z1tyspqw\x05\x00\x00B\x06TS0601'], tx_options=, radius=0, non_member_radius=0, lqi=200, rssi=-50) 2023-04-20 20:10:46.749 DEBUG (MainThread) [zigpy.zcl] [0x0A64:1:0x0000] Received ZCL frame: b'\x18\x1b\x01\x04\x00\x00B\x10_TZE200_z1tyspqw\x05\x00\x00B\x06TS0601' 2023-04-20 20:10:46.751 DEBUG (MainThread) [zigpy.zcl] [0x0A64:1:0x0000] Decoded ZCL frame header: ZCLHeader(frame_control=FrameControl(frame_type=, is_manufacturer_specific=0, direction=, disable_default_response=1, reserved=0, *is_cluster=False, *is_general=True), tsn=27, command_id=1, *direction=) 2023-04-20 20:10:46.757 DEBUG (MainThread) [zigpy.zcl] [0x0A64:1:0x0000] Decoded ZCL frame: Basic:Read_Attributes_rsp(status_records=[ReadAttributeRecord(attrid=0x0004, status=, value=TypeValue(type=CharacterString, value='_TZE200_z1tyspqw')), ReadAttributeRecord(attrid=0x0005, status=, value=TypeValue(type=CharacterString, value='TS0601'))]) 2023-04-20 20:10:46.763 INFO (MainThread) [zigpy.device] [0x0a64] Read model 'TS0601' and manufacturer '_TZE200_z1tyspqw' from > 2023-04-20 20:10:46.764 INFO (MainThread) [zigpy.device] [0x0a64] Discovered basic device information for 2023-04-20 20:10:46.765 DEBUG (MainThread) [zigpy.application] Device is initialized 2023-04-20 20:10:46.771 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_z1tyspqw TS0601 (a4:c1:38:58:5a:75:57:63) 2023-04-20 20:10:46.772 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.774 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1, 2, 242} {1} 2023-04-20 20:10:46.775 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.776 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {1, 2, 41, 42, 242, 51, 21, 31} {1} 2023-04-20 20:10:46.777 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.778 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1} 2023-04-20 20:10:46.779 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.780 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1} 2023-04-20 20:10:46.781 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.782 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint 2023-04-20 20:10:46.782 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.783 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint 2023-04-20 20:10:46.784 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.786 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint 2023-04-20 20:10:46.787 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.788 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint 2023-04-20 20:10:46.789 DEBUG (MainThread) [zigpy.quirks.registry] Considering 2023-04-20 20:10:46.790 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {1} 2023-04-20 20:10:46.810 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'RSSISensor' using ['basic'] 2023-04-20 20:10:46.811 DEBUG (MainThread) [homeassistant.components.zha.core.discovery] 'sensor' component -> 'LQISensor' using ['basic'] 2023-04-20 20:10:46.824 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x0A64:a4:c1:38:58:5a:75:57:63 entering async_device_initialized - is_new_join: True 2023-04-20 20:10:46.825 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x0A64:a4:c1:38:58:5a:75:57:63 has joined the ZHA zigbee network 2023-04-20 20:10:46.828 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0A64](TS0601): started configuration 2023-04-20 20:10:46.834 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0A64:ZDO](TS0601): 'async_configure' stage succeeded 2023-04-20 20:10:46.849 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:58:5a:75:57:63, 1, 0, 4, '_TZE200_z1tyspqw') params: FOREIGN KEY constraint failed 2023-04-20 20:10:46.851 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0A64:1:0x0000]: Configuring cluster attribute reporting 2023-04-20 20:10:46.852 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0A64:1:0x0000]: finished channel configuration 2023-04-20 20:10:46.853 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0A64:1:0xef00]: Performing cluster binding 2023-04-20 20:10:46.857 DEBUG (MainThread) [zigpy.device] [0x0a64] Extending timeout for 0x1d request 2023-04-20 20:10:46.858 DEBUG (MainThread) [bellows.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0A64), dst_ep=0, source_route=None, extended_timeout=True, tsn=29, profile_id=0, cluster_id=, data=Serialized[b'\x1dcWuZX8\xc1\xa4\x01\x00\xef\x03q\x86%\xfe\xff\x95\x8e\xdc\x01'], tx_options=, radius=0, non_member_radius=0, lqi=None, rssi=None) 2023-04-20 20:10:46.861 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (a4:c1:38:58:5a:75:57:63, True) 2023-04-20 20:10:46.864 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0A64:1:0x0019]: finished channel configuration 2023-04-20 20:10:46.869 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'62bf21a92a2a76e52cce121d6bf193c3e27e' 2023-04-20 20:10:46.872 DEBUG (MainThread) [zigpy.appdb] Error handling '_save_attribute' event with (a4:c1:38:58:5a:75:57:63, 1, 0, 5, 'TS0601') params: FOREIGN KEY constraint failed 2023-04-20 20:10:46.883 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'27bfa1a92a2a6b547e' 2023-04-20 20:10:46.884 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e' 2023-04-20 20:10:46.886 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received setExtendedTimeout: [] 2023-04-20 20:10:46.888 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (, 0x0a64, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=29), 30, b'\x1dcWuZX8\xc1\xa4\x01\x00\xef\x03q\x86%\xfe\xff\x95\x8e\xdc\x01') 2023-04-20 20:10:46.897 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'73bc21a9602a15d653944a04aa5592499d4e27b6f3d87ae8aab339d1c4bf9ba6eb22dd1e09da3924405cb58d6d4f7e' 2023-04-20 20:10:46.911 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'30bca1a9602a1567097f7e' 2023-04-20 20:10:46.912 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e' 2023-04-20 20:10:46.916 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received sendUnicast: [, 213] 2023-04-20 20:10:47.080 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'40bcb1a96b2a15d653944a04aa5592499d4e277ef3ce6767347e' 2023-04-20 20:10:47.081 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e' 2023-04-20 20:10:47.087 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received messageSentHandler: [, 2660, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=213), 30, , b''] 2023-04-20 20:10:47.088 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [, 2660, EmberApsFrame(profileId=0, clusterId=33, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=213), 30, , b''] 2023-04-20 20:10:47.112 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50bcb1a9112a15b259b5ca25aa1593499c1dff7989c49874ffdb638b444c7e' 2023-04-20 20:10:47.113 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e' 2023-04-20 20:10:47.119 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received incomingMessageHandler: [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=83), 216, -46, 0x0a64, 255, 255, b'\x1d\x00'] 2023-04-20 20:10:47.121 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [, EmberApsFrame(profileId=0, clusterId=32801, sourceEndpoint=0, destinationEndpoint=0, options=, groupId=0, sequence=83), 216, -46, 0x0a64, 255, 255, b'\x1d\x00'] 2023-04-20 20:10:47.124 DEBUG (MainThread) [zigpy.application] Received a packet: ZigbeePacket(src=AddrModeAddress(addr_mode=, address=0x0A64), src_ep=0, dst=AddrModeAddress(addr_mode=, address=0x0000), dst_ep=0, source_route=None, extended_timeout=False, tsn=83, profile_id=0, cluster_id=32801, data=Serialized[b'\x1d\x00'], tx_options=, radius=0, non_member_radius=0, lqi=216, rssi=-46) ```

TRV1

I hope my thread is right. Its my first post here on github and Im a home assistant beginner but I have connected and configured some devices succesfull but this TRV I cant controll via HA

Im not sure if I posted the debug log right. If no, please tell me what you need

Can anybody help me to get this TRV working ?

Thank you and Regards Thomas

MattWestb commented 1 year ago

Its one OME of ritek that one user have making one working quirk but you need installing it as local quirk and adding you device ID in the signature. https://github.com/jacekk015/zha_quirks#ts0601_trv_rtitekpy

berowicz commented 1 year ago

ritek

You mean this one ? This is TZE200a4bpgplm mine is TZE200z1tyspqw

Should I replace the "a4bpgplm" to my "z1tyspqw" ? Or what do you mean ?

Thank you

MattWestb commented 1 year ago

Yep if you only having one type you can changing it and it shall working. If you is having both types you need adding the new one ad one new entry so both is working.

Normally is tuya TRVs made of one manufacture and is selling them under different names and doing sub version of then so its very likely its working 100% as the original rtitek ones if no configuring debug logging and posting on new issue on the git hub from the quirk and hi is very likely helping you fixing it.

berowicz commented 1 year ago

After setting the quirk its looking like this:

TRVquirk

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0301",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0004",
        "0x0005",
        "0x000f",
        "0x0201",
        "0x0204",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "2": {
      "profile_id": 260,
      "device_type": "0x0000",
      "in_clusters": [
        "0x0006"
      ],
      "out_clusters": []
    },
    "3": {
      "profile_id": 260,
      "device_type": "0x000d",
      "in_clusters": [
        "0x000d"
      ],
      "out_clusters": []
    },
    "4": {
      "profile_id": 260,
      "device_type": "0x000d",
      "in_clusters": [
        "0x000d"
      ],
      "out_clusters": []
    },
    "5": {
      "profile_id": 260,
      "device_type": "0x000d",
      "in_clusters": [
        "0x000d"
      ],
      "out_clusters": []
    },
    "6": {
      "profile_id": 260,
      "device_type": "0x000d",
      "in_clusters": [
        "0x000d"
      ],
      "out_clusters": []
    },
    "7": {
      "profile_id": 260,
      "device_type": "0x000d",
      "in_clusters": [
        "0x000d"
      ],
      "out_clusters": []
    }
  },
  "manufacturer": "_TZE200_z1tyspqw",
  "model": "TS0601",
  "class": "ts0601_trv_rtitek.Rti"
}

When I change the temperature, I hear the TRV for a very short time. So its reacting. But in HA the temperature gets back to 15 degree. Also the "connected" logo is blinking in the display the whole. Its looking like the pairing process.

I dont have any idea, what Im making wrong

github-actions[bot] commented 10 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.