jjnj wrote:Hi guys, again, loving your work on Domoticz!
I have one question regarding the button and the selector switch. With the long press, the switch is triggered twice, once for press, once for release. Normally this wouldn't be a big issue because sending a on action twice still will result in an on action. In my case it's different since I want to use it as a toggle switch. Long press > toggle switch. Now it toggles: switch is off > long press xiaomi button > switch on > release long press button > switch off.
How can i fix this?
Ok understand and test it, got the same probleme !
Press for long click : set selector to long click
Release long click : set selector to long click again.
Press for long clik at 18:13:55
Release long click at 18:13:58
Domoticz beta 3.6478
As i got a script who run when selector : long click he run twice