I have a LG CX OLED TV which is integrated into HA via config.
All seems to work well, but every now and then the STATE of the registered media player switches to OFF while I am watching TV causing automation to be triggered unintentionally.
If you don’t need the automations to fire immediately then you can have your automation say that it has to be off for 20 seconds or something.
Or disable it and use a ESP check the voltage on the USB port.
I have that on our old dumb kitchen TV, an ESP, a voltage divider connected to the USB port.
It works great.