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
685 stars 638 forks source link

[Device Support Request] Improving "TS0601" "_TZE200_b6wax7g0" TRV thermostatic radiator valve #1123

Open Youpimatin opened 2 years ago

Youpimatin commented 2 years ago

Hello, (I didn't know where I should post, so feel free to merge with the relevant subject if there is one in particular, maybe in the discussions, I don't know.) I bought a dozen of these TRV (on Amazon.fr, Qiumi brand) to install in my house : https://zigbee.blakadder.com/Beca_BRT-100.html I chose them because I looked at the blackladder page and saw it was supported in ZHA (and Zigbee2MQTT) In reality it's not the case for all parameters (battery, child lock, window detection)

I used custom_zha_quirk ts0601_trv.py (dated 2021-09-22) "ts0601_trv.MoesHY368_Type1new"

There are 3 entities :

I didn't want to install Tuya app on my phone to check if these others parameters are supported, but if the user manual is correct, on the image shown, you can see :

On the valve, you can also see if it's open or closed (just a LED, it's binary), in reality I counted a minimum of 5 positions of the motor (maybe 0%, 25%, 50%, 75%, 100%), this would be really cool if the position was published ! (even more if we could force a position)

Other settings exists in the documentation, you can change or check them in the valve menus :

Pairing log :

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
[0xf01e] Delivery error for seq # 0x65, on endpoint id 0 cluster 0x0034: message send failure
Sending 'zdo_leave_req' failed: [0xf01e:0:0x0034]: Message send failure
Device 0xc7f4 (84:fd:27:ff:fe:a5:a9:fb) joined the network
[0xc7f4] Requesting 'Node Descriptor'
Tries remaining: 2
[0xc7f4] Extending timeout for 0x6a request
Device 0xc7f4 (84:fd:27:ff:fe:a5:a9:fb) joined the network
Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
Device 0xc7f4 (84:fd:27:ff:fe:a5:a9:fb) joined the network
Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
[0xc7f4:zdo] ZDO request ZDOCmd.Device_annce: [0xC7F4, 84:fd:27:ff:fe:a5:a9:fb, 128]
[0xc7f4] Node Descriptor: NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=0, *allocate_address=True, *complex_descriptor_available=False, *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, *is_valid=True, *logical_type=<LogicalType.EndDevice: 2>, *user_descriptor_available=False)
[0xc7f4] Discovering endpoints
Tries remaining: 3
[0xc7f4] Extending timeout for 0x6c request
[0xc7f4] Discovered endpoints: [1]
[0xc7f4:1] Discovering endpoint information
Tries remaining: 3
[0xc7f4] Extending timeout for 0x6e request
[0xc7f4:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10])
Unknown cluster 61184
[0xc7f4] Extending timeout for 0x70 request
[0xc7f4:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=112 command_id=Command.Read_Attributes_rsp>
[0xc7f4:1] Manufacturer: _TZE200_b6wax7g0
[0xc7f4:1] Model: TS0601
Checking quirks for _TZE200_b6wax7g0 TS0601 (84:fd:27:ff:fe:a5:a9:fb)
Considering <class 'ts0601_trv.MoesHY368_Type1new'>
Found custom device replacement for 84:fd:27:ff:fe:a5:a9:fb: <class 'ts0601_trv.MoesHY368_Type1new'>
device - 0xC7F4:84:fd:27:ff:fe:a5:a9:fb entering async_device_initialized - is_new_join: True
device - 0xC7F4:84:fd:27:ff:fe:a5:a9:fb has joined the ZHA zigbee network
[0xC7F4](TS0601): started configuration
[0xC7F4:ZDO](TS0601): 'async_configure' stage succeeded
[0xC7F4:1:0x0201]: bound 'thermostat' cluster: Status.SUCCESS
[0xC7F4:1:0x0201]: attr reporting for '{'local_temp': (30, 900, 25), 'occupied_cooling_setpoint': (30, 900, 25), 'occupied_heating_setpoint': (30, 900, 25), 'unoccupied_cooling_setpoint': (30, 900, 25)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xC7F4:1:0x0201]: attr reporting for '{'unoccupied_heating_setpoint': (30, 900, 25), 'running_mode': (30, 900, 25), 'running_state': (30, 900, 5), 'system_mode': (30, 900, 25)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xC7F4:1:0x0201]: attr reporting for '{'occupancy': (30, 900, 1), 'pi_cooling_demand': (30, 900, 5), 'pi_heating_demand': (30, 900, 5)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xC7F4:1:0x0201]: finished channel configuration
[0xC7F4:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
[0xC7F4:1:0x0006]: reporting 'on_off' attr on 'on_off' cluster: 0/900/1: Result: '[ConfigureReportingResponseRecord(status=0)]'
[0xC7F4:1:0x0000]: finished channel configuration
[0xC7F4:1:0x0001]: bound 'power' cluster: Status.SUCCESS
[0xC7F4:1:0x0001]: reporting 'battery_voltage' attr on 'power' cluster: 3600/10800/1: Result: '[ConfigureReportingResponseRecord(status=0)]'
[0xC7F4:1:0x0019]: finished channel configuration
[0xC7F4:1:0x0201]: 'async_configure' stage succeeded
[0xC7F4:1:0x0006]: 'async_configure' stage failed: 'ConfigureReportingResponseRecord' object is not subscriptable
[0xC7F4:1:0x0000]: 'async_configure' stage succeeded
[0xC7F4:1:0x0001]: 'async_configure' stage failed: 'ConfigureReportingResponseRecord' object is not subscriptable
[0xC7F4:1:0x0019]: 'async_configure' stage succeeded
[0xC7F4](TS0601): completed configuration
[0xC7F4](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_b6wax7g0 TS0601', ieee='84:fd:27:ff:fe:a5:a9:fb', last_seen=1635928619.9460387)
[0xC7F4](TS0601): started initialization
[0xC7F4:ZDO](TS0601): 'async_initialize' stage succeeded
[0xC7F4:1:0x0201]: initializing channel: from_cache: False
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[system_mode] = SystemMode.Heat
[0xC7F4:1:0x0201]: read attributes: Success: {}. Failed: {'abs_min_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_max_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_min_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_max_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xC7F4:1:0x0201]: read attributes: Success: {}. Failed: {'max_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'max_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'min_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'min_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[ctrl_seqe_of_oper] = ControlSequenceOfOperation.Heating_Only
[0xC7F4:1:0x0201]: read attributes: Success: {'ctrl_seqe_of_oper': <ControlSequenceOfOperation.Heating_Only: 2>}. Failed: {'local_temp': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'occupancy': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'occupied_cooling_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xC7F4:1:0x0201]: read attributes: Success: {}. Failed: {'occupied_heating_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'pi_cooling_demand': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'pi_heating_demand': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'running_mode': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[system_mode] = SystemMode.Heat
[0xC7F4:1:0x0201]: read attributes: Success: {'system_mode': <SystemMode.Heat: 4>}. Failed: {'running_state': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'unoccupied_heating_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'unoccupied_cooling_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xC7F4:1:0x0201]: finished channel configuration
[0xC7F4:1:0x0006]: initializing channel: from_cache: False
[0xC7F4:1:0x0006]: finished channel configuration
[0xC7F4:1:0x0000]: initializing channel: from_cache: False
[0xC7F4:1:0x0000]: finished channel configuration
[0xC7F4:1:0x0001]: initializing channel: from_cache: False
[0xC7F4:1:0x0001]: finished channel configuration
[0xC7F4:1:0x0019]: initializing channel: from_cache: False
[0xC7F4:1:0x0019]: finished channel configuration
[0xC7F4:1:0x0201]: 'async_initialize' stage succeeded
[0xC7F4:1:0x0006]: 'async_initialize' stage succeeded
[0xC7F4:1:0x0000]: 'async_initialize' stage succeeded
[0xC7F4:1:0x0001]: 'async_initialize' stage succeeded
[0xC7F4:1:0x0019]: 'async_initialize' stage succeeded
[0xC7F4](TS0601): power source: Battery or Unknown
[0xC7F4](TS0601): completed initialization
[0xC7F4:1:0x0006]: attempting to update onoff state - from cache: True
[0xc7f4:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
[0xc7f4:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_req
[0xc7f4:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=38 command_id=Command.Report_Attributes>
[0xc7f4:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=64>), Attribute(attrid=65506, value=<TypeValue type=uint8_t, value=31>), Attribute(attrid=65508, value=<TypeValue type=uint8_t, value=0>)]]
[0xc7f4:1:0x0000] Attribute report received: app_version=64, 65506=31, 65508=0
[0x6599:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=40 command_id=Command.Report_Attributes>
[0x6599:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[0x6599:11:0x0000] Attribute report received: app_version=66
[0xc7f4:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=39 command_id=Command.Report_Attributes>
[0xc7f4:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65503, value=<TypeValue type=CharacterString, value=5)T)U)>)]]
[0xc7f4:1:0x0000] Attribute report received: 65503=5)T)U)
[0xc7f4:1:0x000a] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=40 command_id=Command.Read_Attributes>
[0xc7f4:1:0x000a] ZCL request 0x0000: [[7]]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=41 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=155, command_id=1025, function=0, data=[1, 1])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=42 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=156, command_id=514, function=0, data=[4, 0, 0, 0, 15])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[occupied_heating_setpoint] = 1500
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'occupied_heating_setpoint' = 1500 update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=43 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=157, command_id=515, function=0, data=[4, 0, 0, 0, 180])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1800
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'local_temp' = 1800 update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=44 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=158, command_id=260, function=0, data=[1, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=45 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=159, command_id=517, function=0, data=[4, 0, 0, 0, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=46 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=160, command_id=1031, function=0, data=[1, 1])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=47 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=161, command_id=264, function=0, data=[1, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=48 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=162, command_id=1033, function=0, data=[1, 1])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=49 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=163, command_id=269, function=0, data=[1, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=50 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=164, command_id=526, function=0, data=[4, 0, 0, 0, 58])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=51 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=165, command_id=101, function=0, data=[36, 6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=52 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=166, command_id=615, function=0, data=[4, 0, 0, 1, 44])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[max_heat_setpoint_limit] = 30000
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'max_heat_setpoint_limit' = 30000 update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=53 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=167, command_id=616, function=0, data=[4, 0, 0, 0, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=54 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=168, command_id=617, function=0, data=[4, 0, 0, 0, 0])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[boost_duration_seconds] = 0
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'boost_duration_seconds' = 0 update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=55 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=169, command_id=362, function=0, data=[1, 0])]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=56 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=170, command_id=619, function=0, data=[4, 0, 0, 0, 20])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[comfort_heating_setpoint] = 2000
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'comfort_heating_setpoint' = 2000 update
[0xae6a:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=97 command_id=Command.Report_Attributes>
[0xae6a:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0xae6a:1:0x0000] Attribute report received: app_version=69
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=57 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=171, command_id=620, function=0, data=[4, 0, 0, 0, 45])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[eco_heating_setpoint] = 4500
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'eco_heating_setpoint' = 4500 update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=58 command_id=1>
[0xc7f4:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=172, command_id=621, function=0, data=[4, 0, 0, 0, 5])]
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[valve_open_percentage] = 5
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[running_mode] = RunningMode.Heat
[0xC7F4:1:0x0201]: Attribute report 'MoesThermostatNew'[running_state] = RunningState.Heat_State_On
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'valve_open_percentage' = 5 update
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'running_mode' = RunningMode.Heat update
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'running_state' = RunningState.Heat_State_On update
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=59 command_id=36>
[0xc7f4:1:0xef00] ZCL request 0x0024: [[0, 155]]
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=False> manufacturer=4098 tsn=135 command_id=Command.Default_Response>
[0x05a5:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=35 command_id=Command.Report_Attributes>
[0x05a5:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0x05a5:1:0x0000] Attribute report received: app_version=69
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=60 command_id=17>
[0xc7f4:1:0xef00] Unknown cluster-specific command 17
[0xc7f4:1:0xef00] ZCL request 0x0011: b'\x00\x9c@'
[0xc7f4:1:0xef00] No handler for cluster command 17
[0xc7f4:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=60 command_id=17>
[0xc7f4:1:0xef00] Unknown cluster-specific command 17
[0xc7f4:1:0xef00] ZCL request 0x0011: b'\x00\x9c@'
[0xc7f4:1:0xef00] No handler for cluster command 17
[0x8e5a:3:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=23 command_id=Command.Report_Attributes>
[0x8e5a:3:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
[0x8e5a:3:0x0006] Attribute report received: on_off=0
[0xeb95:11:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=80 command_id=Command.Report_Attributes>
[0xeb95:11:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
[0xeb95:11:0x0006] Attribute report received: on_off=0
[0xb2d6:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=120 command_id=Command.Report_Attributes>
[0xb2d6:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0xb2d6:1:0x0000] Attribute report received: app_version=69
[0xff60:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=126 command_id=Command.Report_Attributes>
[0xff60:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[0xff60:11:0x0000] Attribute report received: app_version=66

Device signature :

{
  "node_descriptor": "NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=0, *allocate_address=True, *complex_descriptor_available=False, *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, *is_valid=True, *logical_type=<LogicalType.EndDevice: 2>, *user_descriptor_available=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0301",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0201",
        "0x0204",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_b6wax7g0",
  "model": "TS0601",
  "class": "ts0601_trv.MoesHY368_Type1new"
}

I don't kow zigbee, and don't know how I can help, but here is the information I can get. I can test anything to get more information, or modified quirks ...

I don't mind if it breaks temporarily my house heating (I have only two of these valves installed for now)

MattWestb commented 2 years ago

I can not answering all your question then i dont have the TRV but some i can. This TRV is only supporting setting the temperature and reporting it in 1.0° C and its one fix for getting it right in ZHA (it was 10 off) Its one open request for it https://github.com/zigpy/zha-device-handlers/issues/1082 merged on 22 October. The TRV is not reporting battery % only battery low. Its one TRV and and dont have one "off" mode then its always working and have antifreeze protection but i thing the switch is trying simulating turning it off. If you like turning the TRV on and off you is loosing algorithm for keeping the temperature in the room (its taking over one day for the TRV to calculating it) and and is better having one manual central valve for you heating and truing it on and off then you like it war or cold. The TRV mode changes shall being possible doing with presets on the GUI (the . . .) as presets and also Schedule shall being implanted but you must do the setting of it on the cluster and the other things you is missing is implanted on the device clusters so you can using them in automatons. You need looking on the Moes clusters and finding your functions and how to using them in your automation and implanting them in one custom card you is making for getting all working all the way.

Youpimatin commented 2 years ago

Thanks for the answers.

There is another problem in the thermostat min-max values, they seem to be off by a factor of 10 (at least the max is 300 when it should be 30 maybe.... for the min I don't know if it should be 7°C or 0.7°C)

Mini-Maxi

I'm surprised for the 1°C increment (maybe the translation of the values is not optimal, does the values come from the valve in tenth of a degree ?) I must find how to spy on the ZHA communication channel, to see how are the raw values transmitted by the TRV.

I also found this page from zigbee2mqtt : BRT-100-TRV It is said that the battery values and the valve opening are published in %

MattWestb commented 2 years ago

The min and max setpoint you is setting and reading on the thermostat cluster (0x0201) with attribute 0x0015 and 0x0016.

For see what the TRV is sending and ZHA is sending to it you shall configuring in HA:

    zhaquirks.tuya: debug

The set the min and max on the cluster and see what is possible setting on the TRV and what ZHA is is putting in for limits in the GUI.

With the 1°C is somthing that is made in the TRVs firmware and is out of our control and cant being fixed in our side.

I think your 300.0 °C is because you have setting somthing out of range for the TRV and 7.0°C is standard under limit in ZHA if you not have setting it on the cluster.

PR for fixing not good working functions is more then welcome !!

jacekk015 commented 2 years ago

@Youpimatin if you wanna to move this forward please enable debug logging in configuration.yaml

logger:
  default: info
  logs:
    homeassistant.components.zha: debug
    zigpy: debug
    zhaquirks: debug

and the resend pairing log

MattWestb commented 2 years ago

I think the fix is working OK but the implementation is little not so elegant and can being better made then making more or less one new device instead for one If / else and changing the setpoing in the quirk. https://github.com/zigpy/zha-device-handlers/pull/1082

jacekk015 commented 2 years ago

The problem is[with temperature] that someone is using uint, which is unsigned int type and try to put a float type in it

2021-07-30 12:39:37 DEBUG (MainThread) [zhaquirks.tuya] [0xda0c:1:0x0201] Mapping standard occupied_heating_setpoint (0x0012) with value 2650 to custom {514: **26.5**}
2021-07-30 12:39:38 DEBUG (MainThread) [zhaquirks.tuya] [0xda0c:1:0xef00] Received value [0, 0, 0, 26] for attribute 0x0202 (command 0x0001)
MOES_TARGET_TEMP_ATTR: ("target_temperature", **t.uint32_t**),

Besides I would like to see a full proper DEBUG log, to exclude any mistakes and misunderstandings.

Youpimatin commented 2 years ago

OK, I thought i was in debug mode for the log, but here is a new attempt : (it's the content of the log from the pairing page of ZHA, is it the good one, or do we need the general log from HA?)

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
Device 0xef69 (84:fd:27:ff:fe:a5:a9:fb) joined the network
[0xef69] Requesting 'Node Descriptor'
Tries remaining: 2
[0xef69] Extending timeout for 0xe1 request
Device 0xef69 (84:fd:27:ff:fe:a5:a9:fb) joined the network
Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
Device 0xef69 (84:fd:27:ff:fe:a5:a9:fb) joined the network
Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
[0xef69:zdo] ZDO request ZDOCmd.Device_annce: [0xEF69, 84:fd:27:ff:fe:a5:a9:fb, 128]
[0xef69] Node Descriptor: NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=0, *allocate_address=True, *complex_descriptor_available=False, *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, *is_valid=True, *logical_type=<LogicalType.EndDevice: 2>, *user_descriptor_available=False)
[0xef69] Discovering endpoints
Tries remaining: 3
[0xef69] Extending timeout for 0xe3 request
[0xef69] Discovered endpoints: [1]
[0xef69:1] Discovering endpoint information
Tries remaining: 3
[0xef69] Extending timeout for 0xe5 request
[0xef69:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=81, device_version=1, input_clusters=[0, 4, 5, 61184], output_clusters=[25, 10])
Unknown cluster 61184
[0xef69] Extending timeout for 0xe7 request
[0xef69:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=231 command_id=Command.Read_Attributes_rsp>
[0xef69:1] Manufacturer: _TZE200_b6wax7g0
[0xef69:1] Model: TS0601
Checking quirks for _TZE200_b6wax7g0 TS0601 (84:fd:27:ff:fe:a5:a9:fb)
Considering <class 'ts0601_trv.MoesHY368_Type1new'>
Found custom device replacement for 84:fd:27:ff:fe:a5:a9:fb: <class 'ts0601_trv.MoesHY368_Type1new'>
device - 0xEF69:84:fd:27:ff:fe:a5:a9:fb entering async_device_initialized - is_new_join: True
device - 0xEF69:84:fd:27:ff:fe:a5:a9:fb has joined the ZHA zigbee network
[0xEF69](TS0601): started configuration
[0xEF69:ZDO](TS0601): 'async_configure' stage succeeded
[0xEF69:1:0x0201]: bound 'thermostat' cluster: Status.SUCCESS
[0xEF69:1:0x0201]: attr reporting for '{'local_temp': (30, 900, 25), 'occupied_cooling_setpoint': (30, 900, 25), 'occupied_heating_setpoint': (30, 900, 25), 'unoccupied_cooling_setpoint': (30, 900, 25)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xEF69:1:0x0201]: attr reporting for '{'unoccupied_heating_setpoint': (30, 900, 25), 'running_mode': (30, 900, 25), 'running_state': (30, 900, 5), 'system_mode': (30, 900, 25)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xEF69:1:0x0201]: attr reporting for '{'occupancy': (30, 900, 1), 'pi_cooling_demand': (30, 900, 5), 'pi_heating_demand': (30, 900, 5)}' on 'thermostat': ConfigureReportingResponseRecord(status=0)
[0xEF69:1:0x0201]: finished channel configuration
[0xEF69:1:0x0006]: bound 'on_off' cluster: Status.SUCCESS
[0xEF69:1:0x0006]: reporting 'on_off' attr on 'on_off' cluster: 0/900/1: Result: '[ConfigureReportingResponseRecord(status=0)]'
[0xEF69:1:0x0000]: finished channel configuration
[0xEF69:1:0x0001]: bound 'power' cluster: Status.SUCCESS
[0xEF69:1:0x0001]: reporting 'battery_voltage' attr on 'power' cluster: 3600/10800/1: Result: '[ConfigureReportingResponseRecord(status=0)]'
[0xEF69:1:0x0019]: finished channel configuration
[0xEF69:1:0x0201]: 'async_configure' stage succeeded
[0xEF69:1:0x0006]: 'async_configure' stage failed: 'ConfigureReportingResponseRecord' object is not subscriptable
[0xEF69:1:0x0000]: 'async_configure' stage succeeded
[0xEF69:1:0x0001]: 'async_configure' stage failed: 'ConfigureReportingResponseRecord' object is not subscriptable
[0xEF69:1:0x0019]: 'async_configure' stage succeeded
[0xEF69](TS0601): completed configuration
[0xEF69](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_b6wax7g0 TS0601', ieee='84:fd:27:ff:fe:a5:a9:fb', last_seen=1636306009.3184533)
[0xEF69](TS0601): started initialization
[0xEF69:ZDO](TS0601): 'async_initialize' stage succeeded
[0xEF69:1:0x0201]: initializing channel: from_cache: False
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[system_mode] = SystemMode.Heat
[0xEF69:1:0x0201]: read attributes: Success: {}. Failed: {'abs_min_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_max_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_min_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'abs_max_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xEF69:1:0x0201]: read attributes: Success: {}. Failed: {'max_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'max_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'min_cool_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'min_heat_setpoint_limit': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[ctrl_seqe_of_oper] = ControlSequenceOfOperation.Heating_Only
[0xEF69:1:0x0201]: read attributes: Success: {'ctrl_seqe_of_oper': <ControlSequenceOfOperation.Heating_Only: 2>}. Failed: {'local_temp': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'occupancy': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'occupied_cooling_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xEF69:1:0x0201]: read attributes: Success: {}. Failed: {'occupied_heating_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'pi_cooling_demand': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'pi_heating_demand': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'running_mode': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[system_mode] = SystemMode.Heat
[0xEF69:1:0x0201]: read attributes: Success: {'system_mode': <SystemMode.Heat: 4>}. Failed: {'running_state': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'unoccupied_heating_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>, 'unoccupied_cooling_setpoint': <Status.UNSUPPORTED_ATTRIBUTE: 134>}
[0xEF69:1:0x0201]: finished channel configuration
[0xEF69:1:0x0006]: initializing channel: from_cache: False
[0xEF69:1:0x0006]: finished channel configuration
[0xEF69:1:0x0000]: initializing channel: from_cache: False
[0xEF69:1:0x0000]: finished channel configuration
[0xEF69:1:0x0001]: initializing channel: from_cache: False
[0xEF69:1:0x0001]: finished channel configuration
[0xEF69:1:0x0019]: initializing channel: from_cache: False
[0xEF69:1:0x0019]: finished channel configuration
[0xEF69:1:0x0201]: 'async_initialize' stage succeeded
[0xEF69:1:0x0006]: 'async_initialize' stage succeeded
[0xEF69:1:0x0000]: 'async_initialize' stage succeeded
[0xEF69:1:0x0001]: 'async_initialize' stage succeeded
[0xEF69:1:0x0019]: 'async_initialize' stage succeeded
[0xEF69](TS0601): power source: Battery or Unknown
[0xEF69](TS0601): completed initialization
[0xEF69:1:0x0006]: attempting to update onoff state - from cache: True
[0xef69:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
[0xef69:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_req
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=22 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=20, command_id=616, function=0, data=[4, 0, 0, 0, 25])]
[0x4132:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=29 command_id=Command.Report_Attributes>
[0x4132:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[0x4132:11:0x0000] Attribute report received: app_version=66
[0xef69:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=23 command_id=Command.Report_Attributes>
[0xef69:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65503, value=<TypeValue type=CharacterString, value=��)��)��)>)]]
[0xef69:1:0x0000] Attribute report received: 65503=��)��)��)
[0xef69:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=24 command_id=Command.Report_Attributes>
[0xef69:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=64>), Attribute(attrid=65506, value=<TypeValue type=uint8_t, value=31>), Attribute(attrid=65508, value=<TypeValue type=uint8_t, value=0>)]]
[0xef69:1:0x0000] Attribute report received: app_version=64, 65506=31, 65508=0
[0xef69:1:0x000a] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=25 command_id=Command.Read_Attributes>
[0xef69:1:0x000a] ZCL request 0x0000: [[7]]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=26 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=14, command_id=616, function=0, data=[4, 0, 0, 0, 50])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=27 command_id=36>
[0xef69:1:0xef00] ZCL request 0x0024: [[0, 14]]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=False> manufacturer=4098 tsn=238 command_id=Command.Default_Response>
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=28 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=14, command_id=616, function=0, data=[4, 0, 0, 0, 25])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=29 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=15, command_id=515, function=0, data=[4, 0, 0, 0, 190])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1900
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'local_temp' = 1900 update
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=30 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=16, command_id=526, function=0, data=[4, 0, 0, 0, 61])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=31 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=16, command_id=616, function=0, data=[4, 0, 0, 0, 50])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=32 command_id=17>
[0xef69:1:0xef00] Unknown cluster-specific command 17
[0xef69:1:0xef00] ZCL request 0x0011: b'\x00\x10@'
[0xef69:1:0xef00] No handler for cluster command 17
[0x05a5:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=94 command_id=Command.Report_Attributes>
[0x05a5:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0x05a5:1:0x0000] Attribute report received: app_version=69
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=32 command_id=17>
[0xef69:1:0xef00] Unknown cluster-specific command 17
[0xef69:1:0xef00] ZCL request 0x0011: b'\x00\x10@'
[0xef69:1:0xef00] No handler for cluster command 17
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=33 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=16, command_id=514, function=0, data=[4, 0, 0, 0, 21])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[occupied_heating_setpoint] = 2100
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'occupied_heating_setpoint' = 2100 update
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=34 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=17, command_id=517, function=0, data=[4, 0, 0, 0, 0])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=35 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=18, command_id=526, function=0, data=[4, 0, 0, 0, 58])]
[0x8e5a:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=47 command_id=Command.Report_Attributes>
[0x8e5a:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0x8e5a:1:0x0000] Attribute report received: app_version=69
[0xb2d6:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=11 command_id=Command.Report_Attributes>
[0xb2d6:2:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
[0xb2d6:2:0x0006] Attribute report received: on_off=0
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=36 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=18, command_id=616, function=0, data=[4, 0, 0, 0, 75])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=37 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=18, command_id=514, function=0, data=[4, 0, 0, 0, 21])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[occupied_heating_setpoint] = 2100
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'occupied_heating_setpoint' = 2100 update
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=38 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=19, command_id=517, function=0, data=[4, 0, 0, 0, 0])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=39 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=20, command_id=526, function=0, data=[4, 0, 0, 0, 58])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=40 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=20, command_id=514, function=0, data=[4, 0, 0, 0, 20])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[occupied_heating_setpoint] = 2000
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'occupied_heating_setpoint' = 2000 update
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=41 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=21, command_id=517, function=0, data=[4, 0, 0, 0, 0])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=41 command_id=1>
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=42 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=22, command_id=526, function=0, data=[4, 0, 0, 0, 58])]
[0x6937:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=87 command_id=1>
[0x6937:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=190, command_id=515, function=0, data=[4, 0, 0, 0, 170])]
[0x6937:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1700
climate.samuel_thermostat: Attribute 'local_temp' = 1700 update
[0x6937:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=88 command_id=1>
[0x6937:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=191, command_id=616, function=0, data=[4, 0, 0, 0, 50])]
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=43 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=22, command_id=616, function=0, data=[4, 0, 0, 0, 50])]
[0xff60:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=88 command_id=Command.Report_Attributes>
[0xff60:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[0xff60:11:0x0000] Attribute report received: app_version=66
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=44 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=23, command_id=515, function=0, data=[4, 0, 0, 0, 185])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1850
climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'local_temp' = 1850 update
[0xef69:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=45 command_id=1>
[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=24, command_id=526, function=0, data=[4, 0, 0, 0, 61])]
[0x6599:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=21 command_id=Command.Report_Attributes>
[0x6599:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[0x6599:11:0x0000] Attribute report received: app_version=66
[0xb2d6:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=12 command_id=Command.Report_Attributes>
[0xb2d6:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
[0xb2d6:1:0x0000] Attribute report received: app_version=69
jacekk015 commented 2 years ago

OK - that's still wrong. You need to take it from the LOGS, not pairing window. Values and attributes are better presented there. You see above from my example - there's DEBUG name. It shows us better what was mapped where.

Also, since you have the TRV in your hand, and wanna to support new elements it would be nice if you play with TRV values and try to find out which attribute is for which function you wanna to have. Something like with the room temperature: TRV keeps it in the 515 attribute which is 0x0203 in the HEX version. Then ZHA quirk maps it to local_temp and then HA GUI shows it as a Room temp.

[0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=15, command_id=515, function=0, data=[4, 0, 0, 0, 190])]
[0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1900

If you have options that no one other has we cannot know which attribute is responsible for which function.

For example: Check DEBUG logs, enable Child lock, check debug logs for differences. Some attribute will be switched from [0] to [1]

What works for you now are known[I mean attributes]. Any new function you need to give us a hint which attribute use that function on TRV. We will do the rest. Original code could be helpful - maybe some attributes are on the same numbers: https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_trv.py#L136

MOES_TARGET_TEMP_ATTR = 0x0202  # target room temp (decidegree)
MOES_TEMPERATURE_ATTR = 0x0203  # current room temp (decidegree)
MOES_MODE_ATTR = 0x0404  # [0] away [1] scheduled [2] manual [3] comfort [4] eco [5] boost [6] complex
MOES_CHILD_LOCK_ATTR = 0x0107  # [0] unlocked [1] child-locked
MOES_VALVE_DETECT_ATTR = 0x0114  # [0] do not report [1] report
MOES_TEMP_CALIBRATION_ATTR = 0x022C  # temperature calibration (decidegree)
MOES_MIN_TEMPERATURE_ATTR = 0x0266  # minimum limit of temperature setting (decidegree)
MOES_MAX_TEMPERATURE_ATTR = 0x0267  # maximum limit of temperature setting (decidegree)
MOES_WINDOW_DETECT_ATTR = 0x0068  # [0,35,5] on/off, temperature, operating time (min)
MOES_BOOST_TIME_ATTR = 0x0269  # BOOST mode operating time in (sec)
MOES_FORCE_VALVE_ATTR = 0x046A  # [0] normal [1] open [2] close
MOES_COMFORT_TEMP_ATTR = 0x026B  # comfort mode temperaure (decidegree)
MOES_ECO_TEMP_ATTR = 0x026C  # eco mode temperature (decidegree)
MOES_VALVE_STATE_ATTR = 0x026D  # opening percentage
MOES_BATTERY_LOW_ATTR = 0x016E  # battery low warning
MOES_WEEK_FORMAT_ATTR = 0x046F  # [0] 5 days [1] 6 days, [2] 7 days
MOES_AWAY_TEMP_ATTR = 0x0272  # away mode temperature (decidegree)
MOES_AUTO_LOCK_ATTR = 0x0174  # [0] auto [1] manual
MOES_AWAY_DAYS_ATTR = 0x0275  # away mode duration (days)
Youpimatin commented 2 years ago

OK, here is the data from the log at the time of pairing (I expurged some obvious off-topic lines) I posted on pastebin since it is too long for the 2^16 byte limit

I'll play with functions on the valve and check the log when i'm back home.

I can see sometimes the temperature is given with 0.5°C resolution :

2021-11-07 18:28:03 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xEF69:1:0x0201]: Attribute report 'MoesThermostatNew'[local_temp] = 1850
...
2021-11-07 18:28:03 DEBUG (MainThread) [homeassistant.components.zha.entity] climate.tze200_b6wax7g0_ts0601_fba9a5fe_thermostat: Attribute 'local_temp' = 1850 update
jacekk015 commented 2 years ago

I've filtered all attributes your TRV has presented[if you didn't cut the log too quick]

2021-11-07 18:26:51 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
2021-11-07 18:26:58 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-07 18:27:05 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
2021-11-07 18:27:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 190] for attribute 0x0203 (command 0x0001)
2021-11-07 18:27:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 18:27:16 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-07 18:27:26 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 21] for attribute 0x0202 (command 0x0001)
2021-11-07 18:27:26 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:27:27 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:27:34 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 75] for attribute 0x0268 (command 0x0001)
2021-11-07 18:27:38 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 21] for attribute 0x0202 (command 0x0001)
2021-11-07 18:27:38 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:27:38 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:27:46 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x0202 (command 0x0001)
2021-11-07 18:27:47 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:27:47 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:27:54 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-07 18:28:03 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 185] for attribute 0x0203 (command 0x0001)
2021-11-07 18:28:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 18:29:01 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:29:01 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:29:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:29:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 18:30:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:30:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:31:02 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:03 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:31:03 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:08 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x010d (command 0x0001)
2021-11-07 18:31:09 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0401 (command 0x0001)
2021-11-07 18:31:10 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x0202 (command 0x0001)
2021-11-07 18:31:10 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:31:10 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-07 18:31:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:31:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0407 (command 0x0001)
2021-11-07 18:31:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0108 (command 0x0001)
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x010d (command 0x0001)
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40] for attribute 0x0065 (command 0x0001)
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 1, 44] for attribute 0x0267 (command 0x0001)
2021-11-07 18:31:13 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-07 18:31:13 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0269 (command 0x0001)
2021-11-07 18:31:13 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x016a (command 0x0001)
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x026b (command 0x0001)
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 45] for attribute 0x026c (command 0x0001)
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 5] for attribute 0x026d (command 0x0001)
2021-11-07 18:31:16 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x0202 (command 0x0001)
2021-11-07 18:31:17 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:31:17 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:18 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-07 18:31:18 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-07 18:31:19 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x010d (command 0x0001)
2021-11-07 18:31:27 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 19] for attribute 0x0202 (command 0x0001)
2021-11-07 18:31:27 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
2021-11-07 18:31:27 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-07 18:31:34 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
Youpimatin commented 2 years ago

