TV Turn off by switch

Need help with the automation to turn off the tv with the physican switch. I can turn the TV on/off with HA but I cant add this in the automation.

Does anybody know ?

Thx

Welcome to HA! :slightly_smiling_face:
Please read this first.
Thanks