Binding for Apple-TV

I have it working!

Items

String Atv_Remote "ATV [%s]" {channel="appletv:device:34fc39d8:control#remoteKey"}

Sitemap

Switch item=Atv_Remote mappings=[up = "^" ]
Switch item=Atv_Remote mappings=[left = "<", select = "Sel", right = ">" ]
Switch item=Atv_Remote mappings=[menu = "Menu", down = "  v   ", play = "Play" ]
Switch item=Atv_Remote mappings=[previous='Prev', pause='Pause', next='Next']

Log on startup

2019-02-24 20:48:30.759 [DEBUG] [org.openhab.binding.appletv         ] - BundleEvent INSTALLED - org.openhab.binding.appletv
2019-02-24 20:48:31.027 [DEBUG] [org.openhab.binding.appletv         ] - BundleEvent RESOLVED - org.openhab.binding.appletv
2019-02-24 20:48:31.032 [DEBUG] [org.openhab.binding.appletv         ] - BundleEvent [unknown:512] - org.openhab.binding.appletv
2019-02-24 20:48:34.011 [DEBUG] [org.openhab.binding.appletv         ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=83, service.bundleid=191, service.scope=bundle, component.name=org.openhab.binding.appletv.internal.AppleTVHandlerFactory, component.id=45} - org.openhab.binding.appletv
2019-02-24 20:48:39.486 [DEBUG] [org.openhab.binding.appletv         ] - BundleEvent STARTING - org.openhab.binding.appletv
2019-02-24 20:48:39.494 [DEBUG] [org.openhab.binding.appletv         ] - BundleEvent STARTED - org.openhab.binding.appletv
2019-02-24 20:48:39.517 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.Factory: Activate HandlerFactory
2019-02-24 20:49:00.145 [INFO ] [letv.internal.handler.AppleTVHandler] - Apple-TV.Handler: Initializing AppleTV
2019-02-24 20:49:00.219 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: Initialize PyATV (current installation path: 'null')
2019-02-24 20:49:00.227 [INFO ] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: Modules will be installed in '/var/lib/openhab2/tmp/ohlib-683765653998905557'
2019-02-24 20:49:00.229 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: Platform info: 'linux', architecture: 'arm'
2019-02-24 20:49:00.232 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpyLib=lib/jpy/lib.linux-armv7l-3.5
2019-02-24 20:49:00.235 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpy.pythonExecutable: /usr/bin/python3
2019-02-24 20:49:00.237 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpy.pythonLib: /usr/lib/arm-linux-gnueabihf/libpython3.5m.so
2019-02-24 20:49:00.240 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpy.jpyLib: /var/lib/openhab2/tmp/ohlib-683765653998905557/jpy.so
2019-02-24 20:49:00.242 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpy.jdlLib: /var/lib/openhab2/tmp/ohlib-683765653998905557/jdl.so
2019-02-24 20:49:00.245 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: jpy.pythonPrefix: /usr
2019-02-24 20:49:00.385 [DEBUG] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: Starting Python
2019-02-24 20:49:00.776 [INFO ] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: load PyATV
2019-02-24 20:49:04.862 [INFO ] [pletv.internal.AppleTVHandlerFactory] - Apple-TV.PyATV: Sending command top_menu to ip 192.168.0.72, lid 0x86AD23F7032474BC
2019-02-24 20:49:04.990 [DEBUG] [letv.internal.handler.AppleTVHandler] - Apple-TV.Handler: PyATV installation path: /var/lib/openhab2/tmp/ohlib-683765653998905557