Nice ! thanks. Let's see if i did cut the log too quick :

2021-11-07 18:31:34 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
2021-11-07 18:37:03 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 18:53:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 170] for attribute 0x0203 (command 0x0001)
2021-11-07 18:53:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-07 20:07:54 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-07 20:07:55 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-07 20:07:55 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-07 21:17:23 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 75] for attribute 0x0268 (command 0x0001)
2021-11-07 21:22:47 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 160] for attribute 0x0203 (command 0x0001)
2021-11-07 21:34:42 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x0202 (command 0x0001)
2021-11-07 21:34:51 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 18] for attribute 0x0202 (command 0x0001)
2021-11-07 21:35:05 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 19] for attribute 0x0202 (command 0x0001)
2021-11-07 21:35:05 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 19] for attribute 0x0202 (command 0x0001)
2021-11-07 21:35:20 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 18] for attribute 0x0202 (command 0x0001)
2021-11-07 21:41:10 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 170] for attribute 0x0203 (command 0x0001)
2021-11-07 21:41:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
2021-11-07 21:52:47 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 21] for attribute 0x0202 (command 0x0001)
2021-11-07 22:15:29 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 19] for attribute 0x0202 (command 0x0001)
2021-11-07 22:21:19 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 180] for attribute 0x0203 (command 0x0001)
2021-11-07 22:21:20 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 25] for attribute 0x0268 (command 0x0001)
2021-11-07 23:25:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 170] for attribute 0x0203 (command 0x0001)
2021-11-07 23:25:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
2021-11-08 00:18:53 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-08 00:18:53 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-08 00:18:53 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-08 01:49:42 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 75] for attribute 0x0268 (command 0x0001)
2021-11-08 01:55:06 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 160] for attribute 0x0203 (command 0x0001)
2021-11-08 04:19:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-08 04:19:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-08 04:19:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-08 05:29:00 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 100] for attribute 0x0268 (command 0x0001)
2021-11-08 05:34:24 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 150] for attribute 0x0203 (command 0x0001)
2021-11-08 07:00:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 160] for attribute 0x0203 (command 0x0001)
2021-11-08 07:00:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 75] for attribute 0x0268 (command 0x0001)
2021-11-08 08:20:21 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-08 08:20:22 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
2021-11-08 08:20:22 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
2021-11-08 08:47:25 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 18] for attribute 0x0202 (command 0x0001)
jacekk015 commented 2 years ago

