Tasmota on Sonoff. Flash the S31 plug with Tasmota firmware for local control.

  Рет қаралды 22,753

mostlychris

mostlychris

Күн бұрын

I am going to flash TASMOTA on a Sonoff S31 wall plug in this first of a two part series. Follow along with a step-by-step tutorial on how to wire up the plug so it can be attached to a USB-to-serial programming device and then flashed with the Tasmota firmware using Tasmotizer. Part 2 of this series will involve including this in Home Assistant so that it can be used in automations and other home automation things.
Of course, this is not new stuff and there are other videos out there. However, I have not played with Tasmota before and that makes it new to me. Hopefully there is at least one little tidbit of info that you haven't seen before. It's still fun to play with and why not make a video while I play. #tasmota #localcontrol #smartplug
Links:
Tasmotizer: github.com/tasmota/tasmotizer...
Tasmota Firmware: ota.tasmota.com/tasmota/release/
Tasmota Docs: tasmota.github.io/docs/
Discord: / discord
If you would like to support me:
Buy me a beverage: ko-fi.com/mostlychris
Become a patron: / mostlychris
Products I reference in my videos (Contains affiliate links)
www.mostlychris.com/my-smart-...
www.xsplit.com?ref=chriswest&discount=mostlychri&pp=stripe_affiliate
DISCLAIMER: Some of the links above take you to affiliate sites that may or may not pay a small commission to me. It doesn't increase the cost to you, but it does help support me in making these videos.
00:00 Intro
00:40 Taking it apart
01:45 Wiring it up
04:33 USB serial connections
06:27 Back up the original firmware
10:24 Flash Tasmota firmware
11:41 Set up wifi connection
12:52 Set module type
13:38 Final thoughts and wrap
Want to send me something? Send it here!
Mostlychris
24165 IH-10 West
STE 217 #164
San Antonio, TX 78257

