JurajNyiri / PlexMeetsHomeAssistant

Custom card which integrates plex into Home Assistant and makes it possible to launch movies or tv shows on TV with a simple click
Apache License 2.0
107 stars 8 forks source link

Issue with playback on LG TV #56

Closed sturgeo closed 2 years ago

sturgeo commented 2 years ago

Describe the bug Card retrieves movies and displays them OK. If I select a web player, it works, if I select my LG TV it fails. Both options are set as PlexPlayer from the device dropdown.

Expected behavior Expect it to play the media on the TV

Checks Please check below if true:

[ ] I am running Home Assistant on HTTP protocol [X ] I am running BOTH Home Assistant AND Plex on HTTPS protocol [X] My Plex server is accessible through protocol, port and ip/hostname I have specified for the card. [X] My Plex server is running on HTTPS and has a valid certificate.

Card Configuration type: custom:plex-meets-homeassistant protocol: https sort: titleSort:asc displayType: '' playTrailer: true showExtras: true showSearch: true ip: plex.XXXXXXXXXXXXXXXX token: XXXXXXXXXXXXXXX port: '' libraryName: Movies maxCount: '' maxRows: '10' useHorizontalScroll: 'No' displayTitleMain: 'Yes' displaySubtitleMain: 'Yes' minWidth: '' minEpisodeWidth: '' minExpandedWidth: '' fontSize1: '' fontSize2: '' fontSize3: '' fontSize4: '' minExpandedHeight: '' title: '' entity:

Card Version 3.3.1

Plex Version 1.24.5.5160

JurajNyiri commented 2 years ago

How does it fail? What exactly happens after clicking play?

sturgeo commented 2 years ago

Sorry, missed the critical bit off. It shows the spinning loading animation for around 10 seconds and then states "An error occurred loading items into the play queue"

sturgeo commented 2 years ago

I don't think this is limited to this card, when trying the below I also get the same issue.

service: media_player.play_media
data:
  media_content_type: movie
  media_content_id: '{ "library_name": "Movies", "title": "Batman" }'
target:
  entity_id: media_player.plex_plex_for_lg_lg_43uk6400plf
JurajNyiri commented 2 years ago

Thank you, please go ahead and open an issue on Home Assistant github in that case as that is a bug in Hass, not this card.

blaktro commented 2 years ago

I think it's related to this: https://www.reddit.com/r/PleX/comments/pzgc1f/lg_webos_plex_issues_started_yesterday/