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

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • 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
  • Jak na to + styl

Komentáře • 96

  • @makeitworktech
    @makeitworktech Před 2 lety +1

    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  Před 2 lety

      Excellent! Thanks for watching and referencing! I didn't see this comment until after our Twitter convo.

  • @AccidentalMisfire09
    @AccidentalMisfire09 Před 2 lety +1

    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  Před 2 lety +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.

  • @brenthendricks
    @brenthendricks Před 2 lety +2

    Thanks for the great tutorial. Other than soldering the wires on, this was a total piece of cake thanks to you.

    • @mostlychris
      @mostlychris  Před 2 lety +3

      Thanks for watching! You can avoid soldering with these: amzn.to/2Zk3mXl

    • @brenthendricks
      @brenthendricks Před 2 lety +2

      @@mostlychris yessssss this made it 100% easier!

    • @mostlychris
      @mostlychris  Před 2 lety +3

      @@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 Před rokem

    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  Před rokem

      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 Před 2 lety +1

    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  Před 2 lety

      Glad it was helpful! I try my best to be as detailed without too much "fluff". It's a delicate balance.

  • @duckyducky2497
    @duckyducky2497 Před 2 lety +1

    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  Před 2 lety

      Thanks and thanks for the tips! Nice name btw.

    • @duckyducky2497
      @duckyducky2497 Před 2 lety

      @@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 Před 3 měsíci

    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 Před 2 lety

    Thanks, this worked like a champ.

  • @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  Před rokem

      Yes. Now you can. At first, no, but then someone commercialized it. Tech is constantly changing.

  • @teddyruxpin3811
    @teddyruxpin3811 Před rokem

    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.

  • @gmaclean1
    @gmaclean1 Před 3 lety +2

    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  Před 3 lety +1

      Ooohh. That would work! Lemme find that jig.

    • @dudenell
      @dudenell Před 2 lety

      do you have a link?

  • @madelinethomas241
    @madelinethomas241 Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

      @@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!

  • @EsotericArctos
    @EsotericArctos Před 2 lety +1

    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  Před 2 lety +1

      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.

  • @JimfromIndy
    @JimfromIndy Před 3 lety +1

    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  Před 3 lety

      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 Před 3 lety

      @@mostlychris Believe me, I tried. Failed.

    • @mostlychris
      @mostlychris  Před 3 lety

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

  • @josefreitas3311
    @josefreitas3311 Před 2 lety

    @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  Před 2 lety

      If you flashed it with Tasmota, it shouldn't be on the cloud anymore. Can you verify that it actually got flashed?

  • @ngreed
    @ngreed Před 3 lety +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  Před 3 lety +1

      Thanks! So many options. I need to make a video about soldering those pads 😁

  • @randyvanfossan1975
    @randyvanfossan1975 Před 2 lety

    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  Před 2 lety +1

      Someone messed up! Maybe Sonoff will send you another to replace the cloned one. Sounds like these might even be forgeries.

  • @Supercazzola
    @Supercazzola Před 2 lety

    great video. Is this only for the S31 or does it work with S31 lite also ?

    • @mostlychris
      @mostlychris  Před 2 lety +1

      Looks like it does. templates.blakadder.com/sonoff_S31-lite.html

  • @johnhammonds3952
    @johnhammonds3952 Před 11 měsíci

    Looks like adafruit pogo plug device could clamp on the pins for flashing

    • @johnhammonds3952
      @johnhammonds3952 Před 11 měsíci

      I got one of these pogo plugs & was able to clamp it on the pads witout soldering & move to the next one

  • @Musicman-50
    @Musicman-50 Před 2 lety

    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  Před 2 lety

      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  Před 2 lety

      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 Před 2 lety

      @@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  Před 2 lety +1

      CTRL-ALT-DEL FTW

    • @Musicman-50
      @Musicman-50 Před 2 lety

      @@mostlychris Indeed a very high tech approach. LoL 🥴

  • @KJThaDonPSN
    @KJThaDonPSN Před 3 lety

    Awesome vid, thanks! Just curious what router/interface is that?

    • @mostlychris
      @mostlychris  Před 3 lety

      If you are talking about the list of clients I show, I'm getting that from the Unifi USG.

  • @b16crxt
    @b16crxt Před 2 lety

    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  Před 2 lety +1

      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 Před 2 lety +1

      @@mostlychris thanks I’ll try that

    • @b16crxt
      @b16crxt Před 2 lety

      @@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  Před 2 lety

      Glad you were able to get it going! Using those clips will prevent future soldering mishaps.

  • @user-cw2py6wh8l
    @user-cw2py6wh8l Před 2 lety +1

    can you get wattage with Tasmota?

    • @mostlychris
      @mostlychris  Před 2 lety

      Depends on the device. The S31 plug I flashed with Tasmota has voltage, current, apparent power, reactive power, power factor, and kWh.

  • @mgglight
    @mgglight Před 2 lety

    why are there so many kwh in "energy today" ,14:22?

    • @mostlychris
      @mostlychris  Před 2 lety

      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

  • @oakfig
    @oakfig Před 2 lety

    What is the advantage of using this over the sonoff s31 lite? The ZigBee model.

    • @mostlychris
      @mostlychris  Před 2 lety +1

      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 Před 2 lety +1

      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.

  • @n.r.2258
    @n.r.2258 Před 3 lety

    It's a shame that this is always done with software that doesn't run on the MAC. (Tasmotizer)

    • @mostlychris
      @mostlychris  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety

      Thought it was just a dmg that you could install natively on the mac.

    • @n.r.2258
      @n.r.2258 Před 3 lety

      @@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  Před 3 lety

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

  • @jheckmann
    @jheckmann Před 2 lety

    There are a couple of pad repair videos here, eg czcams.com/video/xty1G5UBYb0/video.html

    • @mostlychris
      @mostlychris  Před 2 lety

      Thanks! I'll check them out. I need a couple more plugs and I want to use the one I destroyed.

  • @DominusEstOK
    @DominusEstOK Před 3 lety +1

    With Home Assistant you don't need to flash Tasmota anymore for local control of Sonoff devices.

    • @mostlychris
      @mostlychris  Před 3 lety +1

      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 Před 3 lety

      @@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 Před 3 lety

      @@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  Před 3 lety +1

      @@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  Před 3 lety

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