homebridge-apple-tv icon indicating copy to clipboard operation
homebridge-apple-tv copied to clipboard

Can the Volume Buttons be added as commands?

Open jat80 opened this issue 6 years ago • 6 comments

Just wondering if this can be done? @lprhodes

jat80 avatar Apr 09 '18 01:04 jat80

Its about how you control your Volume of the AppleTV...if you can control it via hddmi or WLan it could not be a problem...but if you control your Suroundsystem via IR then you logically need a transmitter on xour pi to send those codes

MrDrache333 avatar Apr 09 '18 04:04 MrDrache333

Yeah, the AppleTV doesn't really have a "volume" per se, it either controls the TV via infrared through the remote or it controls the TV via HDMI. You should look into controlling your TV/amp/soundsystem, that's what I'm doing.

normen avatar Apr 09 '18 13:04 normen

The Apple TV does have its own volume, for like when you have headphones as your output.

epheterson avatar Apr 09 '18 15:04 epheterson

In that case it controls the (I guess bluetooth in your case?) headphone volume.

There is no software volume in the Apple TV and I am very happy Apple didn't add it. Theres too many people having their gain staging completely messed up because of volume knobs and options in the silliest places.

normen avatar Apr 09 '18 15:04 normen

You can of cause log the Commands the AppleTV Remote send with IR to the Apple TV via an IR Receiver (maybe Arduino (i think i have one, than i will test that)). Than you can send the same commands via an Transceiver over your for example Raspberry Pi...than you can control the Volume

MrDrache333 avatar Apr 09 '18 15:04 MrDrache333

I tested that...i wired an IR Receiver onto my Arduino Board and runned some Code ive Written and....The HEX Code, the Apple TV Remote sends are

For Volume +: Alternating 810 and 10 for each Press on the Button

For - Volume: Alternating 811 and 11 for each Press on the Button

Holding the Button just Repeats the sende code

So you can of cause use this Code and Send it with an IR Diode with a Library on you Raspberry Pi

Interesting is that there are no IR Code for the other Buttons (Menu, TV, Siri and Play/Pause)....only the Volume Buttons...that underlines the Statement that the Volume COntrol is not implemented in the Remote API

MrDrache333 avatar Apr 09 '18 16:04 MrDrache333