Group membership based on state

I have multiple media devices (e.g. plex, chromecast, etc), and would like only the ones currently playing to appear on the default group view.

Is this possible? I’m not sure if groups are static at load time, or can adapt to state.


Groups can’t adapt to states… yet.

I did see a pull request to add the ability to change the visibility of a group based on an event or as the result of an automation but it’s not merged yet.

Were you thinking of this PR?

It seems similar, but not quite what I was thinking, however I’ll give it a test to see if I can adapt it.