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?
Sonoff Switch when Button Held
Moderators: grovkillen, Stuntteam, TD-er
-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: Sonoff Switch when Button Held
You know you're going to be using rules, yet you fail to find this:
https://www.letscontrolit.com/wiki/inde ... long_press
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- New user
- Posts: 6
- Joined: 26 Oct 2017, 15:29
Re: Sonoff Switch when Button Held
whoops...sorry
I did not search for long press. But thx for the fast answer.
I did not search for long press. But thx for the fast answer.
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 12 guests