There is sadly no hdmi CEC support on Most GPUs for pcs. So when you want your tv to turn on and off with your pc it is only possible with the tv being reachable from your pc via ip.
I believe LG doesn’t advertise such an api via Bluetooth
I believe LG doesn’t advertise such an api via Bluetooth
One could build a IR emitter but you need soldering skills for that or buy a usb one which cost north of 30€ + shipping.