Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with ESPHome? #3

Open
RoganDawes opened this issue Mar 2, 2023 · 3 comments
Open

Use with ESPHome? #3

RoganDawes opened this issue Mar 2, 2023 · 3 comments

Comments

@RoganDawes
Copy link

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!

@RoganDawes
Copy link
Author

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.

@sj-louw
Copy link

sj-louw commented May 10, 2023

@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

@RoganDawes
Copy link
Author

RoganDawes commented May 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants