tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
876 stars 206 forks source link

Support for flashing opensource firmwares (esphome, tasmota, etc.) #95

Open imduffy15 opened 3 years ago

imduffy15 commented 3 years ago

In the past we used to be able to flash opensource firmware to our ESP8266 devices, this was amazing as it allowed us to completely remove any internet dependency.

Sadly, due to changes, the method for doing this defined at https://github.com/ct-Open-Source/tuya-convert no longer works.

Could we please get an official (warranty is definitely void if you do it) method for converting Tuya based ESP8266 devices to tasmota, esphome and others? not having an official method causes us to have to open up devices and attach to the different pins on the PCB, in some instances this means breaking the device, thus it not making sense to buy a Tuya device in the first place.

In the past I previously bought from https://www.novostella.net/ and flashed accordingly, however I have stopped doing this as I would have been stuck with the Tuya firmware. I now buy https://www.athom.tech/ which comes preflashed but the selection is more limited.

I'm not alone on this one, there is a full list of devices at https://github.com/ct-Open-Source/tuya-convert/wiki/Collaboration-document-for-PSK-Identity-02#known-affected-devices that people would love to flash with opensource firmwares.

zlinoliver commented 3 years ago

@imduffy15 Sorry, flashing PBT smart device's firmware conflicts with the Tuya business model, we won't provide any help or support to these methods.

The Tuya Home Assistant will support local control in Q3, 2021, you can achieve local control feature easily with the update.

imduffy15 commented 3 years ago

How does enable changing the firmware impact on the business model? With local control enabled I would hope to put any Tuya devices on a network with no internet. They should be unknown to Tuya given no internet, if they are unknown what is the harm in allowing changing firmwares? A changed firmware device would be similarly unknown.

I would understand that the action of changing firmware would void any warranty or support but I believe most people would accept that.

controlzone commented 3 years ago

I agree, especially since we would still be buying the hardware side of things. Even if there was an initial activation to register the product being sold / used and then having it's intended purpose to be re-flashed, i would have thought Tuya would like to know this info so that they could improve the functionality so that perhaps reflashing wasnt necessary. Not allowing firmware modification or alternative firmware just makes me want to find a completely different product and ecosystem - this would hurt Tuya more surely.....?

piwi3910 commented 3 years ago

As much i would like to see it being easier, and not blocked on newer firmwares it does makes sense. Tuya doesn't make HW. The product vendors do. And they pay Tuya for use of their Platform. So if we flash other firmwares, we don't use Tuya's platform, and so they don't get paid by the HW vendors