Sonoff Basic Configuration Flashing with Tasmota Firmware

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • Today, I'll be demonstrating the process of flashing custom Tasmota firmware to a simple Sonoff Basic switch. This will allow the switch to be controlled in a number of ways without having to connect it to the "cloud" and all that fun...
    WARNING: Lithium batteries are dangerous and can result in fire! This video is NOT intended to be instructional or a "how-to" lesson. I am not a professional. Do not attempt anything you see here without first contacting a certified and/or licensed professional.
    Featured Products: (affiliate links)
    Sonoff Basic... amzn.to/2tLsmXR
    USB to Serial Adapter... amzn.to/2Svmjit
    Software:
    Tasmota... github.com/arendst/Sonoff-Tas...
    EasyESP... github.com/letscontrolit/ESPE...
    Termite... www.compuphase.com/software_t...
    Recommended Stores: (Using these links helps support this channel)
    Current Connected... store.currentconnected.com/?r...
    Signature Solar... signaturesolar.com/?ref=lithi... ($50 Discount Code "LITHIUMSOLAR50")
    Best LFP Source... www.18650batterystore.com/?rf...
    SanTan Solar... www.santansolar.com/?ref=lsolar
    Battery Hookup... batteryhookup.com/discount/BA...
    Batrium BMS... www.batrium.com/
    Contact Info:
    My business email is lithiumsolardiy@gmail.com. You may contact me for sponsorships, product reviews, business-related questions, or any similar reason. I am not available for personal project questions or consultation. I will not respond to these emails.
    NEW Twitter Page... / lithiumsolaryt
    Disclaimers and Statements:
    ► I receive a small commission on purchases made using my affiliated links shared the video description and comments section. The views and opinions expressed here are my own, unbiased, and not influenced by this commission in any way.
    ► My videos are in no way intended to be instructional "how-to" lessons. I am simply documenting my project for informational purposes. Property damage, personal injury, or death may result, even when following manufacturer's instructions. I cannot be held liable for such damage or injury. It is YOUR OBLIGATION to ensure that you are complying with any local and federal laws as well as code and permit requirements.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 93

  • @Laurencedean1966
    @Laurencedean1966 3 ปีที่แล้ว +7

    for once, someone went through all the steps in simple terms and explained all the elements.... excellent. thanks

  • @LukeRT
    @LukeRT 5 ปีที่แล้ว +3

    Great video been looking for a simple tutorial for the new board thanks for sharing

  • @Whereswally606
    @Whereswally606 ปีที่แล้ว

    thanks for this, had to remind myself of the holding down the button to put it into flashing mode. I now have 5 sonoff basic r1s and one sonoff pow upgraded to 12.2 tasmota working with my home assistant.

  • @ka24det
    @ka24det 4 ปีที่แล้ว +1

    Thanks. Very easy to follow!

  • @davebeckham5429
    @davebeckham5429 5 ปีที่แล้ว +1

    Nice tutorial. Thanks for sharing.

  • @RussellSmith-nv2je
    @RussellSmith-nv2je 4 ปีที่แล้ว +2

    Great tutorial, thank you so much for making this!

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว +2

      Thanks for watching! :)

  • @dablet
    @dablet 4 ปีที่แล้ว

    really nice tutorial. thank you!

  • @Turkish42
    @Turkish42 4 ปีที่แล้ว

    Thnx. Straight forward video!

  • @luisjrivera2704
    @luisjrivera2704 4 ปีที่แล้ว

    Worked Perfectly!!!

  • @ROBK636
    @ROBK636 5 ปีที่แล้ว +1

    Thank You. This video has helped me as I could not get these to even work using their phone app and my wifi.

    • @ROBK636
      @ROBK636 5 ปีที่แล้ว

      Thanks again. Was able to do the other 3 I had in around 10 minutes.

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว

      Glad I was able to help! :)

    • @ROBK636
      @ROBK636 ปีที่แล้ว

      @@LithiumSolar Good thing I saved the video to favorites. Saved me again on doing updates and adding a few more. Thanks again

  • @diegomartinmarmol
    @diegomartinmarmol 5 ปีที่แล้ว +3

    Great tutorial!. I'm looking forward to get one of those to flash it. BTW, do you know if this new software provides a REST API to be used from another app?. Thanks

  • @JeremyCook
    @JeremyCook 4 ปีที่แล้ว +1

    Thanks for the great info! Was able to duplicate your process with Termite, but have you tried logging on via PuTTY?
    I was able to get an output by plugging it in at ~ the same time I pressed connect, but couldn't input anything for whatever reason.
    I can certainly use Termite, but prefer to consolidate programs when possible.

  • @joeyjonathan2544
    @joeyjonathan2544 4 ปีที่แล้ว

    Thank you.

  • @MrPenguin1w
    @MrPenguin1w 4 ปีที่แล้ว

    I have several of these. I'll have to flash them with Tasmota.

  • @rrrrrrrr290
    @rrrrrrrr290 5 ปีที่แล้ว +1

    Great video you will also need to set power retain and switch retain or you will end up with ghost switching Rob. on the hookup has a great video about it

    • @LukeRT
      @LukeRT 5 ปีที่แล้ว

      Good feed back just checked the listed video, good info to follow

    • @rrrrrrrr290
      @rrrrrrrr290 5 ปีที่แล้ว

      @@LukeRT could be a follow up video for you to make show some console commands to use and get info etc

  • @uzairiasif1984
    @uzairiasif1984 4 ปีที่แล้ว

    you can connect the relay and contactor make maximum load circuit :)

  • @netcomptech
    @netcomptech 4 ปีที่แล้ว

    FYI, after setting a static IP for the device, in Windows you can edit the file C:\Windows\System32\drivers\etc\hosts and use this to associate an alphanumeric name with an IP address. Note the "hosts" file does not have or use an extension. Associate a name to an IP address by add a line such as 192.168.254.254 LivingRm-Sonoff-3. Then in your web browser instead of trying to remember the IP address just type in the associate name in the address bar and press enter.

  • @MrMuzza008
    @MrMuzza008 5 ปีที่แล้ว +2

    Cool, very informative. What do you do with the earth wire if your cable has one?

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว +1

      There was no ground wire for this example since it's just a lamp cord. For applications with a ground wire, the ground should bypass the Sonoff. Even though the hot and neutral both go through the Sonoff, the hot is the only lead that's being switched by the relay.

    • @LukeRT
      @LukeRT 5 ปีที่แล้ว

      Second that. What ever you do, do not remove the ground wire it can be ran out side the sonoff box or connected in a junction box as well as a gange box.

    • @N317H
      @N317H 5 ปีที่แล้ว

      @@LithiumSolar Isn't Sonoff POV meant to use for three wire applications?

  • @DXingSlovenija
    @DXingSlovenija 2 ปีที่แล้ว

    Was wondering if you always need an FTDI/anyother usb2serial adapter plugged in when configuring?
    is it possible to first configure this just by plugging it in when Tasmota is installed (does it create any acsess point to connect to?)

  • @greenwellington
    @greenwellington 4 ปีที่แล้ว +1

    Thank you. Your description took me almost there, but now I am stumped!
    The device showed up as a "Client" on my Ubiquiti Cloud Key before disconnecting from USB, but with mains power, although I can use the configuration page on my Win laptop to toggle it On/Off, it no longer shows as a client on my Ubiquiti set up so cant integrate it.
    Any ideas, please?

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      Unfortunately, I am not familiar with Ubiquiti. My extent of Sonoff knowledge is pretty much what you see here. Once I got Tasmota loaded, I connected it to my water heater and haven't touched it since. Sorry :(

    • @greenwellington
      @greenwellington 4 ปีที่แล้ว

      @@LithiumSolar Thank you for replying. Did you then link it to Alexa or some Smart Home device to control the water heater? Presumably you did not use the device address each time to toggle On/Off. Perhaps just sed the timer function?

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      I wrote a script that turns it on/off with http requests based on the state of charge of an off-grid battery bank.

  • @Larrivey9
    @Larrivey9 4 ปีที่แล้ว

    Awesome video! Do you think this process will work with a sonoff clone? I can get into one of those in my country since it's cheaper than the sonoff

  • @thanasisglt
    @thanasisglt 4 ปีที่แล้ว

    Very nice tutorial, thanks!
    Any idea how to control the led? Turn on when relay is on and turn off when relay is off respectively. Mine is blinking continuously.

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      The LED should not be blinking during normal operation. I believe that means it's not connected to the network. Is your wifi connection ok?

    • @thanasisglt
      @thanasisglt 4 ปีที่แล้ว

      @@LithiumSolar it is connected. Also, it works with Alexa as hue emulation. But it keeps blinking either is on or off.

  • @campbte85
    @campbte85 5 ปีที่แล้ว +1

    I actually use the same exact tools and software setting up my sonoffs. Have you ever come across an issue with after flashing and then wiring in the sonoff that it doesn't power up? I've tested them and it shows as powered and using the same pin holes for flashing it powers on but the AC cabled doesn't power up.. Any ideas?

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว

      I only tried the AC relay when powered by the input side. I didn't try it with power coming from the serial interface pins. There might not be enough power to flip the relay that way.

  • @xsyntax4691
    @xsyntax4691 4 ปีที่แล้ว

    Hi ,
    I did everything like described in the tutorial. But I have some questions.
    1.) as software you also mention ESP Easy but do you actually need this ?
    while in the video I only see you flash with sonoff.bin (which now seems to be tasmota.bin)
    2.) When I test my sonoff with Tasmota it really works fine and i can toggle between on and off as long as it i s connected tot the ESP.
    When everything is done and succeeded I disconnect the USB cable (like said in the video) then I cannot reach the Sonoff Basic.
    Also the blue wifi light does not lighten.
    I have checked the tutorial over and over again but I cannot find out why it does not work while every step succeeds.
    Please Help !!

  • @maxkuyumciyan6971
    @maxkuyumciyan6971 3 ปีที่แล้ว

    Hi Buddy all good up to the point that after the flash when you unplug the USB and plug it back no connection to Termite - When all work oK but we cant troubleshot. So flash seems to go in OK as all indicators seems to be OK including the blue led flashing on the serial adapter. However when unplugged after the flash and you plus the USB back in the PC wont detect anything on the part that we did the flash. the only way to show something on that actual port is after the unplug having to plug the usb back in by holding down the sonnoff button. now computer detects a device on the serial port but this time termite doesnt connect on that port. Spent ages with no joy :(

  • @MrRanettius
    @MrRanettius 4 ปีที่แล้ว +1

    @LithiumSolar: So I guess that you need a static ip address to control the device from your local network. I've read that with Tasmota you can control it using Apple HomeKit. If this is true, after flasing the device, it's good to go (and should it be found by HomeKit), or I still have have to pair it with the router using Termite and change the ip address)? Thanks

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว +1

      I'm not familiar with Apple HomeKit or other automation apps. The app might be smart enough to scan the network and find devices, but even then, I would think you don't want the IP address changing. For my purpose, where the device is being controlled by a home-built program, it needs to have a static IP. If you don't want to set a static IP on the device, you could also set it in your router. Typically there is an area you can put in the MAC address and the desired IP and DHCP will always assign that IP to the device.

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      Sorry if I didn't answer your exact question, I'm not sure to be honest.

    • @freekdl
      @freekdl 4 ปีที่แล้ว

      With Homebridge or Home Assistant you can control these flashed Sonoffs from your iPhone (even with Siri voice commands). However you can only control them on your local network, if you want external access you still need an Apple hub like an Apple TV, Homepod or an iPad that's always at home and turned on.

  • @thanhnguyen-rg7nj
    @thanhnguyen-rg7nj 5 ปีที่แล้ว

    Hello, Thanks for your sharing,
    I have done according to your step but after I pressed Flash, It cannot and show the flash failed window, could you help me for this

    • @arabicphoenix1
      @arabicphoenix1 5 ปีที่แล้ว

      unplug the sonoff push the on button (keep on) plug the sonoff (keep pushing the on button) click on flash and when you see that is progressing you release the button.

    • @thanhnguyen-rg7nj
      @thanhnguyen-rg7nj 5 ปีที่แล้ว

      @@arabicphoenix1 Thank you, I have done it before, problem is the Usb cable. :(

  • @xx0505xx
    @xx0505xx 5 ปีที่แล้ว

    I flashed it with Tasmota Firmware now im just trying to figure out how to set it up so it works with Siri and homekit. anybody know?

  • @ConTanidis
    @ConTanidis 2 ปีที่แล้ว

    Nice tutorial. By the way GR is Greek, DE is German...

  • @61JWolf
    @61JWolf 4 ปีที่แล้ว

    Not intended as a rhetorical question - Why not just go with a smart plug? A 4 pk sells on Amazon for $30. Those smart plugs also include timer functionality. So, the price is comparable. Does the Sonoff have an advantage over such a plug?

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      A water heater needs to be hard-wired, not using a plug. There aren't many smart plugs rated for 20A. Lastly, I need something I can control over my local network. I don't want anything that connects to the "cloud", requires an phone app, or anything like that.

  • @watsonetc150
    @watsonetc150 4 ปีที่แล้ว

    Will it still work with Alexa or will it be soley controlled via http?

  • @arabicphoenix1
    @arabicphoenix1 5 ปีที่แล้ว

    hello,
    after flashing i opened TERMITE and i choose port and speed, but after that nothing is happening, the sonoff is not trying to connect to internet.

  • @TeardownOZ2CPU
    @TeardownOZ2CPU 4 ปีที่แล้ว +1

    none of the links looks like your video
    the bin file as you talk about, dont exist
    now it is called tasmota-uk.bin and with that file flashed, the darn screen is in russian or something like that, i remember the top is toggle and that works..
    is there any way to get a ORIGINAL sonoff software ?? back again ??

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      I used v6.4.1 in this video. You can still get back to those files by changing the branch on GitHub. Here's a link to v6.4.1, the bin files are at the bottom github.com/arendst/Tasmota/releases/tag/v6.4.1 As for getting back the original delivered firmware, I'm not sure... I haven't had the need to revert mine.

  • @fredasiong
    @fredasiong 5 ปีที่แล้ว

    Can't seem to find the download.

  • @psycopper1
    @psycopper1 3 ปีที่แล้ว +1

    why is it important not to switch N and L, isn't this the same because it's AC? What's the difference between stock firmware?

    • @LithiumSolar
      @LithiumSolar  3 ปีที่แล้ว

      The N & L are not the same. The neutral wire will be at ground potential. If you switch the neutral, then you will always have line voltage going through your appliance, even when switched off. Additionally, it is against code (at least in the US) to switch the neutral wire. It is never to be broken (very very few exceptions).

  • @fredasiong
    @fredasiong 5 ปีที่แล้ว +1

    Can you please post the link for the sonoff tasmota. Thx.

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว

      The bin downloads are on this page github.com/arendst/Sonoff-Tasmota/releases It's a very long page, if you hit Control+F (find) and search for "assets" it's the first result/set of files.

  • @hbosch5223
    @hbosch5223 4 ปีที่แล้ว +2

    if you buy this cheaper USB to serial adapter, you can just bend the 5v pin up (45 degrees) and stick it into the sonoff as the TX/RX pins are reversed. As you push it into place the pins grip the holes they are in. Works great. No soldering. 20v.org/tmp/599.jpg

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      That would certainly make it easier ;)

  • @yerunski
    @yerunski 4 ปีที่แล้ว

    Just bought 2 of seemingly the exact same models as u show here in the video. Had to try really hard to open the case, the way u show it doesn't work. I had to try so hard to open it that I actually bent the cover and some piece of little plastic broke off. The inside different also so I won't try this method. The one I broke I threw out. The other one is working fine with the Smart Life app. Ewelink app doesn't work with all models.

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      That's... odd. I have a few now and they just push right apart. With the one that broke apart, were there any screws or anything?

    • @yerunski
      @yerunski 4 ปีที่แล้ว

      @@LithiumSolar No but there was a black adhesive sticker. I think that's what holding it in place so firmly.

    • @yerunski
      @yerunski 4 ปีที่แล้ว

      Little update; turned out to be NOT the real Sonoff devices. Thats why I got all that trouble.

  • @chuckjordan6455
    @chuckjordan6455 4 ปีที่แล้ว

    You should explain that the ESPEasy was just for the flashing tool.... otherwise people might think EspEasy is being flashed on to it. Your flashing Tasmota Firmware, right?

  • @markstanchin1692
    @markstanchin1692 5 ปีที่แล้ว

    Do you have a link to the 4 pin header

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว

      I used these, but looks like they are no longer for sale. I bought a big pack since I use them for other projects as well www.amazon.com/gp/product/B01LZ8PTAD

  • @bloomcourtney
    @bloomcourtney 4 ปีที่แล้ว

    what 4pin header do you need to buy?

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      Hi. They are standard 2.54mm header pins amzn.to/2zNXeJU

  • @syntox.
    @syntox. 4 ปีที่แล้ว

    There is no com port to select when I start the FlashESP8266.exe. Can anyone tell me why?

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      It sounds like Windows isn't recognizing the hardware. Did you try a different USB port? Does the USB adapter power on? If the USB port isn't used often, make sure there is no dust in it?

    • @syntox.
      @syntox. 4 ปีที่แล้ว

      @@LithiumSolarHi, thanks for this really quick answer. Yes I've tryed different USB ports (other dievices work) and differen cables (mini USB to normal USB) and it also powers on . could it be that a FTDI232 adapter doesn't work?

  • @wolfgangzeisig6313
    @wolfgangzeisig6313 5 ปีที่แล้ว +1

    It is a lot to go thru just to remote a device

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว

      You can use it as-is without flashing Tasmota. I wanted the custom firmware since I write my own code and do not want my devices connected to "the cloud".

    • @adrianopery
      @adrianopery 5 ปีที่แล้ว

      @@LithiumSolar Hi, just to understand. Once I flash with Tasmota, I miss the remote control by smartphone?

  • @fizyk1769
    @fizyk1769 2 ปีที่แล้ว

    You can have live and neutral crossed it basically doesn't matter. It's AC ffs.
    Nice flashing tutorial though

    • @LithiumSolar
      @LithiumSolar  2 ปีที่แล้ว

      In theory yes, but you cannot make that assumption regarding how a device is wired. The neutral always lands on the neutral terminal, line on the line terminal.

    • @fizyk1769
      @fizyk1769 2 ปีที่แล้ว

      @@LithiumSolar when you use this switch on something that you plug into socket, you can flip the cable, therefore your crossing it. It really doesn't matter :) if you're making under-wall installs, then yeah, that can be usefull, but still just for marking. Nothing bad ever happen (to the device) if you cross them.

  • @JonasHerkel
    @JonasHerkel 5 ปีที่แล้ว +7

    GR is not german. Germany is DE

    • @LithiumSolar
      @LithiumSolar  5 ปีที่แล้ว +1

      My bad...

    • @JonasHerkel
      @JonasHerkel 5 ปีที่แล้ว

      @@LithiumSolar Great video by the way!

    • @Laurensnl
      @Laurensnl 4 ปีที่แล้ว +1

      @@LithiumSolar No worries, he is probably insulted. GR is Greek ;)

  • @ViciousXUSMC
    @ViciousXUSMC 4 ปีที่แล้ว

    If you wanted to copy my tutorial exactly, just credit to the original source would be nice: th-cam.com/video/UDnNI5wkNNY/w-d-xo.html

  • @KugelBlitz
    @KugelBlitz 2 ปีที่แล้ว

    just fyi 5v will not blow it off

  • @b3rdux
    @b3rdux ปีที่แล้ว

    "GR" is Greek actually 😜
    "DE" is German (Deutschland) 😅

  • @connect-r
    @connect-r 4 ปีที่แล้ว +1

    To complicated. Defite the purpose

    • @LithiumSolar
      @LithiumSolar  4 ปีที่แล้ว

      Well now that depends on what your intended purpose is, doesn't it? ;)