/dev/serial0 co2 s8 sensor

I have wired up a senseair s8 sensor to my pi4. It reads back values with a python script as documented upon https://co2meters.com/Documentation/AppNotes/AN168-S8-raspberry-pi-uart.pdf which sends a command. That hex command, I haven’t figured out how to send it via minicom tbh, but it works in Python just fine!

What I don’t understand how this translate to a home assistant configuration: Serial - Home Assistant

Any tips please?