trainman419 / python-cec

Other
170 stars 42 forks source link

Support for setting the `python-cec` device to audio system #53

Open johnboiles opened 3 years ago

johnboiles commented 3 years ago

Background: I'm trying to pretend to be an ARC device so that I can intercept volume commands from my TCL635 TV and send IR codes for my Vizio soundbar. I'm able to convince my TV to send me volume commands using cec-client -t a (advertise as an audio device) and then sending txn 50:C3 (CEC_OPCODE_REPORT_ARC_STARTED) right after startup. I'm trying to do the same thing with this library.

Is there a way to configure the python-cec device as an audio device?

Reading though the code I think this is the relevant line. If I'm right, it looks like it's not configurable. I'd be interested in making this change, but wanted to see if you had any thoughts first.

solarmill commented 2 years ago

I am also very interested in this. I have the exact same use case, wanting an AppleTV to think there is an ARC device on the HDMI line so it will send volume commands, and this change would help to emulate that device more easily.