Skip to content

Instantly share code, notes, and snippets.

@aschuma
Last active June 1, 2021 23:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aschuma/0bad53dc8698e163361eeba389e557a3 to your computer and use it in GitHub Desktop.
Save aschuma/0bad53dc8698e163361eeba389e557a3 to your computer and use it in GitHub Desktop.
# Prepare Python Env
virtualenv py3 -p $(which python3)
source py3/bin/activate
pip install esptool
# Download Firmware
wget https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.3.0/sonoff.bin
# Backup Shelly Firmware
esptool.py --port /dev/cu.usbserial-1420 read_flash 0x00000 0x100000 shelly1_backup_01.bin
# Erase Shelly Firmware
esptool.py --port /dev/cu.usbserial-1420 erase_flash
# Write Tasmota Firmware
esptool.py --port /dev/cu.usbserial-1420 write_flash -fs 8m 0x00000 ./sonoff.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment