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

  Переглядів 373,198

SuperHouseTV

SuperHouseTV

7 років тому

* www.superhouse.tv/17-home-auto...
* Episodes: www.superhouse.tv/episodes
* Discord: www.superhouse.tv/discord
* Gear I use: www.superhouse.tv/gear
* Patreon / GitHub Sponsors: 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
- superhousetv
- superhousetv/
Jonathan Oxer:
- jonoxer/
- jonoxer
Please support me on Patreon: www.patreon.com/superhouse

КОМЕНТАРІ: 412
@Howie55Aus
@Howie55Aus 7 років тому
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.
@justusdj
@justusdj 7 років тому
I like how you're confident enough in your soldering abilities to do it right over your whiteboard.
@LaCorderie67
@LaCorderie67 7 років тому
Thx for all your videos keep doing it ! Thx for taking so much time to do all this content and sharing your skill :)
@lundebc
@lundebc 7 років тому
Great stuff here, programmed the Sonoff basic and got it hooked up to my MQTT and Node-RED thanks to this tutorial!
@kcarmical
@kcarmical 7 років тому
Great as usual. So glad to see you making more videos!
@c000159
@c000159 6 років тому
One of the best UKposts videos I have ever seen!
@excession1293
@excession1293 7 років тому
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.
@sunglint
@sunglint 6 років тому
This is a great video! Very thorough, concise, and information dense. Thanks so much!
@CompuWhizz
@CompuWhizz 7 років тому
Really like the longer format video, lets you gets more in depth.
@SuperHouseTV
@SuperHouseTV 7 років тому
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 7 років тому
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 7 років тому
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)
@ilducedimas
@ilducedimas 4 роки тому
You were WAY ahead of your time with your homemade switches. Hats off to you!
@dakipro
@dakipro 7 років тому
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!
@GrahamDIY
@GrahamDIY 7 років тому
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 7 років тому
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 7 років тому
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 6 років тому
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 7 років тому
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
@jeucedahn
@jeucedahn 6 років тому
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?
@Len02013
@Len02013 6 років тому
Thanks. Had no idea about ota updates, that will be helpful for another project :)
@alexiekola
@alexiekola 7 років тому
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!!!
@procyonlotor1906
@procyonlotor1906 7 років тому
Gday. I'm just starting to learn about all this cool stuff and you make it really easy for dopes like me. Thank you.
@e.shealer2417
@e.shealer2417 6 років тому
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...
@morpheuz2006
@morpheuz2006 7 років тому
love it :D great work... :D use this to a long term project? its good idea? and Sonoff S20 can be use in the same way ?
@ozcanonal
@ozcanonal 4 роки тому
Thank you for this very informative video. You are quite a lecturer...
@GrahamDIY
@GrahamDIY 7 років тому
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.
@veronikak4095
@veronikak4095 7 років тому
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 7 років тому
Just ordered a few of each type, cheers #SuperHouseTV !
@jeankhoury7469
@jeankhoury7469 5 років тому
How do you know which pin corresponds to which functionality on the sonoff? Thanks
@brandonso6675
@brandonso6675 7 років тому
thanks for the ideas please keep doing this kind of videos :)
@Fudders
@Fudders 6 років тому
Great video, really well explained - thanks very much!
@sergioaiello4760
@sergioaiello4760 6 років тому
That's brilliant! Thank you for inspiring
@gsatchu111
@gsatchu111 4 роки тому
Great skill and presentation.. Thanks
@casachristiana
@casachristiana 5 років тому
Great videos. Can I ask does the Sonoff do something for electric blinds or can the sonoff basic be used? Thanks Gerry
@jomigregory7253
@jomigregory7253 6 років тому
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
@1mrhamel
@1mrhamel 7 років тому
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.
@fcecamor
@fcecamor 6 років тому
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
@NikonErik
@NikonErik 4 роки тому
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.
@alim25061
@alim25061 4 роки тому
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 ?
@amokdesign
@amokdesign 6 років тому
thank you for this - please do more of this - very informative - super cool and easy "tutorial" - thanks jonathan ;) - how do you get that shell window for mosquitto ?
@sunsopheary
@sunsopheary 6 років тому
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.
@BaselKaddoumi
@BaselKaddoumi 6 років тому
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
@milwen
@milwen 7 років тому
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 7 років тому
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
@o2usa13
@o2usa13 7 років тому
Great videos, would like to see more on the roller shade build.
@heftymerv
@heftymerv 5 років тому
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?
@paulostradioti
@paulostradioti 6 років тому
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
@cbproductionspg
@cbproductionspg 7 років тому
Hi, First of all great video! I am new in all this things of domotica and stuff but really love the toughts that it's all possible. Next month I will move to another home and I want to be able to check and control my lights from distance when I'm not home because my kids and wife sometimes forget to turn them off! I already understand what sonoff does but is it possible to use the main light switch to turn on and off the light without having new wires etc..?
@viniciusnoyoutube
@viniciusnoyoutube 7 років тому
Very well made video. Thanks.
@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!
@janbernhardt2886
@janbernhardt2886 7 років тому
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?
@Emillos82
@Emillos82 7 років тому
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
@platinumav
@platinumav 7 років тому
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
@Nowah1981
@Nowah1981 7 років тому
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.
@chebliss7665
@chebliss7665 4 роки тому
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.
@jamesdavis5517
@jamesdavis5517 7 років тому
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!
@SuperHouseTV
@SuperHouseTV 7 років тому
Nice!
@intisemestahastakaryacv2568
@intisemestahastakaryacv2568 6 років тому
Could you please teach me how to find that, cos I need sonoff to control my garage door
@jimbosander
@jimbosander 6 років тому
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?
@DwightWalker
@DwightWalker 5 років тому
Great video channel on Arduino!
@peaceandfood7952
@peaceandfood7952 7 років тому
really intresting compare to a 40/50$ z-wave module + z-wave controller (raspberry pi+ z-wave dongle) around 50$ i think.
@FrankGegna
@FrankGegna 4 роки тому
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?
@ecloud88
@ecloud88 6 років тому
Hi Jon, fantastic video! Can you help me find the Sonoff firmware to use them with MQTT? ThankYou
@BackyardAussie
@BackyardAussie 7 років тому
do you think you might get a chance to do a video or blog post on the light switch (at the 2min 50sec mark) ??
@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 :)
@stunamvap8617
@stunamvap8617 6 років тому
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.
@WenderReis
@WenderReis 7 років тому
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.
@craigminca7446
@craigminca7446 7 років тому
Thanks mate. Awesome hack.
@jime9243
@jime9243 4 роки тому
New subscriber. Have you tried this with a low voltage source?
@DCJautomacoes
@DCJautomacoes 6 років тому
I have some questions. How long does the mqtt service "broker" stay on? Will it cost in the future? Parallel connection possible? thank you
@DiyintheGhetto
@DiyintheGhetto 6 років тому
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?
@ravilpatel8629
@ravilpatel8629 6 років тому
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 7 років тому
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 :)
@snajperSLO
@snajperSLO 7 років тому
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?
@finity69x2
@finity69x2 6 років тому
What firmware are you using to get the external toggle switch functionality?
@BillFilson
@BillFilson 5 років тому
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
@wiztronicmalta
@wiztronicmalta 7 років тому
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!
@paulionsw
@paulionsw 6 років тому
Hey I know this is fairly old but do you have any instructions on how you setup the light switch devices?
@DiyintheGhetto
@DiyintheGhetto 6 років тому
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?
@clientesym
@clientesym 7 років тому
I would like to know which memory chip did you order to replace it?
@carloszacu
@carloszacu 5 років тому
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 :)
@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?
@goncalojesus
@goncalojesus 6 років тому
Hello, that especific usb to serial module is hard to find, is there an alternative?
@kostechindustries9277
@kostechindustries9277 7 років тому
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 7 років тому
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.
@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?
@tommysharp1570
@tommysharp1570 7 років тому
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 2 роки тому
I realize it's kinda off topic but do anyone know a good place to watch new movies online ?
@kyngkyng908
@kyngkyng908 2 роки тому
@Arlo Saul i would suggest FlixZone. Just search on google for it =)
@maxnelson2304
@maxnelson2304 2 роки тому
@Kyng Kyng yup, I've been watching on flixzone for since march myself =)
@arturodavis5135
@arturodavis5135 2 роки тому
@Kyng Kyng Thanks, I went there and it seems like a nice service :) I really appreciate it!!
@foxchaim5370
@foxchaim5370 2 роки тому
@Arlo Saul Happy to help xD
@t3rr1k
@t3rr1k 7 років тому
Fantastic video, liked, suscribed and Ordering smart relays, now. I did excactly that with a: old phone charger SM-PSU, esp-8266 and a cheap relay. I spent too many hours and still have issues with the relay control voltage. Is there something similar with dimmers? Did you realise how much responsive is your bulb when is not turned on from the cloud? :) Thanks
@SuperHouseTV
@SuperHouseTV 7 років тому
There are definitely equivalent devices from other suppliers that can do dimming, but I don't think any of the Sonoff models can do it. Not yet, anyway. They're just on/off devices. I think there's probably a Belkin Wemo module that can do it, but they're about 15x more expensive!
@LuisCanossa
@LuisCanossa 7 років тому
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 7 років тому
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.
@Nomansland424
@Nomansland424 6 років тому
Hello Jonathan I am trying to automate my home with Sonoff solution, could you recommend the reliability of this product? For how long will this work?
@sparkequinox
@sparkequinox 5 років тому
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*
@JamesBos
@JamesBos 7 років тому
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!
@HawkX189
@HawkX189 7 років тому
This video is awesome. Thanks. Lots of information for noobs.
@sou_nerd8969
@sou_nerd8969 6 років тому
Hi. Whats the name the second machine.. you install on the wall And you have opcion for touch the bottom fot turn on or off
@ollethelin6505
@ollethelin6505 7 років тому
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 7 років тому
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.
@kemaldemir291
@kemaldemir291 7 років тому
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?
@kimlindblom6964
@kimlindblom6964 7 років тому
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.
@brainfreeze7979
@brainfreeze7979 6 років тому
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?
@pjbear1813
@pjbear1813 6 років тому
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?
@mikewurlitzer5217
@mikewurlitzer5217 7 років тому
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.
@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.
@galex81
@galex81 6 років тому
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
@martinled7493
@martinled7493 7 років тому
Can you make a list, wiht the products to the controller ? :)
@nakulsolanki
@nakulsolanki 7 років тому
Hi Jon, quick question, I recently added an esp8266 based relay to control the lights of my living room. I connected the relay in parallel to the switch rather than in series. Do you think there is any advantage to connect a relay in series (or in parallel)?
@SuperHouseTV
@SuperHouseTV 7 років тому
The difference is whether you prioritise forcing something ON or OFF. If you put them in parallel, it's always possible for the other control to turn the load on, and you can't turn it off. If you put them in series, either control can force it off. The best method is to remove the switch entirely and have the load only controlled by the relay, then have a new switch that is a logical control (sends a command to your home automation controller) instead of a direct control (interrupts the power to the load)
@alanchan81my
@alanchan81my 5 років тому
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...
@ubozkurt
@ubozkurt 7 років тому
you are elekronik magic man :)
@mrteausaable
@mrteausaable 6 років тому
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?
@roystervi
@roystervi 7 років тому
Hi I like ur video, I just won 10 5v relay from ebay for $10 that I was going to use in my (HA) Home Assistant setup on my raspberry pi gpio. Now I saw ur demo on sonoff it will be easier to add to HA than the 5v relay which I need to run long to each device. Question, you have a link to some Sonoff, is any of then already flash with mqtt? it would be great and beat the newbie in me to try to flash these my self. I like to buy some if they already been flash with mqtt, even if you charge extra for the flashing.
@maryjoycechung
@maryjoycechung 6 років тому
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!
@JeanMichelDube
@JeanMichelDube 7 років тому
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 7 років тому
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 7 років тому
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 7 років тому
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 7 років тому
Yes I would love a video on MQTT - JUST on MQTT from Jonathon.
@maurohernandezmontes3583
@maurohernandezmontes3583 7 років тому
Jean-Michel Dubé sßx
Turn Sonoff Basic to garage door opener with eWeLink
11:41
Csongor Varga
Переглядів 372 тис.
Эффект Карбонаро и соковыжималка
01:01
История одного вокалиста
Переглядів 2,6 млн
Eurovision Song Contest 2024: First Semi-Final (Live Stream) | Malmö 2024 🇸🇪
2:23:45
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Переглядів 27 млн
The COMPLETE Guide to Tasmota 2019
16:41
The Hook Up
Переглядів 255 тис.
Boston Dynamics NEW ROBOT STUNS EVERYBODY!
4:24
NEXT AI
Переглядів 3,8 тис.
NASA Canceled Boeing Starliner Launch, Why? Musk's reaction...
11:19
GREAT SPACEX
Переглядів 59 тис.
Flashing TASMOTA Firmware on the Sonoff Basic
8:21
DrZzs & GrZzs
Переглядів 253 тис.
Home automation over WiFi using WeMos ESP8266
15:00
bitluni
Переглядів 654 тис.
SpaceX's Critical Updates! Next Starship is ready! Flight 4 in 3 weeks!
20:49
Is the Shelly 1 better than the Sonoff Basic?
14:17
The Hook Up
Переглядів 473 тис.
FIR Filter Design and Software Implementation - Phil's Lab #17
30:35
Phil’s Lab
Переглядів 195 тис.
How Neuralink Works 🧠
0:28
Zack D. Films
Переглядів 24 млн
Опасная флешка 🤯
0:22
FATA MORGANA
Переглядів 727 тис.
Samsung UE40D5520RU перезагружается, замена nand памяти
0:46
Слава 100пудово!
Переглядів 2,7 млн
Самый маленький игровой ПК
0:46
ITMania - Сборка ПК
Переглядів 628 тис.
Vortex Cannon vs Drone
20:44
Mark Rober
Переглядів 13 млн