I've used https://onlinetexttools.com/filter-text firstly used "for attribute 0x" pattern then copied Filtered text to Text field and then used the pattern "0xef69" to filter only that device. Each time you pair device ID is changing.

Youpimatin commented 2 years ago

From my log, I can identify attributes : 0x0202 # target room temp (in degree, NOT in decidegree) 0x0203 # current room temp (decidegree)

and maybe : 0x0268 # opening percentage ? (values of 25 / 50 / 75 / 100 influenced by target and current temperatures) 0x020e # battery percentage ? (58 or 61 for one TRV, 55 or 58 for my second one, updated every 4 hours )

unidentified attributes : 0x0065 ( [6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40] ) 0x0104 (0) 0x0108 (0) 0x010d (1 or 0) 0x016a (0) 0x0205 ( [0, 0, 0, 0] ) 0x0401 (1) 0x0407 (0) 0x0409 (1)

jacekk015 commented 2 years ago

Do you use newest HomeAssistant version?? I see differences in DEBUG LOGS between yours and mine. Mine logs are giving DPs from Tuya, and I can find those DPs i Zigbee2Mqtt to check which attribute is which. I has to be some difference.

Since they declare kind of support so I could just easily match those DPs to attributes. https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/devices/moes.js#L193

My log:

2021-09-24 15:01:13 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=24, command_id=536, function=0, data=[4, 0, 0, 0, 233])]
2021-09-24 15:01:13 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 233] for attribute 0x0218 (command 0x0002)

tsn=24 = DP 24 from Z2M which is current room temp, which is attribute 0x0218

MattWestb commented 2 years ago

@jacekk015 You is having debug for zigpy.zcl that is doing more raw commands but still is tsn Tansaction Numbe in the underlying network that is for flirting duplicate messages or reseeding one that is lost (missed ack or default response).

I was thinking the attribute 0x0218 from the tuya quirk is the "decoded" DP from the string you is getting from the zigpyc.zcl data string: [Command(status=0, tsn=24, command_id=536, function=0, data=[4, 0, 0, 0, 233])]

Youpimatin commented 2 years ago

No I'm not using the latest version of HA, I'm using core-2021.6.6 ( because I loose too much usability and functionality with newer versions :

If it helps by providing more data, I can set the last version of HA to debug (but I will definitely downgrade after to the last good version for me.)

jacekk015 commented 2 years ago

@MattWestb Funny is that this is wrong. In reality tsn returns for debug a DP

tsn=24 local temp tsn=34 battery tsn=16 target temp in manual mode tsn=30 child lock ... and so on

2021-09-24 15:01:03 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=16, command_id=528, function=0, data=[4, 0, 0, 0, 34])]
2021-09-24 15:01:03 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 34] for attribute 0x0210 (command 0x0002)
2021-09-24 15:01:13 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=8 command_id=2>
2021-09-24 15:01:13 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=24, command_id=536, function=0, data=[4, 0, 0, 0, 233])]
2021-09-24 15:01:13 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 233] for attribute 0x0218 (command 0x0002)
2021-09-24 15:01:14 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=9 command_id=2>
2021-09-24 15:01:14 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=30, command_id=286, function=0, data=[1, 0])]
2021-09-24 15:01:14 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0] for attribute 0x011e (command 0x0002)
2021-09-24 15:01:14 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=10 command_id=2>
2021-09-24 15:01:14 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=34, command_id=546, function=0, data=[4, 0, 0, 0, 131])]
2021-09-24 15:01:14 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 131] for attribute 0x0222 (command 0x0002)
2021-09-24 15:01:25 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=11 command_id=2>
2021-09-24 15:01:25 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=101, command_id=613, function=0, data=[4, 0, 0, 0, 42])]
2021-09-24 15:01:25 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 42] for attribute 0x0265 (command 0x0002)
2021-09-24 15:01:35 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=12 command_id=2>
2021-09-24 15:01:35 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=102, command_id=614, function=0, data=[4, 0, 0, 0, 34])]
2021-09-24 15:01:35 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 34] for attribute 0x0266 (command 0x0002)
2021-09-24 15:01:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xDDEB:1:0x0201]: Attribute report 'MoesThermostat'[min_heat_setpoint_limit] = 3400
2021-09-24 15:01:35 DEBUG (MainThread) [homeassistant.components.zha.entity] climate.tze200_qc4fpmcn_ts0601_3e02dbfe_thermostat: Attribute 'min_heat_setpoint_limit' = 3400 update
2021-09-24 15:01:46 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=13 command_id=2>
2021-09-24 15:01:46 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=103, command_id=103, function=0, data=[8, 19, 1, 1, 0, 0, 34, 0, 0])]
2021-09-24 15:01:46 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [19, 1, 1, 0, 0, 34, 0, 0] for attribute 0x0067 (command 0x0002)
2021-09-24 15:01:56 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=14 command_id=2>
2021-09-24 15:01:56 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=104, command_id=616, function=0, data=[4, 0, 0, 0, 0])]
2021-09-24 15:01:56 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0268 (command 0x0002)
2021-09-24 15:02:01 DEBUG (MainThread) [zigpy.device] [0xddeb] Delivery error for seq # 0x0e, on endpoint id 1 cluster 0xef00: message send failure
2021-09-24 15:02:07 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=15 command_id=2>
2021-09-24 15:02:07 DEBUG (MainThread) [zigpy.zcl] [0xddeb:1:0xef00] ZCL request 0x0002: [Command(status=0, tsn=105, command_id=617, function=0, data=[4, 0, 0, 0, 42])]
2021-09-24 15:02:07 DEBUG (MainThread) [zhaquirks.tuya] [0xddeb:1:0xef00] Received value [0, 0, 0, 42] for attribute 0x0269 (command 0x0002)
2021-09-24 15:02:07 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xDDEB:1:0x0201]: Attribute report 'MoesThermostat'[boost_duration_seconds] = 42
2021-09-24 15:02:07 DEBUG (MainThread) [homeassistant.components.zha.entity] climate.tze200_qc4fpmcn_ts0601_3e02dbfe_thermostat: Attribute 'boost_duration_seconds' = 42 update

