When Music is being Played, the Helper shows the Library as âMusicâ which is what I want, however I need this to work for Movies so that I can create Automations for when a Movie Starts but the Helper will not work for Movies, or TV Shows for that matter.
I then created an Automation with:
{{states(sensor.plex.media_library) == Movies}}
If I set the above line to include âMusicâ rather than âMoviesâ the Automation works as expected.
If you go to Developer Tools â States and type in your sensor media_player.plex_plex_htpc_for_windows_knc_htpc you can see a list of all attributes it supports, eg
Is that the actual template you are using⌠because it would not work as written.
It isnât clear what you are actually asking.
Where are you using that template, in a Trigger, Condition, or Action?
Are you asking how to have that template return true for either âMusicâ or âMoviesâ?
Post the automation configuration, properly formatted, so we can see what you are trying to do.