No idea whether it applies in this case, but I've had some luck converting Tuya devices to Tasmota by replacing the wifi module: some of the Tuya modules are basically pin-compatible with the ESP8266 modules (ESP-12S etc), so - with a bit of soldering - you can transplant in one that will run Tasmota (or other firmware of your choice). Does make for substantially more effort than just running some software, though.