From Z2M [part of it]:

DEBUG: Received Zigbee message from '0x5c0272fffedb023e', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,48],"type":"Buffer"},"datatype":2,"dp":16,"fn":0,"status":0,"transid":16}' from endpoint 1 with groupID 0
DEBUG: Received Zigbee message from '0x5c0272fffedb023e', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,44],"type":"Buffer"},"datatype":2,"dp":105,"fn":0,"status":0,"transid":105}' from endpoint 1 with groupID 0
DEBUG: Received Zigbee message from '0x5c0272fffedb023e', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":30,"fn":0,"status":0,"transid":30}' from endpoint 1 with groupID 0
DEBUG: Received Zigbee message from '0x5c0272fffedb023e', type 'commandSetDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,44],"type":"Buffer"},"datatype":2,"dp":105,"fn":0,"status":0,"transid":105}' from endpoint 1 with groupID 0

Compare DP with tsn above. Funny but that's true. That's why it's easy to migrate code from Z2M, if there is a support. You can easily map DPs to attributes Maybe it's a BUG - but that's how it works.

MattWestb commented 2 years ago

Can being that the "tuya converter" is doing that in the conversion but then it good that is not being used for other devices then its being little crazy like this:

2021-11-08 01:10:34 DEBUG (MainThread) [zigpy.zcl] [0xde47:1:0x0020] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=105 command_id=0>
2021-11-08 01:10:34 DEBUG (MainThread) [zigpy.zcl] [0xde47:1:0x0020] ZCL request 0x0000: []
2021-11-08 01:10:34 DEBUG (MainThread) [zigpy.zcl] [0xde47:1:0x0020] No handler for cluster command 0
2021-11-08 01:10:34 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xDE47:1:0x0020]: Received 105 tsn command 'checkin': []
2021-11-08 01:10:34 DEBUG (MainThread) [zigpy.device] [0xde47] Extending timeout for 0x69 request
2021-11-08 01:10:36 DEBUG (MainThread) [zigpy.zcl] [0xde47:1:0x0020] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=105 command_id=Command.Default_Response>
2021-11-08 01:10:36 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xDE47:1:0x0020]: executed 'checkin_response' command with args: '(True, 8)' kwargs: '{'tsn': 105}' result: [0, <Status.SUCCESS: 0>]
2021-11-08 01:10:36 DEBUG (MainThread) [zigpy.device] [0xde47] Extending timeout for 0xe2 request
2021-11-08 01:10:38 DEBUG (MainThread) [zigpy.zcl] [0xde47:1:0x0020] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=226 command_id=Command.Default_Response>
2021-11-08 01:10:38 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xDE47:1:0x0020]: executed 'fast_poll_stop' command with args: '()' kwargs: '{}' result: [1, <Status.TIMEOUT: 148>]

Its one old IKEA Dimmer (the round one with gyro) that is doing on checking to its parent. And its using DP 226 . . . .

If the tuya decoder is putting the tsn as tuya DPs then i understand way you is liking it very much but is on the border to sheeting !! (i think its little bad using the same name for different system fuctions)

And then it shall having zigpy.zcl and zhaquirks.tuya as debug for getting the right information.

I shall doing it on the test network with the TRV and looking little more :-)))

Is this TRV sending wrong data or is Zpgpy using it wrong and loosing the preposition of the setpoint ? I think its possible doing one if / else for the setpoint in the quirk and not need doing on new device class for it like is being done but its looks working.

jacekk015 commented 2 years ago

OK - I got the calculation for attribute -> DP Example - local temp for Maxsmart: tsn=24, command_id=536 attribute 0x0218 0x0218 -> 0x18 -> 24 decimal :-)) us as a HEX only last two elements

Maxsmart Window detect: tsn=107, command_id=363 attribute 0x016b 0x016b -> 0x6b -> 107 decimal

SITERWELL_TARGET_TEMP_ATTR = 0x0202 0x0202 -> 0x02 -> 2 decimal Let's go to Z2M Siterwell https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/devices/siterwell.js#L13 https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/devices/siterwell.js#L21 fz.tuya_thermostat https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/converters/fromZigbee.js#L3856 case tuya.dataPoints.heatingSetpoint: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/converters/fromZigbee.js#L3906 heatingSetpoint: 2, https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/lib/tuya.js#L190

Easy :-)

MattWestb commented 2 years ago

Not importing but i was playing little with away mode temperature up and down and was getting one log:

2021-11-08 22:28:57 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=67, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:28:57 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:28:57 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=10 command_id=1>
2021-11-08 22:28:57 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=68, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:28:57 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:01 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=11 command_id=1>
2021-11-08 22:29:01 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=69, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:01 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:02 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=12 command_id=1>
2021-11-08 22:29:02 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=70, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:02 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:03 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=13 command_id=1>
2021-11-08 22:29:03 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=70, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:03 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:04 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=14 command_id=1>
2021-11-08 22:29:04 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=70, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:04 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:05 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=15 command_id=1>
2021-11-08 22:29:05 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=71, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:05 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:06 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=16 command_id=1>
2021-11-08 22:29:06 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=72, command_id=514, function=0, data=[4, 0, 0, 0, 55])]
2021-11-08 22:29:06 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 55] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:07 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=17 command_id=1>
2021-11-08 22:29:07 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=72, command_id=514, function=0, data=[4, 0, 0, 0, 55])]
2021-11-08 22:29:07 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 55] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:08 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=18 command_id=1>
2021-11-08 22:29:08 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=73, command_id=514, function=0, data=[4, 0, 0, 0, 55])]
2021-11-08 22:29:08 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 55] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:09 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=19 command_id=1>
2021-11-08 22:29:09 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=73, command_id=514, function=0, data=[4, 0, 0, 0, 55])]
2021-11-08 22:29:09 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 55] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:10 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=20 command_id=1>
2021-11-08 22:29:10 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=74, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:10 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)
2021-11-08 22:29:11 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=21 command_id=1>
2021-11-08 22:29:11 DEBUG (MainThread) [zigpy.zcl] [0xa419:1:0xef00] ZCL request 0x0001: [Command(status=2, tsn=74, command_id=514, function=0, data=[4, 0, 0, 0, 50])]
2021-11-08 22:29:11 DEBUG (MainThread) [zhaquirks.tuya] [0xa419:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0202 (command 0x0001)

Attribute 0x202 is the same then changing the temperature but not the tsn is increasing with the transactions the device is sending.

Can being that my TRV is using one old Zigbee module (TYST11) that is doing it "normal Zigbee way" and newer is making it tuya way = tsn = DP that i think it not bad and shall working well then sending different DP but if sending the same DP (changing the temp and the TRV is sending multiple different temperatures with same DP) it can being little strange for the Zigbee network stack and the underlying IEEE network that is using tsn logic for acking frames and reseeding them is they is being lost and double transmitting.

If its working with TZE200 then its great but dont forgetting its looks not working with devices that having TYST11 Zigbee modules.

tuya is still tuya !! :-))))

jacekk015 commented 2 years ago

You have ZCL request 0x0001: I have ZCL request 0x0002: The only difference I see

Youpimatin commented 2 years ago

Identified attributes : 0x0065 # programmable schedule (Received value [6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40] for :

0x0104 # Boost heating (Received value 0:off / 1:in progress)
0x0108 # Open window detection MODE (Received value 0:function disabled / 1:function enabled) 0x010d # child lock ( Received value 0:unlocked / 1:locked) 0x016a # Energy saving mode (Received value 0:off / 1:on) 0x0202 # target room temp (in degree, NOT in decidegree) 0x0203 # current room temp (decidegree) 0x020e # battery percentage (updated every 4 hours ) 0x0267 # Boost heating countdown in second (Received value [0, 0, 1, 44] for 300) 0x0268 # opening percentage (values of 0 / 25 / 50 / 75 / 100) 0x0269 # Temperature compensation ( Received value [255, 255, 255, 255] for -1) 0x026b # Energy saving mode temperature ( Received value [0, 0, 0, 15] ) 0x026c # Max target temp ( Received value [0, 0, 0, 35] ) 0x026d # Min target temp (Received value [0, 0, 0, 5]) 0x0401 # Mode (Received value 0:Manual / 1:Holiday / 2:Temporary Manual Mode / 3:Prog)

Unidentified attributes : 0x0205 ( [0, 0, 0, 0] / [0, 0, 0, 5] ) 0x0407 (0 / 1) changes when current temp crosses target temp... 0x0409 (1)

MattWestb commented 2 years ago

0x205 looks have one temperature and one more data, Away with temperature and date or holiday ? 0x40x frost, window, valve jammed alarm ?

jacekk015 commented 2 years ago

You need to specify 0x0401 for modes mapping Schedule, Manual... [0], [1]...

You have two Window functions. Clarification is needed moesSwindowDetection: 9, 0x0409 (1)

moesSwindowDetectionFunktion_A2: 8, 0x0108 # Open window detection (Received value 0:off / 1:on)

moesSheatingSetpoint: 2,
0x0202 # target room temp (in degree, NOT in decidegree)
2021-11-07 18:27:38 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=18, command_id=514, function=0, data=[4, 0, 0, 0, 21])]
2021-11-07 18:27:38 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 21] for attribute 0x0202 (command 0x0001)
****************************************

moesSlocalTemp: 3,
0x0203 # current room temp (decidegree)
2021-11-07 18:27:48 DEBUG (MainThread) [zigpy.zcl] [0x6937:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=190, command_id=515, function=0, data=[4, 0, 0, 0, 170])]
2021-11-07 18:27:48 DEBUG (MainThread) [zhaquirks.tuya] [0x6937:1:0xef00] Received value [0, 0, 0, 170] for attribute 0x0203 (command 0x0001)
****************************************

moesSvalvePosition: 104,
0x0268 # opening percentage (values of 0 / 25 / 50 / 75 / 100)
2021-11-07 18:27:48 DEBUG (MainThread) [zigpy.zcl] [0x6937:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=191, command_id=616, function=0, data=[4, 0, 0, 0, 50])]
2021-11-07 18:27:48 DEBUG (MainThread) [zhaquirks.tuya] [0x6937:1:0xef00] Received value [0, 0, 0, 50] for attribute 0x0268 (command 0x0001)
****************************************

moesSbattery: 14,
0x020e # battery percentage (updated every 4 hours )
2021-11-07 18:28:04 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=24, command_id=526, function=0, data=[4, 0, 0, 0, 61])]
2021-11-07 18:28:04 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
****************************************

moesSschedule: 101,
0x0065 # programmable schedule (Received value [6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40] for :
Monday to friday : 06:00 20°C / 11:30 21°C / 13:30 22°C / 17:30 23°C
Saturday : 06:00 24°C / 12:00 23°C / 14:30 22°C / 17:30 21°C
Sunday : 06:00 19°C / 12:30 20°C / 14:30 21°C / 18:30 20°C )
2021-11-07 18:31:12 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=44, command_id=101, function=0, data=[36, 6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40])]
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [6, 0, 40, 11, 30, 42, 13, 30, 44, 17, 30, 46, 6, 0, 48, 12, 0, 46, 14, 30, 44, 17, 30, 42, 6, 0, 38, 12, 30, 40, 14, 30, 42, 18, 30, 40] for attribute 0x0065 (command 0x0001)
****************************************

moesSboostHeating: 4,
0x0104 # Boost heating (Received value 0:off / 1:in progress)
2021-11-07 18:31:18 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=55, command_id=260, function=0, data=[1, 0])]
2021-11-07 18:31:18 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0104 (command 0x0001)
****************************************

moesSwindowDetectionFunktion_A2: 8,
0x0108 # Open window detection (Received value 0:off / 1:on)
2021-11-07 18:31:11 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=40, command_id=264, function=0, data=[1, 0])]
2021-11-07 18:31:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0108 (command 0x0001)
****************************************

moesSchildLock: 13,
0x010d # child lock ( Received value 0:unlocked / 1:locked)
2021-11-07 18:31:12 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=42, command_id=269, function=0, data=[1, 1])]
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x010d (command 0x0001)
****************************************

moesSecoMode: 106,
0x016a # Energy saving mode (Received value 0:off / 1:on)
2021-11-07 18:31:13 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=48, command_id=362, function=0, data=[1, 0])]
2021-11-07 18:31:13 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x016a (command 0x0001)
****************************************

