Open RoganDawes opened 1 year ago
https://esphome.io/components/tuya.html
All you need to do initially is to configure the serial port to talk to the Tuya MCU, then ESPHome will interrogate it to identify the datapoints that it supports. Then it becomes a question of figuring out what each datapoint represents and creating suitable ESPHome entities for each datapoint.
This should make it a lot easier than poring through hex dumps for traffic that is only infrequently sent.
@RoganDawes
Here is my ESPHome working code and Home Assistant Dashboard if you are interested. This was mostly ported from the excellent work that @jackkitley did here in this repo. esphome_config.zip
Nice work! Does it come with the ESP8266 natively, or did you desolder the Tuya module and replace with your own?
Ignore me, I see that it doesn't come with the ESP8266 by default on review of the repo. FWIW, the LibreTiny project might be able to run ESPHome natively on the original Tuya module, saving the desoldering process entirely.
Hi,
Just wondering if you tried using it with ESPHome? ESPHome does most of the hard work for you, including supporting OTA updates, MQTT, WiFi settings, etc, and even includes support for talking to a remote Tuya MCU over the serial port.
Nice work reversing it this far!