Page 1 of 1

Sonoff Switch when Button Held

Posted: 26 Oct 2017, 15:33
by Nephylim
Hi There,
I am working on integrating tome Sonoff Switches into my existing Domoticz Home Automation.

Is there a possibility on Espeasy to make a rule for two switches which are both activated via the buttno on the sonoff?
One should switch on when the button is pressed. The other one should be switched on when the button ist pressed and held for some time. say 1-2s.
The second switch schould be a dummy switch to start a scene in domoticz.

I know that I need to make a rule for that but I do not know the right command for he switch delay.
Can somebody help me?

Re: Sonoff Switch when Button Held

Posted: 26 Oct 2017, 15:35
by grovkillen
You know you're going to be using rules, yet you fail to find this:

https://www.letscontrolit.com/wiki/inde ... long_press

Re: Sonoff Switch when Button Held

Posted: 26 Oct 2017, 15:40
by Nephylim
whoops...sorry
I did not search for long press. But thx for the fast answer.