moesSboostHeatingCountdownTimeSet: 103,
0x0267 # Boost heating countdown in second (Received value [0, 0, 1, 44] for 300)
2021-11-07 18:31:12 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=45, command_id=615, function=0, data=[4, 0, 0, 1, 44])]
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 1, 44] for attribute 0x0267 (command 0x0001)
****************************************

moesScompensationTempSet: 105,
0x0269 # Temperature compensation ( Received value [255, 255, 255, 255] for -1)
2021-11-07 18:31:13 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=47, command_id=617, function=0, data=[4, 0, 0, 0, 0])]
2021-11-07 18:31:13 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0269 (command 0x0001)
****************************************

moesSecoModeTempSet: 107,
0x026b # Energy saving mode temperature ( Received value [0, 0, 0, 15] )
2021-11-07 18:31:14 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=49, command_id=619, function=0, data=[4, 0, 0, 0, 20])]
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 20] for attribute 0x026b (command 0x0001)
****************************************

moesSmaxTempSet: 108,
0x026c # Max target temp ( Received value [0, 0, 0, 35] )
2021-11-07 18:31:14 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=50, command_id=620, function=0, data=[4, 0, 0, 0, 45])]
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 45] for attribute 0x026c (command 0x0001)
****************************************

moesSminTempSet: 109,
0x026d # Min target temp (Received value [0, 0, 0, 5])
2021-11-07 18:31:14 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=51, command_id=621, function=0, data=[4, 0, 0, 0, 5])]
2021-11-07 18:31:14 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 5] for attribute 0x026d (command 0x0001)
****************************************

moesSboostHeatingCountdown: 5,
0x0205 ( [0, 0, 0, 0] / [0, 0, 0, 5] )
2021-11-07 18:31:17 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=52, command_id=517, function=0, data=[4, 0, 0, 0, 0])]
2021-11-07 18:31:17 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0, 0, 0, 0] for attribute 0x0205 (command 0x0001)
****************************************

moesSsystemMode: 1,
0x0401 (1)
2021-11-07 18:31:09 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=34, command_id=1025, function=0, data=[1, 1])]
2021-11-07 18:31:09 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0401 (command 0x0001)
****************************************

moesSreset: 7,
0x0407 (0)
2021-11-07 18:31:11 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=39, command_id=1031, function=0, data=[1, 0])]
2021-11-07 18:31:11 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [0] for attribute 0x0407 (command 0x0001)
****************************************

moesSwindowDetection: 9,
0x0409 (1)
2021-11-07 18:31:12 DEBUG (MainThread) [zigpy.zcl] [0xef69:1:0xef00] ZCL request 0x0001: [Command(status=0, tsn=41, command_id=1033, function=0, data=[1, 1])]
2021-11-07 18:31:12 DEBUG (MainThread) [zhaquirks.tuya] [0xef69:1:0xef00] Received value [1] for attribute 0x0409 (command 0x0001)
MattWestb commented 2 years ago

The 0x0409 is the alarm and the 0x0108 is the enable / disabling the windows detection like on the Siterwell is doing.

jacekk015 commented 2 years ago

User needs to confirm this. Tricky, because manual says something else?

Zrzut ekranu z 2021-11-08 23-44-23 BRT-100 User manual.pdf

Youpimatin commented 2 years ago

I edited, 0x0108 is the mode (function A2 in the manual) 0x0108 # Open window detection MODE (Received value 0:function disabled / 1:function enabled)

No effect on zigbee when I change A3 or A4

jacekk015 commented 2 years ago

So 0x0409 could be the window alarm, but pastebin logs shows already [1] there also 0x0401 needs explanation which mode has which value

Youpimatin commented 2 years ago

0x0401 : 0 : Manual Mode 1 : Holiday Mode 2 : Temporary Manual Mode (will return to Schedule mode at the next schedule time) 3 : Schedule Programming Mode (I don't know if other values are possible, these are the only ones i log when I change mode with the 'Home' button)

I'm pretty happy with what I listed already.

It's cold outside, let's go for a window opening detection... hmm...0x409 stays at 1 even as low as 4°C and valve stayed wide open at 100% from 20°C to 4°C... I must have missed something, maybe the A2 setting must be 0, not 1 ... nop, 0 or 1, nothing Ok, I don't know how to get window detection to work properly...

jacekk015 commented 2 years ago

Ok - to SUM it up, since I'm at work now ;-) I should prepare a quirk for you, maybe today, maybe tomorrow. It will be 1 revision so maybe not 100% will be OK. Last few questions: 1) 0x0202 # target room temp - what step you have there 1 or 0.5?? 2) 0x0268 # opening percentage - I will create a edit field, but I don't know if writing will change that on TRV 3) 0x020e # battery percentage - Z2M treat that value as a remaining battery level in % - are you able to confirm that?

battery: () => new Numeric('battery', access.STATE).withUnit('%').withDescription('Remaining battery in %').withValueMin(0).withValueMax(100),

4) 0x0065 # programmable schedule - since there's no support for component on the ZHA side we are omitting that - there will be attribute only, without entity 5) moesSboostHeatingCountdown- minutes, seconds?? 6)moesSreset: 7, 0x0407 (0) - probably with omit this??

Youpimatin commented 2 years ago

0x0202 # target room temp - what step you have there 1 or 0.5?? 1°C steps. (0.5°C setting on the TRV itself, rounded for zigbee interface)

0x0268 # opening percentage - I will create a edit field, but I don't know if writing will change that on TRV I'll report if writing to this parameter works or not, to adjust quirk if necessary.

0x020e # battery percentage - Z2M treat that value as a remaining battery level in % - are you able to confirm that? Yes ! mean value has slowly lowered in the last two days (I'll check tonight by putting new '1.5V' alkaline batteries, it's currently on '1.2V' NIMH... I think it's just a voltage measure, it's the simplest thing to implement, I can check boundaries with a power supply, and check if there is a flag when voltage is below 1.8V, since the manual states there is a low bat icon on the display )

0x0065 # programmable schedule - since there's no support for component on the ZHA side we are omitting that - there will be attribute only, without entity OK

moesSboostHeatingCountdown- minutes, seconds?? moesSreset: 7, 0x0407 (0) - probably with omit this?? 0x0407 (0 / 1) changes when current temp crosses target temp... maybe just a flag to report if the TRV needs to heat the room or not... if it's only that, it's not very useful since we can compare current temp and target temp

jacekk015 commented 2 years ago

0x0202 # target room temp - what step you have there 1 or 0.5?? 1°C steps. (0.5°C setting on the TRV itself, rounded for zigbee interface)

That's strange. If you have a possibility to remove the quirk from the folder and re-pair device. Then search for 0x0202 in the HA logs. Maybe we could see what really is sent to 0x0202 if the quirk isn't available. It's possible that we see an INT value because quirk is in action and the value is mapped to uint. Or maybe you could just comment out 0x0202 in your quirk. Try please both ways if possible!

#MOES_TARGET_TEMP_ATTR = 0x0202  # target room temp (decidegree)

It is mapped to MOES_TARGET_TEMP_ATTR: ("target_temperature", t.uint32_t), so quirk modifies it to unit32_t We would like to see RAW sent value.

  1. moesSboostHeatingCountdown- minutes, seconds?? In boost mode TRV counts[often] form some value to zero[counter]. Often these are seconds. Just want to confirm this.

  2. moesSreset: 7, 0x0407 (0) - probably with omit this?? Probably switch to factory reset the TRV is not needed as a entity, or maybe it is??

Youpimatin commented 2 years ago

(I edited my previous message for the battery level topic)

Youpimatin commented 2 years ago

So I tried to comment "MOES_TARGET_TEMP_ATTR = 0x0202" line in the quirk and restart HA, but ZHA doesn't want to initialize in this case 'configuration problem" I deleted the quirk from the folder and paired the TRV, here is the (splitted) log :

