HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
ct-Open-Source
tuya-convert
Python2019–2022
ct-Open-Source / tuya-convert

tuya-convert

A collection of scripts to flash Tuya IoT devices to alternative firmwares

8Distinct people
8Mentions
0Explicit recommenders
5.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A collection of scripts to flash Tuya IoT devices to alternative firmwares

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2019-11-29 23:03:33 UTC to 2022-10-21 07:53:23 UTC.

012342019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC211
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC404
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101

What Hacker News says

8 sources
> They cost >2x the Meross ones. Got 2. They work so far. Crossing my fingers they're legit, though my guess is they won't last. FYI - there are plenty of cheap Tuya devices[0] that can be flashed with alternative firmware[1] which works locally. More generically, there a lot of ESP32-based switches that work with Tasmota open-source firmware[2]. There breadth of devices is annoying because it makes configuration difficult since manufacturer wire up the relays differently, so it took me trial and error to figure out which device/"port" the firmware needs to toggle to turn the switch on or off 0. Any device that requires installation of a phone app named "Smart Life" or "Tuya Smart". 1. https://github.com/ct-Open-Source/tuya-convert 2. https://github.com/tasmota
In It was all downhill after the Cuecat
Many of these WiFi-LED lamps contain esp8266 devices, which have a lot of open source alternative firmware available, like esphome[0] or tasmota[1]. You can reflash them by opening them & connecting a cheap (1$) usb-to-tty adapter. If that isn't an option (for reasons like not wanting to permanently damage them or being afraid of electrical shocks) a lot of them come with tuya firmware, which you can (still) often exploit and convert with TUYA-CONVERT [2]. I found the Tasmota Device Templates Repository[3] to be a really valuable resource, although I've been using zigbee devices for lightbulbs. [0]https://esphome.io/ [1]https://github.com/arendst/Tasmota [2]https://github.com/ct-Open-Source/tuya-convert [3]https://templates.blakadder.com/index.html
In The S in IoT is for Security
I didn't try to run a command, I ran this exact script: https://github.com/ct-Open-Source/tuya-convert/blob/master/i... Actually you could be right - that script does run `python3` after apt-get'ing everything it needs. Anyway.. I didn't look into it any further because I didn't feel like investing any time into learning the 'Ubuntu way'. I installed Debian instead and it worked perfectly without any grief. It also worked perfectly on PopOS when I used it a few days later on a different machine. Canonical can make whatever changes they want of course, I've just become increasingly less patient when it comes to machines not acting how I have come to expect. So I'll just stick to what works. Oh man - I'm becoming one of those old dudes...
In “I saw that you spun up an Ubuntu image in Azure”
I've switched a lot of my existing light automation over to esphome [0]. I flashed it on various cheap LED Wifi bulbs that have been 'liberated' via tuya convert [1] After going through zigbee and zwave, I feel like I finally arrived at a solution that allows me plenty of reasonably priced selection and extreme customization (e.g. just using the warm/cold white LEDs on a RGB+white bulb). Great experience so far and completely automated integration within homeassistant. I hope that the esphome-configs project [2] will grow over the next little while and provide more and more copy+paste configurations for various hardware. [0] https://esphome.io/ [1] https://github.com/ct-Open-Source/tuya-convert [2] https://esphome-configs.io/
In Open-Source Home Automation

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.