How can I create group.all_media.players? - Solved

Hi,

I have an automation that sends me a notification if everyone has left the house and a light is left on. This tracks group.all_lights.

I want to do the same for my media players. I’ve tried creating a group for them as follows:

  Music:
    name: "Music Players"
    view: no
    entities:
      - media_player.bathroom_music
      - media_player.kitchen
      - media_player.living_room
      - media_player.tv

This doesn’t seem to work - i.e it does not create the group.music_players that I would expect.

I’ve also tried creating a group in Lovelace and have used the interface to create a view of all media players, but that doesn’t have an overall group status either (i.e a status that would show as On if any media player in the group is playing.

Please can anyone point me in the right direction to resolve this? As always, I expect I am missing something painfully obvious!

Thanks

if you want to play something on all media players, just don’t specify the media_player entity id, and HA sends to all by default

Thanks. That’s not what I am trying to do, but looking at that link made me check some other items and I’ve now solved this!! My group was there all along but had a different name to what I was expecting - I knew I was the problem :slight_smile:

1 Like