Sonoff Dual R3 in wall Smart Switch | ESP32 Power Monitoring & BLE | How to Setup Tasmota

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Nice to see the esp32 creeping into consumer devices

👍︎︎ 1 👤︎︎ u/poldim 📅︎︎ Mar 22 2021 🗫︎ replies
Captions
[Music] so we're checking out the sonoff dual r3 and yeah i know they probably want you to say s on off but that's just cumbersome to say and i always butcher names anyway so we'll just stick with sewn off like everybody else does in a previous video we did do a little build of a crazy thing monstrosity that hydra deal with the dual r2 and just don't paint in mind the wires because at that time that's we had to build our own thing if we wanted this many buttons and status lights and motion sensors in the wall but you can see the size difference is much different and there's a few different things with the r3 on the way it hooks up to switches and we're going to cover all that and a special little surprise is really going to change things in this model as well so let's check it out and in full disclosure stoned off did send this for review but as always you know that's not going to impact the review no we're not going to need one of these to it'll be all right so in the box you're going to of course get the switch and they do give you a little bracket that you i guess attached to the wall and then it could snap in here some way and well but we're not going to use that definitely would probably put that in a box but maybe that's designed to go like in a breaker box or something like that the they do have the instructions and do pay attention to the wiring diagram because that's one of the differences is it's much like the shelley one and some of the other shelley devices where it uses mains power off of the switch inputs so there is switch 1 and switch 2 up here and so the design of it you do not want to use one of these little buttons don't be stupid don't be dumb don't use one of these i'ma say it again do not do this this button is designed for low voltage it does not have the isolation that is required for mains voltage so definitely don't endanger yourself or someone else with the low voltage button or switch or whatever you're going to want to use a full mains power design switch and definitely use one for your country as well this is a north america's decor style switch you can use another type of model that has multiple switches such as this one they do have models that have two switches in it because you know this has the two switch inputs and it's same deal it's designed for a one gang decora and it would handle your two switch inputs and it is designed for mains voltage now for the sonoff dual r3 if you want to go the cloud do the ewelink app you really want to see how that's done i guarantee you there's probably some other boring youtube channels that will show you how to put your stuff in the cloud but that's not what we do here right so let's pop this guy open and get a close look at the inside of this switch now to open it up it was pretty simple there was no screws and you just had to take a little spudger and i did on the side here and you can see it just work yourself around and you can pop it right open just take your time you don't want to break anything and pops right open and then this pops right out so we'll put those to the side and this is the switch itself so there are two relays on it and this is what we want to look at even closer and that's the little surprise there the esp32 do wd and this is the power monitoring chip that is somewhat based like the one you've seen in the dual r2 and also the s31 it is a serial based power monitoring that attaches to the esp chip now this one is dual channel so yes you will get two different power consumptions for relay one and relay two and as a recording of this video tasmota does support this power monitoring chip in the development branch and it does work you'll see that shortly now this is the esp little module here and i want to take a closer look at the pads here now you'll notice right off the bat there's 3.3 volts that's definitely what we need to flash this guy i did try the diy mode and it doesn't seem to be supported this time so you will need to serial flash this there's the tx 0 and rx0 you won't want to concern yourself with the tx2 and rx2 this is going to be your typical tx and rx lines that you're used to for flashing they also have the ground here if you really want to get crazy you probably could put some clips on this little header here but i would find it difficult to also push the button on the other side which is gpio0 so just break down and solder these aren't too bad to do but do keep in mind that these are just pads these are not through holes so you do not want to rip those pads off it wouldn't be the end of the world because then you still could find the pads in there but you definitely wouldn't want to rip those off so we'll solder one of these up for you and i'll show you a real quick tip on how to do that now what i'm using here on the table you can use like some helping hands or just use some blue tack links down below definitely helps you and just sticks it right to the table see we'll put it right there in the frame and make it stick and call it a day so these are just some little dupont jumper wires and basically what i do is just go ahead and cut off the ends and dispose of those and we're only going to need four wires here this is going to be the 3.3 volts they'll use the ground then the rx and tx and typically you do need a fifth for gpio zero but the button on the actual switch itself the one that pushes this right here that one's actually gpio zero so thanks sewn off for doing that so what you want to do is just take these and strip them back you can use whatever some little scissors even sometimes your little fingernails if you have nails and get back enough you don't need a whole lot you can always cut that back once you do pretend the wires is just go ahead and twist them that way you don't have any hairs hanging out unlike me doesn't have any hair on his head would be jealous of the wires but and then simply give him a bath i give him a bath in flux flux is your friend in soldering i can guarantee you that you could be a very sucky solderer but if you use flux you'll definitely make a difference if you want to do this and you don't know what to get you know we'll always leave the links down in the description below basically all i'm going to do is just put some solder on the end here i do have this at 750 fahrenheit basically when i heat up the wire and then allow the wire to get and suck up the solder don't need a whole lot on these do each one and do go all the way up to the jacket because if you do trim them then you're not going to have to re-solder them if you have some wire that's been pre-done definitely always re-solder it and add more to it because you don't know when it was done and it's oxidized and whatever else it's just gonna be a pain okay so on the sewn off itself definitely want to apply a little flux to it if you want to use a flux pen go ahead i'm just using a q-tip with some flux on it and apply flux to the pad you'll be soldering too because you need to pretend those so remember we are trying to do the 3.3 volt pad and basically you want to use and heat the pad up get a little ball of solder on there be careful on the pads here i'm gonna change angles here you do want to make sure you don't bridge the tx0 and rx0 with the actual pads near them and we probably had too much caffeine today and we are shaking a little bit but we'll see if we can get it done probably looks worse than it is because i'm zoomed way in and pull together and boom there we go got the ground hooked up make sure it's not land on those capacitors there and then i'll work around we'll do the 3.3 volt i give it a little tug not a lot just give it a little tug that way you know it's not going to pull off you messing with it when you're flashing of course this one we're not going to be doing any gpio 0 because that's the button on the other side we'll definitely take a look at our wires we're good to go and if you really worried about them pulling off it's not a bad idea take some painters tape or this i wouldn't use electrical tape that's just too sticky the painters tape will pull right off put that on there boom if you look down in here there's a button right here this is the button that is the little pin that pushes off the case there's a little pin that pushes down in the case and that what pushes in there and you can use to reset things or whatever doing the cloud thing well that's on gpio0 so all we need to do is and i like to take something non-conductive typically i have like q-tips around from doing things with flux and so whatever you want like a wooden stick is don't use something metal you might end up sliding off and i'll push that down that way you're not touching your finger on the esp and shorten things out so use something non-conductive and we'll hook all these wires up to the ttl so basically on your little usb ttl we are going to make sure you're using the 3v3 pin not the 5 volt there's many different models of these and we've showed them in various other videos make sure yours is set on 3.3 volts do not use 5 volts some of them are by the pin some of them are by jumpers and we're just going to hook up the 3v3 and ground and do remember the rx goes to tx and tx goes to rx and you may be wondering why do we put things backwards well this one is sending on tx so this one needs to receive that on the rx pin then this tx needs to receive it on the receive pin so that's why you flip things around now i don't remember which one was which you probably roll back the video and see if i was wrong and if i didn't get it right just simply flip it around you're not gonna hurt anything you just won't flash it we're gonna try out our little usb cable here this one does support data and you can turn it on and off really cool because then you can hold gpio zero without trying to need three hands and no that's not me from cleaning my ears that's that yellow flux definitely don't try to use ear wax for flux i don't know i never tried it if you want to try it hey let us know in the comments below right so push the gpio 0 button and we'll give it a flick of the switch all right i heard the tone on the computer and we'll jump in and do the flashing of tasmoto32 with bluetooth so on the tasmota docs if you take a look at the esp32 section you do need to download a couple of little things and there's various ways to do this if you do want to use esp tool do follow the instructions on this document here and of course things may change so we'll leave the link down below for the documentation because things evolve and get easier all the time so definitely reference that to make sure things haven't changed but if you want something a little easier you can try the esp flasher no at this time is not going to work either now as of the recording of this video only the development branch has support for the power monitoring chip in the sonoff dual r3 so we will need to download the bin file that we're going to use if you look here you can find the pre-compiled development binaries from now you'll notice the only difference in the actual link if it says release that's going to be the standard release we need the development binary that doesn't have release in the url so we'll click on that one now if you don't want the bluetooth part you can just flash the regular taz moto 32 bin and if you do change your mind you can flash using ota so no big deal you can change the bin file using the firmware gui upgrade right on taz moto itself just like you do with the esp8266 so i want the bluetooth stuff gonna have fun to play around so we'll download the bluetooth bin and we'll go ahead and snag the esp flasher and we'll grab the one for windows x64 if you're using whatever else you can use esp tool using those instructions there we don't have our device turned on right now if you hit the little refresh button and i don't show any com ports and i'll go ahead and we'll turn that device on again so go ahead and hit the refresh and we should see our com port in the firmware that's going to be that bluetooth bin file we downloaded and pretty much it go ahead and hit flash esp sure enough there's our chip and we're off to the races erasing the flash now once it flashes i did find there's simply just not enough power for the device to get on the wi-fi and it continually wants to crash all the time i've actually watched it in the serial log so what you want to do here at this point once you have a successful flash you can go ahead and if you don't want to unsolder it just be careful that do not touch those wires while you have it connected to mains go ahead and connect it to mains because we need to get full power to the esp32 to get on the wi-fi bring up wi-fi which is probably too much power draw for most usb flashers so for the quick little wiring here if you haven't seen this is the little cliff quick test that basically when you close the door it energizes these wires it does have a fuse it keeps your fingers out of things and stops you from making little suicide cords it's not hot right now of course we have the sonoff dual r3 the hot line comes over here it feeds ln and then remember these two are connected together continuity so we have to feed mains power to the actual little switch this is just a single pole switch rocker back and forth decora and then the mains powers on the red whenever this switch is toggled it will feed mains to s one so if you do do s two of course you'd have another switch there which you would need another mains power but you could use like a wagos or something like that so then we have the neutral here so that comes off of here and then we gotta feed neutral over to the power plug and then off of here we have a standard old school incandescent 60 watt bulb that i use for power monitoring calibrations that's a constant power load so then we have the l out one which is relay one ties to the plug boom we'll push the button and then you'll get power over there and we'll see the power monitoring so once you get into tasmota itself now we did flash the bluetooth version so you will see this up here showing that we have zero sensors and we do have a couple bluetooth sensors that we did in a previous live stream those atc xiaomi flashed and no there's no soldering if you want to check that live stream out you can look in the video description as well as you'll find those little thermometers they're pretty cool bluetooth thermometers and you just connect them bluetooth and you just connect to the web on it and flash them no soldering pretty cool now first we need to grab the template for this and i'll leave the template down in the video description as well as the blog post for this video and what you'll do is go to configuration and configure other i like to go ahead and delete the entire field and then i'll paste in my template and then make sure you do check the activate box so once you put your template in make sure the check box is activated hit save so once it's rebooted you should see the two relays and you'll notice you get two channels of power monitoring pretty cool stuff we'll go ahead and we'll definitely try the gui remember we do have our 60 watt light bulb and there's the gui updated showing 62 watts pretty close if you do want to tweak that of course you can do the power monitoring calibrations now we'll go ahead and try the actual switch and do be careful if you have a little test setup like this because you know there is mains power so we'll push the switch and it turned off the light and you can see right there on the gui it is off now the gui does go a little slower on the updates so let's go ahead and jump into the console and you can see it's pretty quick turned it off and there is on and there's off now let's do the bluetooth test real quick now in the documentation for the actual bluetooth there is a set option 115. if you do space 1 that will turn on ble you should see it saying like starting nimble or whatever it might be now you can automatically see it's picked up one of my sensors let's go ahead and take a jump into the main menu and actually it's picked up both sensors and showing the rssi temperature humidity dew point the battery the whole nine yards right there from those little sensors and you can see we can still use the sonoff r3 as our switch everything still works the same turn off with the switch turns off it updates and if you do want to look at the console you can see these sensors as well in the actual telemetry sensor mqtt topic you can see the actual sensor name the mac id temperature humidity it's all in json so if you want to pull that out it's pretty cool that you have all your power monitoring you can do all your sensors etc and of course i'm sure there's going to be much more development on the bluetooth stuff in the esp32 it's a pretty cool little switch especially throwing tasmoto on it you can get that bluetooth scanning do whatever little sensors or ibeacons you want to pick up doing different automations pretty cool plus you get that power consumption and the switch inputs all straight meant to be in the wall unlike the other one and if you want to purchase one for yourself or you just want to use the affiliate links down below for whatever type of purchases yep they're down below and i do appreciate it i do appreciate all the patreon subscribers it definitely helps things and new equipment whatever it may be thank you and before you jet give us a like dislike or a comment or whatever it may be or all the above it definitely helps things out and yeah you probably are a subscriber right but if you're not smash that button and y'all take care [Music] you
Info
Channel: digiblurDIY
Views: 18,635
Rating: 4.9390864 out of 5
Keywords: digiblur, digiblurDIY, dual power monitoring, dualr3, tasmota esp32, sonoff basic, sonoff r3, power monitoring, tasmota, esp32, sonoff pow r2, home automation, home assistant, sonoff pow, flash tasmota, sonoff tasmota, smart home tech, sonoff power consumption, sonoff dual, smart switch, smart home 2021, wifi switch module, diy electronics gadgets, digiblur tasmota, dualr3 sonoff, dualr3 tasmota, sonoff dual r3 tasmota, dual r3 sonoff, sonoff dual esphome, CSE7761
Id: VT6bY-iSveI
Channel Id: undefined
Length: 23min 19sec (1399 seconds)
Published: Thu Mar 18 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.