Sign inSign up

11notes/mgos-to-tasmota

By 11notes

•Updated over 1 year ago

Run mgos for Tasmota on Alpine Linux. Small, lightweight, secure and fast 🏔️

Image
0

462

11notes/mgos-to-tasmota repository overview

Banner

⁠mgos-to-tasmota

size version pulls

Build custom firmware to migrate your Shelly devices to Tasmota

⁠SYNOPSIS

What can I do with this? This image will allow you to build your custom firmware to migrate your Shelly devices to Tasmota.

⁠How-To flash?

  1. Build the zip with this image and upload to a webserver of your choice, must be http capable
  2. http://${shelly ip}/ota?url=http://domain.com/Shelly1.zip⁠, Shelly 1 will restart as Tasmota
  3. Connect to Tasmota Wi-Fi and open IP http://192.168.4.1⁠
  4. Upgrade Tasmota to an image of your choice
  5. Remove power
  6. Install and use

⁠How-To flash3 3EM?

  1. Save http://${shelly ip}/calib.dat
  2. Build the zip with this image and upload to a webserver of your choice, must be http capable
  3. http://${shelly ip}/ota?url=http://domain.com/Shelly3EM.zip⁠, Shelly 3EM will restart as Tasmota
  4. Connect to Tasmota Wi-Fi and open IP http://192.168.4.1⁠
  5. Upgrade Tasmota to an image with support of 3EM
  6. On Tasmota Configuration > Configure Other > Template = {"NAME":"Shelly 3EM","GPIO":[1,1,288,1,32,8065,0,0,640,8064,608,224,8096,0],"FLAG":0,"BASE":18}
  7. On Tasmota Console = rule3 on file#calib.dat do {"freq":0,"rms":{"current_a":3165547 ... "apparent":{"a":63162,"b":63206,"c":63246}}} endon
  8. Remove power
  9. Install and use

⁠How-To build Tasmota for 3EM?

Values don't matter, they are overwritten by your calib.dat

#define USE_I2C
#define USE_ENERGY_SENSOR
#define USE_ADE7880
#define ADE7880_AIGAIN_INIT 3158193
#define ADE7880_BIGAIN_INIT 3105107
#define ADE7880_CIGAIN_INIT 3123917
#define ADE7880_NIGAIN_INIT 1713149
#define ADE7880_AVGAIN_INIT -733808
#define ADE7880_BVGAIN_INIT -778120
#define ADE7880_CVGAIN_INIT -751443
#define ADE7880_APHCAL_INIT 156
#define ADE7880_BPHCAL_INIT 148
#define ADE7880_CPHCAL_INIT 152
#define ADE7880_APGAIN_INIT -1346041 
#define ADE7880_BPGAIN_INIT -1346784
#define ADE7880_CPGAIN_INIT -1352652

⁠VOLUMES

  • /mgostt/var - Directory of your build output

⁠COMPOSE

name: "mogstt"
services:
  mogstt:
    image: "11notes/mgos-to-tasmota:0.4.6"
    environment:
      TZ: Europe/Zurich
    command: >
      build \
        Shelly3EM \
        Shelly1 \
        Shelly2 \
        Shelly25
    volumes:
      - "var:/mgostt/var"
volumes:
  var:

⁠DEFAULT SETTINGS

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/mgostthome directory of user docker

⁠ENVIRONMENT

ParameterValueDefault
TZTime Zone⁠
DEBUGShow debug information

⁠SOURCE

⁠BUILT WITH

⁠TIPS

  • Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
  • Use Let’s Encrypt certificates to protect your SSL endpoints

⁠ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the RELEASE.md⁠ for breaking changes. You can find all my repositories on github⁠.

Tag summary

Content type

Image

Digest

sha256:c503f4dd5…

Size

30 MB

Last updated

over 1 year ago

docker pull 11notes/mgos-to-tasmota:0.4.6