Page 1 of 1
Zigbee Auto Discovery status for selector devices?
Posted: Monday 28 November 2022 14:36
by Doler
I'm trying to migrate from zigbee2mqtt plugin to zigbee (mqtt) auto discovery. It seems to work well for most devices I have but fails on selector devices. I have Xiaomi Opple 2 band (WXCJKG12LM), Xiaomi Smart Switches (WXKG11LM, WXKG12LM).
Using zigbee2mqtt plugin I get working selector devices but with auto discovery I get a separate device for every state (off, single, double ...) as a push button. The worst thing is that these buttons aren't even working (Error sending switch command, check device/hardware).
Searching the forum, I can see that more people had (or have) the same problem but I cannot find what the current status is. Does anyone know?
Re: Zigbee Auto Discovery status for selector devices?
Posted: Wednesday 30 November 2022 20:39
by Doler
No reaction so I guess status is unknown. Will have to stick to the plugin then since that is working.
Re: Zigbee Auto Discovery status for selector devices?
Posted: Thursday 05 January 2023 15:01
by vgerwen
I also moved from zigbee2mqtt plugin to zigbee (mqtt) auto discovery. The WXKG11LM pushbutton swich now appears as 4 switches (action_single, action_double, action_release and action_hold) in Domoticz. In the zigbee2mqtt plugin it appeared as one switch with the 4 states in treh device action field. This was much more convinient in the DzEvent scripts
Looking in the zigbee2mqtt frontend I see one switch with signle,double, release and hold as data of the action field.
Re: Zigbee Auto Discovery status for selector devices?
Posted: Tuesday 31 January 2023 9:33
by Bertone
Hello,
I have the same problem.
The selector with zigbee2mqtt, I had choice (in red in my picture) and now with Autodiscovery, new pushOn buttons are created. (others buttons on my pictures)
Re: Zigbee Auto Discovery status for selector devices?
Posted: Tuesday 31 January 2023 20:41
by Bertone
I want to use my Xiaomi Switch to control my home alarm.
One Click to start for exemple and double to stop.
I tried to use event (Blocky), created a Dummy (Switch) and nothing happens.
Do you have a solution ?
Re: Zigbee Auto Discovery status for selector devices?
Posted: Thursday 02 February 2023 18:13
by Bertone
I found a solution with a blocky script :

- script_OK.png (58.04 KiB) Viewed 542 times
If that could help someone later