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