Custom Component / Card: Plex meets Home Assistant

Hey, I’ve noticed that if you start an episode from the continue watching or from watch next it doesn’t continue with the series after the episode ends. Is there a way to change it?

Also, it looks like scrolling on Android phones is a little bit broken, is it a known problem?

@JurajNyiri First of all let me say that this is an absolutely fantastic component for home assistant, had so much fun integrating it onto my dashboard.

There seems to be one problem I’m running into, so I have this on my tablet using the wallpanel app, and even with the actual home assistant app on there as well, when I select a movie, the play button is grayed out, so I thought maybe it’s an issue with the android platform, so I moved over to try it out on my raspberry pi, using chromium (in the middle of a custom tablet build for my home), same issue happened, the only place it works on is my windows pc, so I’m not sure if this is an issue with the chromium platform on pi and android chrome browsers, or is there something I didn’t do right?

Thanks in advance for any advice.

Hey, thank you!

The reason why the play wouldn’t show up as available is if the movie is not playable with the selected services. Make sure to test at the same time ideally in Chrome and if you get different results on PC and Tablet create a new issue, there might be a bug.

Thank you so much!

I tested it on my Samsung browser on my mobile and the play button showed up as normal, where can I go to create a new issue?

This is so freaking awesome. Thank you for all you do. I wanted to suggest adding theme music to this if you can like plex does. is that a future plan?

Thank you! Please open feature request :slightly_smiling_face:

There are trailers you can use to play in the background.

Is it possible to shuffle an entire playlist instead of just one song ? I can select my playlist in the plex library but it play only one song and it stop.

Thank you

How do you select the playlist? I can only get a list of artists using “libraryName: Music” Is there a special library for playlists?
I see you can select a playlist as the library to show artists from, but can’t get a list of playlists.

Is there a way to have a list of playlists shown, then select one and shuffle all tracks in the playlist?

Hi,
It’s work prefectly on my computer but when I try to go on the card with my phone (home assistant app or by web browser)
Can you help me ?
Both site (home assistant or plex) are in https
Best regards,

You need to explain your issue

Sorry
On my phone when I go on my card plex meets home assistant I have an error message “the home assistant certificate does not match the domain name, please check the home assistant certificate or the connection settings and try again”
But this error doesn’t appears on my computer, it’s work perfectly on it,
So why it’s not working on my phone ?

Thanks,

have you checked your certificate and your domain? does it match ?
try also incognito mode, maybe it doesnt work on your browser, because of a cache issue

Thanks JurajNyiri, love this. Not sure if you’ve seen this on Discord, thought I’d post it here just in case.

Everything woks beautifully as long as my Home Assistant clients are on the same subnet as my Plex server ie: 192.168.111.x/24.

If I have a client on another subnet such as 192.168.112.x/24 it stops working with: Error: Plex server did not respond. Details of the error: Network Error

Plex server has been configured to work with additional subnets and if I use the Plex App all works fine.

I can’t see anything in the configuration that would cause / fix the problem, so I suspect it might be something in the actual code for PMHA.

Thanks again JurajNyiri for your work and the time you’ve spent on this. :wink:

P.S I had a quick look at the code, JavaScript isn’t really a language I’ve spent much time on and 23,000 lines of it is… well, let’s just leave it to you, lol

Plex server on the specified IP needs to be available from the device which you are accessing Home Assistant.

Thanks Juraj, It took me a while but I got it fixed in the end. It was my fault. Local DNS was not resolving from my IoT subnet. All sorted now.

Did you write all 23,000+ lines of that JavaScript? Bonkers dude, good job :smiley:

Great card!
I have to tips:

  1. When I want to play movie, button is grey. I have to turn on TV and Plex app to get orange button which can be pushed.
  2. In detail of movie is less information. Can be optional added extra information? For example rating, video and sound quality (full HD, 5+1, stereo, etc.), actors or even comments?

Thank you!

  1. Working exactly as intended. Go read readme for runBefore arguement
  2. Maybe in the future please open feature request

This was working for me a few days ago but suddenly getting the following error message

Error: Plex server did not respond.
Details of the error: timeout of 10000ms exceeded

Plex appears to be working as expected … the card config is as below

type: custom:plex-meets-homeassistant
protocol: https
sort: addedAt
displayType: ''
playTrailer: true
showExtras: true
showSearch: true
maxCount: 10
libraryName: Movies
ip: 192.168.1.243
token: **Token**
port: '32400'
entity: 
  plexPlayer: media_player.master_bedroom_fire_tv

Any pointers greatfully received

Server is not responding within 10 seconds to the device you are accessing home assistant on.

I also see you are using HTTPS with IP address, this will never work. If you want to use https you need to have a valid certificate.

Thank you for respond,

  1. In the documentation it is written that runBefore will perform the action “before playing”. But the button that starts the playing is greyed out, so the script cannot be initiated.