That group when added to the front end will give you a card named speaker control with only two switches (like your second picture). Those switches when activated will trigger all the switches in a listed group.
Keep in mind that if any of the switches inside the group are on, the group switch will show as on. Also my naming isn’t correct above. You will have to get your entity IDs entered correctly but the premise is there.
I first thought it would be easy by setting up each GPIO in a scene and then activate the scene but i don’t think that would allow you to shut them off. I now think you need to create a dummy switch for each room and then automate the gpio switches to follow the dummy switch.
I don’t think they have dummy switches in HA but you can use a unused GPIO. Something like