* http://www.superhouse.tv/17-home-automation-control-with-sonoff-arduino-openhab-and-mqtt/
* Episodes: https://www.superhouse.tv/episodes
* Discord: https://www.superhouse.tv/discord
* Gear I use: https://www.superhouse.tv/gear
* Patreon / GitHub Sponsors: https://www.superhouse.tv/support

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
– twitter.com/superhousetv
– www.facebook.com/superhousetv/
Jonathan Oxer:
– www.facebook.com/jonoxer/
– twitter.com/jonoxer

Please support me on Patreon: www.patreon.com/superhouse

, https://i.ytimg.com/vi/_389pQPLyr8/hqdefault.jpg

source

38 Comments

  1. Please tell me how to do the programming.. I don't know the programme language. tell me which software need to use for programme. and suggest me the pdf boog for programming

  2. so basically if i put one inline with my table lamp i can control it with my phone, and google smart speaker, but i just cannot turn it on with the switch …

  3. well…i don't see a reason why not to flash it with main connected, it has a trafo, so it's isolated.
    if where were no trafo, well…yeah…that would crap out your pc and most probably zap you due the fact that it use floating gnd.
    still…it's more safer to be disconnected

  4. New subscriber. Have you tried this with a low voltage source?

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

  6. Really appreciate your video. I share your thoughts on using another provider. i just want to be able to use openhab and my own server. i can do the firmware but i wish there was just a binding that would do it

  7. Thank you and compliments!..
    Just a question out of your tutorial: i installed the app "ewelink" to control my old Sonoff basic with the RF 433 Mhz inside… The application forced me to update the device with a firmware ITA-GZ1-GL .Everything works fine except the RF function 🙁 What can i do to solve?. Thank you?

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

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

  10. Why do you not tell us what is mqtt or what you are talking about. Do you think we all know what you are talking about. Since you never answer any of our questions you just do not care about your followers. Why do you don't care about us ?

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

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

  13. Thanks for an excellent and complete tutorial very well presented. I have and application where I need to control a bank of separate switches. I have been looking at the Sonoff Smart Remote Control Wireless Switch Universal Module 4ch DC 5V 12V Y0T7. This has 4 relays. It has the same sockets to reprogram the board but will the the blynk software be able to handle the 4 relays?
    UPDATE: I found your "Video SuperHouse #30: Reflash ANY Sonoff, even if you don't know the pinout
    " it told me all I needed to know, so I don't need any help – Thanks again – Great work

  14. Makes me laugh how people like this guy takes the long route to do simple mains control. I wouldn't trust sonoff let alone WiFi to be the link between the system.

  15. I just tried to install tasmota on one of those devices, but it seems to work only when connected through the serial pins, when connected to the wall plug it doesn't connect, I might need to install that firmware to try it out (I also use MQTT) I'll be looking forward to your next videos 🙂

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

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

  18. Can the TH10 support 2 waterproof thermal sensors in parallel and act upon the temperature changes on 1 of the sensors? I have a pool heater that I want to control with the TH10. I would like to control the temp remotely, and monitor the pool temp, as well as monitor the exhaust temp to tell me if and when the heat is on. Or can I use another input on the TH10 for that without adding the resistor and jumper. I bought a th10 and did the mode before testing it, and found it's not getting picked up on my wifi. I'd like to do this with the native ewelink app. Thanks.

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *