SuperHouseTV #17: Home automation control with Sonoff, Arduino, OpenHAB, and MQTT

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 409

  • @Howie55Aus
    @Howie55Aus 8 лет назад +1

    Thanks Jonathon. I have finally made some in-roads into Home Automation. I now have a Sonoff connected and able to be controlled from anywhere thanks to this extremely clear to understand video. Please keep them coming.

  • @christopheradam6967
    @christopheradam6967 8 лет назад

    mate, i am a lighting engineer (based in NYC & MELB). i don't get impressed with smart home stuff easily but you are a freakin superstar. this is pretty revolutionary.
    i am sure i'll be in touch with you soon.
    cheers.
    Chris

  • @ilducedimas
    @ilducedimas 5 лет назад +1

    You were WAY ahead of your time with your homemade switches. Hats off to you!

  • @justusdj
    @justusdj 8 лет назад

    I like how you're confident enough in your soldering abilities to do it right over your whiteboard.

  • @GeeTheBuilder
    @GeeTheBuilder 8 лет назад +4

    Having ordered and played around with one of these I have now ordered 4 more. For this money £4 in Uk it makes it possible to provide a lot of automation for very little money. More work but (obviously) more cost effective than z-wave etc etc
    BUT - only with the knowledge in this video dies this make financial sense. As someone new to home automation I wouldn't have a clue how to flash these SONOFFs and the video is great. I've shared this vid with lots of friends who have now purchased 1 to begin to annoy their wives and cats by randomly turning on/off lights at random :)
    In all seriousness this is the best video I've found on home automation because it's THE video that has set my on the path to build a full home automation system.
    Pi3 is next.

  • @GeeTheBuilder
    @GeeTheBuilder 8 лет назад +1

    Another perfect video from Jonathan.
    Easy and enjoyable to watch. Just enough info, clearly explained - then man has got these you tube videos down to an art form.
    As for the Sonoff - I've just bought one £9 in the U.K. Will use to switch lights on and off for added security whilst out.

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +2

      Thanks Graham! I always feel that my videos are too boring and need to be spiced up a bit: I *hate* watching myself while I'm editing them. It sends me to sleep. But if other people find them useful, that's the important thing :-)

    • @GeeTheBuilder
      @GeeTheBuilder 8 лет назад +1

      NEVER boring Jonathan. We love your videos. Please keep them coming. We learn a lot and it's clear you love what you are doing.

    • @pjbear1813
      @pjbear1813 7 лет назад

      Hi I have a house which is/was controlled by a plc it is wired into a star topology. I am moving to all loads outputs to be controlled with sonoff which I have flashed and now control via home Assistant with MQTT. I read all the light switches into a Pi running home Assistant via io boards from ab electronics. Works very well what I am struggling with is dimming the lights. I would like to be able to dim the lights by sending an MQTT message to a unit and it turn the brightness up or down. Do you know how this could be done? I use to use a unit to dim the lights and set the level with 0-10v control signal. Do you have any projects which will set a light level from a value sent via MQTT message? The lights are all single colour disable led lamps.

  • @lundebc
    @lundebc 8 лет назад +1

    Great stuff here, programmed the Sonoff basic and got it hooked up to my MQTT and Node-RED thanks to this tutorial!

  • @CompuWhizz
    @CompuWhizz 8 лет назад +6

    Really like the longer format video, lets you gets more in depth.

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Thanks Keith! It wasn't intended that way. I just recorded what I wanted to show, then when I started editing it I realised it was well past 30 minutes and I was surprised. I trimmed it a bit and decided I'll probably do a follow-up video to show more detail of the software side (such as the MQTT / OpenHAB integration) and maybe hacking a Sonoff to put a bigger memory chip in it. If I covered all that in one video it would have ended up an hour long!

    • @CompuWhizz
      @CompuWhizz 8 лет назад +1

      Defo interested in seeing the chip changed out, and the intergration.
      My brother in law and I have created a networked house heating controller using Arduino as the platform. I was mainly doing the feature set and he did the hard work of coding and hardware... :D
      Can I ask where the EtherTen can be purchased? Is it only in Oz?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +3

      I specifically designed the EtherTen to go inside my light switches, so it's SuperHouse's fault that it exists! It's sold online at Freetronics (www.freetronics.com.au/etherten) with worldwide shipping, and also by many resellers around the world (www.freetronics.com.au/resellers)

  • @kcarmical
    @kcarmical 8 лет назад +1

    Great as usual. So glad to see you making more videos!

  •  8 лет назад +36

    Do you think you could do a video about MQTT... from scratch (with vitual machine) and a demo? I'm not totally sure how it really works... Else a good suggestion for more infos? Thanks

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +15

      I agree, that's an important topic that would be very helpful for anyone setting up their own home automation system. MQTT is so widely used now that it's important to understand how it works. I mentioned it in the very first SuperHouse episode where I explained my system architecture, but since then the architecture has changed significantly and I didn't show details of how to set up MQTT. Great suggestion, I'll see what I can do.

    • @jasonperry6046
      @jasonperry6046 8 лет назад +3

      I second that, and as long as I can take the information and apply it to an RPi I am happy. Oh a follow up video on OpenHab would be great too.

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +2

      Jason Perry I currently use an RPi running Raspbian as my main home controller, with Mosquitto (MQTT broker) and OpenHAB installed on it.

    • @GeeTheBuilder
      @GeeTheBuilder 8 лет назад +2

      Yes I would love a video on MQTT - JUST on MQTT from Jonathon.

    • @maurohernandezmontes3583
      @maurohernandezmontes3583 8 лет назад

      Jean-Michel Dubé sßx

  • @LaCorderie67
    @LaCorderie67 8 лет назад +4

    Thx for all your videos keep doing it ! Thx for taking so much time to do all this content and sharing your skill :)

  • @c000159
    @c000159 7 лет назад +1

    One of the best RUclips videos I have ever seen!

  • @e.shealer2417
    @e.shealer2417 7 лет назад

    This guy is awesome! I stumble upon this site and I couldn't belevie what I was watching...I'm so happy I found this site...Thank you,Thank you,Thank you...

  • @jamesdavis5517
    @jamesdavis5517 8 лет назад +1

    I just powered a SONOFF with an ARDUINO without connecting mains VAC. To my delight the wifi then operated normally. I then discovered a pin on the Sonoff that provided 3.3VDC when the Sonoff is 'on' and 0VDC when the Sonoff is 'off'. I then connected a jumper from that pin to an input on the Arduino and now I have app control over the Arduino!

  • @excession1293
    @excession1293 8 лет назад

    Very interesting product with a really comprehensive review and exploration. Thank you for all the work you put into clear explanations and well thought out content; so often when watching your videos I'll wonder "what if.." and then you'll immediately get into answering that question, amazing.

  • @NikonErik
    @NikonErik 5 лет назад +1

    In 2018-2019 the basic Sonoff switches, like the one depicted in this great video, had a firmware update that solves the problem addressed in this video. The Sonoff switches will now work if there is suddenly no internet connection without custom firmware. They can work in a LAN only mode.

  • @1mrhamel
    @1mrhamel 8 лет назад +1

    The ultimate room switch plate, 3 switches/buttons, a slider or knob to set fan speed, a tiny display to show temperature and humidity. Bonus points if an amp meter was put on the output to have logic detect if a bulb is burnt out or load is not physically turned on or if a fan motor is overdrawing.

  • @billysgeo
    @billysgeo 8 лет назад

    If you have all your lights going directly to the central cab, how do you control them with a wall-switch? I guess all wall-switches will have to be 'smart' switches with relays. Right?

    • @Riplamaxaa
      @Riplamaxaa 8 лет назад

      Go through and watch his over automation videos, they work by sending a message to a central server.

    • @billysgeo
      @billysgeo 8 лет назад

      Ripmax Yes, but where does the actual switching happen?

    • @Riplamaxaa
      @Riplamaxaa 8 лет назад

      He has DIN-rail relays in his consumer unit (fuseboard)

    • @billysgeo
      @billysgeo 8 лет назад +3

      Ripmax
      So every light is switched at the c.unit and the switches on the wall just send signals to the automation software... OK. I am thinking rewiring the house, but I want to have wall switches that can be used independently and then have to option to go full-smart-home in the future.

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      That's exacly right. It's a star topology, with all loads centrally switched, and all control surfaces simply sending logical commands to an OpenHAB server.

  • @wonkastudio-johnny
    @wonkastudio-johnny 7 лет назад +1

    how often is the temp sensor updated and can it notify you by text if there is a change in temp ? also does the app give you real time temps, and how often is it updated ?

    • @SuperHouseTV
      @SuperHouseTV  7 лет назад

      I don't know with the stock firmware, but with other firmware (such as TASMOTA) you can have it report the sensor readings at a configurable interval.

  • @alim25061
    @alim25061 5 лет назад +1

    Hi, thanks for the video
    Is it possible to let the new sonoff (with power consumption monitoring) to turn off automatically when the power consumption reaches certain level using arduino ?

  • @thechriskelly12
    @thechriskelly12 8 лет назад +1

    +SuperHouseTv can you get a dimmable version of the sonoff to control the brightness of dimmable led lamps?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Not at the moment. Current Sonoff models use relays that only allow on/off operation. In future there may be one with a Triac or similar to allow dimming, but I don't know what iTead may have planned.

    • @thechriskelly12
      @thechriskelly12 8 лет назад +1

      have you got any videos configuring openhab2 with MQTT I have MQTT running but can't figure out how to get it connected?

  • @brainfreeze7979
    @brainfreeze7979 7 лет назад

    The only thing all these things miss is wiring to include a physical switch override, to allow momentary or toggled switching detection to actuate a change to the connected device (and if it sent an MQTT message as well that would be even more awesome). For example, is there a GPIO on this we could use to the old wall switch (and yes, allowing for bouncing) so that we could manually affect the device? Is this at all possible?

  • @borchrich
    @borchrich 8 лет назад +1

    Hi Jonathon,
    Thanks for posting this video. I've got myself a few Sonoffs that I want to use with Home Assistant via MQTT.
    The Blink and OTABlink sketches work fine and the OTARelay uploads without any issues. However publishing to the Sonoff either via the SSH command line or MQTT.fx does not change the pin states. Looking via the serial monitor in the Arduino IDE tells me the MQTT broker cannot connect.
    My question is, does one not need to specify the user name and password (which my broker requires). Also, does the port (1883 in my case) not need to be specified as well?
    Thank you - Richard

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      If your broker is configured to require authentication, then you're correct: your client will need to be configured for it. If you're using the PubSubClient library, you can do it in the Connect method: pubsubclient.knolleary.net/api.html#connect3

  • @ollethelin6505
    @ollethelin6505 8 лет назад +1

    Thanks for a great episode, do you know if its possible to add an external antenna to the sonoff? Putting the unit inside a metal box makes it hard to connect. Cheers

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      That's a brilliant question! Because the Sonoff uses an ESP8266, the short answer is that it SHOULD be possible. The Sonoff PCB includes a trace antenna just like you'd find on a typical ESP8266 module, which means you may be able to cut the trace and solder on a coaxial pigtail for an external antenna. I haven't done it myself, but it sounds like it should work. It would be interesting to try.

  • @chebliss7665
    @chebliss7665 5 лет назад

    What are your thoughts with regard to safety on using these in the home? I’m thinking about installing them on my lights. Hall, lounge and dining room... planing installation directly onto the wiring in the attic.

  • @kimlindblom6964
    @kimlindblom6964 8 лет назад

    Can I alter the state of the sonoff with the pushbutton?
    I have uploaded the sketch without problems and can alter the state of SonOff by sending a "1" or "0" through MQTT but the physical button doesnt alter the state of the sonoff. I would like to have the option of turning a lamp on or of if I dont have my phone at hand.

  • @kaischaabane6978
    @kaischaabane6978 8 лет назад +1

    Hi Jonathan
    For The module with the sensor humidity , can we flaching and put our sketche (like you did with switch)
    Thank You

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Yes, no problem. I'm going to do another video showing more information about the TH model, some extra software options such as Homie and HC2016, and how to connect extra GPIOs so you can do things like connect a physical light switch.

    • @kaischaabane6978
      @kaischaabane6978 8 лет назад

      Thank you a lot Jonathan

  • @ravilpatel8629
    @ravilpatel8629 7 лет назад

    can u automate gas knob with sonoff? or a position sensor that give you status on your app that the gas knobs on the stoves are closed?

  • @Nathan-rx6bj
    @Nathan-rx6bj 7 лет назад

    Is there ever any issue with the amount of wifi deices you have connected to your wifi router.What sort or wifi router do you use, and how many wifi connected devices would you be happy to connect to it?

  • @mrteausaable
    @mrteausaable 7 лет назад

    Do you have a video show how you setup the openhab app with modifying the "item", "site.map" and "things" and mayby "rules" files to get it to be control by Sonoff device show on this video?

  • @veronikak4095
    @veronikak4095 8 лет назад +1

    please make a video of controlling your house with ioBroker, with Alexa. thank you so much, i love your channel and your enthusiastic way to explain everything

  • @TobyRobb
    @TobyRobb 8 лет назад +2

    Just ordered a few of each type, cheers #SuperHouseTV !

    • @jeankhoury7469
      @jeankhoury7469 6 лет назад

      How do you know which pin corresponds to which functionality on the sonoff? Thanks

  • @Nowah1981
    @Nowah1981 8 лет назад

    Hi Jonathan. Did you manage to get the serial output working with sonoff? I am doing some profiling and testing on it and had to resort to led blinking, however, data becomes more complex for me to rely on reading binary from LED's.

  • @ksmith7122
    @ksmith7122 8 лет назад +1

    I've noticed that Arduino flash of ESP8266-12E over Wi-Fi may be dependent on any pins being connected in sutu and pulled high/ low while flashing over the air. Sometimes have to bring it back to the USB port for upgrade.
    Any ideas?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Sorry, I don't know an answer to that :-(

  • @BackyardAussie
    @BackyardAussie 8 лет назад

    do you think you might get a chance to do a video or blog post on the light switch (at the 2min 50sec mark) ??

  • @sunglint
    @sunglint 7 лет назад

    This is a great video! Very thorough, concise, and information dense. Thanks so much!

  • @wiztronicmalta
    @wiztronicmalta 8 лет назад

    Hey. I did not quite get what steps are next once you hook up your Sonoff to USB cable. What software do you use and where do I get all re-coding necessary to upload new firmware please? Thanks!

  • @mbecker163
    @mbecker163 7 лет назад

    Is there any danger is using the Sonoff with aluminum wiring? Is the "Earth connection" the same as "ground wire" in the US? Does the Earth connection need to be encased, or not touch the Sonoff unit?

  • @DiyintheGhetto
    @DiyintheGhetto 7 лет назад

    Hello also i notice one thing with the Sonoff relay switches is that once you flash the firmware to MQTT on openhab the button for manual activation is no longer there How would i be able to add that back in plus have it show up saying it was pushed?

  • @jimbosander
    @jimbosander 7 лет назад

    I have automation using stateful rules via a proprietary tool (ISY), and expensive switch controllers ($35 each adds up quickly). I like the concept of management via centralized relays you've got going; haven't watched all the videos yet so pardon if this question is covered; but; are your relays switches dimmable?

  • @WenderReis
    @WenderReis 8 лет назад

    Hi. I got a new sonoff with temperature sensor to use with openhab. Wich code do I have to upload to use the on/off and get the temperatures and humity? By the way, the programming works out of box. Nice video.

  • @gidk204
    @gidk204 8 лет назад +1

    at the beginning of the video you mention how you built a light switch that can both be physically clicked and wirelessly turned on/off whilst staying completely in sync.
    -Sonoff is perfect for the wireless aspect but there is no physical switch.
    After watching this video and SuperHouseTV #20, is there anyway of combining the circuitry and code to have it work in one complete system?
    Thanks!

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +2

      Yes, and if you check episode #21 I think you'll find a solution :-)

    • @gidk204
      @gidk204 8 лет назад

      Only had one more video to go to get my answer! Oh well thanks! You're channel is amazing by the way! Extremely well detailed and easy to follow.

  • @milwen
    @milwen 8 лет назад +1

    Thanks for the video. Very helpful and informative. I had never heard of the Sonoff, but it sounds great. I am currently running an OpenHab/MQTT setup and I have a few ESP8266's (NodeMCU). It would be nice if they had a model that gave more pin access so I could use a relay plus temp/humidity for example.

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      There are other versions called the "TH10" (10 Amp) and "TH16" (16 Amp) that cost a few dollars more, but include a 3.5mm socket in the side for connection of an external module such as a temperature / humidity sensor. www.itead.cc/wiki/Sonoff_TH_10/16

  •  8 лет назад

    Hello again JonathanIt would be very interesting video on a wall switch like you have!That's my biggest problem, what kind of Wall switch use to control the lighting with dimmer (preference).In this case the "intelligence" would have to stay at the wall switch right? Or you have any suggestions?Do you thing will be better to have on the wall switch the ESP8266 or the UNO with Ethernet shield?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      I'm going to do a future episode about the way my switches are set up. I don't have any dimming control at the moment, but I want to revise the switches. I have some ideas about how to do a touch-sensitive plate with dimming control. Which processor you choose depends on how you want to communicate with it. If you're happy with WiFi (which I personally don't like for critical home control stuff) then the ESP8266 is the way to go.

  • @dakipro
    @dakipro 8 лет назад

    Great video as always Jonathan. I've be watching them since the episode #1 and got a ton of inspiration, thank you for that :)
    Could you please describe more OpenHab itself, basics and maybe some cool tips and tricks, how to program different scenarios etc?
    Thanks!

  • @anthonydacko2856
    @anthonydacko2856 7 лет назад

    In version Arduino 1.8.3 I can not find the program to install the driver for the ESP8266 using the 3.3 v/ 5 v FTDI - Compatible serial Interface from Freetronics.

  • @mig4ng
    @mig4ng 8 лет назад

    +SuperHouseTV Is it possible to use this + one manual interruptor in a lamp?

  • @gandsnut
    @gandsnut 7 лет назад

    Once the Sonoff has been reprogrammed WITH the over-the-air additional code, for each subsequent reprogramming (with changes in the functional code), must the over-the-air code be again included? Also, is there no way to dump the original Sonoff ESP8266 code prior to all this? Thx.

  • @bernardjordaan8135
    @bernardjordaan8135 8 лет назад

    Hi. Is it possible to add Ethernet control and a microswitch (sending 1 when depressed and staying 0 when not) to this board?

  • @itsadamoc
    @itsadamoc 8 лет назад

    Jonathan, do you have any tips on preventing interference? I tried to put one behind my tv cabinet which houses an AirPort Extreme, amplifier, Apple TV and other bits... but the wifi routinely cuts out on the Sonoff which in turn, switches on the device connected to the Sonoff. Wife not happy :)

  • @drDigD
    @drDigD 8 лет назад +1

    Hi Jon! Сould you do a video about your blind controllers? Or may be a blog post about them?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +4

      I started filming a video about them maybe 8 years ago, but it was rubbish so I never used the footage. Since then I've done about 6 different versions of the blind controller so I really should do a proper episode about it :-)

    • @drDigD
      @drDigD 8 лет назад

      Looking forward to it! =)

  • @wisterdesigns9620
    @wisterdesigns9620 7 лет назад

    What kind of protocol Sonoff uses for the products? Do they use MQTT as well?

  • @kemaldemir291
    @kemaldemir291 8 лет назад

    Hi Jon . when i connect mains is it possible to get 3.3V from VCC port? If not how can i get 3.3V to power my pir sensor?

  • @KimStrandberg93
    @KimStrandberg93 7 лет назад

    Stupid question maybe but if i have a little switch on example a lamp, should i remove the switch, or keep the switch, should i put it before or after the the switch if so ?
    Second question, does this also work with ceiling lamps as long as you keep the power ""on"" ?
    Another question, can you connect a usual 4.85 sonoff switch on a power extension socket with lets say a , coffee machine?
    Recently got intrested in home automation and you got a new subscriber, very informative but, i would love a basic guide for a noob like me :)

  • @intisemestahastakaryacv2568
    @intisemestahastakaryacv2568 7 лет назад

    Hi could you please tell me how to control garage door using sonoff?

  • @kalyong8339
    @kalyong8339 7 лет назад

    Do you have video on the blind controller?

  • @themaconeau
    @themaconeau 8 лет назад +1

    Your GMail inbox is slightly full :P
    Could a dump be possible before overwriting the firmware?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Yeah, I'm just slightly behind on email!
      Yes, a firmware dump would be possible. I haven't done it on an ESP8266, but I found these instructions: forum.wemos.cc/topic/181/backup-original-firmware-with-esptool
      I may try that with one of my unmodified Sonoffs.

    • @themaconeau
      @themaconeau 8 лет назад

      SuperHouseTV That would avoid of "Oh shit, I can't restore the firmware to factory! >.

  • @richardtreglia2270
    @richardtreglia2270 4 года назад

    Would this work on a garage door opener to control the opener?

  • @DCJautomacoes
    @DCJautomacoes 7 лет назад

    I have some questions.
    How long does the mqtt service "broker" stay on? Will it cost in the future?
    Parallel connection possible?
    thank you

  • @n1kkri
    @n1kkri 8 лет назад +1

    I'd like to use the Sonoff dual to control my garage door via WiFi/Internet just in case I forget to close it. I have 2 garage door openers. Instead of having to get 2 A/C to D.C. to control an external relay with its closing contact mounted across the door openers push button terminals could I use the internal relays normally opened contacts to do the same thing. Wondering if I could remove A/C going to the relay with some etch cuts so I only have just the closing of the contact available to connect to the door opener screws. I'm using a web cam in the garge for a visual but that doesn't solve the problem of having to turn around and head home to close the door. Thanks, Ken

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Yes, that's certainly possible, but please make VERY sure that you've isolated the relay connections! I'd use a cutting tool like a Dremel with a grinding / cutoff disk in it to cut across the track, and use a multimeter to make 100% sure there's no continuity between the relay pin and active.

    • @n1kkri
      @n1kkri 8 лет назад

      +SuperHouseTV I downloaded board diagrams and schematics of the dual. looks easy enough to cut trace feeding relay. I think the fuse is only used for the load so removing it might kill AC to the normally open connection. A couple etch cuts would let me use the screw terminals. I have on order a board that might work better. 4 relays that have a 1 sec momentary closure which is better for garage door openers.

  • @galex81
    @galex81 7 лет назад

    What I'm missing if after flashing sonoff board (arduino says 100% done)...led doesn't blink at all? Used 2 different sonoff board with same result. If you can help I'll really appreciate any suggestions. Thank you

  • @fcecamor
    @fcecamor 7 лет назад

    Hi Jonathan, thanks for all your videos. I really like the idea of making domotic my house but I've a question. I would like to know if during the standby period of the device if it produces WiFi transmission (and if so, how much) considering that if there should be more than 50 devices installed in a house, the transmission could end up being unsafe for human exposure. Cheers

  • @alexiekola
    @alexiekola 8 лет назад +1

    Thankx Jon such a great insightful video. love the super house. one day i will find some time to convert my house. to busy with building robots with my son at moment. love to pick your brain sometime. till then more content!!!

  • @amanfromoakland
    @amanfromoakland 7 лет назад

    Where do I get the female headers that you soldered on the five pins and jumper cables?

  • @snajperSLO
    @snajperSLO 8 лет назад

    I have one question, they also make an POW unit with added power mes. Can that unit also be flashe with its own code for the ESP8266?

  • @kuanyewwong3296
    @kuanyewwong3296 7 лет назад

    I have got a question, is it possible to 'Sonoff' a switch that is acting like a main on/off switch for all the electrical devices in a enclosed room?
    Ex: Kitchen
    I have a master manual switch that with one flip (on/off) I switch off all the lights, the downlights, the tasklights and maybe some of the non essentials like coffee maker, bread toaster..etc.
    Now by using Sonoff, I splice it onto the master manual switch so that I can now use wifi to switch all of the above mentioned either on/off.
    Will it work like that? Without having to flash the firmware?

  • @GeeTheBuilder
    @GeeTheBuilder 8 лет назад +2

    I've just received my Sonoff and I'm thinking of using it, initially with its cloud software/app, to drive some device to scare a potential burglar.
    What are the best devices to actually drive for this purpose? Lamps, of course, maybe a radio?
    One problem I see is that most modern devices have "soft power" switches and therefore need human interaction to actually turn them "on" when the power is restored.
    Any suggestions?
    Also, I suspect most software that allows you to switch on/off devices doesn't have any randomness built in. Any half decent burglar would notice if a light came on in a give room at EXACTLY 6pm each day.
    It's needs to be 6pm +/- say 30 mins to fool a burglar. Of course this could be programmed from my own MQTT server, just wondered if most inbuilt software had this random feature?
    I plan to buy more Sonoffs - it's an excellent bit of kit.

    • @tiettop6408
      @tiettop6408 5 лет назад

      For this case,maybe you can use your sonoff switch+PIR Motion Sensor.Sonoff has a PIR2 can be your ref.

  • @truckrunner6721
    @truckrunner6721 6 лет назад

    Do u think sonoff with come up with a Ethernet wired version instead of WiFi only

  • @hooperwille
    @hooperwille 8 лет назад

    does it work in local network only or is it possible to control from anywhere in the world?

  • @ronkloiber
    @ronkloiber 7 лет назад

    Hello, I would like something like the Sonoff but I'd like it to be dimmable, and controlled by wifi, and control them with a smartphone as well as have a remote wall switch to control it, say with 2 buttons... On/brighten and Off/dim. I have just started to play with Arduino and wondered if something like this could be accomplished with 2 NodeMCU's and a D-A converter with a triac. ?? Do you have anything like this in your collection? Thanks,

  • @sunsopheary
    @sunsopheary 7 лет назад

    It is a very useful video and thank you. I was wondering if you could let me know the type of arduino board and other accessories in order to write program to Sonoff basic.

  • @HailStonE999
    @HailStonE999 7 лет назад

    Do I need to connect the Neutral wire through Sonoff since its passed through directly in the unit... My house has old wiring & the Neutral is sent directly to the light fixture in some cases & not from the switch board in the room... Only the Active phase wire comes to the switch in the room...

    • @DaveTaste
      @DaveTaste 6 лет назад

      Don't think it's possible mate.
      I've tried and failed and read it's not.

  • @DiyintheGhetto
    @DiyintheGhetto 7 лет назад

    Hello awesome video. But i was wondering about dimming the Light bulb it's self. I have 4 light bulbs each one on it's own Dimmer witch. Using the sonoff which is a Easy Cheap Esp8266 relay module is Great and all But how would i be able to dim the lights?

  • @iMatheusTelles
    @iMatheusTelles 8 лет назад +1

    Hello! Which app are you using on iPhone to control Sonoff via MQTT? How can I get or develop this?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      It's the standard OpenHAB app, nothing special. I run OpenHAB on a Raspberry Pi as the central controller / coordinator for the house, which connects to all the other devices. Then I use the OpenHAB app on both iPhone and Android to control it.

    • @iMatheusTelles
      @iMatheusTelles 8 лет назад

      So you don't use MQTT? Just OpenHAB?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Yes, I use MQTT as a communication mechanism between OpenHAB and some other devices. I really need to do an episode about the architecture, because it's important when trying to understand how I've connected everything together.

    • @iMatheusTelles
      @iMatheusTelles 8 лет назад +1

      Yes, it's very important. I'm trying to find a tutorial that shows how to integrate them and no success until now. Can you do it? I will be very grateful. Thanks.

  • @dariosilvamoran630
    @dariosilvamoran630 8 лет назад +1

    Hi, I've just received two basic Sonoff modules. My original plan was to flash both devices with the custom firmware, but after soldering a female connector to the pins, I thought first to test the official app. Sadly, the app was unable to find the device and pair with it, so I tested the other (untouched) device and it worked perfectly; actually the app found it in a second.
    Anyway, I want to flash the custom firmware to the (defective?) module, but I don't have a converter as mentioned in this video and other similar tutorials. I'm wondering if there is any way to perform the procedure with an Arduino One board?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +1

      Yes, and there's some information here to get you started: github.com/digistump/OakCore/issues/56

    • @AVL123AVL
      @AVL123AVL 7 лет назад

      Hi! What MQTT apk you use in Android? Thanks!

  • @CJDavies
    @CJDavies 7 лет назад

    I'm having a bizarre problem with my two Sonoffs. If I power them by connecting 3.3V (from either my FTDI 232 or my bench power supply) to the programming header, the work flawlessly. However when I power them from AC, they are incredibly unstable/temperamental - after a dozen power cycles they might work, with huge amounts of lag & once one of them suddenly started working after 20 minutes powered from AC. At first I thought the power supplies might be faulty, but I have metered 3.316V when they are connected to my 246V AC. I haven't checked the serial console while AC is connected (for obvious reasons) but from my WiFi AP's Web interface it doesn't look as though they are successfully connecting to WiFi when powered from AC. I have a few more on order from banggood, but they will take a while to arrive - maybe the power supplies on mine are putting out the right voltage but are too noisy?

    • @CJDavies
      @CJDavies 7 лет назад

      For anybody finding this comment via Google, the issue was faulty low voltage power supplies on the Sonoffs. Two more Sonoffs from a different batch work flawlessly with exactly the same code/AP/broker/etc.!

  • @maryjoycechung
    @maryjoycechung 7 лет назад

    I've been looking for an Alexa enabled light switch that has multiple gangs (1,2,3 and 4 gang) and can work as intermediate switches (2 and 3 way, so that 2 or 3 switches control one light). Can this configuration be expanded so that it also works as a 3 way switch instead of 2 way? Also, does the Sonoff module provide for dimming, so that it can be dimmed through Alexa even if it's not possible to do so at the physical switch? Thanks!

  • @kostechindustries9277
    @kostechindustries9277 8 лет назад +1

    Another great video Jon! The sonoff seems like an excellent device.My only concern is the lack of approval as stated in the video. Is there any way to metaphorically cut through the red tape? How much would it cost for ITEAD to get approvals for use of this device in Australia?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +2

      Short answer: a LOT. Not only would it need C-Tick approval, but because the ESP8266 has WiFi it's classified as an "intentional emitter" (rather than just something that may cause EMI by accident) so it has to undergo extra testing for spectrum allocation approval. It's likely to cost in the $5k (at the super low end) to $20k range by the time they got it all done. A company like Itead isn't interested in that because they're selling to hobbyists. That's also why something like a Sonoff costs $4.85, but if you go into Bunnings and buy an approved WiFi-enabled power controller such as a Belkin WeMo you're paying $69. Another sucky thing about certification is that it freezes your design. Companies like Itead revise their designs faster than they can update their website, but once something is certified it has to stay that way or go through the process again.

  • @dariosilvamoran630
    @dariosilvamoran630 7 лет назад

    Hi Jonathan, I'm wondering what is making one of my sonoff modules to work only when powered from the pinout 3v3, but not when it is powered from the mains. I suspect the issue is related to the wifi connection since I'm able to access the webserver in one case, but in the other the module doesn't establish the connecting. Do you thing is there a way to test whether the high voltages are messing the wifi antenna/connection?

    • @SuperHouseTV
      @SuperHouseTV  7 лет назад

      I could be totally wrong, but it sounds like there may be something else entirely happening. Perhaps the switch mode power supply isn't working, so the Sonoff isn't powered at all when mains is connected. You could try VERY CAREFULLY using a multimeter to measure if there is 3.3V between GND and the VCC rail when the Sonoff is powered by mains, with nothing else connected. But PLEASE don't zap yourself!

    • @dariosilvamoran630
      @dariosilvamoran630 7 лет назад +1

      Sonoff is actually powered with mains, since I can clearly see led blinking from time to time. And I'm pretty sure that means the esp is powered on, given the led is controlled by it. But, just to test your suggestion, here it is: i.imgur.com/lrfC2Wl.jpg
      The strange thing about this test is that, by connecting the multimeter, sonoff had properly started, even the webserver is there again!, and guess what: after disconnecting both mains and multimeter, and powered the sonoff again by only connecting mains, same issue happened again (blinking led with but no wifi connection).
      I'm wondering if it is safe to connect rx/tx/gnd to the usb-uart to check what the serial log has to say about all these. But, in any case, there's the fact that the sonoff works fine by either being powered through a 3v3 power supply connected to the pinout, or by the strage (at least for me) configuration of sonoff powered with mains AND multimeter measuring power on pinouts.

    • @SuperHouseTV
      @SuperHouseTV  7 лет назад

      If it wasn't working, then you connected the meter and it started working, my first guess is that it's a mechanical problem. Maybe there's a solder joint that doesn't make connection properly, and when you moved the board or connected the leads it moved and made a connection. I suggest you disconnect everything from the Sonoff, and inspect the solder joints on the PCB very carefully with a magnifying glass to see if there are any joints that don't look right.

    • @dariosilvamoran630
      @dariosilvamoran630 7 лет назад

      Yes, is definitely something about pin holes and missing soldering pads. Sonoff actually boot: I'm able to trigger the relay by pushing the toggle button, and led blinks, so the mcu is powered and the firmware running.
      This are the pin holes after removing the male pins previously soldered to access the serial bus: back: i.imgur.com/6FyMwf0.jpg and front: i.imgur.com/ySwHxmi.jpg. In these scenario, when powering from mains, nothing happens (but a poorly light in the green led, missing connection? very low current?). Any way, I reconnected 3v3 pin hole to the missing pin hole/track and put a drop of solder in every other hole to make sure front and back pads were connected: i.imgur.com/Kewb4wp.jpg
      Now, I'm back to the begging: led blinks repeatedly and then stops for a while, in a loop.I keep thinking there's is an issue with the wifi connection, both as client of the configured ssid (it never gets connected) and as AP like when starting with defaults (I saw the default ssid once, it was after refreshing many times the available ssid's with my phone).

  • @alexandremarques4404
    @alexandremarques4404 8 лет назад +1

    Is there anyway to add a physical button on sonoff?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад

      Yes. I explain how to do it in another video: ruclips.net/video/8mz5sCAvDAY/видео.html

  • @paulostradioti
    @paulostradioti 7 лет назад

    Hi, first of all, thanks for your videos, they are great.
    I know almost nothing about electronics, so my question might sound silly, I apologize if that`s the case.. Can I use the on/off wifi switch in parallel with my wall switches, so I can turn the lights on/off either by wifi or by the wall outlet?
    Thanks

  • @BaselKaddoumi
    @BaselKaddoumi 7 лет назад

    Hi, excellent video , i just have a question please can i use nodemcu as firmware and LUA code for ESP for SONOFF instead of the installed on.
    waiting your answer , thanks in advance

  • @janbernhardt2886
    @janbernhardt2886 8 лет назад

    Hi, nice video! I like that little DIP switch that you inlined in that cable. Do you happen to have a link to the product?

  • @pjbear1813
    @pjbear1813 7 лет назад

    Hi do you know or make a product that can be controlled via MQTT to set a dimmable led lamp to a light level. I switch it on and off via a flashed sonoff controlled by MQTT via Home Assistant. I used to use a plc with a 0-10 v controlled dimmer as I am removing the PLC and moving to home Assistant as my control hub which works well and allows Alexa voice control. Any ideas or help would be great. Also do you know of the same type of controller for rgb lights so I can set colour brightness and on and off for a rgb rope?

  • @alanchan81my
    @alanchan81my 6 лет назад

    Hi, may i know does this device suitable use / replace aircond switch? Because the aircond quite high voltage / AMP. Sorry, i'm about zero knowledge...

  • @sebastianilienescu9303
    @sebastianilienescu9303 5 лет назад

    Is it indicated to use it with a TV to turn it on and off?

  • @jeromedaniel7186
    @jeromedaniel7186 7 лет назад

    what software can you use to control it after changing the firmware?

  • @rg87ta
    @rg87ta 8 лет назад

    i cant get this to work. when compiling, it gets an error about a file not found.

  • @fatih318
    @fatih318 7 лет назад

    hello i want to check the button on the exit immediately from sonoff Rf device how can i do it. Can you help me.

  • @goncalojesus
    @goncalojesus 7 лет назад

    Hello,
    that especific usb to serial module is hard to find, is there an alternative?

  • @pranjalprem1608
    @pranjalprem1608 7 лет назад

    I wanted to install sonoff but my problem is am having 6 mescab led installed with 1 switch. So ho to make it wireless. Do 1 need 1 sonoff or 6 sonoff

  • @data811
    @data811 8 лет назад

    Is it possible to group a bunch of Sonoff and with just one trigger it will either On/Off the entire group? Using the EWeLink app
    Thanks

    • @data811
      @data811 8 лет назад

      ok yeah just found out, thanks! Its kinda weird that it doesnt allow me to add all at one go. Had to set it one at a time.....thanks again

  • @ronnydidit
    @ronnydidit 8 лет назад

    Awesome Vid and i actually really like the device but there are also two "contra" to mention.
    1. Most of routers are pretty limited to the simultaneous connected devices. In my case 32 but we have 4 RPi3, something like 80 lights and countless outlets in and around the house. Not to forget some Laptops, Cellphones and IP-Cameras.
    2. i miss connectors to add a push button and a wall switch to switch the relay manually but maybe there is a free GPIO?
    I prefer to use each room one of the latest ESP (3 bucks) with a additional power supply (cheap) and connect several relay boards (up to 30A, also cheap) to it. In case i need more GPIO's there is still the possibility of using shift registers or I2C with PCF8574.
    This isnt critic. Im one of your biggest Fans and your Videos were helping me a lot to understand. KEEP IT UP!!! :)
    PS: sorry for the messy english, im a German who never had an english class in his life ;-)
    But one more Question: MQTT vs. Netcat?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +1

      Yes, point 1 is something that can catch people out if they don't know their AP has a limit on simultaneous clients. Point 2 will be covered very soon in my follow-up video, which will probably be titled "Sonoff Secrets: Storage, Software, Switches, and Safety" or something corny like that :-)
      MQTT and Netcat can work together, but they do very different things. I want to do an episode all about MQTT some time in the future because it's such a useful foundation now for so many connected projects.

    • @ronnydidit
      @ronnydidit 8 лет назад

      Ok, thanks. I'll stay tuned :)

  •  8 лет назад +1

    Hello, great video, you should do more ;)
    Already I walk for some time to explore such options.
    The problem is if someone off the wall switch the Sonoff no longer fed and no longer have control by MQTT!
    Do you have any solution?

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +1

      Two options. 1: put the Sonoff before the wall switch, so that the switch is in the output of the Sonoff. But this means the switch can only control the light when the Sonoff is on. Not very good. 2: Remove the wall switch, and put in a different device that doesn't control the power directly. Instead, it sends a command to the Sonoff, or to a home automation controller (such as OpenHAB) that controls the Sonoff. This is what I do. I don't have any normal wall switches anymore. Instead, each wall switch just has some buttons connected to an Arduino. When a button is pressed, the Arduino sends a command to OpenHAB.

    • @dariosilvamoran630
      @dariosilvamoran630 8 лет назад +1

      Hello, by the way really nice video. I was looking for a solution to the problem of two way switch using both a wall switch already in place, and the sonoff. Do yo think some mod can be done to the standard "stair-wiring-like" two way switching (goo.gl/mMA4F3)? Thanks in advance!

    • @SuperHouseTV
      @SuperHouseTV  8 лет назад +2

      Normally this is the sort of problem that home automation solves brilliantly, because the logical controls are totally separated from the physical outputs. You can put logical switches anywhere you like, do a bit of software configuration, and any switch in the house can control any light. The problem is with retro-fitting and trying to use existing wiring. It's easily solved using the replacement light switches I made that I showed briefly in the video, but I'm not selling those because they're not certified. I think I may have a plan for doing it with a Sonoff, so I'll think about it and maybe show a solution in a follow up video. I want to do a video about using the Sonoff TH model with a light switch plugged into the temperature / humidity sensor socket on the side, so there's a physical control on the wall that the Sonoff can read.

  • @pellcorp
    @pellcorp 3 года назад

    Is even hobby use legal in Oz? I assume any mains power work is sparky only 😞

  • @casachristiana
    @casachristiana 6 лет назад

    Great videos. Can I ask does the Sonoff do something for electric blinds or can the sonoff basic be used? Thanks Gerry

  •  7 лет назад

    Hi! Where I can find the original Sonoff Firmware for download? Best regards!

  • @AntonMartinez
    @AntonMartinez 6 лет назад

    Hi Jonathan, I've recently bought a couple of sonoff basic, and I want to make them work with my lights without loosing the regular wall switch usage. Your videos about the subject are the best, and the way you explain things it's very simple and clear! So, thanks for that! I've a really quick question, I'm looking for an usb adapter for it, and I'm guessing if any adapter would work, given that I've seen a lot of options and I want to buy something that works (because I've to wait for a long shipping after I buy it). Thanks in advance!

  • @heftymerv
    @heftymerv 6 лет назад

    Great video, as they are illegal in this form in AUS, do you know if the plugin form works the same way as these were you can hook them up to openHAB?

  • @locusm
    @locusm 6 лет назад

    I'm new to Sonoff but they look like the most affordable and hackable mains switching device. Is there any update to their legality in Australia?

    • @locusm
      @locusm 6 лет назад

      Apparently they are doing something through these guys
      www.saaapprovals.com.au/
      Couldn't get anymore detail out of them than that.