sorry this the correct version
───────────────────────────────────────────────────
Name Zigbee Window Treatment Mc
Version 2023-04-29T16:12:04.119528888
───────────────────────────────────────────────────
sorry this the correct version
───────────────────────────────────────────────────
Name Zigbee Window Treatment Mc
Version 2023-04-29T16:12:04.119528888
───────────────────────────────────────────────────
@Mariano_Colmenarejo success! The open and closed commands are now working properly! The state is reporting reversed (i.e. reporting open when the blinds are closed and reporting closed when the blinds are open), but that is minor to me compared to getting the commands to work properly!
That has a solution!
I will do it tomorrow, today I can’t
Awesome, again, thank you Mariano for your help here and for everything else you are doing!
This driver version must fix it
───────────────────────────────────────────────────
Name Zigbee Window Treatment Mc
Version 2023-04-29T22:08:01.993081065
───────────────────────────────────────────────────
@Mariano_Colmenarejo yes, open/close reporting is fixed. I feel like we’re playing whack-a-mole though because… Setting blinds on a percentage is now inverted (0% is closed, 30% command is 70% closed, 100% is open, etc.). I don’t really use that feature, so doesn’t impact me but figured I would let you know!
Hello Mariano, I have still problems with your driver about the % status of the curtain. I can use it, but i would know the exact % status of the curtain
Immediately at te ends of every movement (up or down) the percentage goes directly to 0% and the status il closed evenf if the curtain is partially or fully open.
my device is:
Tuya Curtain Switch: Model QS-Zigbee-CP03
application: 40
endpointId: 01
manufacturer: _TZ3000_zirycpws
model: TS130F
zigbeeNodeType: ROUTER
Raw Description 01 0104 0202 01 05 0004 0005 0006 0102 0000 02 0019 000A
Lonsonho QS-Zigbee-C03 control via MQTT | Zigbee2MQTT
could you help me?
thx for your work
this is the log from cli
2023-04-30T05:11:22.165560513+00:00 TRACE Zigbee Window Treatment Mc Received event with handler capability
2023-04-30T05:11:22.194534513+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received command: {“args”:{},“capability”:“windowShade”,“command”:“open”,“component”:“main”,“positional_args”:{}}
2023-04-30T05:11:22.195894180+00:00 TRACE Zigbee Window Treatment Mc Found CapabilityCommandDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:22.197105513+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:22.296543513+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:22.297806180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCE, rssi: -80, body_length: 0x0005, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x08, ZCLCommandId: 0x0B >, < DefaultResponse || cmd: 0x00, ZclStatus: SUCCESS > > >
2023-04-30T05:11:22.325710180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:22.326554513+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:22.327750846+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -78, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x11, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0xF000, DataType: Uint8, Uint8: 0x00 > > > >
2023-04-30T05:11:22.363506180+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment → Tuya Device Handler
2023-04-30T05:11:22.365764846+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: 0xF000
2023-04-30T05:11:22.368366180+00:00 PRINT Zigbee Window Treatment Mc <<< Curtain Switch Value >>> 0
2023-04-30T05:11:22.370469846+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“<em table style=‘font-size:70%’;‘font-weight: bold’GMT: 2023/04/30 Time: 05:11
DNI: 0x4B23 LQI: 202 RSSI: -78dbm
”},“visibility”:{“displayed”:false}}
2023-04-30T05:11:22.379354513+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“deviceInfo”,“capability_id”:“legendabsolute60149.deviceInfo”,“component_id”:“main”,“state”:{“value”:“UTC Time: 05:11:22 Open or Up”}}
2023-04-30T05:11:22.397272180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x4B23, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0008 > > >
2023-04-30T05:11:22.405354180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:22.501427513+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:22.505677513+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -79, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x09, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0008, ZclStatus: SUCCESS, DataType: Uint8, CurrentPositionLiftPercentage: 0x00 > > > >
2023-04-30T05:11:22.520461180+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:22.523541513+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:22.527961513+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:23.555394846+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:23.571890846+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x12, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x37 > > > >
2023-04-30T05:11:23.737887513+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:23.741614180+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:23.755006180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:55}}
2023-04-30T05:11:23.846732847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:23.909755847+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:23.946120180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:24.686108847+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:24.704292847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x13, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x3C > > > >
2023-04-30T05:11:24.772355513+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:24.773205513+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:24.785217847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:60}}
2023-04-30T05:11:24.837316513+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:24.919950847+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:24.964844513+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:25.683817180+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:25.687085180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCE, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x14, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x41 > > > >
2023-04-30T05:11:25.735851513+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:25.736682847+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:25.739361180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:65}}
2023-04-30T05:11:25.749060513+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:25.790020180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:25.801180180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:26.814862180+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:26.819505847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x15, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x46 > > > >
2023-04-30T05:11:26.850730847+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:26.851568180+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:26.853434847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:70}}
2023-04-30T05:11:26.862300180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:26.892413514+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:26.893261847+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:28.005548847+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:28.055275514+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCE, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x16, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x4B > > > >
2023-04-30T05:11:28.260968514+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:28.294237514+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:28.295999180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:75}}
2023-04-30T05:11:28.479863847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:28.709475180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:28.829873180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:29.067216514+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:29.079019180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCC, rssi: -78, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x17, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x50 > > > >
2023-04-30T05:11:29.119509514+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:29.120346847+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:29.122044847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:80}}
2023-04-30T05:11:29.144492180+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:29.182019514+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:29.191456180+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:30.206894181+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:30.211495181+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xC8, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x18, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x55 > > > >
2023-04-30T05:11:30.246309181+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:30.247154847+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:30.248862847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:85}}
2023-04-30T05:11:30.270105847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:30.284174514+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:30.292152181+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:31.349556514+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:31.351042847+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCA, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x19, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x5A > > > >
2023-04-30T05:11:31.368897514+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:31.373272514+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:31.375364181+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:90}}
2023-04-30T05:11:31.435314514+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:31.451675181+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:31.460069847+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:32.476822937+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:32.480201914+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCC, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x1A, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x5F > > > >
2023-04-30T05:11:32.498990848+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:32.503205073+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:32.509429293+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:95}}
2023-04-30T05:11:32.531817760+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:32.545971346+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:32.554021985+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:33.921335320+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:33.951994316+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0x88, rssi: -76, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x1B, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x63 > > > >
2023-04-30T05:11:34.236405706+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:34.239101025+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:34.245266607+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:99}}
2023-04-30T05:11:34.314321729+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“opening”}}
2023-04-30T05:11:34.385965556+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:34.386822127+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:34.388038852+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCE, rssi: -78, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x1C, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0xF000, DataType: Uint8, Uint8: 0x01 > > > >
2023-04-30T05:11:34.465632369+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:34.466496603+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:34.467708664+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xCC, rssi: -79, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x1D, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0008, DataType: Uint8, CurrentPositionLiftPercentage: 0x63 > > > >
2023-04-30T05:11:34.540550225+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment → Tuya Device Handler
2023-04-30T05:11:34.541872563+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: 0xF000
2023-04-30T05:11:34.548653838+00:00 PRINT Zigbee Window Treatment Mc <<< Curtain Switch Value >>> 1
2023-04-30T05:11:34.549484422+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“signalMetrics”,“capability_id”:“legendabsolute60149.signalMetrics”,“component_id”:“main”,“state”:{“value”:“<em table style=‘font-size:70%’;‘font-weight: bold’GMT: 2023/04/30 Time: 05:11
DNI: 0x4B23 LQI: 206 RSSI: -78dbm
”},“visibility”:{“displayed”:false}}
2023-04-30T05:11:34.589267854+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“deviceInfo”,“capability_id”:“legendabsolute60149.deviceInfo”,“component_id”:“main”,“state”:{“value”:“UTC Time: 05:11:34Stop”}}
2023-04-30T05:11:34.676171380+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x4B23, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0008 > > >
2023-04-30T05:11:34.694832378+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:34.726067420+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:34.730219343+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:34.756051753+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:34.795239816+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:34.796076398+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: WindowCovering >, lqi: 0xC6, rssi: -79, body_length: 0x0008, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x0A, ZCLCommandId: 0x01 >, < ReadAttributeResponse || < AttributeRecord || AttributeId: 0x0008, ZclStatus: SUCCESS, DataType: Uint8, CurrentPositionLiftPercentage: 0x00 > > > >
2023-04-30T05:11:34.879124520+00:00 TRACE Zigbee Window Treatment Mc Found ZigbeeMessageDispatcher handler in zigbee_window_treatment
2023-04-30T05:11:34.879971096+00:00 INFO Zigbee Window Treatment Mc Executing ZclClusterAttributeValueHandler: cluster: WindowCovering, attribute: CurrentPositionLiftPercentage
2023-04-30T05:11:34.884164332+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“shadeLevel”,“capability_id”:“windowShadeLevel”,“component_id”:“main”,“state”:{“value”:0}}
2023-04-30T05:11:35.104839606+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> emitting event: {“attribute_id”:“windowShade”,“capability_id”:“windowShade”,“component_id”:“main”,“state”:{“value”:“closed”}}
2023-04-30T05:11:35.181756128+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:35.254753944+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:37.177694327+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:37.385210850+00:00 TRACE Zigbee Window Treatment Mc Received event with handler zigbee
2023-04-30T05:11:37.387904836+00:00 INFO Zigbee Window Treatment Mc <ZigbeeDevice: 1ca2a033-ebc8-48e8-807b-3abc68f5fe50 [0x4B23] (Curtain Switch)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x4B23, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xCE, rssi: -79, body_length: 0x000F, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x1E, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0001, DataType: Uint8, ApplicationVersion: 0x40 >, < AttributeRecord || AttributeId: 0xFFE2, DataType: Uint8, Uint8: 0x25 >, < AttributeRecord || AttributeId: 0xFFE4, DataType: Uint8, Uint8: 0x00 > > > >
2023-04-30T05:11:37.402500534+00:00 DEBUG Zigbee Window Treatment Mc Curtain Switch device thread event handled
2023-04-30T05:11:51.854266374+00:00 DEBUG Zigbee Window Treatment Mc driver device thread event handled
This is correct according to the philosophy of the default smartthings libraries:
0% = Closed
100% = Open
1% to 99% = Partially open
Percentage refers to % open not % close.
Your device and others work in an inverted way, the percentage refers to the % of closure
I had to use a subdriver with custom handlers to reverse all the commands and report the attribute that reports the open percentage (0x0008).
I’m glad it works now
Hi @Buds_Smart_Home, now yours Smartwings blind must work fine too
Hi @v.porsio
In the log I can see that your device successively reports the opening percentage and the “opening” status when the blind goes up.
After stopping, at the 99% level, a read attribute is made to obtain the final open percentage and the device responds with 0% and that is why the closed state is emitted.
It may be a device calibration problem or the reading of the final status has to be delayed.
Try this version and perform a calibration
───────────────────────────────────────────────────
Name Zigbee Window Treatment Mc
Version 2023-04-30T08:26:48.241039263
───────────────────────────────────────────────────
Thanks for you quick reply, could you describe me the step by step calibration procedure? I do calibration several times. Probably I do an error somewhere…
Thx
- name: "performCalibration"
title: "Perform Accurate Calibration"
description: "Perform Accurate Calibration- (default: Run Mode)"
required: false
preferenceType: enumeration
definition:
options:
"0": "Perform Calibration"
"1": "Run Mode"
default: "1"
I think that in preferences change the value to “Perform Calibration” and the process begins, but I don’t have these devices and I don’t have any real experience, maybe @dotan_shai can help you
Awesome, thanks! It had been working opposite when we were troubleshooting so I didn’t realize that is how it worked. I appreciate your explanation and helping me with correcting the driver!
Yes Mariano, I will confirm that the blind is working accurately now. Thank you.
@v.porsio
Exactly as @Mariano_Colmenarejo . The process than begins, you should manfully move your shutter up and down using your mechanical switch or app. After successful calibration you should see the calibration time. Change back to run mode and check the calibration result.
Please note that you can also use quick calibration where you should manually enter calibration time.
Here is a quick movie that explain that with Wifi module, but the process is the same with ZigBee .
I can confirm tha isn’t a calibration issue… I calibrated correctly in smarthings and in tuya.
This behavior is only in smartthings and is slightly different for driver used…
My own driver: the percentage goes at 0 after 15 minutes
Smartthings beta driver: the percentage goes at 0 after 7-8 minutes
Mariano driver: the percentage goes at 0 immediately after the stop (some days ago after 7-8 minutes like the stock smartthings driver)
I think that is a device problem the times should be the same for all the driver… correct?
Thanks
The value goes 0% when attribute 0008 is read.
Why does the device report a 0% value? this is the question
I don’t know why this happens, but I have 5 of these devices that work like this, so it’s not a single defective device…they work that way. But am I the only one having this problem or the only one using these devices?
What could be a workaround to get good behavior?
In the meantime I’ve created a virtual curtain with multiple routines to get the percentage and status (ignoring 0% and assuming a value from 5 to 1% is closed) and it works fine, but this way I need to create 10-20 device routines (5) manually…
PS from today I’ve an error in getting the log from cli… only for logcat i can’t connect with the hub…
Hi @v.porsio
Try with this driver TEST version
───────────────────────────────────────────────────
Name Zigbee Window Treatment Mc-TEST
Version 2023-05-02T16:27:46.815939201
───────────────────────────────────────────────────