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

Can't play video from card #100

Open mikey74L opened 9 months ago

mikey74L commented 9 months ago

Describe the bug Whenever I press on the play button toast notification pops up: Failed to call service rest_command/pmha_playmedia. Service not found.

Checking the browser dev tools I can see that the following request to the server returns with 404 - Not found from the server. http://192.168.2.182:32400/player/playback/playMedia?type=video&commandID=1&providerIdentifier=com.plexapp.plugins.library&containerKey=/playQueues/10&key=/library/metadata/2&offset=0&machineIdentifier=63b870c298b4bb8fa259f365fcee923d324b9b4b&protocol=http&address=192.168.2.182&port=32400&token=xxxxxxxx&X-Plex-Token=xxxxxxx.

Searching the library has no problem, showing details for the selected media has no problem, but playing the media does not work.

Expected behavior The video should play on the configured android tv client.

[ x] I am running Home Assistant on HTTP protocol [ ] 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. [ ] My Plex server is running on HTTPS and has a valid certificate.

Card Configuration

type: custom:plex-meets-homeassistant
protocol: http
sort: titleSort:asc
playTrailer: true
showExtras: true
showSearch: true
ip: 192.168.2.182
token: xxxxxxxxxxxx
port: '32400'
entity:
  - >-
    plexPlayer | BRAVIA VH1 | 192.168.2.197 |
    cb21fc709ba53b31-com-plexapp-android
libraryName: Konzerte
maxCount: ''
maxRows: ''
useHorizontalScroll: 'No'
useShuffle: 'No'
displayTitleMain: 'Yes'
displaySubtitleMain: 'Yes'
minWidth: ''
minEpisodeWidth: ''
minExpandedWidth: ''
fontSize1: ''
fontSize2: ''
fontSize3: ''
fontSize4: ''
minExpandedHeight: ''
title: ''
runBefore: ''
runAfter: ''

Card Version 3.6.8

Plex Version 1.32.5.7349 running on Windows 11 Build 22621.2283

Device information Surface Laptop Studio running Chrome Browser with Version 116.0.5845.188

laurenslo commented 8 months ago

I have this same problem, and I can.t figure it out.

cpsskipper commented 7 months ago

I have this same problem

sahara101 commented 7 months ago

I have the same issue

angrycvilleian commented 7 months ago

Same issue here

kariudo commented 7 months ago

Experiencing the same issue, tried a number of different configurations and couldn't make (a previously working) setup work again. I am configured with HTTPS, and confirmed valid tokens etc.; however, it would appear that the endpoint must have changed here on Plex's end in a recent server update.

image969 commented 7 months ago

Same issue for me. Using HTTP and Rokus

JurajNyiri commented 5 months ago

https://github.com/JurajNyiri/PlexMeetsHomeAssistant/issues/32#issuecomment-908614426