Tasmota setup - JRInge/ha GitHub Wiki

Configuring Tasmota OTA on a Gosund U111 from scratch

Tasmota is an open source firmware for ESP8266-based IoT devices. It operates locally, i.e. it doesn't rely on internet access and a cloud service in order to function. This is how I installed Tasmota on a Gosund UP111 smart plug from scratch.

Initial OTA flash

Rather than open up the switch and solder things to it, I wanted to install Tasmota wirelessly (Over-the-Air, OTA). To do this, I used Tuya-Convert, which emulates the update server used by the UP111, allowing arbitrary firmware to be flashed. This worked on the version of the UP111 I bought from "Nice EU" via Amazon on 2 June 2021. This method may stop working for later devices if the original manufacturer, Tuya, changes their firmware. Allowing the device to update Tuya's firmware normally may prevent this method working.

  1. Prepare a Raspberry Pi or other linux box with a Wifi adaptor (for flashing the UP111) and another network connection (for control).
  2. Install git if not already present (sudo apt install git).
  3. Use git to install the tuya-convert scripts, following the instructions given in Tuya-Convert's Github repo.
  4. Launch the Tuya-Convert start_flash.sh script.
  5. Tuya-Convert sets up a new wifi access point called vtrust-flash, which you need to connect to using a mobile phone or other device.
  6. Plug in the UP111 and switch it on. Do not plug anything else into it. Since my UP111 had never been paired to a network, it went straight into config mode (fast blue flashing LED). You might need to push and hold the power button to get it into config mode.
  7. When ready, Tuya-Convert backs up the original Tuya firmware. I then chose to upload the basic Tasmota firmware image.
  8. The UP111 then restarts, and starts to broadcast a tasmota_xxxxxx-#### wifi access point.

Initial Configuration

  1. Power up the UP111. If it is already on, you may need to switch it off and on again to restart its web interface.

  2. Connect to the tasmota access point, and browse to 192.168.4.1.

  3. Enter your normal wifi access details, and save. The UP111 should restart and connect to your normal wifi.

  4. Use your router management page or an IP scanner to find the IP address for the UP111, then open it in a web browser.

  5. In the Tasmota menu, go to Configuration / Configure Other. Paste in the UP111 configuration template from the Tasmota Templates Repository:

    {"NAME":"2NICE UP111","GPIO":[0,158,0,17,134,132,0,0,131,56,21,0,0],"FLAG":0,"BASE":18}

  6. Tick the 'Activate' box, and save. The device restarts.

  7. In the Tasmota menu, go to Configuration / MQTT, enter your MQTT broker details.

To Do