Пікірлер: 96
@AccidentalMisfire09
@AccidentalMisfire09 2 жыл бұрын
I've been pulling what's left of my hair out trying to find a "self-hosted" power consumption analyzer and found both the Emporia Smart Plugs, as well as the Sonoff Smart Outlet. I didn't see a single comment that didn't have something to the tune of "I can't comment on the manufacturer's app, but Tasmota works great." Did a quick Google search, and your tutorial was the first one. Thank you so much for creating this video. It's nice to see a small community behind little projects like this, and especially to someone willing to lead those who want to learn to the light.
@mostlychris
@mostlychris 2 жыл бұрын
Awesome! Thanks for watching and I'm glad the video was helpful. Tasmota is an excellent way to keep your stuff local and not have to rely on cloud connections to get data.
@makeitworktech
@makeitworktech 2 жыл бұрын
Chris, great video! Will be referencing this one in my next one! The first time flashing for me was easy with this guide!
@mostlychris
@mostlychris 2 жыл бұрын
Excellent! Thanks for watching and referencing! I didn't see this comment until after our Twitter convo.
@brenthendricks
@brenthendricks 2 жыл бұрын
Thanks for the great tutorial. Other than soldering the wires on, this was a total piece of cake thanks to you.
@mostlychris
@mostlychris 2 жыл бұрын
Thanks for watching! You can avoid soldering with these: amzn.to/2Zk3mXl
@brenthendricks
@brenthendricks 2 жыл бұрын
@@mostlychris yessssss this made it 100% easier!
@mostlychris
@mostlychris 2 жыл бұрын
@@brenthendricks I just added a couple more plugs to my arsenal and from start to finish I was up and running in about 5 min with the clips vs solder.
@rmschaller
@rmschaller Жыл бұрын
Excellent video and achieved the end result of successfully flashing the Sonoff s31 with Tasmota. A couple of comments. Regarding the soldering operation, I was able to bypass any required soldered by using test clips on the four pads. The length of the conductive fingers on the test clips and the proximity of the pads relative to the edge of the PCB made this possible. The link to the firmware binaries was handy but spent some time searching around for what binary to use, the link had a number of binaries listed and was somewhat confusing to the newbie.
@mostlychris
@mostlychris Жыл бұрын
Thanks for the feedback. I also discovered the test clips based on another comment in here. I've been using those ever since.
@MarionMakarewicz
@MarionMakarewicz 3 жыл бұрын
Thanks for this video. I was looking for a how to and so many have bad sound and the videos aren't close enough to see what is going on. Plus a lot of chatter. This details is helpful! This will be my maiden voyage for flashing the IOT devices. I have flashed my 3D printer firmware and understand the basics of using ESP32s, ESP8266s and arduini but using the ftdi flasher will be a new experience!
@mostlychris
@mostlychris 3 жыл бұрын
Glad it was helpful! I try my best to be as detailed without too much "fluff". It's a delicate balance.
@duckyducky2497
@duckyducky2497 3 жыл бұрын
Thank you for your nice video. The Tasmotizer software page has the "Send config" button. You can click on it after you flashed your firmware. By then you can set your router SSID/PW to config the S31. After that, if you further click the "Get IP", the S31 IP address will be display.
@mostlychris
@mostlychris 3 жыл бұрын
Thanks and thanks for the tips! Nice name btw.
@duckyducky2497
@duckyducky2497 3 жыл бұрын
@@mostlychris Welcome as I just share what I have learned from SuperHouseTV and others. Can't get any credit. End of the day, I enjoyed your video and knowledge. Nice day.
@waynenocton
@waynenocton 4 ай бұрын
The send config section in tasmotizer is very handy day as well, can send the wifi, the template, and even the mqtt info on the second boot, that way you can skip the entire caprice portal part
@AndyTanguay
@AndyTanguay 2 жыл бұрын
Thanks, this worked like a champ.
@mostlychris
@mostlychris 2 жыл бұрын
Great to hear! You're welcome!
@JasonMitchellofcompsci
@JasonMitchellofcompsci Жыл бұрын
I was looking at this because a StackOverflow mentioned flashing a Sunoff as a good way to get a smart plug that could be operated with open protocols.... But, plugs exist that already support Tasmota with their original firmware for pretty much an identical price (actually cheaper). I suppose we live in a world where doing things for the sake of having the experience doing it is worthwhile, but if you just need an open protocol capable plug you can buy them as is.
@mostlychris
@mostlychris Жыл бұрын
Yes. Now you can. At first, no, but then someone commercialized it. Tech is constantly changing.
@gmaclean1
@gmaclean1 3 жыл бұрын
Digiblur and some others can 3D print a jig that will mount directly on the ESP8266 chip. I paid around $10 I think. Solder free and makes the process MUCH easier. Also, will allow you to get around your broken solder pad :)
@mostlychris
@mostlychris 3 жыл бұрын
Ooohh. That would work! Lemme find that jig.
@dudenell
@dudenell 2 жыл бұрын
do you have a link?
@EsotericArctos
@EsotericArctos 2 жыл бұрын
If you haven't found the trace yet, you can go right back to the ESP chip and connect to the Rx on the chip. The pads ,just connect to a trace that goes back to the Rx and Tx on the ESP chip.
@mostlychris
@mostlychris 2 жыл бұрын
I was never able to find that on the chip. To be fair, I didn't look at the chip specs. However, I was able to scrape my way through on the board and make contact with the trace connection point. That plug has been in service for Christmas tree lights since I got it fixed a couple of months ago.
@Supercazzola
@Supercazzola 2 жыл бұрын
great video. Is this only for the S31 or does it work with S31 lite also ?
@mostlychris
@mostlychris 2 жыл бұрын
Looks like it does. templates.blakadder.com/sonoff_S31-lite.html
@JimfromIndy
@JimfromIndy 3 жыл бұрын
Is hanged the exact same solder pad on my first try. Have not been able to recover it. Still working as a Sonoff device. On my second try, I used the spring loaded J hooks. Still a pain, but I got it working.
@mostlychris
@mostlychris 3 жыл бұрын
I can see the microscopic point in which that pad was connected to the trace. Super delicate. I wonder if I can get one of those j hooks to sit on that little spot just to the outside of the original pad location. Might be worth a try.
@JimfromIndy
@JimfromIndy 3 жыл бұрын
@@mostlychris Believe me, I tried. Failed.
@mostlychris
@mostlychris 3 жыл бұрын
@@JimfromIndy I was told DigiBlur has a 3d printed jig that sits on the chip. I'm trying to find that and maybe I can use it. Otherwise, Sonoff it is. A schematic of that board would help too. I could find out what point that pad attaches.
@madelinethomas241
@madelinethomas241 3 жыл бұрын
I also broke the solder pad when i was flashing the sonoff... i just scratched off a bit of the pcb to expose the wire.. then i soldered a pin to that. it's a little janky but it works lol
@mostlychris
@mostlychris 3 жыл бұрын
Good tip. I bought some clips to prevent having to solder those and it didn't work to get signal to the pad. I'll try your method and see what happens. Here are the clips: amzn.to/2W8An70
@alexruffell
@alexruffell 2 жыл бұрын
@@mostlychris I would not use a pin header as removing something with multiple pins is harder than single pins (meaning higher risk of overheating pads). I used dupont wires with pins on one end to solder to the S31, and female on the other to plug into my FTDI adapter. I also replaced the plastic part (shroud) of the connector with a six position one so it is easy to plug/unplug on FTDI adapter without making connection errors. However, the best thing you can do to avoid damaging pads is using a temperature controlled soldering iron (weller we1010na is relatively cheap and is great for this; use small tip) so you do not overheat the pad. Howdy from Austin, TX!
@teddyruxpin3811
@teddyruxpin3811 Жыл бұрын
which tasmota firmware are you supposed to use? that link that provided in the description lists about 20 different firmware options. i don't know which one to choose.
@ngreed
@ngreed 3 жыл бұрын
Nice video. There is also a 3d printed jig you can use to hold the wires on the pad's but the leads @wstrater recommended looks like a better option. I have several S31's one thing I can recommend for soldering, don't be afraid to use flux on the pads it helps a lot.
@mostlychris
@mostlychris 3 жыл бұрын
Thanks! So many options. I need to make a video about soldering those pads 😁
@Musicman-50
@Musicman-50 2 жыл бұрын
This is a Most Excellent Tutorial.. Easy to follow.. And I've successfully Flashed my Sonoff S31. Now my problem is getting it to work in Home Assistant. I tried the MQTT thing and No Go, and Tasmota just doesn't interface without that part. So hoping you have something for an Entry user to follow or a link to another Tutorial. Thanks in Advance Anyone's for help.
@mostlychris
@mostlychris 2 жыл бұрын
Does it show in your local network? I've also flashed these with Tasmota. Is your HA running ESPHome on the same network as your plug?
@mostlychris
@mostlychris 2 жыл бұрын
Looks like YT deleted your reply but I see it in email. Jump on Discord for more discussion so the comments don't get lost.
@Musicman-50
@Musicman-50 2 жыл бұрын
@@mostlychris Hey thanks so much. I did get home assistant to finally recognize the Tasmota interface. It's actually pretty automatic with the newest version. I was puzzled for days however why it's didn't work. Then I recalled the old logic I used during my IT days. I restarted my Raspberry Pi that HA runs on and bingo it now works. 😊
@mostlychris
@mostlychris 2 жыл бұрын
CTRL-ALT-DEL FTW
@Musicman-50
@Musicman-50 2 жыл бұрын
@@mostlychris Indeed a very high tech approach. LoL 🥴
@KJThaDonPSN
@KJThaDonPSN 3 жыл бұрын
Awesome vid, thanks! Just curious what router/interface is that?
@mostlychris
@mostlychris 3 жыл бұрын
If you are talking about the list of clients I show, I'm getting that from the Unifi USG.
@b16crxt
@b16crxt 2 жыл бұрын
I just pulled off a pad on mine too. How do you flash it now? I ordered some of those J clamps for the rest of my plug project.
@mostlychris
@mostlychris 2 жыл бұрын
I was able to scrape off the board and get to the pad at the "via". Just be careful and scrape-test-scrape until you get a good connection. I have a community post with a picture of the board with the scrape. I mention it in my live stream as well.
@b16crxt
@b16crxt 2 жыл бұрын
@@mostlychris thanks I’ll try that
@b16crxt
@b16crxt 2 жыл бұрын
@@mostlychris I appreciate that. For some reason, I can't get Tosmotizer to to connect to the S31 using the same Moyina Serial converter that you're using. It tells me invalid head of packet every time. Edit: I think I figured it out. I feel so dumb now. Another video mentioned connecting the RX on the converter to the TX on the s31 and TX on the converter to RX on the S31. I’ll give it a test later, but that makes complete sense. ....Yep, that was my problem. Thanks Chris!
@mostlychris
@mostlychris 2 жыл бұрын
Glad you were able to get it going! Using those clips will prevent future soldering mishaps.
@randyvanfossan1975
@randyvanfossan1975 3 жыл бұрын
I flashed 2 Sonoff S31's today and low and behold they both have the same MAC address. I bought them as a 2 pack from Amazon. Wierd. I have looked all over for how to override the MAC on the 8266 and haven't really found a good solution. Any ideas?
@mostlychris
@mostlychris 2 жыл бұрын
Someone messed up! Maybe Sonoff will send you another to replace the cloned one. Sounds like these might even be forgeries.
@josefreitas3311
@josefreitas3311 2 жыл бұрын
@mostlychris I flash my S31 and add it to smartthings, but the device is still running on cloud, could you help to know if is there a way to run it locally ?
@mostlychris
@mostlychris 2 жыл бұрын
If you flashed it with Tasmota, it shouldn't be on the cloud anymore. Can you verify that it actually got flashed?
@johnhammonds3952
@johnhammonds3952 Жыл бұрын
Looks like adafruit pogo plug device could clamp on the pins for flashing
@johnhammonds3952
@johnhammonds3952 Жыл бұрын
I got one of these pogo plugs & was able to clamp it on the pads witout soldering & move to the next one
@oakfig
@oakfig 2 жыл бұрын
What is the advantage of using this over the sonoff s31 lite? The ZigBee model.
@mostlychris
@mostlychris 2 жыл бұрын
Not sure there is any advantage. It's WiFi based. Since I haven't used the S31 lite, I can't answer authoritatively.
@JohnVanderbeck
@JohnVanderbeck 2 жыл бұрын
Pretty sure the s31 lite zigbee model does NOT do power monitoring. I was looking at it last night and that was the impression I got. Would certainly be a lot easier to use a Zigbee version but alas at least for myself I need the power monitoring. It is the primary use of the device for me.
@user-cw2py6wh8l
@user-cw2py6wh8l 2 жыл бұрын
can you get wattage with Tasmota?
@mostlychris
@mostlychris 2 жыл бұрын
Depends on the device. The S31 plug I flashed with Tasmota has voltage, current, apparent power, reactive power, power factor, and kWh.
@mgglight
@mgglight 2 жыл бұрын
why are there so many kwh in "energy today" ,14:22?
@mostlychris
@mostlychris 2 жыл бұрын
Needs an initial reset after flashing. That value isn't correct. I'd have to be running my own power station for that, lol.l
@DominusEstOK
@DominusEstOK 3 жыл бұрын
With Home Assistant you don't need to flash Tasmota anymore for local control of Sonoff devices.
@mostlychris
@mostlychris 3 жыл бұрын
True. But since I've heard so much about Tasmota I wanted to try it out. Same process (mostly) for other ESP type devices. I do have a Sonoff temp sensor for the freezer that uses native Sonoff and not Tasmota. Allows me to compare them a bit.
@DominusEstOK
@DominusEstOK 3 жыл бұрын
@@mostlychris Fair point Chris. I have the native integration with a couple of S31 plugs and it has been flawless. Thanks for all your videos, they are great and highly informative.
@n.r.2258
@n.r.2258 3 жыл бұрын
@@DominusEstOK The other problem is, that a lot of features of the sonoff are not supported in HA … i.e. the DUAL R2 are able to measure current and voltage … but HA doesn’t support it … just the 2 switches no matter if you use it local or via China.
@mostlychris
@mostlychris 3 жыл бұрын
@@DominusEstOK You're welcome on the videos. I enjoy making them. Good to hear on the Sonoff plugs. Every time I talk about my Sonoff device in the live stream somone brings up Tasmota so it was time.
@mostlychris
@mostlychris 3 жыл бұрын
@@n.r.2258 That will be in interesting comaparsion. As noted in the video, I ripped off a pad and can't flash my second plug--unless someone knows where the RX pad connects on the board--so I might have one Sonoff based and one Tasmota based.
@jheckmann
@jheckmann 2 жыл бұрын
There are a couple of pad repair videos here, eg kzfaq.info/get/bejne/rtqpZKpmuqi9kmQ.html
@mostlychris
@mostlychris 2 жыл бұрын
Thanks! I'll check them out. I need a couple more plugs and I want to use the one I destroyed.
@n.r.2258
@n.r.2258 3 жыл бұрын
It's a shame that this is always done with software that doesn't run on the MAC. (Tasmotizer)
@mostlychris
@mostlychris 3 жыл бұрын
I haven't tried this, but there is a ported version siytek.com/download-tasmotizer-for-mac/ Do your due diligence before using that since I haven't vetted it.
@n.r.2258
@n.r.2258 3 жыл бұрын
@@mostlychris Thanks for the reply but it can’t be the solution, first to port Windows onto the Mac, just to run a tiny App.
@mostlychris
@mostlychris 3 жыл бұрын
Thought it was just a dmg that you could install natively on the mac.
@n.r.2258
@n.r.2258 3 жыл бұрын
@@mostlychris No, unfortunately not. My problem is, that I started too early computing, with a Commodore Pet in 77, changing to Apple euro II in 79. Windows just came years later so I stuck to MAC all my life ( didn’t regret it ) but have never seen windows and don’t want to start now.
@mostlychris
@mostlychris 3 жыл бұрын
@@n.r.2258 I do Linux stuff myself. For my paying job I have to use some MS tools and it's just easier to do that. I have a LInux VM on my Windows box so I can do terminal stuff that way. There is a way to do this using the terminal on Mac. It's all command line based, which it sounds like you can handle.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 24 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 64 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 32 МЛН
Intro to TASMOTA What is it? How do I? ESP8266?
25:39
digiblur DIY
Рет қаралды 42 М.
TASMOTA on SonOff Flash EASY Way | Guide 2020 🔨🔧
10:55
Roberto Jorge Tech
Рет қаралды 56 М.
Flashing ESPHome or Tasmota to a Smart Device
26:20
ResinChem Tech
Рет қаралды 10 М.
Sonoff Basic Configuration Flashing with Tasmota Firmware
8:29
Lithium Solar
Рет қаралды 69 М.
SuperHouse 44: Installing Tasmota over-the-air with Tuya-Convert
12:45
Проверил, как вам?
1:00
Коннор
Рет қаралды 17 МЛН
The poor girl couldn't take care of the cat 😢😔
0:38
Ben Meryem
Рет қаралды 9 МЛН
Nutella-Kinder burrito bomb ! 🤤🎉
0:47
adrian ghervan
Рет қаралды 10 МЛН