I think the standard control for TV is the RS-232C port on the TV.
https://community.home-assistant.io/t/serial-projector-contr... from a quick search.
https://community.home-assistant.io/t/serial-projector-contr... from a quick search.
Using a whole Raspberry Pi seems like overkill, though: Support for a wide variety of common USB serial chips is already built into esphome. https://esphome.io/components/usb_uart/
Just wire it up with a cheap dev board, build a firmware image for it, and that end of things is... done, right?