Skip to content

Instantly share code, notes, and snippets.

@tomasbedrich
Last active October 5, 2022 11:58
Show Gist options
  • Save tomasbedrich/c85a8d49377634dc7d56514ee31b35bb to your computer and use it in GitHub Desktop.
Save tomasbedrich/c85a8d49377634dc7d56514ee31b35bb to your computer and use it in GitHub Desktop.
Tasmota to Mongoose OS (Shelly)
# the device must be connected to the internet
DEVICE=192.168.77.106
# pick the right FW_URL! see: https://github.com/yaourdt/tasmota-to-mgos#install
INTERMEDIATE_FW_URL=https://dl.dasker.eu/firmware/mgos512k-0x7000.bin
TARGET_FW=http://firmware.shelly.cloud/gen1/SHBDUO-1.zip
# download target firmware
curl -o fw.zip "$TARGET_FW"
# flash tasmota-minimal first, because the firmware is larger than 500kb
curl "$DEVICE/cm?cmnd=Backlog%20OtaUrl%20http://ota.tasmota.com/tasmota/release/tasmota-minimal.bin.gz%3B%20Upgrade%201%3B"
# manually go to $DEVICE and upload firmware - API calls doesn't work unfortunatelly
# once the intermediate device boots up, reconnect the Wifi
# flash the target firmware
curl -i -F filedata=@./fw.zip http://10.42.42.44/update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment