Sonoff with toggle switch

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
koosman2
New user
Posts: 1
Joined: 25 Apr 2017, 16:03

Sonoff with toggle switch

#1 Post by koosman2 » 25 Apr 2017, 16:12

I've installed espeasy on my sonoff. I want to use my current light switches (toggle switch) on gpio14 to have a physical switch.
I need a script that will detect gpio14 state change (high to low /low to high) and then change the state of the relay (gpio12).

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Sonoff with toggle switch

#2 Post by toffel969 » 25 Apr 2017, 16:51

koosman2 wrote: 25 Apr 2017, 16:12 I've installed espeasy on my sonoff. I want to use my current light switches (toggle switch) on gpio14 to have a physical switch.
I need a script that will detect gpio14 state change (high to low /low to high) and then change the state of the relay (gpio12).
Please read the Rules tutorial in the wiki/ use the search function of the forum. This question has been answered a number of times.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 31 guests