-
-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Describe the bug
I’m using pyatv through the Home Assistant Apple TV integration to trigger scenes based on the Apple TV’s states and attributes.
However, I’ve noticed an issue where, when playing video content on platforms like Netflix or Apple TV+, an overlay button like “Skip Intro” appears. This button causes the state of the video to change back to either idle or paused, with the last music attributes played.
As a result, while the video is still playing, the automations triggered by pyatv are incorrect. I’ve tried various workarounds, but none of them have been effective.
Is it possible to prevent the media_content_type from being changed during overlays?
I appreciate your excellent work on pyatv. It has enabled me to create many cool automations.
Error log
2025-07-25T16:25:53.929Z
state: playing
-- source_list: 12+,13+,App Store,Arcade,Behance,Business Insider,Calm,Computers,Cut the Rope 3,Developer,Disney+,F1 TV,Facebook Watch,Hill Dash,Hit Tennis 3,Hungry Shark,Katamari Damacy Rolling LIVE,Movies,Music,Netflix,Photos,Podcasts,Prime Video,Real Racing 3,Relax Melodies,Sasquatch,Search,Settings,SongPop Party,Speed Demons,Speedtest,Subway Tag,Super Impossible Road,TED,Temple Run Legends,TV,Wash Post,yes,YouTube,כאן BOX
-- media_content_type: video
-- media_duration: 3051
-- media_position: 1
-- media_position_updated_at: 2025-07-25T16:25:53.923996+00:00
-- media_title: S4: E8 “Where Are You Going, Where Have You Been?”
-- app_id: com.netflix.Netflix
-- app_name: Netflix
-- entity_picture: /api/media_player_proxy/media_player.living_room_apple_tv?token=79b85a302836f4ddc6be6883c8088c699fdec40a280966361a67c488ccfe062a&cache=com.apple.avkit.20623.d1cc1b5c
-- icon: mdi:apple
-- friendly_name: Living Room Apple TV
-- supported_features: 450487
2025-07-25T16:25:57.909Z
state: paused
-- source_list: 12+,13+,App Store,Arcade,Behance,Business Insider,Calm,Computers,Cut the Rope 3,Developer,Disney+,F1 TV,Facebook Watch,Hill Dash,Hit Tennis 3,Hungry Shark,Katamari Damacy Rolling LIVE,Movies,Music,Netflix,Photos,Podcasts,Prime Video,Real Racing 3,Relax Melodies,Sasquatch,Search,Settings,SongPop Party,Speed Demons,Speedtest,Subway Tag,Super Impossible Road,TED,Temple Run Legends,TV,Wash Post,yes,YouTube,כאן BOX
-- media_content_type: music
-- media_duration: 205
-- media_position: 5
-- media_position_updated_at: 2025-07-25T16:25:57.900237+00:00
-- media_title: Queen of Hearts
-- media_artist: Juice Newton
-- media_album_name: Juice
-- app_id: com.apple.TVMusic
-- app_name: Music
-- shuffle: false
-- repeat: off
-- entity_picture: /api/media_player_proxy/media_player.living_room_apple_tv?token=79b85a302836f4ddc6be6883c8088c699fdec40a280966361a67c488ccfe062a&cache=Music124/v4/78/a6/59/78a65979-c0a5-ee3f-aa89-3e39f269254d/00602547853707.rgb.jpg
-- icon: mdi:apple
-- friendly_name: Living Room Apple TV
-- supported_features: 450487
2025-07-25T16:26:07.345Z
state: playing
-- source_list: 12+,13+,App Store,Arcade,Behance,Business Insider,Calm,Computers,Cut the Rope 3,Developer,Disney+,F1 TV,Facebook Watch,Hill Dash,Hit Tennis 3,Hungry Shark,Katamari Damacy Rolling LIVE,Movies,Music,Netflix,Photos,Podcasts,Prime Video,Real Racing 3,Relax Melodies,Sasquatch,Search,Settings,SongPop Party,Speed Demons,Speedtest,Subway Tag,Super Impossible Road,TED,Temple Run Legends,TV,Wash Post,yes,YouTube,כאן BOX
-- media_content_type: video
-- media_duration: 3051
-- media_position: 14
-- media_position_updated_at: 2025-07-25T16:26:07.336848+00:00
-- media_title: S4: E8 “Where Are You Going, Where Have You Been?”
-- app_id: com.netflix.Netflix
-- app_name: Netflix
-- entity_picture: /api/media_player_proxy/media_player.living_room_apple_tv?token=79b85a302836f4ddc6be6883c8088c699fdec40a280966361a67c488ccfe062a&cache=com.apple.avkit.20623.d1cc1b5c
-- icon: mdi:apple
-- friendly_name: Living Room Apple TV
-- supported_features: 450487
How to reproduce the bug?
- Open Netflix and start playing a video
- Wait for the "Skip intro" overlay button to appear
- See the Apple TV state while the overlay appears on screen.
What is expected behavior?
Keeping state "playing"
or keeping content_type "video"
or adding state "overlay" if possible
or having some indication when the Apple TV is on homepage.
Operating System
Home Assistant OS
Python
3.9
pyatv
HA Apple TV integration
Device
Apple TV 4K tvOS 18.5
Additional context
|