Hi all,
I have just started setting up my shiny new HASS install. Everything is going great, but I seem to be having trouble with my plex clients.
I have a windows machine that runs Plex server, and 2 rasplex (RPI) Plex clients.
I setup some triggers to use Polly to send TTS to the rasplexs, but I am getting the following error, what am I doing wrong?
UPDATE: I have double checked that my base_url was set correctly, and can confirm that I don’t have this issue with apple-tv, just plex.
2017-10-06 16:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=play_media, service_call_id=1971127440-17, service_data=media_content_id=https:
//ha.myserver.com/api/tts_proxy/663efc3d984c4c20e3a1b709fb9348614fe4df1e_en-us_2764969937_amazon_polly.mp3, media_content_type=music, entity_id=['media_player.rasplex', 'media_player.
rasplex_2'], domain=media_player>
2017-10-06 16:01:56 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 408, in async_service_handler
yield from getattr(player, method['method'])(**params)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/media_player/plex.py", line 806, in play_media
src = json.loads(media_id)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)