Hello,
I’m trying to study up on ESPHome before I get it running on an Atom Lite with an RS232 base.
My instance of ESPHome Device Builder is running as an add-on in my HA Supervisor. My hope is to use the ESPHome to make a sliders and button interface to the TV mount. The protocol seems rather straight forward (5-byte requests with 7-byte responses). I’d like to have the protocol work done on the ESP32 itself with entities to invoke the commands. I think in order to do this I would want to create a custom component?
I found an article on this that seems pretty good here
https://medium.com/@vinsce/create-an-esphome-external-component-part-1-introduction-config-validation-and-code-generation-e0389e674bd6
Still a few questions though.
- Is there a place on the HA Supervisor where I can place the custom component files or do I need to load them inside the docker container?
- What is the interface to read/write the UART from my custom component?
- Would it be better to inherit the UART class in my new custom component?
Thanks,
Devan
Updated with answers