Send RS232 commands to TV wireless

Not sure if I’m right here but Im not even sure how to search using the correct terms.

My TV / NEC display has a RS232 interface that makes it controllable via hex codes.
I would like to be able to turn my tv on and off with these commands.
How can I achieve this with… let’s say a spare raspberry Pi or ESP32?
Thanks!

Like this: Serial Projector control with ESPHome

1 Like

EXACTLY like this! Thanks for helping out.