Skip to content
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

Closed
mAPBhlJ opened this issue Jan 13, 2017 · 18 comments
Closed

The touch, is it worth it? #4

mAPBhlJ opened this issue Jan 13, 2017 · 18 comments

Comments

@mAPBhlJ
Copy link

mAPBhlJ commented Jan 13, 2017

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)

  • Could you do the hardware teardown page? Before I buy one, I want to see how easy it is to open up and/or if it's likely to break. (Is it just plastic pinched together?)
  • 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)
  • You mention the header being 3V3, I couldn't find which model of ESP8266 it is, but are the RX/TX lines 5V compatible?
  • In this video the person tells that OTA uses a lot of memory (he claims half), have you had any issues with memory and/or howmany space (percentage) does your sketch use? Does it matter how many times you upload a new version?

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 👍

@mAPBhlJ mAPBhlJ changed the title ❔ The touch, is it worth it? The touch, is it worth it? Jan 13, 2017
@davidmpye
Copy link
Owner

Hi,

might get a chance to do the teardown soon.

To answer your questions

  1. Yep, as above. It's a plastic clip together rear shell, which screw-mounts to the wall-box. The screws also press/hold the 2 halves together. The glass touch bit (it is glass) is then pushed in and is a firm fit on top. I think it looks quite nice and certainly seems robust. It requires prying to remove the glass faceplate.

  2. It needs L+N to provide power for itself. The L-out is switched by relay.

  3. The IO pins should be 5v tolerant BUT the VCC is definitely 3v3. It would be safer to run everything as 3v3. It isn't an ESP8266, it's an ESP8255 (difference being that a 1M flash chip is on die).

  4. OTA update requires that your firmware is smaller than 50% of the available flash space. This is because the new firmware is uploaded into the other 'spare' half of flash, then a flag is set to tell the bootloader code which code area contains the 'live' firmware. You should have tens of thousands of code uploads possible before the flash starts to fatigue. The ESP8255 has integral non-upgradeable flash storage. My firmware.bin file here (just test compiled it) is 250k.

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

@splodgemcroo
Copy link

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..

@joshuagti
Copy link

@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...

@davidmpye
Copy link
Owner

davidmpye commented Feb 7, 2017 via email

@davidmpye
Copy link
Owner

davidmpye commented Feb 7, 2017 via email

@davidmpye
Copy link
Owner

davidmpye commented Feb 7, 2017 via email

@splodgemcroo
Copy link

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!

@davidmpye
Copy link
Owner

davidmpye commented Feb 7, 2017 via email

@xbmcnut
Copy link

xbmcnut commented Feb 9, 2017

Hi David. Like your work. Where is the 'spare' GPIO on the standard Sonoff?

@davidmpye
Copy link
Owner

davidmpye commented Feb 9, 2017 via email

@xbmcnut
Copy link

xbmcnut commented Feb 9, 2017

@davidmpye Thanks for the prompt reply. Mine all have 5 pin headers so good to go. Appreciate the heads up.

@bebo-dot-dev
Copy link

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
Joe

@davidmpye
Copy link
Owner

Cheers Joe, glad it's been of use.

@fguiet
Copy link

fguiet commented Sep 30, 2017

Hi guys,
Just to share info for orhers, I am french résident and same thing here : no neutral in switches so those Natty things are not working over here.
Voilà
Fred

@vvallee
Copy link

vvallee commented Jan 16, 2018

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.

@davidmpye
Copy link
Owner

davidmpye commented Jan 16, 2018 via email

@vvallee
Copy link

vvallee commented Jan 16, 2018

Yes correct as you mentioned, I believe they are the right way around, but will triple check that.

@vvallee
Copy link

vvallee commented Jan 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants