sonoff basic and click/long click

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
blademckain
New user
Posts: 2
Joined: 11 Mar 2019, 07:33

sonoff basic and click/long click

#1 Post by blademckain » 19 Mar 2019, 09:49

hi, I have a basic sonoff modified with an external button.
I wish:
- pressing the button once do on / off on the relay 1
- keeping the button pressed modifies the pwm value of the gpio14

how can I do this ?

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

Re: sonoff basic and click/long click

#2 Post by grovkillen » 19 Mar 2019, 10:41

Yes you can. Please make sure you have the latest version and then use the long press setting for generic switch. Make a rule to act upon the 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:

Post Reply

Who is online

Users browsing this forum: No registered users and 88 guests