this post was submitted on 14 Jun 2023
7 points (100.0% liked)

homeassistant

12131 readers
23 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/110673

Hey all,

i want to hack a portable AC. The devices communicates via UART between Mainboard and control unit (LCD and Buttons). As we still want to use the original controls, i had the idea to put an ESP32 in the middle of the communication (using UART2 for the mainboard and UART3 for the control board).

I don't want to reverse engineer the whole protocol, only the relevant parts. So, i need a way to forward all messages in both directions, to make this work as it should.

Has anybody done such a thing already? Or has any tips how to do it.

I'm fluent in C++, so there is not barrier here, but i am new to the codebase of ESPHome

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago

You could probably use ESPHome or Tasmota serial port proxy for this ... Just connect to it using nc or something like that.

https://esphome.io/components/uart.html#debugging

https://github.com/thegroove/esphome-serial-server

https://tasmota.github.io/docs/Serial-to-TCP-Bridge/

Using ESPHome is probably the fastest path to something that works since you can use the serial server and/or debug mode to figure out the commands you want to read/write and write a config for those right away.