https://www.letscontrolit.com/wiki/inde ... figuration
Could the pullup be the problem?
Sonoff 4ch Pro, ESPeasy button/rule problem
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Sonoff 4ch Pro, ESPeasy button/rule problem
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
- Methuselah
- Normal user
- Posts: 45
- Joined: 04 Feb 2018, 01:39
- Location: Boston, MA
Re: Sonoff 4ch Pro, ESPeasy button/rule problem
I use a Sonoff 4CH Pro to control a remote antenna switch. Either by sending an event to the controller, or via the buttons. When I press a button, my state changes from 0 to 1 or 1 to 0 and stays that way until I change it again (or a reset).
My configuration:
My rules:
My configuration:
My rules:
Code: Select all
on Button1#Press do
if [GPIO12#State] = 0
GPIO,12,1
else
GPIO,12,0
endif
endon
N00b to the world of ESPEasy, but I've been programming since the days of punch cards and paper tape
-
- New user
- Posts: 1
- Joined: 22 Apr 2019, 13:50
Re: Sonoff 4ch Pro, ESPeasy button/rule problem
Old post I know,
Change the Value from "State" to "Switch"
Change the Value from "State" to "Switch"
Who is online
Users browsing this forum: No registered users and 39 guests