Can't put sources in my TV homekit

Hello

It has been a few days trying this but I have a switch to turn on/off my tv, and 2 buttons to switch between sources (apple tv / nintendo switch)
image
image

I would like to have a TV in my homekit (I did it already but I can only turn it on/off) and being able to switch between the 2 sources, and when i switch for a specific source, it presses the corresponding button

can you help me please thanks in advance