2021-11-10 09:27:08 INFO (MainThread) [zigpy.application] Device 0xef69 (84:fd:27:ff:fe:a5:a9:fb) left the network
2021-11-10 09:27:10 DEBUG (MainThread) [zigpy.zcl] [0xf153:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=76 command_id=Command.Report_Attributes>
2021-11-10 09:27:10 DEBUG (MainThread) [zigpy.zcl] [0xf153:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
2021-11-10 09:27:10 DEBUG (MainThread) [zigpy.zcl] [0xf153:11:0x0000] Attribute report received: app_version=66
2021-11-10 09:27:13 DEBUG (MainThread) [zigpy.device] [0x3bcf] Delivery error for seq # 0xb8, on endpoint id 0 cluster 0x0034: message send failure
2021-11-10 09:27:13 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendBroadcast: (<BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR: 65532>, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_NONE: 0>, groupId=0, sequence=189), 0, 190, b'\xbd<\x00')
2021-11-10 09:27:13 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])
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'37e02157541ce94d59947c25aa5592499c4e9aab53cddab7fdec817e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'74e0a157541c150fc4737e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'04e0b157546f10b259a24a25aa5592499cf3d8abedce9874fe7b5f89b59f7e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'41e121575485ea4da66bb5da55aac820fb0c42ceaca20be29ca800eccc4769897e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'15e1a157548515f15e7e'
2021-11-10 09:27:13 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:13 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 54 (sendBroadcast) received: b'00bd'
2021-11-10 09:27:13 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0500003600000000000000bdff000000ffff03bd3c00'
2021-11-10 09:27:13 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST_LOOPBACK: 5>, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_NONE: 0>, groupId=0, sequence=189), 255, 0, 0x0000, 255, 255, b'\xbd<\x00']
2021-11-10 09:27:13 DEBUG (MainThread) [zigpy.zdo] [0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
2021-11-10 09:27:13 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 175 (addTransientLinkKey) received: b'00'
2021-11-10 09:27:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): started initialization
2021-11-10 09:27:13 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0000:ZDO](EZSP): 'async_initialize' stage succeeded
2021-11-10 09:27:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): power source: Mains
2021-11-10 09:27:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): completed initialization
2021-11-10 09:27:14 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'25e1b1575415134ea6944a13aa5592499c4e271653ce676b827e'
2021-11-10 09:27:14 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:14 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'06fcff00003600000000000000bdbe0000'
2021-11-10 09:27:14 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_BROADCAST: 6>, 65532, EmberApsFrame(profileId=0, clusterId=54, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_NONE: 0>, groupId=0, sequence=189), 190, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:14 DEBUG (MainThread) [bellows.ezsp.protocol] Send command permitJoining: (60,)
2021-11-10 09:27:14 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'53e62157540829fd1d7e'
2021-11-10 09:27:14 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36e6a157540815e2af7e'
2021-11-10 09:27:14 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:14 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 34 (permitJoining) received: b'00'
2021-11-10 09:27:16 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:27:16 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'64e72157542f86237e'
2021-11-10 09:27:16 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47e7a157542fa0f37e'
2021-11-10 09:27:16 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:16 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:27:27 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:27:27 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75e42157542f37d57e'
2021-11-10 09:27:27 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50e4a157542f9ce47e'
2021-11-10 09:27:27 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:27 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'60e4b557540eb51ca23defdb55726fcd9d4e7d251a107e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70e4b55754eeb51c031a4a78db7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'00e4b557540eb51ca23defdb55726fcd9d4e7d2571db7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'10e4b15754eeb51c031a4a0a9b7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'20e4b157546f15b658944a24ab1593499c84471f3b7c9874fade2e83fd7e1fe2ed6c7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 36 (trustCenterJoinHandler) received: b'a0aefba9a5feff27fd8401005a8e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x8e5a]
2021-11-10 09:27:29 INFO (MainThread) [zigpy.application] Device 0xaea0 (84:fd:27:ff:fe:a5:a9:fb) joined the network
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.application] Device 84:fd:27:ff:fe:a5:a9:fb changed id (0xef69 => 0xaea0)
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 196 (changeSourceRouteHandler) received: b'a0ae5a8e00'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received changeSourceRouteHandler frame with [0xaea0, 0x8e5a, <Bool.false: 0>]
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 36 (trustCenterJoinHandler) received: b'a0aefba9a5feff27fd8401005a8e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received trustCenterJoinHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, <EmberDeviceUpdate.STANDARD_SECURITY_UNSECURED_JOIN: 1>, <EmberJoinDecision.USE_PRECONFIGURED_KEY: 0>, 0x8e5a]
2021-11-10 09:27:29 INFO (MainThread) [zigpy.application] Device 0xaea0 (84:fd:27:ff:fe:a5:a9:fb) joined the network
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.device] [0xaea0] Cancelling old group rescan
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 196 (changeSourceRouteHandler) received: b'a0ae5a8e00'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received changeSourceRouteHandler frame with [0xaea0, 0x8e5a, <Bool.false: 0>]
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010000010140010000ca60b4d6b2ffff07184d0a01002045'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=202), 96, -76, 0xb2d6, 255, 255, b'\x18M\n\x01\x00 E']
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.zcl] [0xb2d6:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=77 command_id=Command.Report_Attributes>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.zcl] [0xb2d6:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.zcl] [0xb2d6:1:0x0000] Attribute report received: app_version=69
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (84:fd:27:ff:fe:a5:a9:fb, True)
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TZE200_b6wax7g0 TS0601 (84:fd:27:ff:fe:a5:a9:fb)
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee_io.XBeeSensor'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'03e52157545fee1bfc6ab50257d193656f7e'
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xbee.xbee3_io.XBee3Sensor'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {232, 230} {1}
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.tag_v4.SmartThingsTagV4'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.smartthings.multi.SmartthingsMultiPurposeSensor'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.netvox.z308e3ed.Z308E3ED'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.gledopto.soposhgu10.SoposhGU10'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because endpoint list mismatch: {11, 13} {1}
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'bellows.zigbee.application.EZSPCoordinator'>
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.quirks.registry] Fail because device_type mismatch on at least one endpoint
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'31e5a157545feabcd37e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command findKeyTableEntry: (84:fd:27:ff:fe:a5:a9:fb, True)
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.device] [0xaea0] Extending timeout for 0xbf request
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for 84:fd:27:ff:fe:a5:a9:fb/0xaea0
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (84:fd:27:ff:fe:a5:a9:fb, True)
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'14ea2157545fee1bfc6ab50257d193c81f7e'
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xaea0:84:fd:27:ff:fe:a5:a9:fb entering async_device_initialized - is_new_join: True
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0xaea0:84:fd:27:ff:fe:a5:a9:fb has joined the ZHA zigbee network
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): started configuration
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:ZDO](TS0601): 'async_configure' stage succeeded
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 117 (findKeyTableEntry) received: b'ff'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42eaa157545fea25337e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'25eb21575454ee1bfc6ab50257d19335987e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 117 (findKeyTableEntry) received: b'ff'
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0000]: finished channel configuration
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0019]: finished channel configuration
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'53eba1575454f8017e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0000]: 'async_configure' stage succeeded
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0019]: 'async_configure' stage succeeded
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63ebb5575448ee1bfc6ab50257d154b57e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'73ebb157546f11b259874a25aa5596499c0b8f6d4d609874f143c32707d79a5914ea23eb0f32487e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 126 (setExtendedTimeout) received: b''
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 98 (incomingSenderEui64Handler) received: b'fba9a5feff27fd84'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received incomingSenderEui64Handler frame with [84:fd:27:ff:fe:a5:a9:fb]
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'040000130000000004000045a8c6a0aeffff0c85a0aefba9a5feff27fd8480'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_BROADCAST: 4>, EmberApsFrame(profileId=0, clusterId=19, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_SOURCE_EUI64: 1024>, groupId=0, sequence=69), 168, -58, 0xaea0, 255, 255, b"\x85\xa0\xae\xfb\xa9\xa5\xfe\xff'\xfd\x84\x80"]
2021-11-10 09:27:29 INFO (MainThread) [bellows.zigbee.application] ZDO Device announce: 0xaea0, 84:fd:27:ff:fe:a5:a9:fb
2021-11-10 09:27:29 INFO (MainThread) [zigpy.application] Device 0xaea0 (84:fd:27:ff:fe:a5:a9:fb) joined the network
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device 84:fd:27:ff:fe:a5:a9:fb
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.device] [0xaea0] Cancelling old group rescan
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.zdo] [0xaea0:zdo] ZDO request ZDOCmd.Device_annce: [0xAEA0, 84:fd:27:ff:fe:a5:a9:fb, 128]
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): completed configuration
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): stored in registry: ZhaDeviceEntry(name='_TZE200_b6wax7g0 TS0601', ieee='84:fd:27:ff:fe:a5:a9:fb', last_seen=1636532849.685419)
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): started initialization
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:ZDO](TS0601): 'async_initialize' stage succeeded
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xaea0, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=191), 192, b'\x01\xbf\x02\x00')
2021-11-10 09:27:29 DEBUG (MainThread) [zigpy.device] [0xaea0] Extending timeout for 0xc1 request
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'30e82157541e1512f7904b21aa5493099d4e27142dca6634ffc64bef7e'
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0000]: initializing channel: from_cache: False
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0000]: finished channel configuration
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0019]: initializing channel: from_cache: False
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0019]: finished channel configuration
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0000]: 'async_initialize' stage succeeded
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xaea0:1:0x0019]: 'async_initialize' stage succeeded
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): power source: Battery or Unknown
2021-11-10 09:27:29 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xaea0](TS0601): completed initialization
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'04e8a157541e157006ca7e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00c2'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.zigbee.application] Extending timeout for 84:fd:27:ff:fe:a5:a9:fb/0xaea0
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command setExtendedTimeout: (84:fd:27:ff:fe:a5:a9:fb, True)
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'41e921575454ee1bfc6ab50257d193eff57e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'15e9a15754545b737e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 126 (setExtendedTimeout) received: b''
2021-11-10 09:27:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xaea0, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=193), 194, b'\x01\xc1\x02\x00')
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'52ee2157541e1512f7904b21aa5493099d4e276a2fca664affc633c87e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26eea157541e157143007e'
2021-11-10 09:27:29 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00c3'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36eeb1575473b51ca23defdb55726fcd348826f163990f7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'46eeb1575473b51ca23defdb55726fcd348826f163010f7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56eeb1575473b51ca23defdb55726fcd348826f1638fc27e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'66eeb1575473b51ca23defdb55726fcd348826f1630cb47e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'76eeb157546f15b658904a24ab1593499c088f6d4d609874f8dfa28b037e3b9f7b7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a0aefba9a5feff27fd84a8c6015a8e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a]]
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a])
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a0aefba9a5feff27fd84a8c6015a8e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a]]
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a])
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a0aefba9a5feff27fd84a8c6015a8e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a]]
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a])
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06eeb15754151512f7904b21aa5493099d4e27682fce671df27e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16eeb157546f15b658904a24ab1593499c098f6d4d609874f8dfdc8b037e3b6f457e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a0aefba9a5feff27fd84a8c6015a8e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a]]
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 168, -58, [0x8e5a])
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'000401040001014001000046a8c6a0aeffff0519c102ff0004'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=70), 168, -58, 0xaea0, 255, 255, b'\x19\xc1\x02\xff\x00']
2021-11-10 09:27:30 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=193 command_id=2>
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'00a0ae04010400010140010000c3c20000'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 44704, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=195), 194, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'000401040001014001000047a8c6a0aeffff0519bf02ff0004'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=71), 168, -58, 0xaea0, 255, 255, b'\x19\xbf\x02\xff\x00']
2021-11-10 09:27:30 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0004] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=191 command_id=2>
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26eeb15754151512f7904b21aa5493099c4e27692dce67ddab7e'
2021-11-10 09:27:30 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'00a0ae04010400010140000000c2c00000'
2021-11-10 09:27:30 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 44704, EmberApsFrame(profileId=260, clusterId=4, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=194), 192, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36eeb1575473754d71201ddb55f9a1f5c0fd260ee8d18f7e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'60ff28b457feffac33bc5cb301a505'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xff60, bc:33:ac:ff:fe:57:b4:28, 92, -77, [0x05a5]]
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xff60, bc:33:ac:ff:fe:57:b4:28, 92, -77, [0x05a5])
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'46eeb157546f15b658944a2eab1593499cd77b188d319874fade4a83fd7e1fe5ef2d807e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000b0140010000995cb360ffffff0718290a0100204204'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=11, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=153), 92, -77, 0xff60, 255, 255, b'\x18)\n\x01\x00 B']
2021-11-10 09:27:32 DEBUG (MainThread) [zigpy.zcl] [0xff60:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=41 command_id=Command.Report_Attributes>
2021-11-10 09:27:32 DEBUG (MainThread) [zigpy.zcl] [0xff60:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
2021-11-10 09:27:32 DEBUG (MainThread) [zigpy.zcl] [0xff60:11:0x0000] Attribute report received: app_version=66
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'56eeb1575473b51ca23defdb55726fcd308926f16370707e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a0aefba9a5feff27fd84acc7015a8e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 172, -57, [0x8e5a]]
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xaea0, 84:fd:27:ff:fe:a5:a9:fb, 172, -57, [0x8e5a])
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'66eeb157546f15b259964a25aa1593499c068b6c4d609874fe406389f8d0047e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'000000020000004001000048acc7a0aeffff0386000004'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=2, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=72), 172, -57, 0xaea0, 255, 255, b'\x86\x00\x00']
2021-11-10 09:27:32 DEBUG (MainThread) [zigpy.zdo] [0xaea0:zdo] ZDO request ZDOCmd.Node_Desc_req: [0x0000]
2021-11-10 09:27:32 DEBUG (MainThread) [zigpy.zdo] [0xaea0:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_req
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'76eeb15754b1ee1bfc6ab50257d1948a5a7e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 155 (zigbeeKeyEstablishmentHandler) received: b'fba9a5feff27fd8406'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [84:fd:27:ff:fe:a5:a9:fb, <EmberKeyStatus.TC_RESPONDED_TO_KEY_REQUEST: 6>]
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06eeb15754b1ee1bfc6ab50257d1a665dc7e'
2021-11-10 09:27:32 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 155 (zigbeeKeyEstablishmentHandler) received: b'fba9a5feff27fd8434'
2021-11-10 09:27:32 DEBUG (MainThread) [bellows.zigbee.application] Received zigbeeKeyEstablishmentHandler frame with [84:fd:27:ff:fe:a5:a9:fb, <EmberKeyStatus.TC_REQUESTER_VERIFY_KEY_SUCCESS: 52>]
2021-11-10 09:27:34 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16eeb157546f15b658944a24ab5593499c058f6d4d609874f2ce3283fd7e1fe70932fe706b00e7dbd1dd767e'
2021-11-10 09:27:34 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:34 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000101000100004ba8c6a0aeffff0f08510a01002040e2ff201fe4ff200004'
2021-11-10 09:27:34 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=75), 168, -58, 0xaea0, 255, 255, b'\x08Q\n\x01\x00 @\xe2\xff \x1f\xe4\xff \x00']
2021-11-10 09:27:34 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=81 command_id=Command.Report_Attributes>
2021-11-10 09:27:34 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=64>), Attribute(attrid=65506, value=<TypeValue type=uint8_t, value=31>), Attribute(attrid=65508, value=<TypeValue type=uint8_t, value=0>)]]
2021-11-10 09:27:34 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] Attribute report received: app_version=64, 65506=31, 65508=0
2021-11-10 09:27:34 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xaea0, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=81), 195, b'\x18Q\x0b\n\x00')
2021-11-10 09:27:34 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'62ef2157541e1512f7904b25aa5493099d4e27fa2ecb7fdaf6cc6352927e'
2021-11-10 09:27:34 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'27efa157541e1575fc367e'
2021-11-10 09:27:34 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:34 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00c7'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'37efb15754151512f7904b25aa5493099d4e276c2ece67b5ae7e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'00a0ae04010000010140010000c7c30000'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 44704, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=199), 195, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47efb157546f15b658944a24ab5593499c028f6d4d609874ebce318323817da83481c0469c0f8bc5fcc098c0580abbe885557e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000101000100004ca8c6a0aeffff1608520adfff420fdf4c1e2913f04c1e2912f14c1e291204'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=76), 168, -58, 0xaea0, 255, 255, b'\x08R\n\xdf\xffB\x0f\xdfL\x1e)\x13\xf0L\x1e)\x12\xf1L\x1e)\x12']
2021-11-10 09:27:35 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=82 command_id=Command.Report_Attributes>
2021-11-10 09:27:35 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65503, value=<TypeValue type=CharacterString, value=�L)�L)�L)>)]]
2021-11-10 09:27:35 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x0000] Attribute report received: 65503=�L)�L)�L)
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xaea0, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=82), 196, b'\x18R\x0b\n\x00')
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75ec2157541e1512f7904b25aa5493099d4e27f929cb7fd9f6cc63d08e7e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50eca157541e157aa24f7e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00c8'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'60ecb15754151512f7904b25aa5493099d4e276329ce6788067e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'00a0ae04010000010140010000c8c40000'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 44704, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=200), 196, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'70ecb157546f15b6589e4a24ab5593499c038f6d4d609874f8c63089fb7e3bb1217e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010a000101000100004da8c6a0aeffff05005300070004'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=77), 168, -58, 0xaea0, 255, 255, b'\x00S\x00\x07\x00']
2021-11-10 09:27:35 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x000a] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=83 command_id=Command.Read_Attributes>
2021-11-10 09:27:35 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0x000a] ZCL request 0x0000: [[7]]
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xaea0, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=83), 197, b'\x18S\x01\x07\x00\x00#\x07M\x1e)')
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'00ed2157541e1512f7904b2faa5493099d4e27f828c57fd8fcc16389df7972b9c2e52b7e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01eda157541e157b86b87e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 52 (sendUnicast) received: b'00c9'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'11edb15754151512f7904b2faa5493099d4e276228ce674d517e'
2021-11-10 09:27:35 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'00a0ae04010a00010140010000c9c50000'
2021-11-10 09:27:35 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 44704, EmberApsFrame(profileId=260, clusterId=10, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=201), 197, <EmberStatus.SUCCESS: 0>, b'']
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'21edb157546f15b65894a524ab5593499c008b6c4d609874f7cf3788fc1b3ea3ebccdf6bd7ff7e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100004eacc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=78), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=84 command_id=1>
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'31edb157541515dbb6944a11aa5592099c4e271751a86740327e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:36 WARNING (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] Unknown cluster-specific command 1
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] ZCL request 0x0001: b'\x00e\x01\x04\x00\x01\x01'
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] No handler for cluster command 1
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 63 (messageSentHandler) received: b'0069ef00003400000040000000bcbc6600'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 61289, EmberApsFrame(profileId=0, clusterId=52, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=188), 188, <EmberStatus.DELIVERY_FAILED: 102>, b'']
Youpimatin commented 2 years ago
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'41edb157546f15b65894a524ab5593499c018b6c4d609874f7cf3788fc1b3ea3ebccdf6b806f7e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'51edb15754738cd7e31e27db55f9a1f518f327251b7e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'61edb157546f15b658944a2eab1593499c1ba31674ab9874fade0d83fd7e1fe5e9b2337e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100004facc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=79), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=84 command_id=1>
2021-11-10 09:27:36 WARNING (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] Unknown cluster-specific command 1
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] ZCL request 0x0001: b'\x00e\x01\x04\x00\x01\x01'
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0xaea0:1:0xef00] No handler for cluster command 1
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'9965ba8a6dfeffac33bc84bd00'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0x6599, bc:33:ac:ff:fe:6d:8a:ba, 132, -67, []]
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0x6599, bc:33:ac:ff:fe:6d:8a:ba, 132, -67, [])
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.device] [0xaea0] Delivery error for seq # 0xb9, on endpoint id 0 cluster 0x0034: message send failure
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000b01400100005584bd9965ffff07186e0a0100204202'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=11, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=85), 132, -67, 0x6599, 255, 255, b'\x18n\n\x01\x00 B']
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0x6599:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=110 command_id=Command.Report_Attributes>
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0x6599:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.zcl] [0x6599:11:0x0000] Attribute report received: app_version=66
2021-11-10 09:27:36 DEBUG (MainThread) [zigpy.application] Sending 'zdo_leave_req' failed: [0xaea0:0:0x0034]: Message send failure
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'71edb157546f15b65894a524ab5593499c1e8b6c4d609874f7cf3788fc1b3ea3ebccdf6bd6c47e'
2021-11-10 09:27:36 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000050acc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=80), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:36 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'01edb157546f15b65894a524ab5593499c1f8b6c4d609874f7cf3788fc1b3ea3ebccdf6b35067e'
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000051acc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=81), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'7d31f22157542fa7b37e'
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12f2a157542fb46b7e'
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22f2b157546f15b65894a524ab5593499c1c8b6c4d609874f7cf3788fc1b3ea3ebccdf6b7bb77e'
2021-11-10 09:27:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000052acc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=82), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:37 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32f2b157546f15b65894a524ab5593499c1d8f6d4d609874f7cf3788fc1b3ea3ebccdf6bf1bf7e'
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000053a8c6a0aeffff0a0954010065010400010104'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=83), 168, -58, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42f2b1575473b0b712d374db55b79821c0fd2704267e'
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'a5054b473efeffe20a685cb300'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0x05a5, 68:0a:e2:ff:fe:3e:47:4b, 92, -77, []]
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0x05a5, 68:0a:e2:ff:fe:3e:47:4b, 92, -77, [])
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'52f2b157546f15b658944a24ab1593499c647b1848cb9874fade4683fd7e1fe2e90a127e'
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000101400100002a5cb3a505ffff0718250a0100204502'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=42), 92, -77, 0x05a5, 255, 255, b'\x18%\n\x01\x00 E']
2021-11-10 09:27:38 DEBUG (MainThread) [zigpy.zcl] [0x05a5:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=37 command_id=Command.Report_Attributes>
2021-11-10 09:27:38 DEBUG (MainThread) [zigpy.zcl] [0x05a5:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
2021-11-10 09:27:38 DEBUG (MainThread) [zigpy.zcl] [0x05a5:1:0x0000] Attribute report received: app_version=69
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'62f2b157546f15b65894a524ab5593499c1a8f6d4d609874f7cf3788fc1b3ea3ebccdf6b8ef87e'
2021-11-10 09:27:38 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000054a8c6a0aeffff0a0954010065010400010104'
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=84), 168, -58, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:38 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:39 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72f2b157546f15b65894a524ab5593499c1b8f6d4d609874f7cf3788fc1b3ea3ebccdf6be4b57e'
2021-11-10 09:27:39 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000055a8c6a0aeffff0a0954010065010400010104'
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=85), 168, -58, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:39 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02f2b157546f15b65894a524ab5593499c188b6c4d609874f7cf3788fc1b3ea3ebccdf6b4b2d7e'
2021-11-10 09:27:39 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000056acc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=86), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:39 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:40 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12f2b157546f15b65894a524ab5593499c198b6c4d609874f7cf3788fc1b3ea3ebccdf6b21607e'
2021-11-10 09:27:40 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000057acc7a0aeffff0a0954010065010400010104'
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=87), 172, -57, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:40 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22f2b157546f15b65894a524ab5593499c168f6d4d609874f7cf3788fc1b3ea3ebccdf6ba7d37e'
2021-11-10 09:27:40 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000058a8c6a0aeffff0a0954010065010400010104'
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=88), 168, -58, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:40 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:41 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'32f2b157546f15b65894a524ab5593499c178f6d4d609874f7cf3788fc1b3ea3ebccdf6bcd9e7e'
2021-11-10 09:27:41 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000059a8c6a0aeffff0a0954010065010400010104'
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=89), 168, -58, 0xaea0, 255, 255, b'\tT\x01\x00e\x01\x04\x00\x01\x01']
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:41 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'42f2b157546f15b65894a524ab5593499c148f6d4d609874f0cf3688fc183da5ebc9de6f8feec3c2497e'
2021-11-10 09:27:41 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005aa8c6a0aeffff0d0955010066020200040000001104'
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=90), 168, -58, 0xaea0, 255, 255, b'\tU\x01\x00f\x02\x02\x00\x04\x00\x00\x00\x11']
2021-11-10 09:27:41 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'52f2b157546f15b65894a524ab5593499c158f6d4d609874f0cf3588fc193ca5ebc9de6f8f4bc34c3b7e'
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'5af2b157546f15b65894a524ab5593499c158f6d4d609874f0cf3588fc193ca5ebc9de6f8f4bc3694a7e'
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005ba8c6a0aeffff0d095601006703020004000000b404'
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=91), 168, -58, 0xaea0, 255, 255, b'\tV\x01\x00g\x03\x02\x00\x04\x00\x00\x00\xb4']
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005ba8c6a0aeffff0d095601006703020004000000b404'
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=91), 168, -58, 0xaea0, 255, 255, b'\tV\x01\x00g\x03\x02\x00\x04\x00\x00\x00\xb4']
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'62f2b157546f15b65894a524ab5593499c128f6d4d609874f7cf3488fc163ba6ebccde6b16647e'
2021-11-10 09:27:43 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005ca8c6a0aeffff0a0957010068040100010004'
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=92), 168, -58, 0xaea0, 255, 255, b'\tW\x01\x00h\x04\x01\x00\x01\x00']
2021-11-10 09:27:43 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:44 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72f2b157546f15b65894a524ab5593499c138f6d4d609874f0cf3b88fc173aa5ebc9de6f8fffc3908a7e'
2021-11-10 09:27:44 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:44 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005da8c6a0aeffff0d0958010069050200040000000004'
2021-11-10 09:27:44 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=93), 168, -58, 0xaea0, 255, 255, b'\tX\x01\x00i\x05\x02\x00\x04\x00\x00\x00\x00']
2021-11-10 09:27:44 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:45 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'02f2b157546f15b65894a524ab5593499c108f6d4d609874f7cf3a88fc1438a3ebccde6b87547e'
2021-11-10 09:27:45 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:45 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005ea8c6a0aeffff0a095901006a070400010004'
2021-11-10 09:27:45 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=94), 168, -58, 0xaea0, 255, 255, b'\tY\x01\x00j\x07\x04\x00\x01\x00']
2021-11-10 09:27:45 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:46 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'12f2b157546f15b65894a524ab5593499c118f6d4d609874f7cf3988fc1537a6ebccde6b02e37e'
2021-11-10 09:27:46 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:46 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100005fa8c6a0aeffff0a095a01006b080100010004'
2021-11-10 09:27:46 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=95), 168, -58, 0xaea0, 255, 255, b'\tZ\x01\x00k\x08\x01\x00\x01\x00']
2021-11-10 09:27:46 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:47 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'22f2b157546f15b65894a524ab5593499c2e8f6d4d609874f7cf3888fc1236a3ebccdf6b17357e'
2021-11-10 09:27:47 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:47 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000060a8c6a0aeffff0a095b01006c090400010104'
2021-11-10 09:27:47 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=96), 168, -58, 0xaea0, 255, 255, b'\t[\x01\x00l\t\x04\x00\x01\x01']
2021-11-10 09:27:47 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:47 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:27:47 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'23f32157542fa92e7e'
2021-11-10 09:27:47 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'33f3a157542f6e927e'
2021-11-10 09:27:47 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:47 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:27:48 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'43f3b157546f15b65894a524ab5593499c2f8f6d4d609874f7cf3f88fc1332a6ebccde6bbc8d7e'
2021-11-10 09:27:48 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:48 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000061a8c6a0aeffff0a095c01006d0d0100010004'
2021-11-10 09:27:48 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=97), 168, -58, 0xaea0, 255, 255, b'\t\\\x01\x00m\r\x01\x00\x01\x00']
2021-11-10 09:27:48 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:49 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'53f3b157546f15b65894a524ab5593499c2c8f6d4d609874f0cf3e88fc1031a5ebc9de6f8fc5c3edcf7e'
2021-11-10 09:27:49 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:49 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000062a8c6a0aeffff0d095d01006e0e0200040000003a04'
2021-11-10 09:27:49 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=98), 168, -58, 0xaea0, 255, 255, b'\t]\x01\x00n\x0e\x02\x00\x04\x00\x00\x00:']
2021-11-10 09:27:49 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:50 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63f3b157546f15b65894a524ab5593499c2d8f6d4d609874d0cf3d88fc115aa7ebe9d86fa7f4d9f1d8cc459d580dafec4637a5c47b9c6d89520c15b1c67c2634001991f7d44d8e5db17e'
2021-11-10 09:27:50 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:50 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000063a8c6a0aeffff2d095e01006f650000240600280b1e2a0d1e2c111e2e0600300c002e0e1e2c111e2a0600260c1e280e1e2a121e2804'
2021-11-10 09:27:50 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=99), 168, -58, 0xaea0, 255, 255, b'\t^\x01\x00oe\x00\x00$\x06\x00(\x0b\x1e*\r\x1e,\x11\x1e.\x06\x000\x0c\x00.\x0e\x1e,\x11\x1e*\x06\x00&\x0c\x1e(\x0e\x1e*\x12\x1e(']
2021-11-10 09:27:50 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:51 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'73f3b157546f15b65894a524ab5593499c2a8f6d4d609874f0cf3c88fc0e58a5ebc9de6f8ed3c387427e'
2021-11-10 09:27:51 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000064a8c6a0aeffff0d095f010070670200040000012c04'
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=100), 168, -58, 0xaea0, 255, 255, b'\t_\x01\x00pg\x02\x00\x04\x00\x00\x01,']
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:51 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'03f3b157546f15b65894a524ab5593499c2b8f6d4d609874f0cf0388fc0f57a5ebc9de6f8fe6c3ceda7e'
2021-11-10 09:27:51 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000065a8c6a0aeffff0d0960010071680200040000001904'
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=101), 168, -58, 0xaea0, 255, 255, b'\t`\x01\x00qh\x02\x00\x04\x00\x00\x00\x19']
2021-11-10 09:27:51 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:52 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'13f3b157546f15b65894a524ab5593499c288f6d4d609874f0cf0288fc0c56a5ebc9de6f8fffc394347e'
2021-11-10 09:27:52 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:27:52 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000066a8c6a0aeffff0d0961010072690200040000000004'
2021-11-10 09:27:52 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=102), 168, -58, 0xaea0, 255, 255, b'\ta\x01\x00ri\x02\x00\x04\x00\x00\x00\x00']
2021-11-10 09:27:52 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:53 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'23f3b157546f15b65894a524ab5593499c298f6d4d609874f7cf0188fc0d55a6ebccde6bd7c77e'
2021-11-10 09:27:53 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:27:53 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000067a8c6a0aeffff0a09620100736a0100010004'
2021-11-10 09:27:53 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=103), 168, -58, 0xaea0, 255, 255, b'\tb\x01\x00sj\x01\x00\x01\x00']
2021-11-10 09:27:53 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:54 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'33f3b157546f15b65894a524ab5593499c268f6d4d609874f0cf0088fc0a54a5ebc9de6f8ff0c30c827e'
2021-11-10 09:27:54 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:27:54 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000068a8c6a0aeffff0d09630100746b0200040000000f04'
2021-11-10 09:27:54 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=104), 168, -58, 0xaea0, 255, 255, b'\tc\x01\x00tk\x02\x00\x04\x00\x00\x00\x0f']
2021-11-10 09:27:54 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:55 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'43f3b157546f15b65894a524ab5593499c278f6d4d609874f0cf0788fc0b53a5ebc9de6f8fe1c3a1717e'
2021-11-10 09:27:55 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:27:55 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef01010001000069a8c6a0aeffff0d09640100756c0200040000001e04'
2021-11-10 09:27:55 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=105), 168, -58, 0xaea0, 255, 255, b'\td\x01\x00ul\x02\x00\x04\x00\x00\x00\x1e']
2021-11-10 09:27:55 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:56 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'53f3b157546f15b65894a524ab5593499c248f6d4d609874f0cf0688fc0852a5ebc9de6f8ffac39dfd7e'
2021-11-10 09:27:56 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:27:56 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100006aa8c6a0aeffff0d09650100766d0200040000000504'
2021-11-10 09:27:56 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=106), 168, -58, 0xaea0, 255, 255, b'\te\x01\x00vm\x02\x00\x04\x00\x00\x00\x05']
2021-11-10 09:27:56 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:57 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'63f3b157546f15b65894a524ab5593499c258f6d4d609874f8df05adfc1b3bb2f57e'
2021-11-10 09:27:57 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:27:57 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100006ba8c6a0aeffff05196624006504'
2021-11-10 09:27:57 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=107), 168, -58, 0xaea0, 255, 255, b'\x19f$\x00e']
2021-11-10 09:27:57 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:27:57 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:27:57 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'37f02157542f5bd97e'
2021-11-10 09:27:57 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'74f0a157542f22117e'
2021-11-10 09:27:57 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:27:57 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'04f0b157546f15b65894a524ab5593499c228f6d4d609874fbcf0498fc187fa324bd7e'
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100006ca8c6a0aeffff0609671100664004'
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=108), 168, -58, 0xaea0, 255, 255, b'\tg\x11\x00f@']
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'14f0b157546f15b65894a524ab5593499c238f6d4d609874fbcf0498fc187fa34e847e'
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100ef0101000100006da8c6a0aeffff0609671100664004'
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=61184, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=109), 168, -58, 0xaea0, 255, 255, b'\tg\x11\x00f@']
2021-11-10 09:28:00 DEBUG (MainThread) [bellows.zigbee.application] No such device 0xaea0
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'24f0b15754737f1ce3e50fdb55f9a1f5e4f42712c77e'
2021-11-10 09:28:00 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'34f0b157546f15b658924a27ab1593499ca25f1187609874fade2683fc7e2fa7e9724b7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'44f0b157546f15b658924a26ab1593499ca35f1187609874fade2583fc7e2fa7e9e96c7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'54f0b157546f15b658924a24ab1593499ca55f1187609874fade2783fc7e2fa7e9ce4c7e'
2021-11-10 09:28:01 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'6aaeba7145feffac33bc78ba00'
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0xae6a, bc:33:ac:ff:fe:45:71:ba, 120, -70, []]
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0xae6a, bc:33:ac:ff:fe:45:71:ba, 120, -70, [])
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010600020140010000ec78ba6aaeffff0718450a0000100002'
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=2, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=236), 120, -70, 0xae6a, 255, 255, b'\x18E\n\x00\x00\x10\x00']
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=69 command_id=Command.Report_Attributes>
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:2:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:2:0x0006] Attribute report received: on_off=0
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010600030140010000ed78ba6aaeffff0718460a0000100002'
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=3, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=237), 120, -70, 0xae6a, 255, 255, b'\x18F\n\x00\x00\x10\x00']
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:3:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=70 command_id=Command.Report_Attributes>
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:3:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:3:0x0006] Attribute report received: on_off=0
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010600010140010000eb78ba6aaeffff0718440a0000100002'
2021-11-10 09:28:01 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=235), 120, -70, 0xae6a, 255, 255, b'\x18D\n\x00\x00\x10\x00']
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=68 command_id=Command.Report_Attributes>
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0006] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=Bool, value=Bool.false>)]]
2021-11-10 09:28:01 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0006] Attribute report received: on_off=0
2021-11-10 09:28:07 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:07 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'46f12157542ff1b47e'
2021-11-10 09:28:07 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'65f1a157542fd7647e'
2021-11-10 09:28:07 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:28:07 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:15 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'75f1b157546f15b658944a24ab1593499ca05f1187609874fade2483fd7e1fe2e97cf57e'
2021-11-10 09:28:15 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:28:15 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010000010140010000ee78ba6aaeffff0718470a0100204502'
2021-11-10 09:28:15 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=238), 120, -70, 0xae6a, 255, 255, b'\x18G\n\x01\x00 E']
2021-11-10 09:28:15 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=71 command_id=Command.Report_Attributes>
2021-11-10 09:28:15 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
2021-11-10 09:28:15 DEBUG (MainThread) [zigpy.zcl] [0xae6a:1:0x0000] Attribute report received: app_version=69
2021-11-10 09:28:17 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:17 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'50f62157542f01057e'
2021-11-10 09:28:17 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'06f6a157542f21487e'
2021-11-10 09:28:17 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:28:17 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:18 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'16f6b157547327f399cc18db55f9a1f5ecf6272b7d7e'
2021-11-10 09:28:18 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'82503a7e'
2021-11-10 09:28:18 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 89 (incomingRouteRecordHandler) received: b'3241c05852feffac33bc70b800'
2021-11-10 09:28:18 DEBUG (MainThread) [bellows.zigbee.application] Received incomingRouteRecordHandler frame with [0x4132, bc:33:ac:ff:fe:52:58:c0, 112, -72, []]
2021-11-10 09:28:18 DEBUG (MainThread) [bellows.zigbee.application] Processing route record request: (0x4132, bc:33:ac:ff:fe:52:58:c0, 112, -72, [])
2021-11-10 09:28:18 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'26f6b157546f15b658944a2eab1593499c575713df8f9874fade1083fd7e1fe5e9ca867e'
2021-11-10 09:28:18 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'83401b7e'
2021-11-10 09:28:18 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100000b01400100001970b83241ffff0718730a0100204202'
2021-11-10 09:28:18 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=11, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=25), 112, -72, 0x4132, 255, 255, b'\x18s\n\x01\x00 B']
2021-11-10 09:28:18 DEBUG (MainThread) [zigpy.zcl] [0x4132:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=115 command_id=Command.Report_Attributes>
2021-11-10 09:28:18 DEBUG (MainThread) [zigpy.zcl] [0x4132:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
2021-11-10 09:28:18 DEBUG (MainThread) [zigpy.zcl] [0x4132:11:0x0000] Attribute report received: app_version=66
2021-11-10 09:28:21 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'36f6b157546f15b658944a24ab1593499ca58f6db7409874fade1083fd7e1fe2e9b45b7e'
2021-11-10 09:28:21 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8430fc7e'
2021-11-10 09:28:21 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'0004010000010140010000eba8c65a8effff0718730a0100204502'
2021-11-10 09:28:21 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=235), 168, -58, 0x8e5a, 255, 255, b'\x18s\n\x01\x00 E']
2021-11-10 09:28:21 DEBUG (MainThread) [zigpy.zcl] [0x8e5a:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=115 command_id=Command.Report_Attributes>
2021-11-10 09:28:21 DEBUG (MainThread) [zigpy.zcl] [0x8e5a:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=69>)]]
2021-11-10 09:28:21 DEBUG (MainThread) [zigpy.zcl] [0x8e5a:1:0x0000] Attribute report received: app_version=69
2021-11-10 09:28:27 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:27 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'64f72157542f82797e'
2021-11-10 09:28:27 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'47f7a157542fa4a97e'
2021-11-10 09:28:27 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8520dd7e'
2021-11-10 09:28:27 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:37 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'75f42157542f338f7e'
2021-11-10 09:28:37 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'50f4a157542f98be7e'
2021-11-10 09:28:37 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8610be7e'
2021-11-10 09:28:37 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:47 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:47 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'06f52157542f12a27e'
2021-11-10 09:28:48 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'61f5a157542f58c37e'
2021-11-10 09:28:48 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2021-11-10 09:28:48 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:28:58 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:28:58 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'17fa2157542f287f7e'
2021-11-10 09:28:58 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'72faa157542fe95e7e'
2021-11-10 09:28:58 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2021-11-10 09:28:58 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
2021-11-10 09:29:08 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: ()
2021-11-10 09:29:08 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'20fb2157542f65e37e'
2021-11-10 09:29:08 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'03fba157542f43337e'
2021-11-10 09:29:08 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8160597e'
2021-11-10 09:29:08 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''
Youpimatin commented 2 years ago

