2 way switching with Sonoff basic

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

2 way switching with Sonoff basic

#1 Post by sups » 03 Feb 2018, 21:36

Hello everyone.

I need help. I have installed a Sonoff basic in a 2 way switching setup.
I can switch the light on/off over http, but when I use the physical switch, the Sonoff flicks on and off.

I found a video on YouTube which explained the wording setup
I took a snapshot and attached it.
I have 2 switch input devices, relay and button

I also have this rule:
on Button#Switch do
if [Relay#Switch]=0
gpio,12,1
else
gpio,12,0
endif
endon

Help please.....

Sups
Sonoff 2 way switching
Sonoff 2 way switching
Screenshot_20180203-124835.jpg (377.75 KiB) Viewed 3474 times

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

Re: 2 way switching with Sonoff basic

#2 Post by grovkillen » 04 Feb 2018, 00:32

It helps if you give us all the information regarding the ESP Easy settings.

I suspect you use a latching switch? Or are they momentary?
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:

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: 2 way switching with Sonoff basic

#3 Post by sups » 04 Feb 2018, 01:20

Hi
Yes, both switches are the latching (toggle) type and I've attached screenshots of the device settings.

I've had a bit more of a play and the symtoms are strange.
The light turns on/off just fine via http,
The light turn on/off just fine using the main switch (switch closest to the light)
The light starts to flicker when I use the secondary switch.

I opened up the main switch and checked the continuity with a multimeter when the light was on. Continuity showed up fine, then I toggled the secondary switch and the light started to flicker...when I send back to the main switch and put the multimeter prong on the terminals, the light stoped flickering, again when I removed the multimeter the flickering started again.
Weird...
Anyone any thoughts?
Attachments
Screenshot_20180203-233716.jpg
Screenshot_20180203-233716.jpg (148.91 KiB) Viewed 3454 times
Screenshot_20180203-233704.jpg
Screenshot_20180203-233704.jpg (147.86 KiB) Viewed 3454 times

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: 2 way switching with Sonoff basic

#4 Post by sups » 14 Feb 2018, 13:20

After much reading, I found that I had to add a resistor between 3.3v and GPIO14, I soldered in a 4.7k resistor, and now all seems to be working perfectly.

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests