Detecting media player group status of a device

Depending on the current status of a media player device (if it’s grouped or not and currently playing as a master or slave) I would like to change the display of media players in the frontend. Unfortunately, I couldn’t find an entity reflecting this status in any way. Therefore, is it somehow possible to detect this?

If a media_player is grouped, its group_members attribute contains a list of the entity_ids of the group members (if not grouped, the attribute simply contains one item, namely the media_player’s own entity_id). The first item in the list represents the group’s master.

1 Like

Thank you!

1 Like