···81818282</details>
83838484+### Filtering Activity
8585+8686+The **optional** `devices` and `groups` related properties found in the config below can be used to include or exclude Sonos devices/groups by name, case-insensitive.
8787+8488## Configuration
85898690You **must** define the IP address of at least one Sonos/accessory in order for Multi-scrobbler to connect to your Sonos system.
87918892<Config config="SonosSourceConfig" fileContent={JsonConfig} name="sonos">
8993 | Environmental Variable | Required? | Default | Description |
9090- | ---------------------- | --------- | ------- | ---------------------------------------------------------------------- |
9494+ | ---------------------- | --------- | ------- | :--------------------------------------------------------------------- |
9195 | `SONOS_HOST` | Yes | | The IP address of any active Sonos device/accessory EX `192.168.0.150` |
9696+ | `SONOS_DEVICES_ALLOW` | No | | Comma-separated list of Sonos device names to scrobble from |
9797+ | `SONOS_DEVICES_BLOCK` | No | | Comma-separated list of Sonos device names to disallow scrobbles from |
9898+ | `SONOS_GROUPS_ALLOW` | No | | Comma-separated list of device group names to scrobble from |
9999+ | `SONOS_GROUPS_BLOCK` | No | | Comma-separated list of devices group names to disallow scrobbles from |
92100</Config>
···88 * @examples ["192.168.0.170"]
99 * */
1010 host: string
1111+1212+ /**
1313+ * Only scrobble if device name contains strings from this list (case-insensitive)
1414+ * */
1515+ devicesAllow?: string | string[]
1616+ /**
1717+ * Do not scrobble if device name contains strings from this list (case-insensitive)
1818+ * */
1919+ devicesBlock?: string | string[]
2020+2121+ /**
2222+ * Only scrobble if the name of a group the playing device belongs to contains strings from this list (case-insensitive)
2323+ * */
2424+ groupsAllow?: string | string[]
2525+ /**
2626+ * Do not scrobble if the name of a group the playing device belongs to contains strings from this list (case-insensitive)
2727+ * */
2828+ groupsBlock?: string | string[]
1129}
1230export interface SonosSourceConfig extends CommonSourceConfig {
1331 data: SonosData