- Notifications
You must be signed in to change notification settings - Fork69
A minimal firmware for OTA (over the air) flashing Tasmota, HAA, or ESPurna from Mongoose OS or compatible firmware types.
License
yaourdt/mgos-to-tasmota
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
⚠ Unfortunately, due to missing time, I will no longer be able to maintain this repository or the downloads server. If you are interested, I encourage you to fork the project and continue development. Or, if you are willing (and able) to take over this repo, drop me a message.
A minimal firmware for OTA (over the air) flashing various target firmwaresstarting from Mongoose OS.
This is an intermediate firmware that can be used to installTasmota,Home Accessory Architect, orESPurnaon various Shelly models. It will install the latest stable release of thetarget firmware.
⚠ This application should generally be safe to use for all supporteddevices. Still, overwriting a device's boot loader via OTA update is a riskyoperation. If something unexpected fails, your device may be bricked, unless youknow how to flash a new firmware over a wired connection.
ℹ You can go back to Mongoose OS via OTA as well, usingthis firmware,but be aware that if something fails, your device may be bricked, if you don'tknow how to flash a new firmware over a wired connection.
Instead of flashing the device manually (see below), you may try the new automagicflashing script. The script requires Python 3 to be installed on your computer. After downloading the script, run
python3 flash-shelly.py -a
from the download location. All Shelly devices with stock firmware, which are connected to the same WIFI network, will be found. For each device that is found, you will be asked if you like to convert it.Use
python3 flash-shelly.py -a -t haa
orpython3 flash-shelly.py -a -t espurna
to install alternate targets.⚠ The script is still in an early testing stage, and I would appreciate your feedback. If you want to give feedback, please open an issue.
Before flashing this firmware, connect your device to a WIFI network withinternet access. From your browser, open the update URL for your device from thetable below. Replaceshellyip
with the IP address of your Shelly. The devicewill restart one or two times and attempt to download the traget firmware. Ifthis download succeeds, the device will restart again, and you will see a newWIFI network labeledtasmota-????,HAA-????, orESPURNA-????.This process should take no longer than 4 - 5 minutes, depending on your networkconnection.
If you replacemg2tasmota
bymg2haa
in the update URLs, your device willinstall the Home Accessory Architect firmware instead of Tasmota. Formg2espurna
instead ofmg2tasmota
, ESPurna Firmware will be installed.
There is avideo tutorial on how to flash thisfirmware. Thank you,digiblur!
If the download fails, or your internet connection is disrupted, simply turn thedevice off and on again, the intermediate firmware will retry until it succeeds.
In the unlikely event that the WIFI credentials are wrong, the device will tryto connect to a backup WIFI with SSIDmgos-recover and passwordRJoPuKC3u5,which you can use for recovery.
Device | Update URL | Tasmota Template |
---|---|---|
Shelly 1 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly1.zip | {"NAME":"Shelly 1","GPIO":[0,0,0,0,21,82,0,0,0,0,0,0,0],"FLAG":0,"BASE":46} |
Shelly 1PM | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly1PM.zip | {"NAME":"Shelly 1PM","GPIO":[56,0,0,0,82,134,0,0,0,0,0,21,0],"FLAG":2,"BASE":18} |
Shelly Plug S | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyPlugS.zip | {"NAME":"Shelly Plug S","GPIO":[56,255,158,255,255,134,0,0,131,17,132,21,255],"FLAG":2,"BASE":45} |
Shelly 2 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly2.zip | {"NAME":"Shelly 2","GPIO":[0,135,0,136,21,22,0,0,9,0,10,137,0],"FLAG":0,"BASE":47} |
Shelly 2.5 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly25.zip | {"NAME":"Shelly 2.5","GPIO":[56,0,17,0,21,83,0,0,6,82,5,22,156],"FLAG":2,"BASE":18} |
Shelly RGBW2 (color mode, latest firmware needed) | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyRGBW2.zip | {"NAME":"Shelly RGBW2","GPIO":[0,0,52,0,40,255,0,0,37,17,39,38,0],"FLAG":0,"BASE":18} |
Shelly Dimmer 1 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyDimmer1.zip | {"NAME":"Shelly Dimmer 1","GPIO":[0,3200,0,3232,5568,5600,0,0,192,0,193,288,0,4736],"FLAG":0,"BASE":18} |
Shelly Dimmer 2 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyDimmer2.zip | {"NAME":"Shelly Dimmer 2","GPIO":[0,3200,0,3232,5568,5600,0,0,193,0,192,0,320,4736],"FLAG":0,"BASE":18} |
Shelly EM | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyEM.zip | {"NAME":"Shelly EM","GPIO":[0,0,0,0,0,0,0,0,6,156,5,21,0],"FLAG":15,"BASE":18} |
Shelly Bulb | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyBulb.zip | not yet available, only flash if you a perfectly certain about what you are doing |
Shelly Vintage | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyVintage.zip | not yet available, only flash if you a perfectly certain about what you are doing |
Shelly Plug US | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyPlugUS.zip | {"NAME":"Shelly Plug US","GPIO":[52,0,57,0,21,134,0,0,131,17,132,157,0],"FLAG":0,"BASE":45} |
Shelly Duo | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyDuo.zip | {"NAME":"Shelly Duo","GPIO":[0,0,0,0,38,37,0,0,0,0,0,0,0],"FLAG":0,"BASE":18} |
Shelly H&T | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyHT.zip | not yet available, only flash if you a perfectly certain about what you are doing |
Shelly i3 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyI3.zip | {"NAME":"Shelly i3","GPIO":[0,0,0,0,0,0,0,0,83,84,82,0,0],"FLAG":2,"BASE":18} |
Shelly 1L | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly1L.zip | {"NAME":"Shelly 1L","GPIO":[320,0,0,0,192,224,0,0,0,0,193,0,0,4736],"FLAG":0,"BASE":18} |
Shelly Plug 2 | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyPlug2.zip | not yet available, only flash if you a perfectly certain about what you are doing |
Shelly Uni | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyUni.zip | {"NAME":"Shelly Uni","GPIO":[320,0,0,0,225,0,0,0,192,193,0,224,0,4864],"FLAG":0,"BASE":18} |
Shelly Duo RGBW | http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-ShellyDuoRGBW.zip | not yet available, only flash if you a perfectly certain about what you are doing |
For your convenience, the table above also lists the matching Tasmota devicetemplates fromtemplates.blakadder.com whichyou can use to configure Tasmota after installation.
Home Accessory Architect will boot in setup mode, which is explained in theHAA Wiki.
For ESPurna, the device will boot into the ESPurna base image. You can theneither switch to a devices specific version, if your device is supported, orstart configurationfrom the base image.
If device fails to convert, especially the RGBW2, please update to the lateststock firmware and try again.
If your device is not listed, please open a new issue so we can try to make itwork. Please mention which of the manyShelly firmware filesis the right one for your device.
You can compile a binary version of this firmware usingmos tools. Once installed, clone this repository and runmos build --build-var MODEL=Shelly1 --build-var TARGETFW=tasmota --platform esp8266
to create a binary for e.g. a Shelly1 switch located inbuild/fw.zip
.
Thanks torojer for helping me with the debugging ofthe initial code.
This firmware is build using a fork ofMongoose OS docker actionwhich can be foundhere.
The flash-script is a modified version frommongoose-os-apps/shelly-homekit,originally written byandyblac androjer.
Copyright (C) 2020, Mark Dornbach
This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program. If not, seehttps://www.gnu.org/licenses/.
About
A minimal firmware for OTA (over the air) flashing Tasmota, HAA, or ESPurna from Mongoose OS or compatible firmware types.