Skip to content
Xose Pérez edited this page Nov 5, 2019 · 6 revisions

This method is experimental. If it doesn't work, you will have to use standard flashing method Please reference tuya-convert project README.md first for the most recent information on this OTA method.

Introduction

A Chinese company named Tuya offers a free-to-brand turnkey smart home solution to anyone. Using their offer is dead-simple, since everything can be done by clicking through the Tuya web page, from choosing your pre-designed products or pre-programmed wifi-modules (mostly ESP8266) to building your own app. In the end, this has resulted in as they claim over 11 000 devices 'made' by over 10 000 vendors using Tuyas firmware and cloud services. ^1

Using this collection of scripts you can flash Tuya IoT devices to alternative firmwares without soldering: https://github.com/ct-Open-Source/tuya-convert

Compatibility

This method should be compatible with most devices on the market. However, since January 29th, 2019 Tuya has started distributing a patch that prevents tuya-convert from completing successfully. It is up to the individual brands to adopt the patch, so some devices may be affected sooner than others. To ensure the best chance of success, do not connect your device with the official app as it may automatically update the device, preventing you from flashing with tuya-convert. Some devices are already being shipped with the update, in which case there is unfortunately no work around available at this time.^2

Flashing ESPurna image

An ESPurna 1.13.5 binary is included (espurna-base.bin). The binary included does not have any specific hardware defined. Once flashed using Tuya-Convert you can update to the device-specific version via any of the means that ESPurna provides (OTA, web interface update, update via telnet or MQTT).

Flashing the included ESPurna binary:

# curl http://10.42.42.42/flash3?url=http://10.42.42.1/files/espurna_base.bin

Once flashed follow the standard first steps. The device will broadcast a ESPURNA-XXXXXX access point. You will have to connect to it using the default password: fibonacci. Once connected open the browser to 192.168.4.1 and follow the initial configuration instructions. Then go to the WIFI tab and configure your home WiFi connection (remember to save) or go to the ADMIN tab to upgrade the firmware to the device-specific image.

More information

Also see these issues: #1458, #1713

Home
Change log

Getting started

Supported hardware and options

Configuration

Integrations

Network

Developers

More around ESPurna

Clone this wiki locally