Been running the Apple TV version for a year with great results, but... channel tuning takes 6 to 7 seconds before the app is started (Sling TV in my case). I see this error in the logs, reflecting the reason for that delay. I wonder if someone can point me in the right direction... (maybe @ChannelSam?). Thanks.
2026/06/06 15:00:47 [EXECUTE] Running [./scripts/atv/spectrum/bmitune.sh 1501 10.10.11.42]
2026/06/06 15:00:53 [EXECUTE] Stdout: '2026-06-06 15:00:52 ERROR [pyatv.protocols.companion]: Could not fetch SystemStatus, power_state will not work (Command FetchAttentionState failed)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 490, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/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/site-packages/pyatv/protocols/companion/api.py", line 163, in _send_command
resp = await self._protocol.exchange_opack(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-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/site-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/site-packages/pyatv/support/collections.py", line 160, in wait
await asyncio.wait_for(self._event.wait(), timeout)
File "/usr/local/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/site-packages/pyatv/protocols/companion/__init__.py", line 211, in initialize
system_status = await self.api.fetch_attention_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyatv/protocols/companion/api.py", line 346, in fetch_attention_state
resp = await self._send_command("FetchAttentionState", {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-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 failed
'
2026/06/06 15:00:53 [EXECUTE] Stderr: ''
2026/06/06 15:00:53 [EXECUTE] Finished running ./scripts/atv/spectrum/bmitune.sh in 5.74837329s