Page 1 of 1
Curtain Switch Zigbee2mqtt adapter
Posted: Saturday 12 October 2019 18:20
by exhortae
Hi,
I'm trying to add a zigbee curtain switch in domoticz but I can't find any adapter for a curtain switch in zigbee2mqtt plugins.
Is it possible in domoticz ?
Thanks
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Saturday 12 October 2019 20:12
by Bigted
The Xiaomi Aqara curtain motor is supported in zigbee2mqtt, however it is not supported in the Domoticz plugin as far as I can see, even though there was a request for it over on Github back in July
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Saturday 12 October 2019 20:34
by exhortae
The switch is indeed working in zigbe2mqtt, helas no plugin for domoticz

Re: Curtain Switch Zigbee2mqtt adapter
Posted: Thursday 14 November 2019 14:58
by pupajs
Its a pity that there is no plugin but I made my Aqara curtain motor ZNCLDJ11LM working.
1. make a new dummy switch - switch
2. edit switch and change to Venetian Blinds EU - there are buttons open, close and stop
3. connect scripts to each button calling blinds thru mosquitto directly with command for topic "zigbee2mqtt/Xiaomi Curtain/set" with value "status","open" atc.
I am working on something better thru Node-Red to have feedback status when are curtains pulled manually.
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Monday 09 December 2019 22:50
by CPI111NL
I am also trying to make this work. Unfortunately I have very little experience with scripting in python or Domoticz.
But I have found that when I use the Ikea roller blind plugin, it will allow me to open the curtains.
Manually close it, and the button can open it.
But when I change the Switch Type to "Blinds" in domoticz both open and close work!
There's also a "Blinds percentage", that gives you a slider as well. This is what I want eventually, but that slider doesn't work.
So for now I need a way to get the plugin to not add a selector switch, but a "blinds" switch.
Is there anybody here that can point me in the right direction?
Re: Curtain Switch Zigbee2mqtt adapter - native support added into zigbee2mqtt plugin
Posted: Wednesday 05 February 2020 7:46
by ABCArt
Hi there!
Using ZNCLDJ11LM curtain motorts without native support (via bash scripts) i can`t get "Blinds percentage" slider, so i have asked Stas (author of zigbee2mqtt Domoticz plugin) to add an adapter for native support for these motors.
So now it works without any scripts, you just need to stop Domoticz, update zigbee2mqtt plugin and start Domoticz again - and all of your motors will be added with "dimmer" type.
I have tested it already, works perfectly, thanks to Stas!
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Saturday 11 December 2021 17:36
by marcjn
I managed to connect my aqara B1 curtain motor to domoticz via zigbee2mqtt plugin and a zigbee usb dongle.
I now see a blinds percentage slider in Domotics. However the aqara motor does not seem to know the rails length. Any idea how to initialize this.
I do not have a xiami hub...
Thanks
PS : using Domoticz 2021.1 (build 13222)
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Saturday 11 December 2021 19:12
by marcjn
Hi all,
Sorry was a little to quick / lazy. Google on the topic delivered my answer (thx
https://www.zigbee2mqtt.io / Koenkk)
With a MQTT set command { "options": { "reset_limits": true } } and then open / close the B1 motor reinitalizes it limits.
Works fine now
Re: Curtain Switch Zigbee2mqtt adapter
Posted: Tuesday 27 June 2023 15:15
by pawol
I did it by means of selector + bash script

- aqara_e1_selector.JPG (76.53 KiB) Viewed 987 times