I had the same idea as you. I ended up using the mini media player custom card (which as you’ll see the mini name is a bit of a misnomer) from HACS as you can set the card to have the album art just stretch the card. Then I get as much or as little media controls on the card as I want as well.
Of course I’m sure the custom card lets you turn off most if not all of its interface which essentially will make it act as a camera entity. also if I make a new tab in lovelace, set it to panel view and then have this card on it it scales that “album art” all the way up to fit whatever device I’m using it on and it seems to be a very high resolution. Which looks like this.
This is neat because I can watch my tv on another device at less than 1 fps but also concerning because I’m not sure how much network traffic this is creating and how much CPU time this is taking up on my TV and my Pi. I now wonder if I can actually turn it off haha. Lovelace: Mini Media Player
The reason I wanted it as a separate “virtual” camera was to expose it to appdaemon as well so I could view it on my appdaemon panel. Not sure if I can see lovelace items in the appdaemon dashboard.
I must have missed something! How do i get screenshots to work? I run it with adb server and if i set full-cover in mini media player i dont get an image like yours. Do i need to set som parameter in the config file to get this?
I seem to remember having to authorize ADB either from the host that runs HA or from inside the container on the TV (so a popup appears asking if I want to allow it). Also, enable ADB over network on your TV. Do other commands on the media player work? What version is your android TV? I’m using it with ATV 9 on a Philips TV.
I have done this in the past for other media players, it is definitely able to be done, let me dig up my code I’m not infront of pc atm I’ll come back to you.
Here you go.
Create a camera image with you details like below
- platform: generic
name: Android Now Playing
still_image_url: http://10.0.20.3:8123{{ states.media_player.android_tv.attributes.entity_picture }}
But maybe there is even a way to make the update of the picture more live (update every 1 seconds or so)? (At the moment for me it refreshes the picture every 8-12 seconds.)
hi,
i have also just been looking at the album cover.
When I’m in the home menu everything works as well (see picture)
As soon as I open Netflix or Disney+ the cover stays black.
What can be the reason for this?
I’m experiencing the sam e- no picture at all using Netflix
Anybody know why ?
Or perhaps more to the point is anybody with a GTV setup getting an artwork image the using HA and any of its media player cards when watching Netflix ?
Late reply here but the solution marked in this post throws an error whenever there isn’t an entity_picture attribute available. The following should fix that.
- platform: generic
name: Android Now Playing
still_image_url: http://10.0.20.3:8123{{ state_attr('media_player.android_tv', 'entity_picture') }}