Open llamafilm opened 2 years ago
A workaround, until it's fixed, may be to use home assistant. Configure the Apple TV in home assistant and control it from companion using the home assistant plugin.
@danielkihlgren thanks for your suggestion. I've already set it up with pyatv which is working with the generic HTTP module. I was not aware of Home Assistant, but it looks like they are also using pyatv to power their Apple TV integration. Off-topic, but that looks like an interesting project. I'll have to research to see if I want to move my substantial Homebridge setup over to that.
I would like to control an Apple TV 4K. There are a few different IP protocols used by these devices, and a lot of excellent reverse engineering has been done over at https://github.com/postlund/pyatv. It sounds like Companion is the newest protocol, and the only one supported in tvOS 15. Some documentation is at https://pyatv.dev/documentation/protocols/#companion-link.
Apple TV can also be controlled by Bluetooth or IR blaster, but I think a direct IP connection would be the most reliable and efficient option.