JurajNyiri / PlexMeetsHomeAssistant

Custom card which integrates plex into Home Assistant and makes it possible to launch movies or tv shows on TV with a simple click
Apache License 2.0
107 stars 8 forks source link

Feature request: media player selector #46

Closed FragMenthor closed 2 years ago

FragMenthor commented 2 years ago

Hello! I really love your card, changed the way I use Plex and HA. But I have multiple players at home, and would like to select on the card which player to use (maybe all visible identified with different icons, with the one chosen with some kind of highlight). Of maybe the chance to template the player, so that we can have a selector in other card and use that entity to identify the player - maybe that's no possible, I don't know) And thanks again for this card!!! Love it!

JurajNyiri commented 2 years ago

Hey, thank you for the suggestment!

Selecting player goes against some ideas of the card. Currently when you specify multiple entities it chooses the first available one. Modifying this behaviour is possible but would cause a bit of confusion.

I do really like the idea of templating and have been thinking about it a lot already, I just didn't get to implementing it. I think we can add support for input_select elements and templates. Another use case for this is a room awareness along with template sensor. So that when I am with tablet/phone in living room, it uses that TV. When in guest room, it uses that one. This can be further enhanced by restricting all the cards/panels to specific devices, 1 card for 1 device, so it works even on multiple devices seamlessly.

JurajNyiri commented 2 years ago

Now available in 3.2.