I am a very beginner of Domoticz and I am trying to use my Xiaomi selector switch (Click / Long Click / Double Click) to control my Hue lights. (as it is my first post I really hope I am not asking a dumb/already discussed 100 times question


I would like to be able to turn light ON/OFF by clicking once on the button (Click): if I click and light is ON, it turns it OFF and vice versa.
I have the hue lights into a switch, I can On/Off by clicking on it in Domoticz.
Problem is that "Click" is a state (selector) and so it stays at "Click" state unless I change it, for instance by double clicking the button (Double Click state). I could use Click to switch ON and Double Click to switch off... but Double Click would no longer be free for some other scene.
So every try I did (events using blocky or sub/slave device function) is a failure

I am very happy and thankfull for the recent job of the community for Xiaomi Gateway integration! Probably I lack some basic knowledge to do this, but this integration of XG is what made me adopt Domoticz !