new switch plugin with longpress, how to use?
Posted: 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: 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
Advanced event management:
if i want to use "longress" function i see that there is longpress event that give me 3 choice: 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