Hi, i succeed to integrate my AppleTV 3 4 with the beta Github from Postlund. What i hope to manage is when the ATV is off and i press the MENU button on the ATV remote my Onkyo receiver will automaticly switch to the right source to view the content from my ATV.
Can someone please help me with some code?
I’m using Home Assistant 0.108.6 on a RasPi | ATV3 on ios 13.4
It is an interesting idea, but unfortunately not possible. Which keys that are pressed is not possible to catch in the way you like. The power state for Apple TV 3 is also a sad story, so using state of the device is not really an option. If you are using CEC, I think the Apple TV should be able to switch input source automatically.
Hi Pierre, thanks for the reply. Too bad it is (yet) not possible, but who knows later this year it wiil be possible this way. Maybe some other members of the community can help us?
Hey! Don’t get your hope up too much on that though, especially for the Apple TV 3. Those protocols are very limited and also deprecated, so no development is made for them now. I strongly believe that what we have is what we get at this point.
No, it’s the same. Both protocols centers around playback of something and does not inform about things such as launched apps, if a button was pressed or if a certain menu is visible (perhaps with the exception of keyboard). The only way as I see it is to put a proxy between your phone and the Apple TV to intercept the traffic and use that as a trigger. It is possible to do so as I have a proxy application bundled with pyatv, but it would require some work (and I don’t provide a public interface for the proxy at the moment).