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

Sdílet
Vložit
  • čas přidán 25. 08. 2024
  • * www.superhouse....
    * Episodes: www.superhouse...
    * Discord: www.superhouse...
    * Gear I use: www.superhouse...
    * Patreon / GitHub Sponsors: www.superhouse...
    The Sonoff from Itead Studio is a fantastic little mains-switching module with a built-in ESP8266 and WiFi. If you want an easy way to control mains devices such as lamps and fans, this could be it!
    Sonoff modules are preloaded with firmware that allows them to be controlled by a phone app, so they're very easy to get started. But that's just the beginning: using a USB-serial converter and the Arduino IDE, you can load your own software on the Sonoff and make it do your bidding. I used the Arduino IDE to load a sketch with MQTT support and OTA (over the air) updates, allowing it to be controlled by OpenHAB.
    SuperHouse:
    - www.superhouse.tv
    - superhousetv
    - superhousetv/
    Jonathan Oxer:
    - jonoxer/
    - jonoxer
    Please support me on Patreon: www.patreon.com/superhouse

Komentáře • 412

  • @Howie55Aus
    @Howie55Aus Před 7 lety +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.

  • @ilducedimas
    @ilducedimas Před 4 lety +1

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

  • @lundebc
    @lundebc Před 7 lety +1

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

  • @justusdj
    @justusdj Před 7 lety

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

  • @GrahamDIY
    @GrahamDIY Před 8 lety +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  Před 8 lety +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 :-)

    • @GrahamDIY
      @GrahamDIY Před 8 lety +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 Před 6 lety

      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.

  • @christopheradam6967
    @christopheradam6967 Před 7 lety

    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

  • @CompuWhizz
    @CompuWhizz Před 8 lety +6

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

    • @SuperHouseTV
      @SuperHouseTV  Před 8 lety

      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 Před 8 lety +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  Před 8 lety +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)

  • @GrahamDIY
    @GrahamDIY Před 7 lety +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.

  • @jamesdavis5517
    @jamesdavis5517 Před 7 lety +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!

  • @kcarmical
    @kcarmical Před 8 lety +1

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

  • @c000159
    @c000159 Před 6 lety +1

    One of the best CZcams videos I have ever seen!

  • @LaCorderie67
    @LaCorderie67 Před 7 lety +4

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

  • @NikonErik
    @NikonErik Před 4 lety +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.

  • @e.shealer2417
    @e.shealer2417 Před 6 lety

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

  • @excession1293
    @excession1293 Před 8 lety

    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.

  • @1mrhamel
    @1mrhamel Před 8 lety +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.

  •  Před 8 lety +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  Před 8 lety +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 Před 8 lety +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  Před 8 lety +2

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

    • @GrahamDIY
      @GrahamDIY Před 8 lety +2

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

    • @maurohernandezmontes3583
      @maurohernandezmontes3583 Před 7 lety

      Jean-Michel Dubé sßx

  • @sunglint
    @sunglint Před 6 lety

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

  • @veronikak4095
    @veronikak4095 Před 7 lety +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 Před 7 lety +2

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

    • @jeankhoury7469
      @jeankhoury7469 Před 5 lety

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

  • @alexiekola
    @alexiekola Před 8 lety +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!!!

  • @milwen
    @milwen Před 8 lety +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  Před 8 lety

      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

  • @mikewurlitzer5217
    @mikewurlitzer5217 Před 7 lety

    What a very well done video. I have 10 Sonoffs running but using their eWeLink server but would like to run off a Raspberry Pi and this video will be invaluable.
    I'd also like to echo Jean-Michel Dube's request for a video on MQTT.
    Thanks again.

  • @Len02013
    @Len02013 Před 6 lety

    Thanks. Had no idea about ota updates, that will be helpful for another project :)

  • @peaceandfood7952
    @peaceandfood7952 Před 8 lety +6

    really intresting compare to a 40/50$ z-wave module + z-wave controller (raspberry pi+ z-wave dongle) around 50$ i think.

  • @procyonlotor1906
    @procyonlotor1906 Před 7 lety

    Gday. I'm just starting to learn about all this cool stuff and you make it really easy for dopes like me. Thank you.

  • @yapandasoftware
    @yapandasoftware Před 5 lety

    X-10 is cheap.. and I think it's still around. Easy to install and easy to implement. The TW523 interface may still be around but if it isn't it's easy to write a arduino code and build your own X-10 interface using a balon coil and some capacitors as passive phase filters. I made a power line transmitter that can send 12Mb across the power line using 2-10 mHz in the transmit mode and between 12 and 20 in the receive mode. I created an ADHOC protocol interface using OFDM platform and created a BQPSK scheme with the old INARI chipset . This allowed me to connect up to 256 devices all talking at the same time using a LUC or "Line up Card" which controlled which node spoke and when they were allowed to make a diffee and helman handshake. I hold patents in the power line industry and I've actually transmitted over a 7620V power line 12 miles but the Radiant Noise level was too high 70 db per meter and the FCC prevented me from moving forward with that design. But it is possible.

  • @dakipro
    @dakipro Před 7 lety

    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!

  • @sparkequinox
    @sparkequinox Před 6 lety

    Thank you! Just got a pair of esp32's and got my first ever OTA going. Though it only worked once, checking it your source code I was able to confirm my suspicious/stupidity... The initial OTA section of must also be in the OTA uploaded code.. *doh*

  • @Fudders
    @Fudders Před 6 lety

    Great video, really well explained - thanks very much!

  • @ozcanonal
    @ozcanonal Před 5 lety

    Thank you for this very informative video. You are quite a lecturer...

  • @o2usa13
    @o2usa13 Před 8 lety +5

    Great videos, would like to see more on the roller shade build.

  • @Emillos82
    @Emillos82 Před 8 lety +1

    great video. I am doing the same construction with a power supply, a wemos d1 mini and a relay (and ESP easy software) but it is not as compact as the sonoff. I will buy one directly. thanks

  • @brandonso6675
    @brandonso6675 Před 7 lety

    thanks for the ideas please keep doing this kind of videos :)

  • @gsatchu111
    @gsatchu111 Před 4 lety

    Great skill and presentation..
    Thanks

  • @sergioaiello4760
    @sergioaiello4760 Před 6 lety

    That's brilliant! Thank you for inspiring

  • @alim25061
    @alim25061 Před 5 lety +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 ?

  •  Před 7 lety

    Nice vid, when you're trying to find the original firmware you wont find it using the client side mobile app name it will be sonof name most likely.

  • @viniciusnoyoutube
    @viniciusnoyoutube Před 7 lety

    Very well made video.
    Thanks.

  • @DwightWalker
    @DwightWalker Před 5 lety

    Great video channel on Arduino!

  • @mivniot
    @mivniot Před 4 lety

    I love this guy so much ^^^^^^^^^^^^^^^^^^^^

  • @chuxxsss
    @chuxxsss Před 8 lety +1

    Thanks for the Vblog. I brought three Sonoff's , which after postage cost around 9.33 Au not a bad price too. Must get some 8M chips too. Can you list your interface please to the computer.

    • @chuxxsss
      @chuxxsss Před 8 lety +1

      Oh I didn't go to you excellent website or I would have found my answers to my questions. Have a wonderful day.

  • @JamesBos
    @JamesBos Před 7 lety

    Jon, thanks so much for these videos! I've been messing with OpenHAB for a while now and decided to take the leap and just buy up on all the Wemos and Sonoff stuff. I hope we start to see more hardware from companies like Itead who actually embrace the makers whilst making it accessible for the consumer :)
    I was initially having issues because my el-cheapo (sorry, no Freetronics here in Thailand :P) TTL Serial interface lied to me when it said it had switchable 5v-3v3 logic level. Luckily it didn't kill the Sonoff and also had a spare arduino I could use instead (by grounding the reset pin and using the rx/tx lines)
    Now if someone can make a good quality esp8266 powered door lock, I'd be happy as a pig in shit!

  • @ronnydidit
    @ronnydidit Před 7 lety

    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  Před 7 lety +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 Před 7 lety

      Ok, thanks. I'll stay tuned :)

  • @fitwithsurya
    @fitwithsurya Před 5 lety

    nice video nice explanation

  • @Nowah1981
    @Nowah1981 Před 7 lety

    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.

  • @anthonydacko2856
    @anthonydacko2856 Před 7 lety

    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.

  • @sunsopheary
    @sunsopheary Před 6 lety

    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.

  • @jakubkrason
    @jakubkrason Před 7 lety +1

    Great Video. Is the app on your phone your own one or you use 3rd party app? Any pointers or links on developing this ? I want to be independent of any 3rd party systems myself. App alone shouldn't be a problem to switch things on and off but I'm just not sure if i will be able to incorporate pairing into the app. Thanks for any help and keep them videos coming. There is 32,679 of us craving for more ;)

    • @SuperHouseTV
      @SuperHouseTV  Před 7 lety +1

      Thanks Jakub! The first app I showed was the one supplied by iTEAD. The second app (which is the one I normally use) is the app for OpenHAB, which I use as my main home automation controller / coordinator.

  • @kostechindustries9277
    @kostechindustries9277 Před 8 lety +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  Před 8 lety +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.

  • @DiyintheGhetto
    @DiyintheGhetto Před 7 lety

    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?

  • @mbecker163
    @mbecker163 Před 6 lety

    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?

  • @GrahamDIY
    @GrahamDIY Před 8 lety +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 Před 4 lety

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

  • @galex81
    @galex81 Před 7 lety

    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

  • @tommysharp1570
    @tommysharp1570 Před 7 lety +2

    Great video! I'm always conscious of providing manual control of my devices using buttons. I like the look of your 4 gang light switches..... would love to see how you might do something similar to manually control a sonof device?

    • @arlosaul6587
      @arlosaul6587 Před 3 lety

      I realize it's kinda off topic but do anyone know a good place to watch new movies online ?

    • @kyngkyng908
      @kyngkyng908 Před 3 lety

      @Arlo Saul i would suggest FlixZone. Just search on google for it =)

    • @maxnelson2304
      @maxnelson2304 Před 3 lety

      @Kyng Kyng yup, I've been watching on flixzone for since march myself =)

    • @arturodavis5135
      @arturodavis5135 Před 3 lety

      @Kyng Kyng Thanks, I went there and it seems like a nice service :) I really appreciate it!!

    • @foxchaim5370
      @foxchaim5370 Před 3 lety

      @Arlo Saul Happy to help xD

  • @kimlindblom6964
    @kimlindblom6964 Před 7 lety

    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.

  • @gandsnut
    @gandsnut Před 7 lety

    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.

  • @ollethelin6505
    @ollethelin6505 Před 7 lety +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  Před 7 lety

      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.

  • @wiztronicmalta
    @wiztronicmalta Před 7 lety

    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!

  • @ravilpatel8629
    @ravilpatel8629 Před 6 lety

    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?

  • @itsadamoc
    @itsadamoc Před 7 lety

    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 :)

  • @ksmith7122
    @ksmith7122 Před 7 lety +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  Před 7 lety

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

  • @alanchan81my
    @alanchan81my Před 6 lety

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

  • @jeucedahn
    @jeucedahn Před 6 lety

    Hi this is a very helpful video, thanks for sharing.
    Is it still needed in new models of sonoff to upload your own firmware in order to control it locally?

  • @richgrasso9904
    @richgrasso9904 Před 6 lety

    Alexa doesn't pick up the sonoff any more with the flash i used a year ago. Was there an update?

  • @KimStrandberg93
    @KimStrandberg93 Před 7 lety

    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 :)

  • @platinumav
    @platinumav Před 7 lety

    mate, your knowledge and dedication is to be applauded. Can you tell me if this can be integrated with Push Controls automation? The 4G connectivity is a bonus over anything like the LIFX and the cost is amazing compared with Environexus

  • @borchrich
    @borchrich Před 7 lety +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  Před 7 lety

      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

  • @bernardjordaan8135
    @bernardjordaan8135 Před 7 lety

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

  • @videoxp2004
    @videoxp2004 Před 6 lety

    you are so so smart thanks for video

  • @intisemestahastakaryacv2568

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

  • @Nathan-rx6bj
    @Nathan-rx6bj Před 7 lety

    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?

  • @brainfreeze7979
    @brainfreeze7979 Před 6 lety

    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?

  • @HawkX189
    @HawkX189 Před 7 lety

    This video is awesome. Thanks. Lots of information for noobs.

  • @DiyintheGhetto
    @DiyintheGhetto Před 7 lety

    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?

  • @AntonMartinez
    @AntonMartinez Před 6 lety

    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!

  • @pranjalprem1608
    @pranjalprem1608 Před 6 lety

    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

  • @fatih318
    @fatih318 Před 6 lety

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

  • @WenderReis
    @WenderReis Před 7 lety

    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.

  • @fcecamor
    @fcecamor Před 6 lety

    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

  • @drDigD
    @drDigD Před 8 lety +1

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

    • @SuperHouseTV
      @SuperHouseTV  Před 8 lety +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 Před 8 lety

      Looking forward to it! =)

  • @rg87ta
    @rg87ta Před 7 lety

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

  • @craigminca7446
    @craigminca7446 Před 8 lety +1

    Thanks mate. Awesome hack.

  • @janbernhardt2886
    @janbernhardt2886 Před 7 lety

    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?

  • @jomigregory7253
    @jomigregory7253 Před 7 lety

    Great video. Thanks for uploading these .
    How do we calculate the power overhead of this sonoff devices themselves ? i.e how much extra these devices going to add to my electricty bill ? Thanks

  • @wisterdesigns9620
    @wisterdesigns9620 Před 7 lety

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

  • @richardtreglia2270
    @richardtreglia2270 Před 3 lety

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

  • @wonkastudio-johnny
    @wonkastudio-johnny Před 7 lety +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  Před 7 lety

      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.

  • @jimbosander
    @jimbosander Před 6 lety

    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?

  • @sam9s
    @sam9s Před 7 lety

    When I click on verify after all config is done I am getting error "Error compiling for board Generic ESP8266 Module" .....can u plz assist. I want to upload tasmota firmware that I already have downloaded.

  • @ronkloiber
    @ronkloiber Před 7 lety

    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,

  • @amanfromoakland
    @amanfromoakland Před 7 lety

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

  • @zigajamnik
    @zigajamnik Před 7 lety +4

    is there also any tutorial how can i connect this later to openHab? beginner :(

    • @SuperHouseTV
      @SuperHouseTV  Před 7 lety +4

      Not yet, but it's on my to-do list :-)

    • @zigajamnik
      @zigajamnik Před 7 lety +2

      I've ordered my arduino and rasp so i still have some time, havent arrived yet:p

  • @stunamvap8617
    @stunamvap8617 Před 7 lety

    Thank you very much for these precious and precise advice well structured.
    The SONOFF interface is very interesting no term of saving water and electricity.
    I did some tests and read a lot. I realize that it is the jungle from the multitude
    To manage this automation via proprietary servers (or not as Mosquito) or various platforms.
    I am a confused in the mass of information ingested.
    Would you be so kind as to advise me on a device that works only
    On a local area network (LAN). I want a client / server device (off-line) opensource
    So as to manage, via a router, a drip, the ground of which can not receive any
    Internet signal. Please, indicate me in the main line, the different tools. Is the
    Support arduino could support a server?
    Thank you in advance for your time and advice.

  • @paulostradioti
    @paulostradioti Před 7 lety

    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

  • @manggyver7852
    @manggyver7852 Před 7 lety +1

    Good day Jonathan, before anything else I would like to say GOOD JOB IN presenting SONOFF products in your site. May I ask if you can apply this programming (Sonoff - WiFi Wireless Smart Switch for MQTT COAP Smart Home ) to Sonoff 4CH - 4 Channel Din Rail Mounting WiFI Switch?..... What I mean is if this 4channels can also hacked to put firmware that syubscribed to MQTT.

    • @SuperHouseTV
      @SuperHouseTV  Před 7 lety

      Yes, the Sonoff 4CH is supported by TASMOTA firmware which works with MQTT.

  • @ForwardGuidance
    @ForwardGuidance Před 6 lety +1

    Providing power to many appliances simply provides power to them, but they still need to be powered on manually so putting one of these on a coffee pot or window AC or a TV or a modern wash machine isn't going be of much use, right? I see this as most useful for lights and fans and probably other things I can't think to name right now, but for modern appliances, it doesn't appear it would help much.

    • @DaveTaste
      @DaveTaste Před 6 lety

      I agree.
      Unless you're comfortable with soldering or any other way to leave them in a permanently "on" state and let Sonoff control the on and off.
      Wouldn't work with a kettle though as that turns off when it boils.
      Would work with a washing machine by bridging the push button switch.

  • @ggc87
    @ggc87 Před 5 lety

    How can u make this device Bluetooth? Potable . To just pair it Bluetooth to ur phone . Any suggestions ?

  • @kemaldemir291
    @kemaldemir291 Před 7 lety

    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?

  • @mig4ng
    @mig4ng Před 7 lety

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