Try that as a template.
You can also try it “live” in developer tools -> templates.
That white box of text, delete all and add that template and see what the result is.
I’d seen the templates screen, but not done anything with it (I’m still fairly new to Home Assistant)
Sorry about the media player name, they’re auto generated from Plex. As I’ve got other media players in that room, I left it as it was…but agreed, it’s a bit of a mouthful.
Your script didn’t initially work, however I’ve fixed the typo and I now get ‘True’
Great!
I was kind of expecting a typo since I was typing it on my phone from memory since I can’t fit the thread, comment box and keyboard on the screen.