SuperHouse #21: Six Sonoff Secrets: Storage, Safety, Switches, Sensors, Software, and Sites
HTML-код
- Опубликовано: 2 янв 2017
- * www.superhouse.tv/21-six-sonof...
* Episodes: www.superhouse.tv/episodes
* Discord: www.superhouse.tv/discord
* Gear I use: www.superhouse.tv/gear
* Patreon / GitHub Sponsors: www.superhouse.tv/support
Customise your Sonoff home automation controllers with a memory upgrade, weatherproof housing, control switches, sensors, and custom firmware.
SuperHouse:
- www.superhouse.tv
- superhousetv
- superhousetv/
Jonathan Oxer:
- jonoxer/
- jonoxer
Please support me on Patreon: www.patreon.com/superhouse Наука
2:27 - Storage
9:08 - Safety
17:32 - Switch
22:08 - Switch (part 2)
23:23 - Switch (light switch)
27:00 - Switch (light switch part 2)
29:14 - Sensor
35:28 - Software
43:43 - Website
Saya tommy dari Indonesia.
Saya senang melihat video ini.
thxxx
I've added a few more images and better descriptions to the episode page now, so it should be easier to find the specific headers, resistors, etc that I mention in the video. I'll keep expanding the page with more information over time, so if you think anything needs clarification please let me know.
Is there enough space in the filesystem to allow for state awareness for the MQTT server?
For example: when you use the light switch example, could the MQTT server push state update to the control all wirelessly?
Yes, that's not a problem. The Sonoff already has a concept of its own state, so the trick is just keeping everything in sync. You may have noticed in one part of the video I was alternating between using my phone and a switch to toggle the output, and I had to tap the phone twice because OpenHAB didn't know that the state of the Sonoff had been changed directly. The Sonoff would just need to report this local state change back to MQTT, so that other items (such as OpenHAB) are aware of it. That's already supported in the TASMOTA firmware, I just didn't configure OpenHAB to listen to it for the demo.
SuperHouseTV Thanks for the reply, much appreciated. 😎
SuperHouseTV can I use the sonoff basic to turn on DC motors using DC voltage?
You missed a small cheap trick that you can do to do very good strain relief. This is what my safety-crazy electrician uncle taught me. You make a loop in a cable and secure it with rubber tape so that ends go oposite ways. Then on the oposite side of the tape you can splice and do anything. If you try to pull it apart, you need to overcome force of that tape in a way that it's really strong. Try it yourself :)
Nice, very concise overview of everything Sonoff. Im definitely going to have a go at upgrading the memory chip. OTA updates would be much better than stripping the projects each time to update.
+SuperHouseTV Most awesome collection of tips. I normally have a short attention span on videos but was glued to the screen for the entire 40+ minutes and then jumped to the blog post for more. Thanks!
Thanks Brian! I want to make shorter videos, but somehow they just seem to keep getting longer.
@@SuperHouseTV Love the 'long' video. Your thorough approach saved me precious time.
I must say, One of the best delivered Presentations I have seen on You Tube so far, Many thanks.
he's got skills!
I love the soldering lessons added in!
Amazingly helpful and informative videos, thank you.
ABSOLUTELY WONDERFUL! This is exactly what I've been looking for. Thank you, thank you, thank you for this video. You now have a subscriber for life!
Thanks so much! Very informative, especially the waterproofing and connection to an external switch! I would love to see the setup you have at your shop if/when I visit Australia!!
Another fantastic super house episode. I really to enjoy your Sonoff episodes, they are a great affordable product. Cheers!
Reed business 😆
"I could spend an entire episode just going through TASMOTA and things that it can do" - Please do, that would be great!!
Really enjoyed this episode.
+1 for that! That was EXACTLY what I thought, a dedicated TASMOTA walkthrough would be awesome. BTW thumbsup for your channel, one of the most useful resource I stumbled upon in a very long time! keep up the great work!
Another +1. This is probably the most informative video I've ever seen about the sonoff devices. I would love an in depth video about TASMOTA.
Agreed Agreed Agreed
I too would love to sit for an hour listening to you go through the whole software package of Tasmota
Totally agree and how do you do OTA updates
I'm barely passed 7 minutes and I've already learned something brilliant!
Adding more solder to be able to heat all pins at once! So simple, yet I've been scavenging parts from old boards for years and never thought of it. Thank you!
(Can't wait to go try it... But I'll watch the rest of the video first.)
Just stumbled on Sonoff a few days ago and got it working once it arrived. I was looking for a review but boy did I discover so much more! Thanks for the video.
Very creative, extremely well presented - simply excellent! Keep up the great work. cheers
Another fantastic video. I've purchased a half dozen of the Sonoffs based on the previous video and have several running lights around the house. Now, with this video, I have lots more ideas for how I can use them.
Hope we'll see more videos soon from SuperHouse!!
Thanks Graham!
I like the way you break down the pin options and do the real time illustration, and the neat trick turning the on and off toggle into a three way switching circuit between the device, toggle, and phone.
Amazing value for me. My learning curve just went from looong to very short. Thanks a lot for your work. Much appreciated !
Thanks for a great Sonoff tutorial and as a bonus - teaching me how to remove board components!
Add my vote for your doing specific Tasmoto session too.
Indeed, SONOFF is making the hardware the most of us were developing for our home automation. I just got today my 5 S20 sonoff wall sockets. I was making them myself, but really for the prices they offer them it is not worth the time.
My next project somewhere this week is indeed trying to get the I2C bus running on a SONOFF to use a PCF8574Module so will get another 8 (or max 64) IO's. Keep up the good work. Really interesting.
i think it's in peter scargill's firmware already... tech.scargill.net
It's 2021 and this is still the most usefull video about the sonoffs I have seen. Thank you for sharing your knowledge!
Köszönöm! Danke schön! This is an excellent video! Congratulation from Hungary and Germany as well.
+SuperHouseTV Great episode! Thanks!
B
Me again, for years later, I'm living in a SuperHouse. Powered by sonoff (and philips hue, and smart blinds, robot vacuums, air purifiers, etc). Everything is smart. You sir inspired me! Big Thank you!
You deserve a medal man. Thank you very very much. Learned a lot from your video. 👍🏻
For wiring inline you don't actually need to cut the earth and rejoin if you strip the cable right. I passed the earth straight through my sonoff device. It's tight but you can pass it through.
Dan Herring Same. That's why I've been doing.
b b a i can n bB.
If you don't cut the ground then you will not be able to mount the Sonoff inside a box (unless you cut off the plug or don't have one to start with).
Are you saying you keep the earth line outside the box? Otherwise how do you get it through holes on both sides without cutting?
@@VARocketry its a bit late, but you can get small project boxes that are intended to go inline and split at the holes for the cable, some also have little saddle things for strain releif.
OOOh, I just found a new toy I'm gonna start playing with!
Absolutely amazing video! Thank you so much. This video is great because its all inclusive for setup from start to finish.
Wow, I've been looking at how I can keep my vintage light switches in use, thank you! I first came across this yesterday, 1st January, and already I have found a new guru for the year! I've subscribed!
Regarding safety - if it's worth noting to your audience that earth needs to be passed through on three wire connections, perhaps you should also suggest keeping Line and Neutral correctly passed through without being swapped (when using polarized cords). This might not be noticed when using, for example, two wire lamp cord (SPT-1 or SPT-2 in the US).
(Connecting the real Line (or Live) to L and Neutral to N, is also good practice, but perhaps less critical).
Good point. The early Sonoffs didn't have proper markings for Active / Neutral, but the current models have them labelled on both the inputs and the outputs.
Really nice work you've done so far. Only thing I have to complain about, in Germany we have to use wire end sleeves/ ferrules for multi-core wires, so shortcuts between a single lead of a wire is reduces. Especially when connected to a screw clamp, which pushes the single cores of a wire to the sides! But I do not know what the "law" says in the USA or other parts of the world.
That's a good method even when it's not legally required :-)
Is that seriously the actual law in Germany? Very interesting
Same in Switzerland, as far as I know.
No requirement for ferrules in the US. I don't think they are specifically forbidden, but they are not common.
I want to use ferrules on mine but don't know the first thing about them. I'm in the us and my house is wired up with 110v on a 20 amp fuse. Where can I find ferrules for a stranded core extension cord that will be able to withstand the current?
Really informative and one of your best tutorials IMO. Thanks very much for putting this together and sharing!
I just found your site. I enjoy working with these type projects. Your information make understanding how to use them is great. I will pass them on to my friends. Thank you mentioning the safety factors. I work at a museum which you information may be used on displays. Thanks again.
Want easy I2C? Use the RX and TX after you flashed it as SCL and SDA. You wont need them after flashing and you have already soldered a pin header for them. Super easy :-)
Nice tip, thanks!
The Arendst software is great... it is RELIABLE for the SONOFFS and handles ALEXA. Mine does as you've noted but it's not my major area as my software handles much more and is larger - hence needing the FLASH replacement. But for Sonoffs I use the Arendst software. Recommended.
Thanks Peter :-) And thanks for your excellent work documenting the Sonoff. Your blog is what sparked my interest in that particular device in the first place!
Excellent. No doubt more in the future as they release new devices!
Hey man, I would just like to say thanx for sharing all your knowledge from your own trials and errors to make everything simple and understandable for everyone else. It is thorough and super easy to follow and I really appreciate what you are doing and for putting me on track from the get go. Keep it up :-)
I love your work - it's inspiring me to expand on my Arduino experience with some new Sonoff devices currently heading my way.
Just a note for UK (probably most country's) the light switches will not replace a normal plate switch in 99% of cases as we have no neutral at the switch. Makes these a little redundant to be honest ? Great video and i am fitting these everywhere. Whats everyone doing with the naming of the dual relay model ? I called mine "the" then renamed the 2 relays "heating" and "gates" so Alexa gets "Alexa turn --the heating-- on"
Yes, that's often a problem in Australia as well. It's common to loop the active down to the wall switch and back up again, so there's only active in / active out at the switch. I hope to do an episode soon talking about some of these sorts of practical cabling problems.
Could you not potentially put these inside the ceiling rose and have live and switched live through the sonoff. So live on the input and switched live on the output and then just use your wall switch as a 3v switch like on the video? As you already have two wires going down to the light switch. You could even fit a momentary light switch, which are available in the UK for lights with a timer.
Most new build wiring in the UK now takes the neutral to the switch. All the houses built in the last 5 yraers I've worked on have had the neutrals at the switch and commened up in a connector block. Also in the kitchens there is a radial feed (20amp on 2.5mm or 32 on 4mm) to a grid switch located in one of the kitcen cupboards, with a fuse and a double pole switch feeding out to the various appliences (cooker hood, washing machine etc)
Install E77 module in sonoff and install in ceiling rose, connect light switch to E77 module. Works brilliantly for homes without common wire at switch.
You need a neutral line with the live ( Hot ) line for the smart switch to work
Not necessarily through the switch though. As long as your neutral return is to the main box then OK it will still work. I think sonoff instructions indicate both the methods. The UK standard is to wire both neutral and live through the switch and importantly with an Earth connection as well if both in and out wires have one. Earth is very important for safety especially if your main box has RCD protection as the power will trip long before a fuse will blow. The section he talks about earth/IP ratings and protective boxes is really good. I will often prototype a system with everything exposed and open to check it all works but before putting anything in service will sort the earth/casing/glands etc.. and check the earth as well.
Thanks for this awesome video. It's much appreciated especially the safety tips.
Well done mate, I have a so off in my home and the state change that you discuss help a lot , hope you do more of this
If your sonoff fails to connect to your router make sure the password is less than 20 characters in length and does not contain hypens.
Good tip!
It's more than password! I had a devil of a time with a Dlink router with an SSID that contained a hyphen. Finally stumbled upon the obscure warning that the Sonoff disregards router names that contain special characters. Dlink and perhaps others have default SSIDs that contain hyphens. It will really screw you up. It was pure luck that I figured it out.
this hyphen, thats the minus sign isn't it? ...
Another password pitfall to avoid occurs when you include an end of sentence delimiter (like . , ! ?) followed by additional characters in your password. Often your keyboard parser will insert a sneaky space character (0x20) after that delimiter. My Amazon tablet was doing just this, and I could never connect with the Sonoff device. No fault of Sonoff; it just seemed that way.
@@kwgm8578 The Tasmota firmware has no such problems. Hyphens and long passwords are accepted.
What changes are need for the switch to work on GPIO14 ?
So that the switch toggles the relay/light as shown in the video above ?
As far as I understand it it should be possible on the stock firmware
Yes, that's correct. The stock firmware uses the button to toggle the output (and also to put it into pairing mode) so you don't need to install any different firmware for that. It's also supported by TASMOTA.
OK, but which firmware has to be uploaded to use GPIO14 and GND trick with latch switch? Tried this today on my Sonoff with stock firmware and doesn't seem to be working. Connecting and disconnecting GPIO14 and GND doesn't change the device state
I received mine today and also does not work using GPIO14 and GND trick with stock firmware.
Unfortunately it won't work on stock firmware. You need to upload other firmware but then you can't control this device with Itead cloud via phone app :(
GREAT resource! Learned so much from this one video alone. Thanks!
Awesome 👍. I've loved the way you presented the proper way to do the casing for it. Subscribed!
Do these have any Australian safety certification ? no electrician will install it without one and it's illegal to do it yourself as I understand it and more importantly your house insurance could be voided if you did it yourself. (This assumes installing it in the wall)
You can use slamphers with plug-to-socket converters w/o hard-wiring.
Ask Sonoff.... I'll bet my left & right nut every house in Australia has dozens of of items that doesn't satisfy the NCC or Australian standards
www.itead.cc/wiki/images/f/f7/CE_Certificate_for_Sonoff_Series.pdf
RavenPrecept it sure is the SAFEST place on Earth
who cares about australians :D
can't believe the whinging about having 'only' 1MB of storage. We used to write entire applications for the BBC Micro in 8K eproms. I can't think of anything you would want to run in a light switch that needs more than that... :-)
Yeah, but you didn't have a full tcp/ip stack and wifi interface on a bbc micro. That's where most of the space goes to.
Thx for all those informations and also your work! Really usefull. Keep it up
Hi Jonathan,
Your demo's are really, really instructive. Not only from a features point of view (what the device, in this case Sonoff, is capable of), but you're also spending the necessary time to make people aware of the dangers of such projects. You tell the audience about the bad and good way of doing things in a very instructive way. And I couldn't agree more with this approach. Next to this, you're also spending time in explaining the regulations (IPxx stuff and so on) which many people might not know the background of it.
And of course, the core of your presentations: how to apply stuff in a helpful way. You're doing it with a lot of good eplanation, both speaking as well as showing.
I'm always looking forward to see a next video of yours. Keep up the (very) good work!!!
Wow, thanks Geert! I really appreciate that feedback.
"I would have this on the cable first". Who has not had to say that!
🖤|^
😹😹😹💖🍻?
😹😹😹💖🍻?
😹😹😹💖🍻?
Very important! There is always everywhere a chance of MAINS power on all the parts when it's connected. So please isolate everything and yourselves!!! these sonoffs are powered by rectifying mains, very dangerous.
Excellent video as always, thanks Jonathan
Thanks, I'm an old-school techie who worked in PC board component replacement for years and long before components became so tiny I can't even seem them any more. Otherwise and in general I am someone who is damn critical of what I see online with all the idiots these days collecting views it has to make one a little disgusted, so this may very well be my first complement I've presented to a youtuber in 20 years but I have to say thanks for documenting this chip removal process. I've seen many people present it from an array of more complicated and costly methods, using heat guns that work like an avalanche to send every component toppling off the board but your technique is the best yet. Thanks!
The biggest problem with using these as a drop-in replacement for a light switch, is that many if not most light switches don't have both an active and neutral wire available.
FlyJemson yeah in my country this is the case too, only have a live wire...
I've seen this many times, too. I gave a detailed solution in my reply to Alru Waldeck's comment, but perhaps I should do a video or blog post about it. The problem is common enough that it catches many people out.
This comment is incorrect. Disregard. He's seeing two wires connected to the switch and not realizing that they are power in and power to the load.
No you don't. You have the live wire to and from the switch, BUT the neutral goes to the light fitting. This device does not connect "at the switch", it is connected elsewhere in the light circuit so that BOTH live and neutral pass thought the Sonoff device.
great video as always! so informative and we appreciate you sharing your work with us!
Excellent!! Thanks for taking the time and making this very informative video!
You gave me so much to think about, thank you very much, especially about the earth and the light switch toggle, will have to do lots of research now :)
Wow. So much to learn. Many thanks, I am a simple user but keen to learn and do more for now just using a plug to control my aquarium light on a schedule ! Your videos inspire me to learn more.
Great video and EXCELLENT points regarding safety! I watched one of the other videos where the guy was attaching the cut extension cord to each end... First thought that came to mind was the power end of the cord getting pulled out accidently was leaving a live wire exposed.
Kiwi ingenuity :). Thanks for the great tutorial man!
Excellent video. Good work mate. I've learned a lot. Keep doing this kind of videos I'm a fan now from first video I see :)
391 people create sonoff content with free floating grounds. Excellent work Jon! Very good explanations. Thank you very much.
Great video, I have said most of it before, but here goes again. The way you explain your choices and how thorough you are is so great. Well thought out enjoyable content! I enabled notifications for your channel, so I hope that helps a bit. Great references and acknowledgments as always.
Thanks for the kind words!
very, very good video, good explanation and useful stuff. I just bought 3 sonoff from China but I didn't imagine that you can do so much with it, especially I was looking for info how to connect that light switch.
Big thank you from England.
Although I am an engineer myself, I learned a lot of things. Hats of for the clear explanations. Subbed the channel :-)
Perfect video to see what you can actually do with one of these. Thanks a lot.
I'm watching this in 2020. Thank you so much for the informative and concise tutorial!
what an excellent approach. thank you for your commitment to your passion.
Wow. What an amazing and thorough video Thanks so much!
The safety part is absolutely awesome. Like the rest of the video btw. THANKS
An amazing amount of time and effort you put into this, you must be married to an angel:) Thank you!
Hi,
Used X10 years ago, it worked.
Your great videos with the new technology have rekindled my interest .
Regards
Peter
Excellent and comprehensive information - very well done explanation - thanks for sharing !
LOL, "Dodgy half assed way'. I don't know why that was so funny to me, but I was rolling. Thanks for the video. I enjoy watching.
Awesome!! Im not using sonoffs but a couple of ESP with i/o extender for switching the relays in my house and also to read the switches states. I was wasting to much time with trying to find some suitable momentary switches for the house :D
Thanks so much! I just came across the Sonoff today and all I could think watching other people's videos was: "Where's the strain relief?" or "This guy is going to electrocute somebody." It seems like once it becomes associated with their smartphone people forget that these things are carrying AC power.
I'm looking forward to adding these into my system, even with proper cables and enclosures they'll come in under a third of the price of the TP Link switches I'm using now.
Thank you so much for such easy to digest informative information .
Wonderful video. Thank you very much for putting it all together.
26:50 this is what concerned me the most ?!!! great video ! Subscribed !
I have no clue as to how I got here but was completely fascinated.....well done
Really informative, thank you!
Excellent video Jonathan with great ideas and safety info. Thought watching your videos might be a good way to sleep but unfortunately this had the opposite effect!
Belated thanks as I've just discovered your channel recently.
One of the good episodes in SuperHouseTV. Kudos!
I learned many things from your video, very informative...
What a great video. I'm just starting Domotica (for my future new house) with WeMos-ses, DHT& LDR-sensors, RPI3 with OpenHAB. Now i'm sure to buy some sonoff's to make is very smart sensors and controls. Thanks for all the tips.
I agree totally with the earth cable on the Sonoff WiFi switches. There is enough room to run the earth under the original cover soldering the two earths together and protecting with heat shrink. The wires are held nicely in place to securely with the case and cable clamp onto each original cable outer sheath. Nice neat connection in original case. We've replaced manually lamp switches with these for timed operation and for security out of hours too.
Very detailed, very nice info and not only info also practical. Thumbs up!
Great explanations thanks will have to watch again to the end .. subscribed after watching a few min look forward to looking true your content thanks..greetings from the Netherlands
Very useful and informative... top work mate :)
High quality info thanks!
Current Sonoff firmware (as of Dec 2019) allows the "program mode" button to toggle the device on and off. It will also allow the switch to work in LAN only mode if there is no internet connection. So far the mods on SuperHouse TV are not needed.... but I'm still watching these great videos!
Just getting into home automation this is fascinating stuff!
Good video. Glad to see a safety minded video for DIY home automation. Well done.
An outstandingly informative video. Thanks for sharing all the info
Thank you so much for this. Love your attention to detail!!
Very good, informative presentation.Thanks for sharing it.
Just found this video. Didn't know a device like that existed that was open source. Now my curiosity is up I've got to buy some play with them. Thanks for sharing that wonderful information.
Very informative and a great combination of information! Subscribed!
Newbie just looking to learn and turn a few things in the apartment "smart", great video and plenty advice
Good stuff. Im just getting into home automation and its good to find another aussie with a sharp brain :D
Ok, you bought me with the tip #2 safety. Subscribed.
Thanks Adrian :-) It's an important point that too many people ignore.
Thanks for another excellent video. I am considering using the sonoff to control an outdoor water fountain pump. Although the switch will be in a dry location, I plan on putting it in a small IP rated box as you showed in your video. I am however going to remove the sonoff from the original case so that I can use a smaller box as the location is constrained by size.