PlexDevices - Custom Media Player Component

Hi,

Unfortunately no (actually I haven’t actively tried to resolve the issue). From the posts above I understand the component is broken, however I’m not a software developer to be able to make any of it.

My post was in regard of video files but what I wanted to do was to send songs from a specific playlist to Chromecast and, having all of these in HA, to automate based on moments of the day/days of the weeks.

If only playing audio files from a playlist is suitable for you, as an alternative (for sending songs to Chromecast Audio/Chromecast Audio Groups) you could try this:

I have both components mentioned in the topic (Google Music Playlists and Google Music Radio).

It works on HA with AiO (Python 3.4) and on Hassbian (Python 3.5 - I updated to Hassbian since AiO doesn’t support at the moment Python 3.5). I couldn’t install the gmusic component on Hassio (I’m unsure about the other installation methods).

Any luck getting this checked in and added to an official push to next release?

Where is documentation now ? as links on first post are dead now :frowning: Found the python script in your config directory but missing documentation to be sure to setup it correctly !
Thanks

Update: oki forget my message, realised it’s same component as the buggy official one for Plex in HA that is dead since ages :frowning:

Not sure what you mean by dead because the Plex component has been working fine for me for over a year.

Hi,

Could you post your config for Plex? Did you set it as a custom component?

With the default component it gets the errors mentioned by @salphonso but after making the modifications above, it still doesn’t work and no error thrown in the log.

Thanks

The official Plex component has some serious problems since a while unhappy and I’m not alone (you should check on HA github), and it looks like programmer working on it is pretty busy :frowning:

Can anyone help me out with this one?

I’m trying to play a playlist in plex and getting this error:

2018-05-12 15:26:57 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall media_player.play_media: entity_id=['media_player.plex_television'], media_content_id={ "playlist_name": "Inoka", "shuffle": "1" }, media_content_type=PLAYLIST>
Traceback (most recent call last):
  File "/usr/share/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/share/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 415, in async_service_handler
    await 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/share/homeassistant/config/custom_components/media_player/plex.py", line 769, in play_media
    media = self.device.server.playlist(src['playlist_name'])
AttributeError: 'PlexClient' object has no attribute 'server'

How to set the attribute server in the PlexClient? or where is it defined?

The Plex Client is a raspberry pi with RasPlex on it.

Best Regards,
Donald.

Has anyone ever managed to get a Plex client with Plex DVR to launch a specific live tv channel (e.g. BBC NEWS HD) from a Home Assistant script or automation?

anyone who has it working could you post your code?

I’m getting this error in the log over and over:

Sun Jun 10 2018 15:17:31 GMT-0700 (Pacific Daylight Time)

    Error doing job: Future exception was never retrieved
    Traceback (most recent call last):
      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 149, in <lambda>
        track_utc_time_change(hass, lambda now: update_devices(), second=30)
      File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 319, in wrapper
        result = method(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 319, in wrapper
        result = method(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 189, in update_devices
        update_sessions)
      File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 328, in __init__
        self.refresh(device, session)
      File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 394, in refresh
        if self._device.machineIdentifier is not None and \
    AttributeError: 'NoneType' object has no attribute 'machineIdentifier'

Is this still a custom compenent or built into HA now?

Merged into HA a while back now

1 Like

FYI - I created a new custom component that properly combines HA’s included Apple TV and Plex media players into a single, rich player. You can check that out here.