Curtain Switch Zigbee2mqtt adapter

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
exhortae
Posts: 6
Joined: Sunday 06 October 2019 19:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Curtain Switch Zigbee2mqtt adapter

Post 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
Bigted
Posts: 68
Joined: Friday 12 December 2014 14:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post 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
exhortae
Posts: 6
Joined: Sunday 06 October 2019 19:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post by exhortae »

The switch is indeed working in zigbe2mqtt, helas no plugin for domoticz :(
pupajs
Posts: 1
Joined: Monday 11 November 2019 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post 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.
CPI111NL
Posts: 1
Joined: Monday 09 December 2019 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post 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?
ABCArt
Posts: 4
Joined: Wednesday 05 February 2020 7:40
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter - native support added into zigbee2mqtt plugin

Post 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!
marcjn
Posts: 2
Joined: Saturday 11 December 2021 17:26
Target OS: Linux
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post 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)
marcjn
Posts: 2
Joined: Saturday 11 December 2021 17:26
Target OS: Linux
Domoticz version:
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post 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
pawol
Posts: 2
Joined: Saturday 25 September 2021 21:32
Target OS: Linux
Domoticz version:
Location: Poland
Contact:

Re: Curtain Switch Zigbee2mqtt adapter

Post by pawol »

I did it by means of selector + bash script
aqara_e1_selector.JPG
aqara_e1_selector.JPG (76.53 KiB) Viewed 914 times
aqara_e1.sh.txt
(1.17 KiB) Downloaded 29 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest