Custom Component / Card: Plex meets Home Assistant

Good point. Sorry I was deep googling how to get Plex managed accounts on HA and this thread was the only source. Subject for new topic then.

Nice work @JurajNyiri

So if I have a tablet that I want to play music on, from a Plex server, I have 2x options, correct? 1, have the plex app also running on the tablet, and user this card to play ā€œfromā€ HA to the Plex Client.

Or,

Figure out why my DLNA is not working from Plex and use the built in Media Sources.

Am I missing anything obvious here?

Thanks

I believe you have a third option. The Plexamp app.

I have an Android tablet setup, its running the Home Assistant App,and the Plex App. I have this card set up, and it works great, I can cast from a computer loading the dashboard, no issue.

But on the Android device itself, when I have the dashboard up with the card on it, I just get ā€œError, Plex server did not respond, network Errorā€

It it possible to Cast to the same device ?

Check readme. You probably are using HTTPS ha with http Plex.

Greeting Juraj,
Iā€™m just starting to use this and am probably doing things a bit differently than most and discovering glitches that nobody in this thread has mentioned. I also checked the currently open issues and DETAILED_CONFIGURATION.md and didnā€™t find anything. It might be PEBKAC so my apologies in advance.

I need to be able to horizontally display more than the default 3 media images. I have horizontal scrolling enabled. Iā€™m using a 14" wide, 3" tall 4K touch display that sits at the top 3U of my AV rack. Itā€™s dimensions mean that I want to be able to have many library items displayed horizontally, and only a single row.

I thought I could change the number of images displayed by altering ā€œMinimum width of the card (Optional)ā€ from the default (blank) to something larger. But I canā€™t work out the correlation between this value and the number of media items displayed.

What is this value used for?

Edit (30 minutes after I posted this, of courseā€¦): I found a way to do what I need. I use a custom card ā€˜custom:layout-cardā€™, with layout_type: custom:vertical-layout.

type: custom:layout-card
layout_type: custom:vertical-layout
cards:
  - type: custom:plex-meets-homeassistant
    protocol: http
    sort: titleSort:asc
    playTrailer: true
    showExtras: true
etc etc etc
aspect_ratio: 100%
layout:
  width: 800
  max_cols: 1

Which works. So Iā€™ll keep this in here for others to use.

The other problem is that the browser memory/resource problem that was experienced in the early versions of PMHA, and was fixed back then, comes back when trying to use larger libraries. For my smaller libraries (a few hundred items), it works fine. But for a library of 1000 or so, it starts to struggle. And for my movie library of several thousand, it essentially hangs the browser tab and consumes 2GB of memory. This is on both Chrome and FF (under ubuntu). Latest versions of PMHA, ubuntu, HASS, Chrome, FF etc.

I can limit the # of items displayed or use collections or avoid using the Movies library at all, so there are workarounds, but I thought you might want to know.

1 Like

Is there a way to make this show Playlists, in the same way that movies and TV shows are listed? I know you can use a single playlist as a library, but I would like to list my playlists to easily choose from a list if it is possible.

BTW, I absolutely love this card, I have 3 separate views dedicated to it on a wall-mounted tablet (Movies, TV shows, Deck).