jekalmin / extended_openai_conversation

Home Assistant custom component of conversation agent. It uses OpenAI to control your devices.
831 stars 108 forks source link

Plex Integration issues #135

Open geman220 opened 4 months ago

geman220 commented 4 months ago

This could potentially be a user error, but following the example here:

https://github.com/jekalmin/extended_openai_conversation/blob/main/examples/function/plex/README.md

The results are pretty unreliable. Sometimes the assist says it cannot access the Plex server, sometimes it responds with information but includes [YOUR PLEX KEY] (literally that's not a placeholder). Other times it will say "I found movie on the Plex server" and that's it. I wrote a small Python script that will read the latest 5 movies added to Plex, then created a sensor in HA that stores the titles of those movies, then I can expose that sensor, and the integration works well. I'm just curious if I am misunderstanding the Plex example here, or if there is a better way to implement that sort of feature. Feel free to close if I am off base here.

jekalmin commented 4 months ago

Thanks for reporting an issue! Let me try this and get back soon.

meharrington90 commented 3 months ago

@jekalmin Hey man, great work with this integration! I am really enjoying it so far. You made my local assistant smarter than Google Home has been in years.

Only issue I am having right now is the Plex and Music casting. I tried the example above to absolutely no avail (over 24 hours of trial and error). It seems the function is able to ATTEMPT to search, but it can never get past that point. It is unable to pull and parse a JSON from my remote plex server. I can, however, copy-paste the URL pushed to OpenAI and put it in a browser, and the API call works fine.

Is there something I am missing here?

jekalmin commented 3 months ago

Could you share the JSON result of API? I was going to try it, but unfortunately plex forbids logging in from my country :(