- Posts: 21
- Thank you received: 0
Recent-ish Apple TV OS Upgrade causing driver to disconnect
- Mark Stocku
- Topic Author
- Offline
- User
-
Less
More
3 weeks 1 day ago #5020
by Mark Stocku
Recent-ish Apple TV OS Upgrade causing driver to disconnect was created by Mark Stocku
Dave(s),
It appears that the most recent ATV update (of about a month or so ago) has caused the Apple TV Driver to disconnect. This time its not a permanent disconnect, If I click the Apple TV provided remote the driver will reconnect. Here is the output from the log I receive when I try to initially run a command.
14/07/2026 11:07:40.07 · DEBUG · AppleTV.TX: Appletv Family Room - app_list14/07/2026 11:07:40.07 · DEBUG · AppleTV.TX: - atvremote --id 42:D4:04:CD:B5:DC --companion-credentials 7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:07fdbd8967f9dfd5ec21bf71f0330b015d3290b7f94ce09739e974220c751535:34304434303443442d423544432d343742302d384235452d363546374341453037363936:33303462306362642d383736342d343464612d393936642d376363643137383933313161 app_list14/07/2026 11:07:50.07 · DEBUG · AppleTV.RX: Appletv Family Room - 2026-07-14 11:07:45 ERROR [pyatv.protocols.companion]: Could not fetch SystemStatus, power_state will not work (Command FetchAttentionState failed) Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/tasks.py", line 490, in wait_for return fut.result() ^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait await fut asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 163, in _send_command resp = await self._protocol.exchange_opack( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opack return await self._exchange_generic_opack(frame_type, data, identifier, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opack unpacked_object = await self._queues[identifier].wait(timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/support/collections.py", line 160, in wait await asyncio.wait_for(self._event.wait(), timeout) File "/usr/lib/python3.11/asyncio/tasks.py", line 492, in wait_for raise exceptions.TimeoutError() from exc TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/__init__.py", line 211, in initialize system_status = await self.api.fetch_attention_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 346, in fetch_attention_state resp = await self._send_command("FetchAttentionState", {}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 174, in _send_command raise exceptions.ProtocolError(f"Command {identifier} failed") from ex pyatv.exceptions.ProtocolError: Command FetchAttentionState failed14/07/2026 11:07:50.07 · DEBUG · AppleTV.TX: - http://localhost:41144/connect/42:D4:04:CD:B5:DC?airplay=7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:a74ece2098b87936c62fc7a561c0aa95683801c9017785d473e8d015c493293e:34304434303443442d423544432d343742302d384235452d363546374341453037363936:39323537386265342d656433652d346430652d616633642d376363336236396264326264&companion=7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:07fdbd8967f9dfd5ec21bf71f0330b015d3290b7f94ce09739e974220c751535:34304434303443442d423544432d343742302d384235452d363546374341453037363936:33303462306362642d383736342d343464612d393936642d37636364313738393331316114/07/2026 11:07:50.07 · DEBUG · AppleTV.RX: Appletv Family Room - Traceback (most recent call last):File "/usr/lib/python3.11/asyncio/tasks.py", line 490, in wait_forreturn fut.result()^^^^^^^^^^^^File "/usr/lib/python3.11/asyncio/locks.py", line 213, in waitawait futasyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last):File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 163, in _send_commandresp = await self._protocol.exchange_opack(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opackreturn await self._exchange_generic_opack(frame_type, data, identifier, timeout)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opackunpacked_object = await self._queues[identifier].wait(timeout)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/support/collections.py", line 160, in waitawait asyncio.wait_for(self._event.wait(), timeout)File "/usr/lib/python3.11/asyncio/tasks.py", line 492, in wait_forraise exceptions.TimeoutError() from excTimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last):File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 978, in _run_applicationreturn await cli_handler(loop)^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 723, in cli_handlerreturn await _handle_commands(args, config, storage, loop)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 862, in _handle_commandsret = await _handle_device_command(args, cmd, atv, storage, loop)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 925, in _handle_device_commandreturn await _exec_command(atv.apps, cmd, True, *cmd_args)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 945, in _exec_commandvalue = await tmp(*args)^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/core/facade.py", line 389, in app_listreturn await self.relay("app_list")()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/__init__.py", line 159, in app_listapp_list = await self.api.app_list()^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 267, in app_listreturn await self._send_command("FetchLaunchableApplicationsEvent", {})^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 174, in _send_commandraise exceptions.ProtocolError(f"Command {identifier} failed") from expyatv.exceptions.ProtocolError: Command FetchLaunchableApplicationsEvent failed >>> An error occurred, full stack trace above 14/07/2026 11:07:50.07 · ERROR · AppleTV.GetApps - Error in GetAppleApps - Index was outside the bounds of the array.14/07/2026 11:07:55.07 · DEBUG · AppleTV.RX: - Connected to device 42:D4:04:CD:B5:DC14/07/2026 11:08:03.08 · DEBUG · Server.doCommand - AV|12~Remote~home from dashboard-fx-b14o14/07/2026 11:08:03.08 · DEBUG · AppleTV.doCommand - Cmd=[12~Remote~home] Client=[dashboard-fx-b14o]14/07/2026 11:08:03.08 · DEBUG · AppleTV.TX: Appletv Family Room - home14/07/2026 11:08:03.08 · DEBUG · AppleTV.RX: Appletv Family Room - OK
It appears that the most recent ATV update (of about a month or so ago) has caused the Apple TV Driver to disconnect. This time its not a permanent disconnect, If I click the Apple TV provided remote the driver will reconnect. Here is the output from the log I receive when I try to initially run a command.
14/07/2026 11:07:40.07 · DEBUG · AppleTV.TX: Appletv Family Room - app_list14/07/2026 11:07:40.07 · DEBUG · AppleTV.TX: - atvremote --id 42:D4:04:CD:B5:DC --companion-credentials 7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:07fdbd8967f9dfd5ec21bf71f0330b015d3290b7f94ce09739e974220c751535:34304434303443442d423544432d343742302d384235452d363546374341453037363936:33303462306362642d383736342d343464612d393936642d376363643137383933313161 app_list14/07/2026 11:07:50.07 · DEBUG · AppleTV.RX: Appletv Family Room - 2026-07-14 11:07:45 ERROR [pyatv.protocols.companion]: Could not fetch SystemStatus, power_state will not work (Command FetchAttentionState failed) Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/tasks.py", line 490, in wait_for return fut.result() ^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/locks.py", line 213, in wait await fut asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 163, in _send_command resp = await self._protocol.exchange_opack( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opack return await self._exchange_generic_opack(frame_type, data, identifier, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opack unpacked_object = await self._queues[identifier].wait(timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/support/collections.py", line 160, in wait await asyncio.wait_for(self._event.wait(), timeout) File "/usr/lib/python3.11/asyncio/tasks.py", line 492, in wait_for raise exceptions.TimeoutError() from exc TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/__init__.py", line 211, in initialize system_status = await self.api.fetch_attention_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 346, in fetch_attention_state resp = await self._send_command("FetchAttentionState", {}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 174, in _send_command raise exceptions.ProtocolError(f"Command {identifier} failed") from ex pyatv.exceptions.ProtocolError: Command FetchAttentionState failed14/07/2026 11:07:50.07 · DEBUG · AppleTV.TX: - http://localhost:41144/connect/42:D4:04:CD:B5:DC?airplay=7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:a74ece2098b87936c62fc7a561c0aa95683801c9017785d473e8d015c493293e:34304434303443442d423544432d343742302d384235452d363546374341453037363936:39323537386265342d656433652d346430652d616633642d376363336236396264326264&companion=7fc848830fc0b15e42c67d8c597e64ed1f22f10bb80076724fbce3bc437a7cce:07fdbd8967f9dfd5ec21bf71f0330b015d3290b7f94ce09739e974220c751535:34304434303443442d423544432d343742302d384235452d363546374341453037363936:33303462306362642d383736342d343464612d393936642d37636364313738393331316114/07/2026 11:07:50.07 · DEBUG · AppleTV.RX: Appletv Family Room - Traceback (most recent call last):File "/usr/lib/python3.11/asyncio/tasks.py", line 490, in wait_forreturn fut.result()^^^^^^^^^^^^File "/usr/lib/python3.11/asyncio/locks.py", line 213, in waitawait futasyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last):File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 163, in _send_commandresp = await self._protocol.exchange_opack(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opackreturn await self._exchange_generic_opack(frame_type, data, identifier, timeout)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opackunpacked_object = await self._queues[identifier].wait(timeout)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/support/collections.py", line 160, in waitawait asyncio.wait_for(self._event.wait(), timeout)File "/usr/lib/python3.11/asyncio/tasks.py", line 492, in wait_forraise exceptions.TimeoutError() from excTimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last):File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 978, in _run_applicationreturn await cli_handler(loop)^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 723, in cli_handlerreturn await _handle_commands(args, config, storage, loop)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 862, in _handle_commandsret = await _handle_device_command(args, cmd, atv, storage, loop)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 925, in _handle_device_commandreturn await _exec_command(atv.apps, cmd, True, *cmd_args)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/scripts/atvremote.py", line 945, in _exec_commandvalue = await tmp(*args)^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/core/facade.py", line 389, in app_listreturn await self.relay("app_list")()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/__init__.py", line 159, in app_listapp_list = await self.api.app_list()^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 267, in app_listreturn await self._send_command("FetchLaunchableApplicationsEvent", {})^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/pyatv/protocols/companion/api.py", line 174, in _send_commandraise exceptions.ProtocolError(f"Command {identifier} failed") from expyatv.exceptions.ProtocolError: Command FetchLaunchableApplicationsEvent failed >>> An error occurred, full stack trace above 14/07/2026 11:07:50.07 · ERROR · AppleTV.GetApps - Error in GetAppleApps - Index was outside the bounds of the array.14/07/2026 11:07:55.07 · DEBUG · AppleTV.RX: - Connected to device 42:D4:04:CD:B5:DC14/07/2026 11:08:03.08 · DEBUG · Server.doCommand - AV|12~Remote~home from dashboard-fx-b14o14/07/2026 11:08:03.08 · DEBUG · AppleTV.doCommand - Cmd=[12~Remote~home] Client=[dashboard-fx-b14o]14/07/2026 11:08:03.08 · DEBUG · AppleTV.TX: Appletv Family Room - home14/07/2026 11:08:03.08 · DEBUG · AppleTV.RX: Appletv Family Room - OK
Please Log in to join the conversation.
Time to create page: 0.205 seconds