new switch plugin with longpress, how to use?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

new switch plugin with longpress, how to use?

#1 Post by megamarco83 » 22 Nov 2018, 14:29

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 5726 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

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

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

#2 Post by megamarco83 » 25 Nov 2018, 16:24

nothing to help on usege of new function?
thanks

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#3 Post by grovkillen » 25 Nov 2018, 16:40

I'm currently converting the wiki to "read the docs" and hopefully it will be clear by then.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

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

#4 Post by megamarco83 » 25 Nov 2018, 18:54

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#5 Post by grovkillen » 25 Nov 2018, 19:47

It's already online: https://espeasy.readthedocs.io

A work in progress and will be 100% converted by the time we releases the stable.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Tecumseh
Normal user
Posts: 37
Joined: 30 Sep 2016, 09:42

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

#6 Post by Tecumseh » 25 Nov 2018, 20:41

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?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#7 Post by grovkillen » 25 Nov 2018, 21:35

Christmas is coming ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

megamarco83
Normal user
Posts: 230
Joined: 13 Apr 2017, 23:09

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

#8 Post by megamarco83 » 04 Dec 2018, 00:25

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests