I added the Sunricher SR-ZG9080A curtain motor controller to my Zigbee network with a Conbee II stick. In the Deconz app this device is recognized as a dimmable lamp, so it is in HA and Phoscon. In HA you can use the brightness slider to open, close and stop the cover:
brightness percentage 0-30: close
brightness percentage 31-70: stop
brightness percentage 71-100: open
I used a Template Cover to translate it to a Cover in HA:
cover:
- platform: template
covers:
cover_pui:
device_class: shutter
friendly_name: 'Rolluik Schuifpui'
open_cover:
service : light.turn_on
data:
entity_id: light.rolluik_pui
brightness_pct: 99
close_cover:
service : light.turn_on
data:
entity_id: light.rolluik_pui
brightness_pct: 1
stop_cover:
service : light.turn_on
data:
entity_id: light.rolluik_pui
brightness_pct: 50
This is working. I can open, close and stop the cover. The problem is, in HA I cannot see the position of the cover, nor I can move the cover to a specific position. This is because HA sees the cover controller as a light. Moving the cover to a specific position should be done in Zigbee cluster 0102 and is not part of the light clusters. In Deconz all information about position and the controls are available. I can move the cover to a specific position from the Deconz app. So it should be possible from HA. Can anyone tell me how I could control cluster 0102 from HA?
Cluster 0008 (Level Control) is actually brightness but is being used for up/down/stop. In this screenshot the attributes from cluster 0102 are shown. I want to control the “Go to lift percentage” and the “Read” function to get the current position from HA.