3 ms·
I wrote something similar for my "TCL" branded indoor unit that had a Tuya adaptor. The Tuya/ESP32 board spoke to the unit's controller through a serial protoc
by sdflhasjd 4y ago
I wrote something similar for my "TCL" branded indoor unit that had a Tuya adaptor.
The Tuya/ESP32 board spoke to the unit's controller through a serial protocol. I flahsed it with Tasmota and enabled the Serial/MQTT bridge.
After reverse-enghineering the protocol, I wrote a bridge that took the raw messages, decoded the machine status into an MQTT structure Home Assistant could understand, and vice-versa.
Here's a snippet of some of the encode/decode methods if anyone else is trying work with these TCL units.
https://pastebin.com/WxBSFgmQ https://pastebin.com/WxBSFgmQ