Sonoff DIY Mode Flash to Tasmota Using Linux Laptop 2020 Updates

In this video I grab my Ubuntu Laptop and using Sonoff DIY mode flash Tasmota on a Sonoff Mini. This is the 2020 updated version, flashing Tasmota 9.1.0 Imogene release. I have seen others do it with a phone and a windows box, but I have not seen it done with Ubuntu ans curl post commands. You can use this same method to flash ESPHome or other firmware’s as well in DIY mode. If you know my, it’s Tasmota 100%.

This will also work with Debian and other Linux Distros.

So dust off that old 2010 laptop that you no longer can use for Windows and give it a new life with Debian or Ubuntu, and give yourself an awesome tool for flashing ESP’s and maintaining your smarthome!

I also attached a web post that I used for reference here getting the curl commands correct. In that web post he shows other ways to do this flash if you are interested.

Episode: 045

Video related links:
Tasmota Binaries:
http://ota.tasmota.com/tasmota/release/
Flash Tasmota on a Sonoff in DIY mode in Linux:
https://sigmdel.ca/michel/ha/sonoff/sonoff_mini_en.html
SONOFF DIY MODE Protocol:
https://github.com/itead/Sonoff_Devices_DIY_Tools/blob/master/other/SONOFF%20DIY%20MODE%20Protocol%20Doc%20v1.4.md

Contact Links:
What are we Fixing Today Homepage / Website:
https://www.WhatAreWeFixing.Today/
Channel Link URL: (WhatAreWeFixingToday)
https://bit.ly/WhatAreWeFixingTodaysYT
What are we Fixing Today Facebook page (Sir GoodEnough):
https://bit.ly/WhatAreWeFixingTodaybFB
What are we Fixing Today Twitter Account (Sir GoodEnough):
https://bit.ly/WhatAreWeFixingTodayTW
Discord Account: (Sir_Goodenough#9683)
https://discord.gg/Uhmhu3B

Patreon Membership: https://www.patreon.com/WhatAreWeFixingToday

Please help support the channel:

Buy me Coffee: https://www.buymeacoffee.com/SirGoodenough
PayPal one-off donation link: https://www.paypal.me/SirGoodenough
Cash App $CASHTAG: https://cash.me/$SirGoodenough
Venmo cash link: https://venmo.com/SirGoodenough

If you would like to donate anything to this channel, please use this address:
C/O: Sirius GoodEnough
322 Buena Vista Ave.
Department: DYT
Waukesha, Wisconsin, 53188-3602


Cheat Notes & Command Templates:

Create web server on local machine:

• Get the apache application:   sudo apt update; sudo apt install apache2 -y
• Set the firewall:  sudo ufw allow 'Apache'
• Make sure apache started: go to browser on the machine you set apache up on and open 127.0.0.1 website.  Should get the apache welcome screen.

Copy the binary into the web server:

• sudo chmod 755 /var/www/html
• sudo mkdir /var/www/html/tasmota
• sudo cp folder-where-it-is/tasmota-lite.bin /var/www/html/tasmota/tasmota-lite.bin

WIFI Hotspot Details:

• Enter sonoffDiy in the Wireless Network Name field.
• Enter 20170618sn in the Password Phrase field.

Find IP address:

• avahi-browse -t _ewelink._tcp –resolve

Test that you have connection to the device:

• curl http://10.42.0.97:8081/zeroconf/switch -d '{"deviceid":"1000b6dd53","data":{"switch":"on"}}'

Unlock the update mechanism:

• curl http://10.42.0.97:8081/zeroconf/ota_unlock -d '{"deviceid":"1000b6dd53","data":{}}'

Checking that the device is unlocked:

• curl http://10.42.0.97:8081/zeroconf/info -d '{"deviceid":"1000b6dd53","data":{}}'

Calculate the checksum:

• shasum -a 256 tasmota-lite.bin   
• Results: (use the value your computer calculates.)
    ◦ b8a16f18a018bd6233170ce28a625508c38770d9d8ef195c7afa50f914c4ac9c

Flash the device:

• curl http://10.42.0.97:8081/zeroconf/ota_flash -d '{"deviceid":"1000b6dd53","data":{ "downloadUrl": "http://192.168.108.42/tasmota/tasmota-lite.bin", "sha256sum": "b8a16f18a018bd6233170ce28a625508c38770d9d8ef195c7afa50f914c4ac9c" }}'

Link to this video on YouTube: https://youtu.be/YRCW9ImuGfU

video add-ins provided by:
spinny,
Video by Tech VideoStack from Pixabay

chalkboard
Video by imotivation from Pixabay

rocky
Video by mohamed Hassan from Pixabay

Music from YouTube Library:
Shawl_Paul by Norma Rockwell
Compressor_Works_Twang by Max McFerren
I retired from a large mid-western medical equipment manufacturer on December 31 (2019) and decided to try to let everyone in on my life and my transition into retirement. I have a varied set of interests. I live in a 90 year old cape cod in the middle of a small city of 70,000 people. I have a small lot across the street from the city seat of government, but despite that I have a 1952 Allis Chalmers farm tractor that I drive around the city from time to time. My wife has a business that has me fixing and creating cool home decor out of broken windows and drywall screws. I have been known to buy things on 'for sale' lists, fix it up, clean it up, generally add value and sell it off. Oh, yes, I'm getting chickens! But first I have to build the chicken coop and run. It will be like no other you have ever seen. Also will give me something to do. I am into home automation, have a Home Assistant enabled home and so will the chickens! I'll have to give them a password...
Social Media Auto Publish Powered By : XYZScripts.com