-
-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
Description
Describe the bug
Opened following maxileith/homebridge-appletv-enhanced#1245 (homebridge plugin that uses pyatv, dev says this is a pyatv bug)
Additional detail can be found in the linked issue
Error log
[2/8/2026, 12:07:42 PM] [Apple TV Enhanced] [E] ATV (76:52:BF:D1:5F:6E): Unexpected atvremote response: 2026-02-08 12:07:42 ERROR [pyatv.protocols.companion]: Could not fetch SystemStatus, power_state will not work (Command failed: No request handler)
Traceback (most recent call last):
File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.12/site-packages/pyatv/protocols/companion/__init__.py", line 222, in initialize
system_status = await self.api.fetch_attention_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 439, in fetch_attention_state
resp = await self._send_command("FetchAttentionState", {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.12/site-packages/pyatv/protocols/companion/api.py", line 172, in _send_command
resp = await self._protocol.exchange_opack(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 153, in exchange_opack
return await self._exchange_generic_opack(frame_type, data, identifier, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/homebridge/appletv-enhanced/.venv/lib/python3.12/site-packages/pyatv/protocols/companion/protocol.py", line 174, in _exchange_generic_opack
raise exceptions.ProtocolError(f"Command failed: {unpacked_object['_em']}")
pyatv.exceptions.ProtocolError: Command failed: No request handlerApp: Arcade (com.apple.Arcade), App: App Store (com.apple.TVAppStore), App: Partner tv+ (il.co.partnertv), App: Search (com.apple.TVSearch), App: VPN Client Bee (uk.co.bewhere.vpn.flowclient), App: FEB (com.topspeed.febbox), App: Photos (com.apple.TVPhotos), App: Computers (com.apple.TVHomeSharing), App: Stremio (com.stremio.one), App: TVMPlayer (com.tvmb.player), App: Music (com.apple.TVMusic), App: TV (com.apple.TVWatchList), App: Dropout (com.collegehumor.chdropout), App: Windscribe (com.windscribe), App: 13+ (com.yourcompany.iReshet), App: YouTubeUnstable (com.google.ios.youtube.9H7C83Q95H), App: 12+ (com.keshet.makoVODiphone), App: SpaceLeft TV (com.magnateinteractive.SpaceLeftTV), App: YouTube (com.google.ios.youtube), App: Movies (com.apple.TVMovies), App: Kan Box (com.applicaster.il.ch1), App: iWebTV (com.swishly.webtvpro), App: Kodi (org.xbmc.kodi-tvos.9H7C83Q95H), App: Jetpack Joyride (com.halfbrick.jetpack), App: Settings (com.apple.TVSettings), App: Netflix (com.netflix.Netflix), App: HolaVPN (org.hola.hola2), App: Disney CR (com.disney.disneycrossyroad), App: Couch Streamer (EnemiesByNature.Couch-Streaming-Web), App: TestFlight (com.apple.TestFlight), App: Speedtest (com.ookla.speedtest), App: VLC (org.videolan.vlc-ios), App: Podcasts (com.apple.podcasts)
How to reproduce the bug?
Happens at random
What is expected behavior?
Connection either succeeds or is retired.
Regardless a retry of the whole server resolves it immediately so it does not seem to be a device/network issue
Operating System
Linux
Python
3.12
pyatv
0.17.0
Device
Apple TV 4K tvOS 26.2
Additional context
None
Reactions are currently unavailable