2025-06-29 18:02:33.478287 +00:00 intg-appletv INFO DEBUG:driver:Client disconnect command: disconnecting device(s)
2025-06-29 18:02:33.473679 +00:00 intg-appletv INFO INFO:ucapi.api:WS: Client removed
2025-06-29 18:02:24.745253 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Polling was already stopped
2025-06-29 18:02:24.744276 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Disconnecting from device
2025-06-29 18:02:24.743240 +00:00 intg-appletv INFO INFO:setup_flow:Setup was aborted with code: IntegrationSetupError.OTHER
2025-06-29 18:02:24.736251 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"event","msg":"abort_driver_setup","cat":"DEVICE","ts":"2025-06-29T18:02:24.731497297Z","msg_data":{"error":"OTHER"}}
2025-06-29 18:02:24.729487 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "STOP", "state": "ERROR", "error": "OTHER"}, "cat": "DEVICE"}
2025-06-29 18:02:24.224921 +00:00 intg-appletv INFO ERROR:ucapi.api:Exception in setup handler, aborting setup! Exception: Object of type IPv4Address is not JSON serializable
2025-06-29 18:02:24.214510 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Polling was already stopped
2025-06-29 18:02:24.214510 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Disconnecting from device
2025-06-29 18:02:24.210221 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Paired with device!
2025-06-29 18:02:23.288376 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Pairing finished
2025-06-29 18:02:23.288376 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Entering PIN
2025-06-29 18:02:23.285947 +00:00 intg-appletv INFO DEBUG:setup_flow:User has entered the Companion PIN
2025-06-29 18:02:23.285947 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={'address': '10.10.2.243', 'choice': '02:16:C7:8A:2D:D7', 'global_volume': 'true', 'pin_airplay': '3911', 'pin_companion': '2872'})
2025-06-29 18:02:23.282671 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "SETUP"}, "cat": "DEVICE"}
2025-06-29 18:02:22.781504 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 5, "code": 200, "msg": "result", "msg_data": {}}
2025-06-29 18:02:22.777569 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"req","id":5,"msg":"set_driver_user_data","msg_data":{"input_values":{"address":"10.10.2.243","choice":"02:16:C7:8A:2D:D7","global_volume":"true","pin_airplay":"3911","pin_companion":"2872"}}}
2025-06-29 18:02:02.238109 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "WAIT_USER_ACTION", "require_user_action": {"input": {"title": {"en": "Please enter the shown PIN on your Apple TV", "de": "Bitte gib die angezeigte PIN auf deinem Apple TV ein", "fr": "Veuillez entrer le code PIN affich\u00e9 sur votre Apple TV"}, "settings": [{"field": {"number": {"max": 9999, "min": 0, "value": 0}}, "id": "pin_companion", "label": {"en": "Apple TV PIN"}}]}}}, "cat": "DEVICE"}
2025-06-29 18:02:02.237511 +00:00 intg-appletv INFO DEBUG:setup_flow:Device provides PIN
2025-06-29 18:02:02.237197 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Device provides PIN
2025-06-29 18:02:02.189627 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Pairing started
2025-06-29 18:02:02.188627 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Paired with device!
2025-06-29 18:02:01.850648 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Pairing finished
2025-06-29 18:02:01.849424 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Entering PIN
2025-06-29 18:02:01.847739 +00:00 intg-appletv INFO DEBUG:setup_flow:User has entered the AirPlay PIN
2025-06-29 18:02:01.847739 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={'address': '10.10.2.243', 'choice': '02:16:C7:8A:2D:D7', 'global_volume': 'true', 'pin_airplay': '3911'})
2025-06-29 18:02:01.844640 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "SETUP"}, "cat": "DEVICE"}
2025-06-29 18:02:01.342918 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 4, "code": 200, "msg": "result", "msg_data": {}}
2025-06-29 18:02:01.339124 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"req","id":4,"msg":"set_driver_user_data","msg_data":{"input_values":{"address":"10.10.2.243","choice":"02:16:C7:8A:2D:D7","global_volume":"true","pin_airplay":"3911"}}}
2025-06-29 18:01:33.092713 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "WAIT_USER_ACTION", "require_user_action": {"input": {"title": {"en": "Please enter the shown AirPlay-Code on your Apple TV", "de": "Bitte gib die angezeigte AirPlay-Code auf deinem Apple TV ein", "fr": "Veuillez entrer le code AirPlay affich\u00e9 sur votre Apple TV"}, "settings": [{"field": {"number": {"max": 9999, "min": 0, "value": 0}}, "id": "pin_airplay", "label": {"en": "Apple TV AirPlay-Code"}}]}}}, "cat": "DEVICE"}
2025-06-29 18:01:33.092147 +00:00 intg-appletv INFO DEBUG:setup_flow:Device provides AirPlay-Code
2025-06-29 18:01:33.091542 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Device provides PIN
2025-06-29 18:01:32.989347 +00:00 intg-appletv INFO DEBUG:tv:[AppleTV-Studio] Pairing started
2025-06-29 18:01:32.988507 +00:00 intg-appletv INFO DEBUG:setup_flow:Pairing process begin
2025-06-29 18:01:32.831513 +00:00 intg-appletv INFO DEBUG:setup_flow:Chosen Apple TV: 02:16:C7:8A:2D:D7
2025-06-29 18:01:32.830998 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={'address': '10.10.2.243', 'choice': '02:16:C7:8A:2D:D7', 'global_volume': 'true'})
2025-06-29 18:01:32.829151 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "SETUP"}, "cat": "DEVICE"}
2025-06-29 18:01:32.325891 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 3, "code": 200, "msg": "result", "msg_data": {}}
2025-06-29 18:01:32.325891 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"req","id":3,"msg":"set_driver_user_data","msg_data":{"input_values":{"address":"10.10.2.243","choice":"02:16:C7:8A:2D:D7","global_volume":"true"}}}
2025-06-29 18:01:26.452708 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "WAIT_USER_ACTION", "require_user_action": {"input": {"title": {"en": "Please choose your Apple TV", "de": "Bitte w\u00e4hle deinen Apple TV", "fr": "Choisissez votre Apple TV"}, "settings": [{"field": {"dropdown": {"value": "02:16:C7:8A:2D:D7", "items": [{"id": "02:16:C7:8A:2D:D7", "label": {"en": "AppleTV-Studio (10.10.2.243)"}}]}}, "id": "choice", "label": {"en": "Choose your Apple TV", "de": "W\u00e4hle deinen Apple TV", "fr": "Choisissez votre Apple TV"}}, {"id": "global_volume", "label": {"en": "Change volume on all connected devices", "de": "Lautst\u00e4rkeregelung auf allen verbundenen Ger\u00e4ten", "fr": "R\u00e9gler le volume sur tous les appareils connect\u00e9s"}, "field": {"checkbox": {"value": true}}}]}}}, "cat": "DEVICE"}
2025-06-29 18:01:26.451933 +00:00 intg-appletv INFO INFO:setup_flow:Found: Apple TV 4K (gen 3), tvOS 18.5, AppleTV-Studio (10.10.2.243)
2025-06-29 18:01:26.416303 +00:00 intg-appletv INFO INFO:discover:Connecting to ['10.10.2.243']
2025-06-29 18:01:26.413334 +00:00 intg-appletv INFO DEBUG:setup_flow:Starting manual driver setup for: 10.10.2.243
2025-06-29 18:01:26.409073 +00:00 intg-appletv INFO DEBUG:setup_flow:UserDataResponse(input_values={'address': '10.10.2.243'})
2025-06-29 18:01:26.403415 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "SETUP"}, "cat": "DEVICE"}
2025-06-29 18:01:26.415046 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 2, "code": 200, "msg": "result", "msg_data": {}}
2025-06-29 18:01:26.412255 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"req","id":2,"msg":"set_driver_user_data","msg_data":{"input_values":{"address":"10.10.2.243"}}}
2025-06-29 18:01:12.116544 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "WAIT_USER_ACTION", "require_user_action": {"input": {"title": {"en": "Setup mode", "de": "Setup Modus"}, "settings": [{"id": "info", "label": {"en": "Discover or connect to Apple TV device", "de": "Suche oder Verbinde auf Apple TV Ger\u00e4t", "fr": "D\u00e9couvrir ou connexion \u00e0 l'appareil Apple TV"}, "field": {"label": {"value": {"en": "Leave blank to use auto-discovery and click _Next_.The device must be on the same network as the remote.", "de": "Leer lassen, um automatische Erkennung zu verwenden und auf _Weiter_ klicken.Das Ger\u00e4t muss sich im gleichen Netzwerk wie die Fernbedienung befinden.", "fr": "Laissez le champ vide pour utiliser la d\u00e9couverte automatique et cliquez sur _Suivant_.L'appareil doit \u00eatre sur le m\u00eame r\u00e9seau que la t\u00e9l\u00e9commande"}}}}, {"field": {"text": {"value": ""}}, "id": "address", "label": {"en": "IP address (same network only)", "de": "IP-Adresse (nur im gleichen Netzwerk)", "fr": "Adresse IP (seulement dans le m\u00eame r\u00e9seau)"}}]}}}, "cat": "DEVICE"}
2025-06-29 18:01:12.113545 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "event", "msg": "driver_setup_change", "msg_data": {"event_type": "SETUP", "state": "SETUP"}, "cat": "DEVICE"}
2025-06-29 18:01:12.113545 +00:00 intg-appletv INFO DEBUG:driver:Configuration cleared, disconnecting & removing all configured ATV instances
2025-06-29 18:01:12.113545 +00:00 intg-appletv INFO DEBUG:setup_flow:Starting driver setup, reconfigure=False
2025-06-29 18:01:12.108007 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 1, "code": 200, "msg": "result", "msg_data": {}}
2025-06-29 18:01:12.107054 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] <-: {"kind":"req","id":1,"msg":"setup_driver","msg_data":{"reconfigure":false,"setup_data":{}}}
2025-06-29 18:01:12.104446 +00:00 intg-appletv INFO DEBUG:ucapi.api:[('127.0.0.1', 33792)] ->: {"kind": "resp", "req_id": 0, "code": 200, "msg": "authentication", "msg_data": {}}
2025-06-29 18:01:12.102137 +00:00 intg-appletv INFO INFO:ucapi.api:WS: Client added: ('127.0.0.1', 33792)
2025-06-29 18:01:06.080958 +00:00 intg-appletv INFO INFO:ucapi.api:Driver is up: uc_appletv_driver, version: 0.18.1, api: 0.3.0, listening on: 127.0.0.1:8097
2025-06-29 18:01:01.050179 +00:00 intg-appletv INFO INFO:discover:Starting Apple TV device discovery
2025-06-29 18:01:01.049487 +00:00 intg-appletv INFO ERROR:config:Cannot open the config file: [Errno 2] No such file or directory: '/var/uc/integrations/appletv/config/config.json'