Sonos group is restored correctly, but group status is not reflected in Loxone UI
Description
This is a follow-up to #411, which has already been closed.
First of all, thanks for the fix! The automatic grouping now works as expected. Both Sonos speakers are correctly grouped when playback is started through Loxone, even after they have been used individually (e.g. for TV Audio).
However, one issue remains: the group status is not reflected in the Loxone UI.
Current Behavior
- Sonn successfully creates/restores the Sonos group.
- Both speakers play together as expected.
- However, the Loxone UI does not indicate that the speakers are grouped.
- This makes it difficult to see which speakers are currently part of the active group.
Expected Behavior
When Sonn automatically creates or restores a Sonos group, the Loxone UI should also reflect the actual grouping status.
Ideally, the group should be visible in Loxone just as it would be if the speakers had been grouped manually.
Additional Information
The actual grouping functionality is now working correctly. This issue is specifically about synchronizing the Sonos group state with the Loxone UI.
Thanks again for the improvements!
Gibt es eine Chance, den Lautsprecher mit einem automatischen Loxone-Trigger zu entbündeln?
Beispiel: Beide Lautsprecher spielen unterschiedliche Quellen oder nur einen von ihnen Nach einem Trigger (Szene) den Lautsprecher gruppieren und Audio synchronisieren!
On another trigger the Group should be ungroup and the main player plays the source and the second is off?
Yes, you can do that with a Virtual Output in Loxone Config. sonn has an HTTP call for grouping.
Create a Virtual Output with address http://<sonn-ip>:7090 and add two Virtual Output Commands. Use the player IDs from Loxone, so for example 14 as the leader and 15 as the second speaker:
| Command for ON | HTTP Post command for ON | HTTP method | |
|---|---|---|---|
| Group | /api/v1/zones/14/group |
{"members":[15]} |
PUT |
| Ungroup | /api/v1/zones/14/group |
{"members":[]} |
PUT |
You can leave HTTP extension empty. Then trigger these commands from your scene.
After grouping, 15 plays along with whatever 14 is playing. After ungrouping, 14 keeps playing and 15 stops. The Loxone app shows the group as usual and you can dissolve it there too.
One thing to know: this only works with a normal, dynamic group. Your two speakers are currently in an "Audio Player Group fixed", and a fixed group is meant to stay together, so sonn won't split it. Remove the fixed group in Loxone Config and use these two commands instead.