Sonoff Switch when Button Held

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Nephylim
New user
Posts: 6
Joined: 26 Oct 2017, 15:29

Sonoff Switch when Button Held

#1 Post by Nephylim » 26 Oct 2017, 15:33

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?

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

Re: Sonoff Switch when Button Held

#2 Post by grovkillen » 26 Oct 2017, 15:35

You know you're going to be using rules, yet you fail to find this:

https://www.letscontrolit.com/wiki/inde ... long_press
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:

Nephylim
New user
Posts: 6
Joined: 26 Oct 2017, 15:29

Re: Sonoff Switch when Button Held

#3 Post by Nephylim » 26 Oct 2017, 15:40

whoops...sorry
I did not search for long press. But thx for the fast answer.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests