Zemismart ZM-CSW032-D Curtain/roller blind switch set position
Hello, I have installed this switch for a test and it works very well and planning to buy more. Checking logs of zigbee2mqtt I have seen that it is also sending the position: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":73}' However this is not available in Home Assistant so an intermediate position cannot be set. Is it possible to have this working in Home Assistant ?
Should be fixed in the latest dev branch (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)
great thanks. I will check it. when it will get to stable release?
on next zigbee2qmtt release (1.5 weeks from now).
not sure if it's related but I realised that when using the buttons on device the status is not updated in HA. Now the shutter is open but in HA it shows as closed.
Could you provide the debug logging when controlling it manually?
To enable debug logging set in configuration.yaml:
advanced:
log_level: debug
see below all messages related to this switch:
error 2020-03-30 08:06:03: Failed to setup reporting for '0xec1bbdfffe946658' - Error: ConfigureReporting 0xec1bbdfffe946658/1 closuresWindowCovering([{"attribute":"currentPositionLiftPercentage","minimumReportInterval":3,"maximumReportInterval":300,"reportableChange":1},{"attribute":"currentPositionTiltPercentage","minimumReportInterval":3,"maximumReportInterval":300,"reportableChange":1}], {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":true}) failed (Error: Timeout - 19527 - 1 - 2 - 258 - 7 after 6000ms)
at Endpoint.
status is unknown in HA
I see, zigbee2mqtt seems to publish the correct position, but are you on the latest dev branch otherwise it won't work
I tried to load dev but I get this error: ERROR: pull access denied for koenkk/zigbee2mqtt-dev, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
It should be koenkk/zigbee2mqtt:latest-dev
thanks, seems to be working I can see the status and position now. The problem is the position doesn't correspond with reality, it is opened but it shows 50%. Is there a way to fix it ? info 2020-03-31 08:08:38: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":70}'
So it seems that it reports the wrong position? What does it report when setting it to e.g. 50%?
I have done more tests, it seems it is always reporting 50% no matter of position. If for example I press the close or open buttons it reports 100 and 0 and then 50. info 2020-03-31 21:31:05: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' info 2020-03-31 21:31:08: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":70}' info 2020-03-31 21:31:13: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":70}' info 2020-03-31 21:32:13: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":70}'
Even if I closed it from the switch it was still showing opened in HA and the slide of course at 50. When trying to control it from the slide I have the following errors in log:
error 2020-03-31 21:30:45: No converter available for 'position' (56) error 2020-03-31 21:30:45: No converter available for 'position' (54) error 2020-03-31 21:30:46: No converter available for 'position' (80) error 2020-03-31 21:30:46: No converter available for 'position' (80) error 2020-03-31 21:30:46: No converter available for 'position' (91) error 2020-03-31 21:30:47: No converter available for 'position' (90) error 2020-03-31 21:30:47: No converter available for 'position' (67) error 2020-03-31 21:30:47: No converter available for 'position' (100)
error 2020-03-31 21:30:45: No converter available for 'position' (54)- Should be fixed in the latest dev branch (please check in 4 hours from now)
- Regarding the wrong position, please provide the debug logs when controlling it the device with the buttons. Clearly indicate in the logs what hapend after which button.
To enable debug logging set in configuration.yaml:
advanced:
log_level: debug
Here is the log:
--This error appears every time I restart zigbee2mqtt
error 2020-04-01 20:24:55: Failed to setup reporting for '0xec1bbdfffe946658' - Error: ConfigureReporting 0xec1bbdfffe946658/1 closuresWindowCovering([{"attribute":"currentPositionLiftPercentage","minimumReportInterval":3,"maximumReportInterval":300,"reportableChange":1},{"attribute":"currentPositionTiltPercentage","minimumReportInterval":3,"maximumReportInterval":300,"reportableChange":1}], {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":true}) failed (Error: Timeout - 19527 - 1 - 2 - 258 - 7 after 6000ms)
at Endpoint.
-- The shutters were opened, here I pressed the close button
debug 2020-04-01 20:28:43: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-01 20:28:43: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":73}' debug 2020-04-01 20:29:44: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 info 2020-04-01 20:29:44: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":73}'
--Here I pressed the open button
debug 2020-04-01 20:30:05: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-01 20:30:05: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":73}' debug 2020-04-01 20:30:06: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'genBasic', data '{"65506":19,"appVersion":66}' from endpoint 1 with groupID 0 debug 2020-04-01 20:31:06: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 info 2020-04-01 20:31:06: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":73}'
--Here I pressed the close button again
debug 2020-04-01 20:31:20: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-01 20:31:20: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":73}' debug 2020-04-01 20:32:21: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 info 2020-04-01 20:32:21: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":50,"linkquality":73}' debug 2020-04-01 20:32:29: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,31,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-01 20:32:29: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,31,10,1,0,32,66,226,255,32,19]}'
Thanks, can you check again with the latest dev branch?
Morning, I have checked and the behaviour seems similar like with stable version just that when it's opened it shows closed and when it's closed it shows open. There is no intermediate position anymore, not even 50%. The slide is HA does nothing. One you pres a button it will set that position (closed or open) no matter if you stop it in the middle or not, there is no 25, 50 or 75 %. Here is the log:
-- this error is still there
error 2020-04-02 08:39:35: Failed to setup reporting for '0xec1bbdfffe946658' - Error: ConfigureReporting 0xec1bbdfffe946658/1 closuresWindowCovering([{"attribute":"currentPositionLiftPercentage","minimumReportInterval":3,"maximumReportInterval":300,"r eportableChange":1},{"attribute":"currentPositionTiltPercentage","minimumReportInterval":3,"maximumReportInterval":300,"report ableChange":1}], {"timeout":6000,"manufacturerCode":null,"disableDefaultResponse":true}) failed (Error: Timeout - 19527 - 1 - 2 - 258 - 7 after 6000ms)
at Endpoint.
--close button
debug 2020-04-02 08:40:44: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-02 08:40:44: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":73}' debug 2020-04-02 08:40:45: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-02 08:40:45: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":70}' debug 2020-04-02 08:40:45: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-02 08:40:45: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":73}' debug 2020-04-02 08:40:50: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:40:50: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:40:50: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:41:34: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,97,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:41:34: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,97,10,1,0,32,66,226,255,32,19]}'
--stop in the middle --close button
debug 2020-04-02 08:43:57: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,98,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:43:57: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,98,10,1,0,32,66,226,255,32,19]}' debug 2020-04-02 08:44:46: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-02 08:44:46: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":70}' debug 2020-04-02 08:44:46: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":0}' from endpoint 1 with groupID 0 info 2020-04-02 08:44:46: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":100,"linkquality":70}' debug 2020-04-02 08:45:47: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:46:20: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,101,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:46:20: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,101,10,1,0,32,66,226,255,32,19]}' debug 2020-04-02 08:48:43: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,102,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:48:43: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,102,10,1,0,32,66,226,255,32,19]}'
--open button
debug 2020-04-02 08:50:28: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-02 08:50:28: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' debug 2020-04-02 08:50:29: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-02 08:50:29: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' debug 2020-04-02 08:50:29: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-02 08:50:29: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' debug 2020-04-02 08:50:39: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:50:40: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:51:06: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,105,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:51:06: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,105,10,1,0,32,66,226,255,32,19]}'
--stop in the middle --open button
debug 2020-04-02 08:51:47: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-02 08:51:47: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' debug 2020-04-02 08:51:47: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":100}' from endpoint 1 with groupID 0 info 2020-04-02 08:51:47: MQTT publish: topic 'zigbee2mqtt/roller_kitchen', payload '{"position":0,"linkquality":70}' debug 2020-04-02 08:52:48: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0 debug 2020-04-02 08:53:29: Received Zigbee message from 'roller_kitchen', type 'raw', cluster 'genBasic', data '{"type":"Buffer","data":[9,108,10,1,0,32,66,226,255,32,19]}' from endpoint 1 with groupID 0 debug 2020-04-02 08:53:29: No converter available for 'ZM-CSW032-D' with cluster 'genBasic' and type 'raw' and data '{"type":"Buffer","data":[9,108,10,1,0,32,66,226,255,32,19]}'
- Error should be fixed in latest dev
- Inverted position should be fixed in latest dev
- Regarding intermediate position, it seems that the device doesn't send this position. I've also checked the
rawgenBasicbut it also does not seem to contain the position. So unfortunately this cannot be added.
thank you. I see in the log there is some intermediate position sent:
debug 2020-04-02 08:52:48: Received Zigbee message from 'roller_kitchen', type 'attributeReport', cluster 'closuresWindowCovering', data '{"currentPositionLiftPercentage":50}' from endpoint 1 with groupID 0
Is this something else ?
That position is always reported after it posted 0 or 100 so this value is ignored.