This morning with two 1.2V NIMH :

2021-11-10 09:35:20 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 58] for attribute 0x020e (command 0x0001)
2021-11-10 09:36:19 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)
2021-11-10 09:36:21 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 61] for attribute 0x020e (command 0x0001)

This morning, after changing them with two new 1.5V alkaline :

2021-11-10 09:39:15 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 100] for attribute 0x020e (command 0x0001)
2021-11-10 09:40:00 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 91] for attribute 0x020e (command 0x0001)
2021-11-10 09:40:01 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 94] for attribute 0x020e (command 0x0001)
2021-11-10 09:51:18 DEBUG (MainThread) [zhaquirks.tuya] [0x4170:1:0xef00] Received value [0, 0, 0, 100] for attribute 0x020e (command 0x0001)
jacekk015 commented 2 years ago

For 0x0202 - we will leave it for now as it is. I will try to make a debug quirk so it could send all data possible - I will try it on my Tuya TRV. We will track this later.

For battery it looks like it's battery left %, from 100 down to "0"

MattWestb commented 2 years ago

I think making one debug quirk is great but it need 2 different Zigbee modules and one with time cluster as in and one with it as out cluster. Is is possible doing the MODELS_INFO: as one variable and having 5 or more signatures the system can trying ?

I can putting the signature together from different ts0601 quirks for you and its being little easier.

