core: Cannot call script with Plex Collection
The problem
I am trying to make a script which plays a movie from Plex Collection to my Chromecast but it keeps making an error: [u]No movie results in ‘Movies’ for {‘collection’: ‘Harry Potter’, ‘year’: ‘2001’}[/u]
In Plex documentation stands that you can call the script with the collection name. It recognises year, title and also a library name but always it has a problem with Collections. I can see my collection in Collections tab in Plex Web App with no problem and I am also using the same name. I double-checked. 😃
Thanks for any help.
What version of Home Assistant Core has the issue?
2022.5.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
plex
Link to integration documentation on our website
https://www.home-assistant.io/integrations/plex
Diagnostics information
No response
Example YAML snippet
service: media_player.play_media
data:
entity_id: media_player.living_room_tv
media_content_type: movie
media_content_id: 'plex://{"library_name": "Movies", "collection": "Harry Potter", "year": "2001"}'
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (6 by maintainers)
Ok, I tested it with
plexapiand at first, it gave me only[]for all attempts wtih my collections. But then I tried to delete all my Collections and created them manually again. Then when I tested it inplexapi, it finally worked. It listed all movies in that collection. I don’t remember if originally it was a smart collection or a manually created collection, but I assume it was a problem with my originally created collections. So I think that now it will work with Home Assistant scripts, but I give it a try and let you know.