Cannot call script with Plex Collection

I am trying to make a script which plays a movie from Plex Collection to my chromecast but it keeps making error: No movie results in ‘Movies’ for {‘collection’: ‘Harry Potter’, ‘year’: ‘2001’}

In Plex documentation stands, you can use 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. :smiley:

My script (it is only an example, I’m using it for other things):

service: media_player.play_media
  entity_id: media_player.living_room_tv
  media_content_type: movie
  media_content_id: 'plex://{"library_name": "Movies", "collection": "Harry Potter", "year": "2001"}'

Thanks for any help.