Custom Component / Card: Plex meets Home Assistant

That is interesting. Keyboard pops up on both android and ios. Its just an usual text field just like on any other page on the internet. Not sure how to fix / correct that. Is that a behavior that you need to modify in windows somehow?

Hello. So far everything seems to work great. One thing I have that I hadnā€™t seen in this thread is that when I pick something to play from the card, iā€™m prompted for my user pin for my plex profile every time. Even if the app is already open on my Shield.

Any way around this?

Hey, depends on the player. Each behaves a bit differently, for example you wouldnā€™t be prompted in chromecast or Kodi. In any way, this is out of control of this card.
If the application requires you to enter PIN, you will have to enter it. Use a different player or just remove the pin altogether if possible.

1 Like

Figured as much. Iā€™ll play around and see what happens.

Thanks!

Hi there. I cant get working Google cast. If I select cast its just not working, I added androidtv: null and it started working but still canā€™t play it on my chromecast ultra. Any advices how to get it working ?

So now when I play something on my nvidia shield using Android TV Iā€™m still prompted to choose a profile. Iā€™m guessing that is outside of the cardā€™s configuration?

Make sure your cast is working. Androidtv has nothing to do with chromecast.
Try and see if some example from Google Cast - Home Assistant is working.

AFAIK yes, I might do some more investigation but the behavior is the same as when selecting stuff from home screen of android tv to play on plex. It invokes the same command.

There was problem with my google cast integration, when I deleted it, updated OS and configure google cast it worked!

Hi everybody. I have the same problem. I can see all the movies hosted in my plex in the card and I can see the arrow over all of them, but when I click the arrow, my chromecast shows a screen with its logo and nothing else, and in the HA log, I see:

ERROR (Thread-7) [homeassistant.components.cast.media_player] Failed to cast media https://192.168.0.34:32400/library/parts/522/1603919489/file.mp4?X-Plex-Token=XXXXXXXXXX. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

My HA is accesible over https
When I put https://192.168.0.34:32400/library/parts/522/1603919489/file.mp4?X-Plex-Token=XXXXXXXXXX in my pc browser, I can see the movie, but not in my chromecast

Thanks to everybody

This is an awesome component! Thanks for sharing.

Is there a way for this component to mark episodes as watched at the end of playback?

This should only affect chromecast right? Please open feature request and it might be done eventually.

New version 1.3 and 1.2 has been released:

  • Posters and episodes previews width is now automatically calculated so that it fills the whole screen width properly at every screen size.
  • plexPlayer now supportes playing media from shared plex servers. It requires further configuration, see readme on github
  • Fixed scroll position not being locked when no trailer available

2.0 has been released!

New Features

Configuration through UI

  • All the options are detected automatically, available libraries, sort values and even entities, yes, for plexPlayer too.
  • It is now possible to hide search bar
  • Card is now available in card list when adding a new card in Home Assistant

Fixes

  • Fixed a specific case for cast where Home Assistant call to cast would fail. If this happens, video file cast is attempted instead.
  • Fixed a case where changing the configuration would not show updated card in preview
2 Likes

Hey all,
I am struggling to get this plugin working.
I entered Protocol, IP, Port, Token via UI editor, and it has a dropdown for Library that is greyed out.
It gave me an error saying the library was missing.

I switched to the code editor and added
libraryName: Movies
it gave me an error saying I need to define at least one entity.

I added
entity_id: media_player.plex_plex_for_windows_pc

It still says I need to define an entity.
Any help would be appreaciated.

Hello, if the visual editor is not loading libraries it means you have entered incorrect plex server details. What do you see in developer tools in network tab/console?

It uses entity and not entity_id, please go read readme. It will still not work though if the UI fails to load libraries.

My current config is:

type: custom:plex-meets-homeassistant
protocol: http
token: maskedxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ip: 10.1.1.55
port: '32400'
libraryName: Movies
entity:
  - media_player.plex_plex_for_windows_pc

if I type in 10.1.1.55:32400 in my browser it loads plex.

It says itā€™s trying to load the URL

http://10.1.1.55:32400/clients?X-Plex-Token=maskedxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Are you using home assistant on https?

No.
HASS and Plex are both HTTP.

Please paste error from network tab / console log Open Chrome DevTools - Chrome Developers .