Youpimatin commented 2 years ago

I've installed 8 of these on my radiators now, and there is another problem with the thermostats entities in Home Assistant : 6 of my TRVs are shown as "Heating" 2 of them are shown as "Off"

If I select them, they all are in "Heat" mode (in the operation dropdown) (and if I change the operation mode to "Off", they return to "Heat", which is OK, since they can't go off)

I think they stay in the first seen state when I paired them (valve open or closed, maybe)

Is there anything I can do to help you with the debugging of the quirk(s) ?

jacekk015 commented 2 years ago

I've started to write code already. But after some thinking I've decided to extend all Moes devices. So you all will receive ChildLock, WindowDetect etc. Maybe later today I'll try to upload first dev version for overall test of the quirk. BTW have you enabled custom quirks functionality in configuration.yaml?? https://github.com/zigpy/zha-device-handlers/discussions/693#discussioncomment-857274

Youpimatin commented 2 years ago

Nice ! Yes I've enabled custom quirks

logger:
  default: info
  logs:
    homeassistant.components.zha: debug
    zigpy: debug
    zhaquirks: debug

zha:
  custom_quirks_path: /config/custom_zha_quirks/

With "ts0601_trv.py" in the custom_zha_quirks folder. (not the last one with added "Tuya Battery 2* AA attributes", the previous one)

While waiting the quirk in the past days I wondered where can we find the dev version when you upload it ?

MattWestb commented 2 years ago

Some tuya TRVs is supporting one real off mode but most is not doing that and i think its little strange implanting one off mode is the try is not supporting it in the firmware. Most have one Away mode or Antifreeze mode that shall is not on system mode off and its good for not getting all destroyed by frozen water pipes.

If not having real off mode the TRV is always in system mode heating and only changing presets is the most logic and clean to do.

If user like having one off mode they can doing one automation that is setting the setpoint to one very low temperature.

jacekk015 commented 2 years ago

While waiting the quirk in the past days I wondered where can we find the dev version when you upload it ?

Here, as a ZIP file. You will be notified.

Youpimatin commented 2 years ago

If user like having one off mode they can doing one automation that is setting the setpoint to one very low temperature.

Yes it's what I do. (You can see it, the "Amis" TRV is set to 10°C)

I was just surprised by this display problem :

HeatingOrOff

jacekk015 commented 2 years ago

@Youpimatin Here's test dev file. Remove your present quirk file for testing ts0601_trv_moes.py.zip

Youpimatin commented 2 years ago

Downloaded zip ; installed "ts0601_trv_moes.py" ; deleted previous quirk and "pycache" folder ; reloaded ZHA integration ; deleted 1 TRV ; re-paired this device.

Quirk: ts0601_trv_moes.MoesHY368_Type3 ZHA3

Added to lovelace : Entities

(I had already renamed the child lock switch when I took the screenshots)

So :

Switch 1 : ?

Switch 2 : "Child Lock" is working writing from HA to the TRV (icon appears and disapears directly on TRV display if display is on), but not reported to HA when changed on the TRV.

Switch 3 : "Open Window Detection" is working writing from HA to the TRV (A2 status changing 0/1 on menu if menu is opened on the TRV), but not reported to HA when changed on the TRV.

The thermostat set point is working writing from HA to the TRV, but not reported to HA when changed on the TRV.

The thermostat sensed temperature is not reported to HA anymore (it stays 19°C indefinitely).

I get an error when playing with the "analog_output Valve State" : Error1 and when changing temperature on the TRV (but not when changing temperature in HA), it displays on HA: 2000 for a valve opening of 0% 2025 for a valve opening of 25% 2050 for a valve opening of 50% 2075 for a valve opening of 75% 2100 for a valve opening of 100%

Strikethrough text is what did not work before I restart HA... after retarting HA, these functions work nicely

jacekk015 commented 2 years ago

Error is a mistake in code copy/paste - will be corrected. You have[for now] 3 switches: Child lock, Window detect alarm, Window detect A2 function[enabled/disabled] - from PDF manual. I've decided to create a switch for Window open alarm. If the TRV do something on the Window open alarm, we then could automate this like for example: you put a Zigbee window magnetic sensor, and when sensor detects window opening the you could automatically enable Window Alarm on the TRV. Binary sensor is only one way TRV -> HA.

BTW you always need to restart HA after quirk update, only on boot time the quirk is loaded.

and when changing temperature on the TRV (but not when changing temperature in HA), it displays on HA: 2000 for a valve opening of 0% 2025 for a valve opening of 25% 2050 for a valve opening of 50% 2075 for a valve opening of 75% 2100 for a valve opening of 100%

Could you show some picture explaining it more? [edit] Oh, ah - I get it. That field was borrowed from my code, it was a code for Year field - that's why it adds 2000 to the value ;-)

jacekk015 commented 2 years ago

Presets are also working, but now for them to work you need to modify some code in the HA climate.py, or wait for the official update later. Your TRV has modes:

Away = 0x00
Schedule = 0x01
Manual = 0x02

@MattWestb could probably help you with this

MattWestb commented 2 years ago

I think its not needed for testing then this TRV have the preset added for "normal" Moes TRVs so it shall working but the extra is very likely getting errors then being used.

            if record.value == 0:
                self._preset = PRESET_AWAY
            if record.value == 1:
                self._preset = PRESET_SCHEDULE
            if record.value == 2:
                self._preset = PRESET_NONE
            if record.value == 3:
                self._preset = PRESET_COMFORT
            if record.value == 4:
                self._preset = PRESET_ECO
            if record.value == 5:
                self._preset = PRESET_BOOST
            if record.value == 6:
                self._preset = PRESET_COMPLEX

I was thinking doing one standard with this 3 presets then its looks like most TRV is using them and can adding more TRVs without making now classes for them.

I doing one new climate.py with 3 presets for it but its takes some minutes to making it not braking the formatting.

One more thing is that i think we shall renaming this device then its not one Moes (more right CN-Hysen) then its made of Baca and is having many different DPs and shall not being mixed with Moes (that have making white labeled of nearly all tuya TRVs and not making them self). Also getting one PR thru is little more tricky then its braking the old implementation but i see its only making the device working better = shall being dome so user can using all possible function in there device.

jacekk015 commented 2 years ago

but the extra is very likely getting errors then being use

I can overcome this by making last statement just ELSE. So anything else not known will be mapped to, for example, Schedule.