Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Plex Assistant control commands not working #162

Open
MainMaxton opened this issue Apr 9, 2022 · 1 comment
Open

Plex Assistant control commands not working #162

MainMaxton opened this issue Apr 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@MainMaxton
Copy link

MainMaxton commented Apr 9, 2022

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"

@MainMaxton MainMaxton added the bug Something isn't working label Apr 9, 2022
@github-actions
Copy link

github-actions bot commented Apr 9, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant