Anyone using Plex Cloud with the Plex component?

Wondering if anyone has been successful using the Plex media player component with Plex Cloud?

I created a plex.conf file that looks like this (not my actual subdomain or token):

{
  "9fe15762321016423-5y1c55e767134d51a258dac1de323a22.ric.plex.services:443": {
    "ssl": true,
    "token": "oaQkn3Wibybz7zAvZxC7",
    "verify": true
  }
}

I followed these instructions to obtain my token and server address and verified they work with plexapi.

The component seems to initialize without issue:

Oct 05 12:21:45 RPi2-HomeAssistant hass:  2017-10-05 12:21:45 INFO (Thread-2) [homeassistant.components.media_player.plex] Discovery configuration done (no token needed)
Oct 05 12:21:45 RPi2-HomeAssistant hass:  2017-10-05 12:21:45 INFO (Thread-2) [homeassistant.components.media_player.plex] Connected to: https://9fe15762321016423-5y1c55e767134d51a258dac1de323a22.ric.plex.services:443

But the media player never shows up in HA.

Is there something about the component that requires the Plex server to be local?

Wow, I’m the only one using Plex Cloud?

…crickets…

From what I know how Plex Cloud works for now you can’t really control it so not really surprised it doesn’t work !! Does it work fine with your local PMS ? to be sure your configuration is correct :wink:

Anyone got this working?? I have the EXACT same behavior but I’m using a plex server at a remote site.

I guess, I will throw my two/tenths of a cent in. I am running Plex on a Seagate 4TB PersonalCloud. After more then two weeks of messing with the config files. I am now finally able to see a EMPTY Plex Card(and sometimes the card, doesn’t show up, until I start the client), with the name of the computer the Plex client is installed on, with a status of “Unavailable”. When I run the client, I see a status of “IDLE”. And when I start a media file, it will display the cover art, and the title. But none of the controls on the Card, are work at this time.

The following is the “Home-Assistant.log”

2018-04-04 21:46:55 WARNING (MainThread) [homeassistant.setup] Setup of zwave is taking over 10 seconds.
2018-04-04 21:47:20 ERROR (SyncWorker_16) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-04-04 21:52:42 WARNING (SyncWorker_8) [netdisco.ssdp] Error fetching description at http://169.254.123.183:8060/
2018-04-04 21:53:00 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform roku is taking over 10 seconds.
2018-04-04 21:53:50 ERROR (MainThread) [homeassistant.components.media_player] Setup of platform roku is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2018-04-04 21:54:58 ERROR (SyncWorker_14) [homeassistant.components.media_player.roku] Unable to initialize roku at 169.254.123.183

NOTE: The Plex Card is working as described above, before the 3rd error. And by the 5th error, the “Roku Media Player Card” shows up with an error(see pic below).
I guess I still have more research and reading to do… ;-(

When I try any of the controls, I get the following errors in the HA log

2018-04-04 22:17:26 WARNING (SyncWorker_11) [plexapi] BadRequest (406) not_acceptable http://192.168.167.152:32433/player/playback/skipNext?commandID=1&type=music; 
2018-04-04 22:17:26 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall media_player.media_next_track: entity_id=['media_player.plex_plex_0shy6jwnfoj4bb3ocqrk6v42']>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 402, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 743, in media_next_track
    self.device.skipNext(self._active_media_plexapi_type)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 334, in skipNext
    self.sendCommand('playback/skipNext', type=mtype)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 195, in sendCommand
    return self.query(key, headers=headers)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 165, in query
    raise BadRequest('(%s) %s; %s %s' % (response.status_code, codename, response.url, errtext))
plexapi.exceptions.BadRequest: (406) not_acceptable; http://192.168.167.152:32433/player/playback/skipNext?commandID=1&type=music 
2018-04-04 22:17:33 WARNING (SyncWorker_7) [plexapi] BadRequest (406) not_acceptable http://192.168.167.152:32433/player/playback/pause?commandID=1&type=music; 
2018-04-04 22:17:33 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall media_player.media_play_pause: entity_id=['media_player.plex_plex_0shy6jwnfoj4bb3ocqrk6v42']>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 402, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 728, in media_pause
    self.device.pause(self._active_media_plexapi_type)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 299, in pause
    self.sendCommand('playback/pause', type=mtype)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 195, in sendCommand
    return self.query(key, headers=headers)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 165, in query
    raise BadRequest('(%s) %s; %s %s' % (response.status_code, codename, response.url, errtext))
plexapi.exceptions.BadRequest: (406) not_acceptable; http://192.168.167.152:32433/player/playback/pause?commandID=1&type=music 
2018-04-04 22:17:37 WARNING (SyncWorker_5) [plexapi] BadRequest (406) not_acceptable http://192.168.167.152:32433/player/playback/stop?commandID=2&type=music; 
2018-04-04 22:17:37 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall media_player.turn_off: entity_id=['media_player.plex_plex_0shy6jwnfoj4bb3ocqrk6v42']>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 402, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 738, in turn_off
    self.media_stop()
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 733, in media_stop
    self.device.stop(self._active_media_plexapi_type)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 375, in stop
    self.sendCommand('playback/stop', type=mtype)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 195, in sendCommand
    return self.query(key, headers=headers)
  File "/usr/lib/python3.6/site-packages/plexapi/client.py", line 165, in query
    raise BadRequest('(%s) %s; %s %s' % (response.status_code, codename, response.url, errtext))
plexapi.exceptions.BadRequest: (406) not_acceptable; http://192.168.167.152:32433/player/playback/stop?commandID=2&type=music 

I am open to any suggestions.

1 Like