Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Support Volume groups and multiple volumes #27

Open
FelixGail opened this issue Nov 16, 2020 · 0 comments · May be fixed by #29
Open

Support Volume groups and multiple volumes #27

FelixGail opened this issue Nov 16, 2020 · 0 comments · May be fixed by #29

Comments

@FelixGail
Copy link
Collaborator

When using the bot in a multi-room setup it might be nice to be able to control the volumes separately.

Something in the likes of:

    Volume:
      type: object
      additionalProperties: false
      description: >
        Information about the bot volume.
      required:
        - master
        - isSupported
      properties:
        master:
          description: The master volume between 0 and 100.
          type: integer
          minimum: 0
          maximum: 100
        speakers:
          description: Volume of individual speakers to control
          type: array
          items:
            $ref: '#/components/schemas/Speaker'
        isSupported:
          description: Whether volume control is actually supported by the bot.
          type: boolean
    Speaker:
      type: object
      additionalProperties: false
      description: >
        A loudspeaker whose volume can be controlled
      required:
        - volume
        - name
      properties:
        volume:
          description: A volume between 0 and 100.
          type: integer
          minimum: 0
          maximum: 100
        name:
          description: A pretty name for the speaker
          type: string

This way single room instances can use only the master property, while multi-room setups use the master as group.

@FelixGail FelixGail linked a pull request Nov 24, 2020 that will close this issue
@FelixGail FelixGail linked a pull request Nov 24, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant