New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The touch, is it worth it? #4
Comments
Hi, might get a chance to do the teardown soon. To answer your questions
It's capable of switching 2A using it's onboard relay. The code works just fine on 'non-touch' switches too, though a minor logic change (ie debounce) is probably needed if you want the onboard button to work. Although I bought one of these, I don't actually use it at the moment because I haven't found an easy way to get a neutral wire down to my switches, so I actually use the inline ones connected to the ceiling rose ( not sure if you're in the UK, I know a lot of countries run things differently). David |
Any idea whether this would work without anything connected to the switched live out? I also have no neutrals in my switches - but I've already got smart bulbs, so I was wondering whether I could just re-wire the ceiling rose so that the light fitting is always on, and reconnect the two wires going to the switch to live/neutral (rather than live/switched-live). Then I could just use the sonoff touch as a remote switch, sending messages to my home automation controller via mqtt/whatever, and switch the smart bulb on/off that way. Whether this would all be 'allowed' under UK wiring regulations is another question of course.. |
@splodgemcroo I have thought the same, I live in a rented house so will have to be careful about any wiring changes. Better than rewiring the earth for the light switch to be a neutral... |
Yep, it will work fine that way, if you don't want to use the switched
'out'.
Just connect permanent L and N, and use the MQTT messages to turn the bulbs
on/off.
Only drawback is if your MQTT server/LAN etc fails, then you'l be left in
the dark...
David
…On Tue, Feb 7, 2017 at 4:07 PM, splodgemcroo ***@***.***> wrote:
Any idea whether this would work without anything connected to the
switched live out? I also have no neutrals in my switches - but I've
already got smart bulbs, so I was wondering whether I could just re-wire
the ceiling rose so that the light fitting is always on, and reconnect the
two wires going to the switch to live/neutral (rather than
live/switched-live). Then I could just use the sonoff touch as a remote
switch, sending messages to my home automation controller via
mqtt/whatever, and switch the smart bulb on/off that way.
Whether this would all be 'allowed' under UK wiring regulations is another
question of course..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKD4eVRjDyEJj13kpkCq1Naw3Ze_x3hks5raJapgaJpZM4LjZJ1>
.
|
I don't agree about that. Using the earth conn (usually bare wire in UK
twin+earth wiring) is pretty scary in my mind.
If you rewire things at the ceiling rose so L and N are put down to the
switch rather than L and switched L return, that seems safer.
Downside to that is that if someone comes along and puts a standard switch
on in future, flipping it will short L + N.
David
…On Tue, Feb 7, 2017 at 4:19 PM, Josh Pedersen ***@***.***> wrote:
@splodgemcroo <https://github.com/splodgemcroo> I have thought the same,
I live in a rented house so will have to be careful about any wiring
changes. Better than rewiring the earth for the light switch to be a
neutral...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKD4TRaFllxMbl1Jd7XxMK_VzvmwdMLks5raJmmgaJpZM4LjZJ1>
.
|
Sorry, slightly misread what you said Josh - I think we're both roughly
coming from the same angle!
There is a 3rd way of doing things: I have been using the 'normal' Sonoffs
like this:
Wire them into the ceiling (remove ceiling rose, and push it up into the
cavity behind, with a L and N feed from the rose to the sonoff, and the
switched live output wired to turn the light on. I have added a PCB header
to the PCB of the sonoff using the spare GPIO and gnd and wire them to the
original feed to the light switch, so the light switch now just toggles the
sonoff GPIO (which then toggles the light state).
Means I haven't had to run new wiring down to the switches (but doesn't
look quite as cool as the Sonoff Touches...!)
David
David
…On Tue, Feb 7, 2017 at 4:21 PM, David Pye ***@***.***> wrote:
I don't agree about that. Using the earth conn (usually bare wire in UK
twin+earth wiring) is pretty scary in my mind.
If you rewire things at the ceiling rose so L and N are put down to the
switch rather than L and switched L return, that seems safer.
Downside to that is that if someone comes along and puts a standard switch
on in future, flipping it will short L + N.
David
On Tue, Feb 7, 2017 at 4:19 PM, Josh Pedersen ***@***.***>
wrote:
> @splodgemcroo <https://github.com/splodgemcroo> I have thought the same,
> I live in a rented house so will have to be careful about any wiring
> changes. Better than rewiring the earth for the light switch to be a
> neutral...
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#4 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ACKD4TRaFllxMbl1Jd7XxMK_VzvmwdMLks5raJmmgaJpZM4LjZJ1>
> .
>
|
ooh - i like that idea of using the normal sonoff in the ceiling cavity that way, i think that would definitely work for me - and I like the idea of the system being independent of the mqtt server under normal operation as well. I think I'm going to get some testing set up on the bench and give it a try - thanks! |
No problem.
The s/w is elsewhere on my github (
https://github.com/davidmpye/Sonoff-Ceiling-Lighting )
That uses a standard sonoff, two wires (spare GPIO and GND) which I connect
to the original 2 core cable going to my domestic light switch. That way,
the light switch just toggles the GPIO.
David
…On Tue, Feb 7, 2017 at 4:36 PM, splodgemcroo ***@***.***> wrote:
ooh - i like that idea of using the normal sonoff in the ceiling cavity
that way, i think that would definitely work for me - and I like the idea
of the system being independent of the mqtt server under normal operation
as well. I think I'm going to get some testing set up on the bench and give
it a try - thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKD4c_JWCsMGGbQTVRw2wz8qLpJdOn9ks5raJ2AgaJpZM4LjZJ1>
.
|
Hi David. Like your work. Where is the 'spare' GPIO on the standard Sonoff? |
The programming header has 5 pins - of which we usually use 4 (3v3, gnd,
rx, tx). The fifth pin is GPIO 14.
If you orient the sonoff PCB with the push-switch at the TOP, the pin at
the bottom (closest to the long row of pins used for the RF module (if
fitted!)) is the spare GPIO (gpio pin 14).
I picked up GND from the long header for the unused RF module. (it's at
the extreme right if looking at the board with push-swtich at the top).
I'll try to find some pics to add to the https://github.com/
davidmpye/Sonoff-Ceiling-Lighting repo when I get a chance.
David
…On Thu, Feb 9, 2017 at 9:13 PM, xbmcnut ***@***.***> wrote:
Hi David. Like your work. Where is the 'spare' GPIO on the standard Sonoff?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKD4aQUElvH90wv9UB4rP-BxQxdFcqLks5ra4FegaJpZM4LjZJ1>
.
|
@davidmpye Thanks for the prompt reply. Mine all have 5 pin headers so good to go. Appreciate the heads up. |
Hi David, As a UK resident looking for a automated lighting solution, I'd just like to say that I really appreciate your work here too. It's a shame there's a bit of a gap in the itead docs for their kit and potential use in the UK and it took me a while to realize that the touch switch won't work here where switches that have no neutral wire present. Your idea of using a regular sonoff power switch (https://www.itead.cc/smart-home/sonoff-wifi-wireless-switch.html) pushed into the cavity above the light is fabulous and I'll be going down that path myself. Thanks again |
Cheers Joe, glad it's been of use. |
Hi guys, |
Hey all, I know this is an older thread, but was hoping someone can confirm the proper wiring for the Touch? I have Lin and Lout wired to the 2 hot wires (black) and Nin wired to neutral which connects to the two passthrough neutral wires via twist connector. |
Surely the two hot wires you are referring to are:
Live in (from fuseboard/lighting ring main)
Live out (switched by the sonoff touch, to the light bulbs)
Are they the right way round?
…On 16 Jan 2018 7:58 pm, "Vincent" ***@***.***> wrote:
Hey all, I know this is an older thread, but was hoping someone can
confirm the proper wiring for the Touch? I have Lin and Lout wired to the 2
hot wires (black) and Nin wired to neutral which connects to the two
passthrough neutral wires via twist connector.
No power to the unit in this configuration, however it flashed just fine.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKD4VsqELOGqZ7A29tQq_J6g9Um8bKyks5tLP9mgaJpZM4LjZJ1>
.
|
Yes correct as you mentioned, I believe they are the right way around, but will triple check that. |
My wiring was correct. The issue was that I had to hit the touchpad for the lights to come on initially. I thought it had no power because they lights didn't come on as they did when flashing the ESP. |
Background
Your Github is actually the first resource I can find on modifying the Sonos Touch, thank you for sharing!
I'm also thinking of writing my own software for it, but probably not using MQTT, I'd rather use a more low level option like IP multicast (it's funny it uses mDNS but not multicast for messaging?).
(The default firmware is worthless, I've heard)
I've got two in-line types of Sonoffs on my way and I'm thinking of buying a touch version, since it'd be nice to fit it inside the wall to control the lamp on my ceiling.
Question(s)
Wiring diagrams show L and N going in, but only L going out. Is the Neutral just connected to both the lamp and the neutral and the sonoff just switches the live?(It seems obvious after watching some images on wiring regular switches)If you could answer some of my questions, I may put in some effort to update the Wiki with it.
And I may buy a sonoff touch aswell and do some further investigation (I'm thinking of porting/abstracting the library to also work on the normal sonoff switch (if that doesn't work already)).
I'll also have to check if the sonoff touch can handle the spots I have, before I wire it up and burn the house down 👍
The text was updated successfully, but these errors were encountered: