Television Speaker service not working
Hey, I'm back, with a new tv!
We got a new Philips TV (50PUS8804) which comes with Android 9, so logically I decided to test this Android TV HomeKit integration again and it works! For the most part.
So far I've encountered 3 issues with this new TV:
- The power state would always report as "Off". While turning on worked fine, turning off didn't work because of this.
- The home app always reports "Home" as the input. Even after switching, but switching input does work.
- Adjusting the volume, by using the control center remote and the physical volume buttons, doesn't work.
I was able to fix 1 myself and gave up on 2, but issue 3 is bugging me.
For some reason, I can't get volume control to work. The remote just shows the iOS device's volume control and doesn't seem to register the Television Speaker service. When I try to adjust the volume the callbacks in TelevsionSpeakerService are never called. I've tried switching to relative volume control but that doesn't seem to be working either.
It can poll the volume just fine, according to the log:
04-12 23:46:34.048 27072 27118 D HomeKit:XTvHttp: Sending GET https://127.0.0.1:1926/6/audio/volume (authorization: Digest username="f2emzqfLnS8zElWg", realm="XTV", nonce="MTU4NjcyNzk5NDA0NzozOTA4ZjI5M2I1NWY5YWI5NTZhZDU5MWY4NWE2NjVhOQ==", uri="/6/audio/volume", response="e813dc381ee6efbf3f11104634e475a7", algorithm=MD5)
04-12 23:46:34.094 27072 27118 I HomeKit:TelevisionSpeaker: Polling volume; was 21
04-12 23:46:34.095 27072 27118 D HomeKit:XTvHttp: Sending GET https://127.0.0.1:1926/6/audio/volume (authorization: Digest username="f2emzqfLnS8zElWg", realm="XTV", nonce="MTU4NjcyNzk5NDA5NDphNGU0ODI4ZTA2NTczMzhlNDkxYjE3ZWRjM2EwNTZkNA==", uri="/6/audio/volume", response="2e877d1ba1c45961ad302bbdca562b63", algorithm=MD5)
Any idea how I might be able to fix the volume control issue?