Page 1 of 1

new switch plugin with longpress, how to use?

Posted: 22 Nov 2018, 14:29
by megamarco83
hi, i see that on new version of espeasy there are inside the standard plugin switch new function:

Advanced event management:
if i want to use "longress" function i see that there is longpress event that give me 3 choice:
1.jpg
1.jpg (127.05 KiB) Viewed 5981 times
if for example i want after longpress of a push button about 4seconds, a command send MQTT what i should write on the rules?

neme of the task is = relay_up
value is = B_UP
switch button = push button active high
command that i want to send is: Publish domoticz/in,{"command":"setuservariable","idx":7,"value":"blind_1;Down;36"}

i think that i should select: active only on high (EVENT=11 [NORMAL] or 10 [INVERSED]
longpress min interval = 4000

but on the rules what i have to write?
what is EVENT 11 ??

i do not find nothing on the wiki

last question: what's the purpose of the debounce ?
what it do if it's setted?
thanks

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 16:24
by megamarco83
nothing to help on usege of new function?
thanks

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 16:40
by grovkillen
I'm currently converting the wiki to "read the docs" and hopefully it will be clear by then.

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 18:54
by megamarco83
Thanks grovkillen it for sure help a lot
I see many update every build release but without descriptions it's hard to use it and understand the purpose
Where do you place this docs?
When you think that could be avaliable?
Thanks so much for all your effort

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 19:47
by grovkillen
It's already online: https://espeasy.readthedocs.io

A work in progress and will be 100% converted by the time we releases the stable.

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 20:41
by Tecumseh
grovkillen wrote: 25 Nov 2018, 19:47 A work in progress and will be 100% converted by the time we releases the stable.
Any news on the timeframe for the release of the stable version?

Re: new switch plugin with longpress, how to use?

Posted: 25 Nov 2018, 21:35
by grovkillen
Christmas is coming ;)

Re: new switch plugin with longpress, how to use?

Posted: 04 Dec 2018, 00:25
by megamarco83
hi, i'm trying to understand how to use new Advanced event management inside switch imput option
how i have to setup longpress and shortpress
so i select: active only on high (EVENT=11 [NORMAL] or 10 [INVERSED]

now when the trigger is shortpress i need to perform this:
Publish domoticz/in,{"command":"setuservariable","idx":7,"value":"blind_1;Down;36"}

when the trigger is long press that:
Publish domoticz/in,{"command":"setuservariable","idx":7,"value":"blind_1;Down;0.5"}

neme of the task is = relay_down
value is = B_DOWN

how i can setup it the rules?