Thie is the openHAB2 binding for the Apple-TV 3/4.
Check out Binding for Apple-TV for the latest release (beta1) and later posts. Happy to receive your feedback in this post or by PM.
Check the README for additional information.
Note
It integrates the PyATV Python library, which implements the protocol layer. The binding includes also platform specific stuff (jpy Java/Phyton bridge). All modules are included in the binding package and the binding tries to auto-select them. An upcoming version will allow to overwrite this auto-detection in case something went wrong or you have specific installation requirements.
Thanks postlund for his great work in contributing the PyATV library (https://github.com/postlund/pyatv) and the jpy team (https://github.com/bcdev/jpy).
Initial post:
I finished some prototyping to implement a binding for Apple-TV control. The binding will be based pyATV (a Python library). This will be wrapped into the binding using jpy (Java-Python bridge). The binding jar includes a pyatv version, which has a minor change so I could use the same functionality as the cli version supplies.
Target #1 is to implement basic control (top_menu, up, down etc.). This already works with the cli, but pyatv needs to reconnect for any sequence, which takes about 3s = too slow for a convinient UX.
Next step could be retrieving artwork, url etc.
Please feel free to join with ideas etc. Iāll publish the repo link jere once alpha1 is ready to test.
Check ATV4 - Apple TV Binding for discussion around using pyatv