Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SonOff Low Cost Wifi Switches for Home Automation

1568101125

Comments

  • Registered Users, Registered Users 2 Posts: 786 ✭✭✭lochdara


    well then connect your th16 to a lamp with the correct wiring and see if the device is working properly.

    Im not an electrican so I can only recommend the basics

    ______________________________________________________

    Currently fundraising for Irish Motor Neurone Disease Association

    In Memory of my fab Wife www.sinsin.ie



  • Registered Users, Registered Users 2 Posts: 8 lukic


    I really appreciate your help and suggestions.
    It works great with the lamp.


  • Registered Users, Registered Users 2 Posts: 8,872 ✭✭✭10-10-20


    A lamp/bulb isn't polarity sensitive. Digital devices typically are.
    Let me say this in a friendly way - if you're not going to take the advice given here, don't come looking for advice.
    I'm sure Bart Simpson wrote this on the blackboard at some stage "Mains electricity isn't a plaything...".

    es-wiring-info-new.jpg

    Wire it up with brown -> Live, blue -> Neutral and then let's see if you still have a problem.


  • Registered Users, Registered Users 2 Posts: 8 lukic


    My idea is now to wait for the electrician to double check the wires.
    The thermostat was bought separately from the boiler so I don't know how it was wired inside it. And I do not want to make any damage to it.
    As I already said I own three other sonoff devices and I have them all wired with Brown to L and Blue to N.

    I can finally post picture here so please how my old thermostat is wired.
    Thanks again for your help and suggestions.


  • Registered Users, Registered Users 2 Posts: 786 ✭✭✭lochdara


    Live (brown) should be in 1 from what i see.. hire a real electrican.

    ______________________________________________________

    Currently fundraising for Irish Motor Neurone Disease Association

    In Memory of my fab Wife www.sinsin.ie



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 10,952 ✭✭✭✭Stoner


    air wrote:
    Go for it durtybit, I doubt you'll find a mechanical switch as cheaply! Just to be clear they work straight out of the box with the manufacturers app for basic applications. Hacking of any sort is only required if you want to run alternative firmware versions etc.


    Exactly I just popped my one one 10 minute job. The 16 Amp has rf433 on it too so you could add a fob for 2.5


  • Registered Users, Registered Users 2 Posts: 2,837 ✭✭✭air


    Stoner wrote: »
    Exactly I just popped my one one 10 minute job. The 16 Amp has rf433 on it too so you could add a fob for 2.5
    Is there RF on all the TH16s?


  • Registered Users, Registered Users 2 Posts: 1,305 ✭✭✭viperlogic


    Are folks T1 light switches still offline? My smart plugs are fine but not T1


  • Registered Users, Registered Users 2 Posts: 786 ✭✭✭lochdara


    mine is ok on app and alexa. try add it again

    ______________________________________________________

    Currently fundraising for Irish Motor Neurone Disease Association

    In Memory of my fab Wife www.sinsin.ie



  • Registered Users, Registered Users 2 Posts: 1,305 ✭✭✭viperlogic


    lochdara wrote: »
    mine is ok on app and alexa. try add it again

    tried several times and no luck. Just bounced the trip switch for that circuit and tada, now working! Nothing like a good aul reboot!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 64 ✭✭corkscott


    lukic wrote: »
    My idea is now to wait for the electrician to double check the wires.
    The thermostat was bought separately from the boiler so I don't know how it was wired inside it. And I do not want to make any damage to it.
    As I already said I own three other sonoff devices and I have them all wired with Brown to L and Blue to N.

    I can finally post picture here so please how my old thermostat is wired.
    Thanks again for your help and suggestions.
    Your stat is just a mechanical switch really, it does not need a neutral when the temperature reaches the desired level it either opens or closes. It would only need a neutral if there was say and indicator light on the housing to show that the stat was on. It looks like yours does not have one. Going by the regulations both the wires should be brown as at one point they will both carry live current but 99% of sparks just run a normal blue/brown and earth cable its no big deal


  • Registered Users, Registered Users 2 Posts: 8 lukic


    No, it doesn't have indicator light.
    So is it possible to add sonoff between boiler and thermostat as a switch with the current wiring or not?


  • Registered Users, Registered Users 2 Posts: 64 ✭✭corkscott


    I would say no as the Sonoff requires a neutral and your existing stat only has a live feed and a "switch wire" going back to the boiler


  • Registered Users, Registered Users 2 Posts: 50 ✭✭GryKyo


    corkscott wrote: »
    Your stat is just a mechanical switch really, it does not need a neutral when the temperature reaches the desired level it either opens or closes. It would only need a neutral if there was say and indicator light on the housing to show that the stat was on. It looks like yours does not have one. Going by the regulations both the wires should be brown as at one point they will both carry live current but 99% of sparks just run a normal blue/brown and earth cable its no big deal
    lukic wrote: »
    No, it doesn't have indicator light.
    So is it possible to add sonoff between boiler and thermostat as a switch with the current wiring or not?

    OK guys, you're getting warm. Yeah, I know, pretty sh!t pun...

    The thermostat is simply a contact that opens and closes, does not matter which wire is where. The two wires (irrespective of colour are not a live and neutral, they are merely a signal to the boiler to start or not despite the fact that they may have 220vac across them. This is not L & N!)

    combination_boiler_thermostat_programmer_voltfree.png

    Your Sonoff when supplied with a live and neutral feed of it's own switches the live out to an appliance and needs a neutral to power the DC internals which it shares with the appliance but doesn't make or break. If you feed the output to a switch that closes to "demand heat" from the boiler you have a direct short circuit from L to N!
    The only way you can have the two switches is to put a 220Vac relay on the output of the Sonoff TH16. Wire the normally open contact of the relay in PARALLEL to the thermostat. In this way either the thermostat or the relay (controlled by the TH16) will start the boiler.
    Unless you know exactly how the control unit of your boiler works I would not be trying what you have described!

    HTH


  • Registered Users, Registered Users 2 Posts: 8 lukic


    I guess I'll have to give up on this idea then and buy a regular programmable thermostat.


  • Registered Users, Registered Users 2 Posts: 786 ✭✭✭lochdara


    i dont have a room stat, My rads all have TRV on them. so i just removed my timer and installed a sonoff basic for now, This has the schedules i need and allows me to turn on heating via app or alexa. But i plan to put the th16 on my immersion and attach the sensor to my hot pipe so it measures the pipe temp and cuts in and out.

    ______________________________________________________

    Currently fundraising for Irish Motor Neurone Disease Association

    In Memory of my fab Wife www.sinsin.ie



  • Closed Accounts Posts: 26,658 ✭✭✭✭OldMrBrennan83


    This post has been deleted.


  • Registered Users, Registered Users 2 Posts: 2,837 ✭✭✭air


    Patww79 wrote: »
    This post has been deleted.

    All working fine again for me for the past 10 days or so, the history on the timers is the only thing I'm missing.


  • Registered Users, Registered Users 2 Posts: 342 ✭✭tweek84


    The timers on mine never stopped working, the lights stopped for the a day or two alexa just kept saying server not available everything seems good now for awhile


  • Registered Users, Registered Users 2 Posts: 249 ✭✭theduffer


    Hi Folks,

    I have ordered two of these to have a play with it.. Sonoff have their own cloud based solution where you can switch stuff on/off. I understand you can put different firmware on. I see you can use tasmota firmware and setup your home based system. Is there another obvious alternative clould based solution to switch things on/off that you could use if sonoff decide to start charging us a subscription fee to use their service..

    Thanks for any feedback...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 786 ✭✭✭lochdara


    You can make you own webpage to activate units . A winter project in the making. I am interested in this option myself

    ______________________________________________________

    Currently fundraising for Irish Motor Neurone Disease Association

    In Memory of my fab Wife www.sinsin.ie



  • Registered Users, Registered Users 2 Posts: 242 ✭✭mcbobbyb


    That means having your own server like an old desktop or laptop. Does that not mean leaving it turned on


  • Registered Users, Registered Users 2 Posts: 242 ✭✭mcbobbyb


    On another note. I got a th 10 and put it onto a plug. Once you plug it in it will monitor the temperature. The switch itself stays off the whole time but will switch on other devices if you set it up. I have it in an unused sonoff plug that I can turn on between 7 am and 10 pm. That means it will keep the temperature in the room between x and y between them times. Its not cutting edge stuff but works well.


  • Registered Users, Registered Users 2 Posts: 708 ✭✭✭davegilly


    Has anyone used the Sonoff Dual to control their immersion? It looks like it is perfect as the 2 gang option is 16A. Power in and one gang to the sink element and the other gang to the bath element. T
    There is no earth feethru though like there is on the TH16 which only has one gang unfortunately. What do you think? Could it work? How would I wire the earth, I suppose I could use a separate connection outside the Sonoff?


  • Registered Users, Registered Users 2 Posts: 242 ✭✭mcbobbyb


    They dont require an earth to work. There is a place to wire it in but it works with or without it.


  • Registered Users, Registered Users 2 Posts: 303 ✭✭CGI_3


    Got my first RF sonoff yesterday. Bit disappointed with it. Difficult to pair with, and worse, seems to be just a toggle affair. I.e., the same RF code to turn off AND on.

    Was hoping I could be able to pair with a homeeasy device, separate code for OFF and ON.

    also, the RF response / latency is shocking compared to data which goes all round the world before hitting the sonoff...

    Or have I just got a bad one...?


  • Registered Users, Registered Users 2 Posts: 249 ✭✭theduffer


    mcbobbyb wrote: »
    That means having your own server like an old desktop or laptop. Does that not mean leaving it turned on

    I guess that's what i want to avoid.. Can you flash a firmware and input some cloud based service that you can access via phone and remotly turn on / off the sonoff devices or set a schedule..


  • Registered Users, Registered Users 2 Posts: 7,283 ✭✭✭kenmc


    mcbobbyb wrote: »
    That means having your own server like an old desktop or laptop. Does that not mean leaving it turned on

    or a raspberry pi, small, cheap, low power. can run openhab or similar and use it to talk to 'the world' and control the sonoff flashed with tasmota or espeasy as desired.


  • Registered Users, Registered Users 2 Posts: 50 ✭✭GryKyo


    theduffer wrote: »
    I guess that's what i want to avoid.. Can you flash a firmware and input some cloud based service that you can access via phone and remotly turn on / off the sonoff devices or set a schedule..

    There are tons of examples on the web to use:
    • Raspberry Pi (on 24/7 running headless, ideally on wired internet)
    • Mosquitto service running on your Raspberry Pi
    • Node-RED running on your Raspberry Pi (Has it's own UI which can be secured)
    • Tasmota Firmware (on your Sonoff devices)

    This is what I have, principally as I had all the parts to hand. In fact I have 3 x Raspberry Pi's running 24/7 in my home for various services, two of them locked away "embedded" in other stuff which I run "headless". This (sorry if you know) means no screen, mouse or keyboard connected but remotely accessed either to the command line of the embedded Pi or remotely using it's desktop environment. My preference is for the former as it means a much thinner linux installation on the Pi.

    In operation you forward a port (the Node-RED UI IP address/port) out through your router/modem. This is the web interface you see with buttons, dials, lists, stats, actually pretty much any thing you can think of to monitor and operate your home via the Sonoffs. The Pi runs all the time using a mosquitto MQTT broker to handle all the communication of your devices. Your Node-RED is a drag-drop-connect-configure programming environment where you stack functional "nodes" together into "flows" which are the instructions for your home automation. Essentially like; a button press on your phone becomes a MQTT message in your Pi, which is noticed by a MQTT listener node in your Node-RED which then directs an instruction to your Sonoff device, yes, you guessed it, using MQTT, again still within your Pi over your WiFi to the Sonoff.

    In fact the Node-RED instruction to your Sonoff is "broadcast" to all devices that have logged on to the broker (remember the Mosquitto instance on the Pi? Yeah, that...) but the way the MQTT message is structured (topic/sub-topic/instruction) is only noticed by the actual Sonoff you wish to command. For feedback, tasmota on your Sonoff (and most home-spun code on "things") acknowledges the instruction with some feedback. This is what indicates the device you turned on using your phone from hols in Spain actually turned on, the loop closed.

    Once you start using Node-RED you will find you can do practically anything from here.
    Tweet? yup, no problem!
    Read or scrape Twitter? yup, no problem!
    Send an e-mail? yup, no problem!
    Send a push? yup, no problem!
    Log any activity? yup, no problem!
    Interface with Alexa? yup, no problem!

    It is as easy as lego, very like "Scratch" that our kids learn to play with in school (if they are lucky!) only with grown-up functionality. You only need to look at nodes like Pete Scargill's BigTimer to see how really powerful drop and configure nodes work. In fact Pete has a pre-built script that will run on a Pi and automatically install all the components you need (as I described above) to build a slim yet robust home automation service in a Raspberry Pi. It is quite literally all done for you and superb support through Pete's blog and community.

    node-red-andinox1-flow.png

    In the image above the blue nodes at left and at right are UI nodes. When you look at the IP address of the Node-RED UI you see something like the image below on a PC and scaled to fit HTML5 style on your mobile device. What you see above is literally all the code you need to build stuff like below... correct, NO CODE!

    dashboarde.png

    It really is worth a try, even if much of it is alien to you. A Pi with a decent SD card (important) and a good power supply, even maybe a case will fit well under €100. In fact for the amount of work it does, a Raspberry Pi Zero W the size of a chewing gum stick and costing under STG£15 will work admirably, my single reservation being the WiFi only connection (yes I have a micro usb ethernet adaptor for mine, it sucks!). For reliability wired is miles ahead of any WiFi I always plug my devices in to the router or a switch, just my experience.



    I can't be more positive or encouraging than that and I am not a programmer, am not employed in IT, have no formal IT or computer science education and I can do all of this without too much of that magic smoke smell about the house,

    Best of luck!

    Garry


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,689 ✭✭✭THE ALM


    GryKyo that look very interesting, something to add to my list of things to look into.

    This home automation forum will have to be blacklisted for me soon as it is taking up too much of my time and increasing amounts of money :(


Advertisement