How to make a customized component or platform with pi uart interface?

hi all,
I plan to use PI uart port as HA platform or component. How can write the python code? or is there already such component or platform?

The Pi UART is just a serial port. I’ve had no trouble using the serial sensor with Arduinos connected to it.

If you want to send commands then I believe you’d have to write a custom component. The serial sensor is probably a pretty good base to build on.