I have a Sony kd-65x9000f running Android TV. One of the devices I have connected is my gaming PC. When not in use the PC goes to sleep. I would like it to automatically wake up when I change the TV input to the PC.
My first proposed solution is to have the TV send a WOL request to the PC when I switch to that input, using Tasker or some other app. Has anyone had any success doing something like this?
I have experimented with some more complicated solutions. I have Home Assistant running on a server and can change inputs to the TV and send a WOL request to the PC from there, but sometimes I just want to be able to pick up the remote and change inputs.
An alternative could be to possibly use Home Assistant. Is there a way of adding a custom app to the Android TV home screen that can send a Home Assistant command that can do what I want? This would actually be preferable to my first solution.
I've looked into this as well, I think using Hdmi CEC might be easier. (also my TV doesn't run android TV) But still far from trivial. Your video card must support it, as well as the TV. Then there is the driver aspect. Configuring windows.
Apparently usb CEC adapters exist if your video card doesn't support it. So while I think it's possible, it's a lot of work. I've decided it's not worth it but if you make it happen I'd be very interested in your experience.