So I was thinking that it would be cool to have the name of all the media streaming in Hass.io, be it Netflix, Kodi, etc .
Surprisingly I couldn’t find any info about this !
I know if it’s local media or a spotify stream you already get that , but what about online streams from platforms like the ones I mentioned ?
Surely there must be a way to get this integrated into hassio without that much hassle, either through adb commands or some app installed on the streaming platform (a Mi box in my case) that could fetch this data .
Ideally it would also get a picture (such as a cover from the tv show / movie / etc) from the media currently playing in any of those sources .
Anyone who can share their insights on this and how feasible it would be ?
media_player has a number of attributes, including media_title and entity_picture. Take a look in the states page in dev tools. Something has to be playing though, if it isn’t you’ll (obviously) get a whole lot less info.
@nickrout I’m aware of those but they don’t apply to online media streams like the ones I’ve mentioned .
I have found a workaround for Netflix, Kodi should be easier considering the higher level of integration .
For Netflix you would need a script to parse the last streamed media directly from the viewingactivity page, which updates instantly .
Based on that I see this working very well with a simple automation that will decide whether to fetch latest media based on simple triggers like pause, stop and play .