I’m using a media_player/androidtv integration, and it works fine. The nice thing is I get a screenshot of the tv screen as an album art for the component. I’d like to be able to expose this album art as a generic camera in home assistant (mostly to have a bigger visual feedback of what’s going on when using a virtual remote for navigation).
I was thinking of building a custom component that runs the necessary adb command to get a screenshot, but since the image is already in HA, maybe there is a simpler/more efficient way of doing things…
So, two questions:
- Is there a way to expose the image through configuration/automation? I don’t see anything in the media_player’s attributes, nor the services associated with media_player.
- If not and I create a custom component like a generic camera, am I allowed to access internal methods/variables from the media_player instance?
Are there better ways of doing this?