Skip to main content

iRidi for Sonos (Sonos groups)

The "Sonos groups" driver controls Sonos devices in a group.

Tip
  • This driver supplements the Sonos speaker system driver and is not intended for standalone use in a project.
    Instructions for configuring and using the Sonos driver are available at: https://dev.iridi.com/Sonos .

Documentation updated 01.01.2024

Working in iRidi​

  1. Create a project and select "Add driver". In the list that opens, select "Sonos" and "Sonos groups" and add the drivers to the project.

  2. Configure the Sonos driver according to the instructions.

  3. Add commands and feedback to the Sonos group driver and configure them as described below.

Driver properties​

Sonos_group1.png

The driver uses UDP and has no other properties.

Commands​

Sonos_group2.png

  • Name is the command name;
  • Type is the command type:
    • Group - command to group devices;
    • Ungroup - command to ungroup devices;
    • Select - command to select devices for grouping.

Feedbacks​

Sonos_group3.png

  • Name - the status feedback name;
  • Type - feedback type:
    • Players - a list of the current device states (grouped or ungrouped).

Configuring Popup groups​

The "Popup groups" popup lets you select devices from a list and group / ungroup them.

  1. Create a popup (Popup groups) and add Advanced List to it.
  2. Create 2 "Templates" popups. Name them TplPlayer (an item representing one device) and TplGroup (an item representing a group of devices). Create Label items on each popup as templates for group information (name, device count, and coordinator).

Sonos_group4.png

Example Label items drawn for the TplGroup popup:

Sonos_group5.png

Example Label items drawn for the TplPlayer popup:

Sonos_group6.png

  1. After creating the items, return to the Advanced List item.

  2. Open the template settings by clicking "Template setting".

Sonos_group7.png

  1. Add the template popups. In the Code field, enter type, as shown in the figure.

Sonos_group8.png

  1. Double-click a template to configure it, then add labels. For the "TplGroup" template, enter group in the Type field (for TplPlayer, Type = player ), then add the following labels with the required tokens: lbl.Name.Text, Selection.Value, lbl.Name 1.Value.

After adding the labels, set their Value fields. To edit a Value field, double-click the label row. Label values:

  • lbl.Name.Text - name,
  • Selection.Value - selected
  • lbl.Name 1.Value - coordinator

Sonos_group9.png Sonos_group10.png

  1. After configuring the labels and templates, bind the "Select" command to the Advanced List item.

To bind the command, select the Advanced List item, then click + next to the Release event in the Programming window.

Sonos_group11.png

In the window that opens, select Send tag and bind SelectItem -> Commands -> Select.

Sonos_group12.png

  1. Bind the Players feedback to the item. Select the Advanced List item, then open Data source (next to Template setting). Select Driver -> Feedbacks -> Players.

Sonos_group13.png

  1. Add 2 buttons to the popup for grouping and ungrouping devices. Drag the respective commands onto them: Group and Ungroup , sending any value to the channel.

Sonos_group14.png