maykar / plex_assistant

❱ Plex Assistant is a Home Assistant integration for casting Plex media to Google devices, Sonos devices, and Plex clients with Google Assistant, HA's conversation integration, and more.
MIT License
281 stars 59 forks source link

Plex Assistant control commands not working #162

Open MainMaxton opened 2 years ago

MainMaxton commented 2 years ago

Using control commands with and without keyword replacements through IFTTT runs into an error. Webhook gets sent to Home Assistant however does not run on Plex Assistant. Any insight here please?

Error executing service: <ServiceCall plex_assistant.command (c:5c408d90a04edce61f06496a11ec1e60): command=next episode> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/core.py", line 1652, in catch_exceptions await coro_or_task File "/usr/src/homeassistant/homeassistant/core.py", line 1677, in _execute_service await self._hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/plex_assistant/__init__.py", line 128, in handle_input remote_control(hass, zeroconf, command["control"], device, jump_amount) File "/config/custom_components/plex_assistant/helpers.py", line 127, in remote_control cast_next_prev(hass, zeroconf, plex_c, device, "next") File "/config/custom_components/plex_assistant/helpers.py", line 109, in cast_next_prev uuids=[uuid.UUID(entity._cast_info.uuid)], zeroconf_instance=zeroconf File "/usr/local/lib/python3.9/uuid.py", line 174, in __init__ hex = hex.replace('urn:', '').replace('uuid:', '') AttributeError: 'UUID' object has no attribute 'replace'

Using IFTTT Installed using HACS Raspberry Pi 3B+ Server

Plex assistant plays media fine, but does not skip, or go previous. Have tried with and without keyword replacements, keyword replacement below "next episode":"next", "previous episode":"previous"

github-actions[bot] commented 2 years ago

Important:

Issues that don't provide the information requested in the troubleshooting docs may not get a reply and may be closed until the info is provided. Please, include as much of the requested info as possible so that I can replicate and investigate your issue.

When pasting in your config/code/errors always place 3 backticks ``` above the first line and after the last line. Doing this will format it correctly.