Applel TV integration Error

Upon installing the integration, my AppleTV device is found (without having to specify the ip address) but when I select the device to finilize the installation process I reveive an errror:

Oops!

Something went wrong while setting up the integration.

Other

Any ideas anyone? My Apple TV is 4K (A2169).

Cheers Eelco

Please post the logs from the integration after the error occured (settings/development/logs). Also make sure that all settings on the Apple TV are correct.: https://support.unfoldedcircle.com/hc/en-us/articles/19479576638620-Apple-TV-integration

how do i get to the logs? SSH?

Like I wrote: Go to Settings/Development/Logs and choose the Apple TV integration from the dropdown.

2025-10-19 17:17:51.748674 +00:00 intg-appletv INFO DEBUG:driver:Client disconnect command: disconnecting device(s)
2025-10-19 17:17:51.744851 +00:00 intg-appletv INFO INFO:ucapi.api:WS: Client removed
2025-10-19 17:17:47.745972 +00:00 intg-appletv INFO client_session: <aiohttp.client.ClientSession object at 0xffffb962a650>
2025-10-19 17:17:47.745972 +00:00 intg-appletv INFO ERROR:asyncio:Unclosed client session
2025-10-19 17:17:47.744845 +00:00 intg-appletv INFO DEBUG:tv:[Woonkamer] Polling was already stopped
2025-10-19 17:17:47.743869 +00:00 intg-appletv INFO DEBUG:tv:[Woonkamer] Disconnecting from device
2025-10-19 17:17:47.742533 +00:00 intg-appletv INFO INFO:setup_flow:Setup was aborted with code: IntegrationSetupError.OTHER
2025-10-19 17:17:47.742533 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] <-: {ā€œkindā€:ā€œeventā€,ā€œmsgā€:ā€œabort_driver_setupā€,ā€œcatā€:ā€œDEVICEā€,ā€œtsā€:ā€œ2025-10-19T17:17:47.737172711Zā€,ā€œmsg_dataā€:{ā€œerrorā€:ā€œOTHERā€}}
2025-10-19 17:17:47.734818 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜STOP’, ā€˜state’: ā€˜ERROR’, ā€˜error’: ā€˜OTHER’}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:47.230320 +00:00 intg-appletv INFO ERROR:ucapi.api:Exception in setup handler, aborting setup! Exception: not authenticated
2025-10-19 17:17:47.190596 +00:00 intg-appletv INFO DEBUG:tv:[Woonkamer] Pairing started
2025-10-19 17:17:47.189613 +00:00 intg-appletv INFO DEBUG:setup_flow:Pairing process begin
2025-10-19 17:17:47.117123 +00:00 intg-appletv INFO DEBUG:setup_flow:Chosen Apple TV: 4A:86:3F:6C:87:A1
2025-10-19 17:17:47.117123 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={ā€˜address’: ā€˜ā€™, ā€˜choice’: ā€˜4A:86:3F:6C:87:A1’, ā€˜global_volume’: ā€˜false’})
2025-10-19 17:17:47.114049 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜SETUP’, ā€˜state’: ā€˜SETUP’}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:46.612294 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜resp’, ā€˜req_id’: 37, ā€˜code’: 200, ā€˜msg’: ā€˜result’, ā€˜msg_data’: {}}
2025-10-19 17:17:46.608541 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] <-: {ā€œkindā€:ā€œreqā€,ā€œidā€:37,ā€œmsgā€:ā€œset_driver_user_dataā€,ā€œmsg_dataā€:{ā€œinput_valuesā€:{ā€œaddressā€:ā€œā€,ā€œchoiceā€:ā€œ4A:86:3F:6C:87:A1ā€,ā€œglobal_volumeā€:ā€œfalseā€}}}
2025-10-19 17:17:42.915137 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜SETUP’, ā€˜state’: ā€˜WAIT_USER_ACTION’, ā€˜require_user_action’: {ā€˜input’: {ā€˜title’: {ā€˜en_US’: ā€˜Please choose your Apple TV’, ā€˜de_DE’: ā€˜Bitte wƤhle deinen Apple TV’, ā€˜es_ES’: ā€˜Por favor, elige tu Apple TV’, ā€˜fr_FR’: ā€˜Choisissez votre Apple TV’, ā€˜nl_NL’: ā€˜Kies je Apple TV’, ā€˜sv_SE’: ā€˜VƤnligen vƤlj din Apple TV’}, ā€˜settings’: [{ā€˜field’: {ā€˜dropdown’: {ā€˜value’: ā€˜4A:86:3F:6C:87:A1’, ā€˜items’: [{ā€˜id’: ā€˜4A:86:3F:6C:87:A1’, ā€˜label’: {ā€˜en’: ā€˜Woonkamer (192.168.1.72)’}}]}}, ā€˜id’: ā€˜choice’, ā€˜label’: {ā€˜en_US’: ā€˜Choose your Apple TV’, ā€˜de_DE’: ā€˜WƤhle deinen Apple TV’, ā€˜es_ES’: ā€˜Elige tu Apple TV’, ā€˜fr_FR’: ā€˜Choisissez votre Apple TV’, ā€˜nl_NL’: ā€˜Kies je Apple TV’, ā€˜sv_SE’: ā€˜VƤlj din Apple TV’}}, {ā€˜id’: ā€˜global_volume’, ā€˜label’: {ā€˜en_US’: ā€˜Change volume on all connected devices’, ā€˜de_DE’: ā€˜LautstƤrkeregelung auf allen verbundenen GerƤten’, ā€˜es_ES’: ā€˜Cambia el volumen en todos los dispositivos conectados’, ā€˜fr_FR’: ā€˜RĆ©gler le volume sur tous les appareils connectĆ©s’, ā€˜nl_NL’: ā€˜Wijzig volume op alle aangesloten apparaten’, ā€˜sv_SE’: ā€˜Styr volymen pĆ„ alla anslutna enheter’}, ā€˜field’: {ā€˜checkbox’: {ā€˜value’: True}}}]}}}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:42.911121 +00:00 intg-appletv INFO INFO:setup_flow:Found: Apple TV 4K (gen 2), tvOS 26.0.1, Woonkamer (192.168.1.72)
2025-10-19 17:17:37.843890 +00:00 intg-appletv INFO INFO:discover:Starting Apple TV device discovery
2025-10-19 17:17:37.841137 +00:00 intg-appletv INFO DEBUG:setup_flow:Starting driver setup with Apple TV discovery
2025-10-19 17:17:37.841137 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={ā€˜address’: ā€˜ā€™})
2025-10-19 17:17:37.838108 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜SETUP’, ā€˜state’: ā€˜SETUP’}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:37.337173 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜resp’, ā€˜req_id’: 36, ā€˜code’: 200, ā€˜msg’: ā€˜result’, ā€˜msg_data’: {}}
2025-10-19 17:17:37.332525 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] <-: {ā€œkindā€:ā€œreqā€,ā€œidā€:36,ā€œmsgā€:ā€œset_driver_user_dataā€,ā€œmsg_dataā€:{ā€œinput_valuesā€:{ā€œaddressā€:ā€œā€}}}
2025-10-19 17:17:34.820354 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜resp’, ā€˜req_id’: 35, ā€˜code’: 200, ā€˜msg’: <WsMsgEvents.DRIVER_VERSION: ā€˜driver_version’>, ā€˜msg_data’: {ā€˜name’: ā€˜Apple TV’, ā€˜version’: {ā€˜api’: ā€˜0.7.1’, ā€˜driver’: ā€˜0.19.0’}}}
2025-10-19 17:17:34.816355 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] <-: {ā€œidā€:35,ā€œkindā€:ā€œreqā€,ā€œmsgā€:ā€œget_driver_versionā€}
2025-10-19 17:17:34.816355 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜SETUP’, ā€˜state’: ā€˜WAIT_USER_ACTION’, ā€˜require_user_action’: {ā€˜input’: {ā€˜title’: {ā€˜en_US’: ā€˜Setup mode’, ā€˜de_DE’: ā€˜Setup Fortschritt’, ā€˜es_ES’: ā€˜Modo de configuración’, ā€˜fr_FR’: ā€˜Progression de la configuration’, ā€˜nl_NL’: ā€˜Setup-modus’, ā€˜sv_SE’: ā€˜Konfigureringsprocess’}, ā€˜settings’: [{ā€˜id’: ā€˜info’, ā€˜label’: {ā€˜en_US’: ā€˜Discover or connect to Apple TV device’, ā€˜de_DE’: ā€˜Suche oder Verbinde auf Apple TV GerƤt’, ā€˜es_ES’: ā€˜Descubre o conecta con el dispositivo Apple TV’, ā€˜fr_FR’: ā€œDĆ©couvrir ou connexion Ć  l’appareil Apple TVā€, ā€˜nl_NL’: ā€˜Ontdek of maak verbinding met Apple TV apparaat’, ā€˜sv_SE’: ā€˜UpptƤck eller anslut till Apple TV-enhet’}, ā€˜field’: {ā€˜label’: {ā€˜value’: {ā€˜en_US’: ā€˜Leave blank to use auto-discovery and click Next.\n\nThe device must be on the same network as the remote.’, ā€˜de_DE’: ā€˜Leer lassen, um automatische Erkennung zu verwenden und auf Weiter klicken.\n\nDas GerƤt muss sich im gleichen Netzwerk wie die Fernbedienung befinden.’, ā€˜es_ES’: ā€˜Deje en blanco para usar auto-discovery y haga click en Siguiente.\n\nEl dispositivo debe estar en la misma red que el mando a distancia.’, ā€˜fr_FR’: ā€œLaissez le champ vide pour utiliser la dĆ©couverte automatique et cliquez sur Suivant.\n\nL’appareil doit ĆŖtre sur le mĆŖme rĆ©seau que la tĆ©lĆ©commande.ā€, ā€˜nl_NL’: ā€˜Laat dit veld leeg om auto-discovery te gebruiken en klik Volgende.\n\nHet apparaat moet op hetzelfde netwerk aangesloten zijn als de afstandsbediening.’, ā€˜sv_SE’: ā€˜LƤmna tomt fƶr att hitta automatiskt och klicka pĆ„ NƤsta.\n\nEnheten mĆ„ste vara pĆ„ samma nƤtverk som fjƤrrkontrollen.’}}}}, {ā€˜id’: ā€˜address’, ā€˜label’: {ā€˜en_US’: ā€˜IP address (same network only)’, ā€˜de_DE’: ā€˜IP-Adresse (nur im gleichen Netzwerk)’, ā€˜es_ES’: ā€˜Dirección IP (solo de la misma red)’, ā€˜fr_FR’: ā€˜Adresse IP (seulement dans le mĆŖme rĆ©seau)’, ā€˜nl_NL’: ā€˜IP-adres (alleen op hetzelfde netwerk)’, ā€˜sv_SE’: ā€˜IP-adress (endast samma nƤtverk)’}, ā€˜field’: {ā€˜text’: {ā€˜value’: ā€˜ā€™}}}]}}}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:34.803878 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜event’, ā€˜msg’: <WsMsgEvents.DRIVER_SETUP_CHANGE: ā€˜driver_setup_change’>, ā€˜msg_data’: {ā€˜event_type’: ā€˜SETUP’, ā€˜state’: ā€˜SETUP’}, ā€˜cat’: <EventCategory.DEVICE: ā€˜DEVICE’>}
2025-10-19 17:17:34.800628 +00:00 intg-appletv INFO DEBUG:driver:Configuration cleared, disconnecting & removing all configured ATV instances
2025-10-19 17:17:34.799413 +00:00 intg-appletv INFO DEBUG:setup_flow:Starting driver setup, reconfigure=False
2025-10-19 17:17:34.797546 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜resp’, ā€˜req_id’: 34, ā€˜code’: 200, ā€˜msg’: ā€˜result’, ā€˜msg_data’: {}}
2025-10-19 17:17:34.795803 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] <-: {ā€œkindā€:ā€œreqā€,ā€œidā€:34,ā€œmsgā€:ā€œsetup_driverā€,ā€œmsg_dataā€:{ā€œreconfigureā€:false,ā€œsetup_dataā€:{}}}
2025-10-19 17:17:34.794100 +00:00 intg-appletv INFO DEBUG:ucapi.api:[(ā€˜127.0.0.1’, 48748)] ->: {ā€˜kind’: ā€˜resp’, ā€˜req_id’: 0, ā€˜code’: 200, ā€˜msg’: <WsMessages.AUTHENTICATION: ā€˜authentication’>, ā€˜msg_data’: {}}
2025-10-19 17:17:34.788353 +00:00 intg-appletv INFO INFO:ucapi.api:WS: Client added: (ā€˜127.0.0.1’, 48748)

ERROR:ucapi.api:Exception in setup handler, aborting setup! Exception: not authenticated

Check that you have ā€œAllow Accessā€ set to ā€œAnyone on the Same Networkā€ for AirPlay on your Apple TV. This is also mentioned in the support article I linked above.

1 Like

Ok now i see thanks a lot that helps, sorry for not reading properly! Thanks again works now!

1 Like