PlexMeetsHomeAssistant icon indicating copy to clipboard operation
PlexMeetsHomeAssistant copied to clipboard

Can't play video from card

Open mikey74L opened this issue 1 year ago • 7 comments

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

mikey74L avatar Sep 17 '23 15:09 mikey74L

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

laurenslo avatar Oct 17 '23 03:10 laurenslo

I have this same problem

cpsskipper avatar Nov 11 '23 19:11 cpsskipper

I have the same issue

sahara101 avatar Nov 12 '23 00:11 sahara101

Same issue here

angrycvilleian avatar Nov 16 '23 04:11 angrycvilleian

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.

kariudo avatar Nov 25 '23 23:11 kariudo

Same issue for me. Using HTTP and Rokus

image969 avatar Nov 28 '23 23:11 image969

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

JurajNyiri avatar Jan 12 '24 17:01 JurajNyiri