openapi: 3.0.0 info: contact: email: support@bang-olufsen.dk name: Bang & Olufsen description: | [![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/bang-olufsen/mozart-open-api/blob/main/LICENSE) [![Version](https://img.shields.io/pypi/v/mozart-api?color=g)](https://pypi.org/project/mozart-api) [![Downloads](https://img.shields.io/pypi/dm/mozart-api)](https://pypi.org/project/mozart-api) ![Python version](https://img.shields.io/pypi/pyversions/mozart-api) The Mozart API is an async REST API with WebSocket notification channel for immediate state information from Mozart devices. Currently the API is distributed as a [Python package](https://pypi.org/project/mozart-api) and as an OpenAPI document that can be found in the [Github repository](https://github.com/bang-olufsen/mozart-open-api/blob/main/mozart-api-6.5.0.26.yaml). Supported by: - [Beoconnect Core](https://www.bang-olufsen.com/en/dk/accessories/beoconnect-core) - [Beolab 8](https://www.bang-olufsen.com/en/dk/speakers/beolab-8) - [Beolab 28](https://www.bang-olufsen.com/en/dk/speakers/beolab-28) - [Beosound 2 3rd gen](https://www.bang-olufsen.com/en/dk/speakers/beosound-2) - [Beosound A5](https://www.bang-olufsen.com/en/dk/speakers/beosound-a5) - [Beosound A9 5th gen](https://www.bang-olufsen.com/en/dk/speakers/beosound-a9) - [Beosound Balance](https://www.bang-olufsen.com/en/dk/speakers/beosound-balance) - [Beosound Emerge](https://www.bang-olufsen.com/en/dk/speakers/beosound-emerge) - [Beosound Level](https://www.bang-olufsen.com/en/dk/speakers/beosound-level) - [Beosound Premiere](https://www.bang-olufsen.com/en/dk/soundbars/beosound-premiere) - [Beosound Theatre](https://www.bang-olufsen.com/en/dk/soundbars/beosound-theatre) This API documentation has been generated for version 6.5.0.26 of the Mozart platform and API generation version 6.5.0.26.0. ## Python API The Python package has been generated using the [OpenAPI Generator](https://openapi-generator.tech/) version 7.28.0. On top of the generated API, a helper file, mozart_client.py, has been made that makes the API more pythonic. We recommend using this. Additionally, the following manually created modules are included: - `mozart_api.const`: Constants and types, such as the `WebSocketEventTypes` enum, the `WebSocketEventType` type alias, `BaseWebSocketResponse` and MDNS constants. - `mozart_api.util`: Helper functions, such as `check_valid_jid`, `check_valid_serial_number`, `split_jid` and `get_highest_resolution_artwork`. All of these, as well as `MozartClient`, can also be imported directly from the top-level `mozart_api` package. Another file, mozart_cli.py, has been made for using the Mozart API in a simple CLI program. This has been set as the "entry point" for the Python package. ### Installation The Mozart Open API can be installed with pip and requires [Python](https://www.python.org/downloads/). Install using pip: ```terminal pip3 install mozart_api ``` ### API usage To use the Python API: - Create a MozartClient object - Choose which (if any) WebSocket events to listen to - Connect to the WebSocket notification channel (if needed) - Use any of the endpoints #### Example ```python import asyncio from mozart_api.const import WebSocketEventType from mozart_api.models import VolumeLevel, VolumeState from mozart_api.mozart_client import MozartClient def all_notifications(notification: WebSocketEventType, notification_type: str) -> None: """Notification handler.""" print(f"{notification_type} : {notification}") async def volume_notifications(notification: VolumeState) -> None: """Volume notification handler.""" print(notification) async def test_api() -> None: """Test Mozart API.""" mozart_client = MozartClient(host="192.168.0.1") mozart_client.get_all_notifications(all_notifications) mozart_client.get_volume_notifications(volume_notifications) await mozart_client.connect_notifications(remote_control=True) await mozart_client.set_current_volume_level(volume_level=VolumeLevel(level=50)) await mozart_client.activate_preset(id=2) await mozart_client.post_beolink_expand( jid="1234.1234567.12345678@products.bang-olufsen.com", ) listeners = await mozart_client.get_beolink_listeners() print(listeners) # Close aiohttp ClientSession await mozart_client.close_api_client() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` ```python import asyncio from mozart_api.const import WebSocketEventType from mozart_api.models import VolumeLevel, VolumeState from mozart_api.mozart_client import MozartClient def all_notifications(notification: WebSocketEventType, notification_type: str) -> None: """Notification handler.""" print(f"{notification_type} : {notification}") async def volume_notifications(notification: VolumeState) -> None: """Volume notification handler.""" print(notification) async def test_api() -> None: """Test Mozart API.""" async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_all_notifications(all_notifications) mozart_client.get_volume_notifications(volume_notifications) await mozart_client.connect_notifications(remote_control=True) await mozart_client.set_current_volume_level(volume_level=VolumeLevel(level=50)) await mozart_client.activate_preset(id=2) await mozart_client.post_beolink_expand( jid="1234.1234567.12345678@products.bang-olufsen.com", ) listeners = await mozart_client.get_beolink_listeners() print(listeners) # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` Where `192.168.0.1` is a Mozart device's IP-address. #### Beware Some of the classes defined in the Mozart API are aliases to other data types, for example: `ActionList` is an array of `Action` objects. These classes are not generated and can therefore not be used in the Python API. instead, use the built in Python data types, for example when defining an ActionList, simply use a `list` instead. #### WebSocket notifications The most convenient way of getting state information from a Mozart device is through the WebSocket notification channel. The WebSocket listeners are run using [asyncio Tasks](https://docs.python.org/3/library/asyncio-task.html). A callback can be set for each of the WebSocket notifications. The callbacks can be functions or awaitable functions. To receive `WebSocketEventBeoRemoteButton` notifications requires that `remote_control=True` is defined when running the `connect_notifications()` method. Use `reconnect=True` when running the `connect_notifications()` method to automatically reconnect if the connection is lost. The WebSocket listeners can be stopped with the `disconnect_notifications()` method. All notification types are available in the `WebSocketEventTypes` StrEnum in `mozart_api.const`: ```python >>> from mozart_api.const import WebSocketEventTypes >>> WebSocketEventTypes.VOLUME ``` #### Helper methods and functions A number of helper functions are available in the `mozart_api.util` module. These functions handle basic tasks, but do not interact with the REST API or WebSocket listener directly. Additionaly, helper methods are available in the `MozartClient` object and expand upon the basic functionality of a REST method. ##### check_valid_jid The `check_valid_jid` determines if an input string is a valid Beolink JID: ```python >>> from mozart_api.util import check_valid_jid >>> check_valid_jid("1234.1234567.12345678@products.bang-olufsen.com") True >>> check_valid_jid("1234567.12345678@products.bang-olufsen.com") False ``` ##### check_valid_serial_number The `check_valid_serial_number` determines if an input string is a valid serial number: ```python >>> from mozart_api.util import check_valid_serial_number >>> check_valid_serial_number("12345678") True >>> check_valid_serial_number("1234567") False ``` ##### split_jid The `split_jid` function splits a Beolink JID into its item number, type number and serial number: ```python >>> from mozart_api.util import split_jid >>> split_jid("1234.1234567.12345678@products.bang-olufsen.com") ('1234', '1234567', '12345678') ``` ##### get_highest_resolution_artwork The `get_highest_resolution_artwork` function gets the highest resolution artwork available from provided `PlaybackContentMetadata`. ##### check_device_connection The `check_device_connection` method checks if both the REST API and the WebSocket notification channel of a device are reachable and returns a `bool`. If `raise_error=True` is defined, an `ExceptionGroup` containing the connection errors is raised instead of returning `False`. ##### async_get_beolink_join_result The `get_beolink_join_result` method is used to retrieve a `BeolinkJoinResult` using a `BeolinkJoinRequest`, received from `join_latest_beolink_experience` or `join_beolink_peer` method calls. This result is only available after a device has joined. Until this result is available, the `get_beolink_join_result` method raises an `ApiException`. The `async_get_beolink_join_result` method repeatedly tries to get the `BeolinkJoinResult` with a 5 second timeout. This method returns a `BeolinkJoinResult` or `None` if it fails to get a result. ##### async_post_beolink_expand The `post_beolink_expand` method is used to expand a Beolink session to another device using a Beolink JID. This method does not return a result, so it is unknown if or when the expand was successful. A `NotFoundException` is raised if the listener was not found. The `async_post_beolink_expand` method checks for the requested listener's JID in the the Beolink leader's listeners, using the `get_beolink_listeners` method repeatedly with a 5 second timeout. This method returns a `True`, `ApiException`, `NotFoundException` or `TimeoutError` representing the expand result. ##### Extra callbacks Additionally, some useful callbacks are available that are not associated with a single notification type. The `get_on_connection_lost` method will set a callback when the WebSocket listener loses connection. ```python import asyncio from mozart_api.mozart_client import MozartClient async def test_api() -> None: """Test Mozart API.""" def on_connection_lost() -> None: """Notification handler.""" print("Connection lost") async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_on_connection_lost(on_connection_lost) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` The `get_on_connection` method will set a callback when the WebSocket listener successfully establishes a connection. ```python import asyncio from mozart_api.mozart_client import MozartClient async def test_api() -> None: """Test Mozart API.""" def on_connection() -> None: """Notification handler.""" print("Connected") async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_on_connection(on_connection) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` The `get_all_notifications` method will set a callback on all WebSocket notifications received. The notification_type will return the name of the event with the `WebSocketEvent` prefix removed: `WebSocketEventAlarmTriggered` ➞ `AlarmTriggered` ```python import asyncio from mozart_api.const import WebSocketEventType from mozart_api.mozart_client import MozartClient async def test_api() -> None: """Test Mozart API.""" def all_notifications(notification: WebSocketEventType, notification_type: str) -> None: """Notification handler.""" print(f"{notification_type} : {notification}") async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_all_notifications(all_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` The `get_all_notifications_raw` method will set a callback on all WebSocket notifications received and will not deserialize the received JSON or dict. ```python import asyncio from mozart_api.const import BaseWebSocketResponse from mozart_api.mozart_client import MozartClient async def test_api() -> None: """Test Mozart API.""" def all_notifications_raw(notification: BaseWebSocketResponse) -> None: """Notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_all_notifications_raw(all_notifications_raw) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(test_api()) ``` #### Discovering Mozart devices on the network Mozart devices can be found through MDNS using the service name: `_bangolufsen._tcp.local.` The service provides everything immediately necessary for using the device, including IP address, all components for the Beolink JID, model name, friendly name, software version and more. The service type and TXT record keys are available as constants in `mozart_api.const`: `MDNS_SERVICE_TYPE`, `MDNS_TYPE_NUMBER`, `MDNS_ITEM_NUMBER`, `MDNS_SERIAL_NUMBER`, `MDNS_FRIENDLY_NAME` and `MDNS_SOFTWARE_VERSION`. ### Example CLI program The CLI program carries out one command and then exits afterwards. The program needs to do a device-discovery on each command, which in noisy environments could take some time. If speed is important, an IP-address can be used instead. Additionally since the CLI uses MDNS for device discovery, port number 5353 needs to be open. #### Usage example This example shows device discovery and afterwards joining a Beolink session with WebSocket events being printed. ![example gif](https://raw.githubusercontent.com/bang-olufsen/mozart-open-api/main/docs/media/discovery_join.gif) #### Device discovery ##### discover Discover Mozart devices on the network. ```terminal mozart_api discover ``` ##### serial number Ensure that the serial number is reachable on the network. ```terminal mozart_api 12345678 ``` #### Options ##### verbose Add as option to add verbose output. ```terminal mozart_api serial_number command command_args -v mozart_api serial_number command command_args --verbose ``` ##### timeout Add as option with parameter to modify MDNS discovery timeout. Optionally use '-1' to have a user-interrupted device discovery: ```terminal mozart_api serial_number command command_args -t 20 mozart_api serial_number command command_args --timeout 20 mozart_api serial_number command command_args --timeout -1 ``` ##### websocket Add as option to show WebSocket notifications before and after command execution. Upon connection the overall state of the device will be immediately transferred. ```terminal mozart_api serial_number command command_args -w mozart_api serial_number command command_args --websocket ``` #### Commands ##### preset Will activate the _preset_ command. ```terminal mozart_api 12345678 preset 1 ``` ##### play Will activate the _play_ playback command. ```terminal mozart_api 12345678 play ``` ##### pause Will activate the _pause_ playback command. ```terminal mozart_api 12345678 pause ``` ##### next Will activate the _next_ playback command. ```terminal mozart_api 12345678 next ``` ##### previous Will activate the _previous_ playback command. ```terminal mozart_api 12345678 previous ``` ##### mute Will activate the mute command. ```terminal mozart_api 12345678 mute ``` ##### unmute Will activate the unmute command. ```terminal mozart_api 12345678 unmute ``` ##### volume Will activate the modify volume level command on the device (0-100). ```terminal mozart_api 12345678 volume 50 ``` ##### join Will join a Beolink experience if available or will join a specific Beolink experience if available. ```terminal mozart_api 12345678 join mozart_api 12345678 join 23456789 ``` ##### allstandby Will set all connected Beolink devices to networkStandby. ```terminal mozart_api 12345678 allstandby ``` ##### info Will print device information. ```terminal mozart_api 12345678 info ``` ##### version Will print device API version. ```terminal mozart_api version ``` license: name: MIT url: https://opensource.org/licenses/MIT title: Mozart platform API version: 0.2.0 servers: - url: http://0.0.0.0 description: Local IP address placeholder paths: /api/v1/battery: get: operationId: get-battery-state summary: Get battery state of the product description: |- Use the `get-battery-state` method in the Python package with one of: ```mozart_client await mozart_client.get_battery_state() ``` ```mozart_api await mozart_api.get_battery_state() ``` ```power_api await power_api.get_battery_state() ``` responses: '200': description: The battery state of the product content: application/json: schema: $ref: '#/components/schemas/BatteryState' tags: - Power - mozart /api/v1/beolink/allstandby: post: operationId: post-beolink-allstandby summary: Broadcast an all standby event to turn all Beolink devices off description: |- Use the `post-beolink-allstandby` method in the Python package with one of: ```mozart_client await mozart_client.post_beolink_allstandby() ``` ```mozart_api await mozart_api.post_beolink_allstandby() ``` ```beolink_api await beolink_api.post_beolink_allstandby() ``` responses: '202': description: successful operation '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/available-listeners: get: operationId: get-beolink-available-listeners summary: Get available listeners description: |- Get a list of devices that can be listening to this device active experience. Use the `get-beolink-available-listeners` method in the Python package with one of: ```mozart_client await mozart_client.get_beolink_available_listeners() ``` ```mozart_api await mozart_api.get_beolink_available_listeners() ``` ```beolink_api await beolink_api.get_beolink_available_listeners() ``` responses: '200': description: Success content: application/json: schema: type: array items: $ref: '#/components/schemas/BeolinkAvailableListener' '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/expand/{jid}: parameters: - name: jid in: path description: Jabber id of peer to expand the active experience to required: true schema: $ref: '#/components/schemas/BeolinkPeerID' post: operationId: post-beolink-expand summary: Expand the current active experience description: |- Expand the current active experience to another device with jabber id `{jid}`. Use the `post-beolink-expand` method in the Python package with one of: ```mozart_client await mozart_client.post_beolink_expand() ``` ```mozart_api await mozart_api.post_beolink_expand() ``` ```beolink_api await beolink_api.post_beolink_expand() ``` responses: '202': description: Success '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '403': description: Not allowed to initiate join content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: Remote device not found tags: - Beolink - mozart /api/v1/beolink/join: post: operationId: join-latest-beolink-experience summary: Trigger touch to join description: |- Use the `join-latest-beolink-experience` method in the Python package with one of: ```mozart_client await mozart_client.join_latest_beolink_experience() ``` ```mozart_api await mozart_api.join_latest_beolink_experience() ``` ```beolink_api await beolink_api.join_latest_beolink_experience() ``` responses: '202': $ref: '#/components/responses/BeolinkJoinResponse' '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '403': description: Not allowed to initiate join content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/join-result/{id}: get: operationId: get-beolink-join-result summary: Get Beolink join result, test-endpoint description: |- Returns the result of a join request. **WARNING:** This end-point is only for testing purposes. Only a limited number of results are kept, so if there are multiple API clients using the device at the same time, and you are polling this end-point, you may miss the result of your join request. Use the `get-beolink-join-result` method in the Python package with one of: ```mozart_client await mozart_client.get_beolink_join_result() ``` ```mozart_api await mozart_api.get_beolink_join_result() ``` ```beolink_api await beolink_api.get_beolink_join_result() ``` responses: '200': description: Join result available content: application/json: schema: $ref: '#/components/schemas/BeolinkJoinResult' '404': description: Join result unavailable deprecated: true tags: - Beolink - mozart parameters: - name: id in: path description: Join request ID required: true schema: $ref: '#/components/schemas/BeolinkRequestID' /api/v1/beolink/join/{jid}: parameters: - name: jid in: path description: Jabber ID of peer to join required: true schema: $ref: '#/components/schemas/BeolinkPeerID' - name: source in: query description: Ask to join a specific source on peer required: false schema: type: string post: operationId: join-beolink-peer summary: Join multi-room experience description: |- Join the experience currently active on peer with Jabber ID `{jid}`. Use the `join-beolink-peer` method in the Python package with one of: ```mozart_client await mozart_client.join_beolink_peer() ``` ```mozart_api await mozart_api.join_beolink_peer() ``` ```beolink_api await beolink_api.join_beolink_peer() ``` responses: '202': $ref: '#/components/responses/BeolinkJoinResponse' '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '403': description: Not allowed to initiate join content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/leave: post: operationId: post-beolink-leave summary: Leave the ongoing experience (disconnect this device from remote) description: |- Use the `post-beolink-leave` method in the Python package with one of: ```mozart_client await mozart_client.post_beolink_leave() ``` ```mozart_api await mozart_api.post_beolink_leave() ``` ```beolink_api await beolink_api.post_beolink_leave() ``` responses: '202': description: successful operation '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/listeners: get: operationId: get-beolink-listeners summary: Get joined peers description: |- Get a list of devices that are listening to this device active experience (that have joined). Use the `get-beolink-listeners` method in the Python package with one of: ```mozart_client await mozart_client.get_beolink_listeners() ``` ```mozart_api await mozart_api.get_beolink_listeners() ``` ```beolink_api await beolink_api.get_beolink_listeners() ``` responses: '200': description: Success content: application/json: schema: type: array items: $ref: '#/components/schemas/BeolinkListener' '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/peers: get: operationId: get-beolink-peers summary: Get discovered peers description: |- Get information about the Beolink peers discovered by this device. Use the `get-beolink-peers` method in the Python package with one of: ```mozart_client await mozart_client.get_beolink_peers() ``` ```mozart_api await mozart_api.get_beolink_peers() ``` ```beolink_api await beolink_api.get_beolink_peers() ``` responses: '200': description: Success content: application/json: schema: type: array items: $ref: '#/components/schemas/BeolinkPeer' '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/beolink/self: get: operationId: get-beolink-self summary: Get information about this device description: |- Returns Beolink information like about this device. This can be useful if you want to expand _to_ this device. Use the `get-beolink-self` method in the Python package with one of: ```mozart_client await mozart_client.get_beolink_self() ``` ```mozart_api await mozart_api.get_beolink_self() ``` ```beolink_api await beolink_api.get_beolink_self() ``` responses: '200': description: successful operation content: application/json: schema: $ref: '#/components/schemas/BeolinkSelf' tags: - Beolink - mozart /api/v1/beolink/unexpand/{jid}: parameters: - name: jid in: path description: Jabber id of peer to unexpand required: true schema: $ref: '#/components/schemas/BeolinkPeerID' post: operationId: post-beolink-unexpand summary: Unexpand (disconnect) a device from the multiroom session description: |- Disconnect the device with jabber id `{jid}` from the current active experience. Use the `post-beolink-unexpand` method in the Python package with one of: ```mozart_client await mozart_client.post_beolink_unexpand() ``` ```mozart_api await mozart_api.post_beolink_unexpand() ``` ```beolink_api await beolink_api.post_beolink_unexpand() ``` responses: '202': description: Success '400': description: Beolink not enabled on this device content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Beolink - mozart /api/v1/content: get: operationId: get-content summary: Get a list of available content description: |- Use the `get-content` method in the Python package with one of: ```mozart_client await mozart_client.get_content() ``` ```mozart_api await mozart_api.get_content() ``` ```content_api await content_api.get_content() ``` responses: '200': description: Successful request content: application/json: schema: $ref: '#/components/schemas/ContentItemMap' tags: - Content - mozart parameters: - name: startWith in: query description: Filter result that start with x. It could be input source "tv", "netradio" or content "tv://TV", "tv://netflix" required: false schema: type: string /api/v1/content/active: get: operationId: get-active-content summary: Get currently active content description: |- Use the `get-active-content` method in the Python package with one of: ```mozart_client await mozart_client.get_active_content() ``` ```mozart_api await mozart_api.get_active_content() ``` ```content_api await content_api.get_active_content() ``` responses: '200': description: Successful request content: application/json: schema: $ref: '#/components/schemas/ContentItemWithId' '204': description: No content active tags: - Content - mozart /api/v1/output/beosound-shape/status: get: operationId: get-beosound-shape-status summary: Get status description: |- Use the `get-beosound-shape-status` method in the Python package with one of: ```mozart_client await mozart_client.get_beosound_shape_status() ``` ```mozart_api await mozart_api.get_beosound_shape_status() ``` ```output_api await output_api.get_beosound_shape_status() ``` responses: '200': description: status returned content: application/json: schema: $ref: '#/components/schemas/BeoShapeStatus' '404': description: beosound-shape not found/supported content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Output - mozart /api/v1/overlay/play: post: operationId: post-overlay-play summary: Play overlay description: |- Play some audio as an overlay. This will duck currently playing music while the audio is playing. Currently 100 unique TTS messages can be generated a day and generated messages are cached for 24 hours. Use the `post-overlay-play` method in the Python package with one of: ```mozart_client await mozart_client.post_overlay_play() ``` ```mozart_api await mozart_api.post_overlay_play() ``` ```overlay_api await overlay_api.post_overlay_play() ``` requestBody: description: settings to use for the overlay required: true content: application/json: schema: $ref: '#/components/schemas/OverlayPlayRequest' responses: '202': description: successful request; will attempt to play overlay '400': description: Bad request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Overlay - mozart /api/v1/playback/command/{command}: post: operationId: post-playback-command summary: Send a specific playback command to the product description: |- Use the `post-playback-command` method in the Python package with one of: ```mozart_client await mozart_client.post_playback_command() ``` ```mozart_api await mozart_api.post_playback_command() ``` ```playback_api await playback_api.post_playback_command() ``` parameters: - name: command in: path description: the named command to execute required: true schema: type: string enum: - play - pause - stop - skip - prev responses: '201': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/deezer/flow: post: operationId: start-deezer-flow summary: Play users flow. If no provided user id it will play the flow connected to the active account description: |- Use the `start-deezer-flow` method in the Python package with one of: ```mozart_client await mozart_client.start_deezer_flow() ``` ```mozart_api await mozart_api.start_deezer_flow() ``` ```playback_api await playback_api.start_deezer_flow() ``` ```deezer_api await deezer_api.start_deezer_flow() ``` requestBody: description: Select user required: true content: application/json: schema: $ref: '#/components/schemas/UserFlow' responses: '201': description: successful request '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Deezer - Playback - mozart /api/v1/playback/preset/{id}/trigger: post: operationId: activate-preset summary: Trigger a preset description: |- Use the `activate-preset` method in the Python package with one of: ```mozart_client await mozart_client.activate_preset() ``` ```mozart_api await mozart_api.activate_preset() ``` ```playback_api await playback_api.activate_preset() ``` parameters: - name: id in: path description: the id of the preset you want to trigger required: true schema: type: integer responses: '204': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '412': description: Pre-condition not met content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/queue: post: operationId: add-to-queue summary: Add an element to the queue description: |- Use the `add-to-queue` method in the Python package with one of: ```mozart_client await mozart_client.add_to_queue() ``` ```mozart_api await mozart_api.add_to_queue() ``` ```playback_api await playback_api.add_to_queue() ``` requestBody: description: the queue element you want to add required: true content: application/json: schema: $ref: '#/components/schemas/PlayQueueItem' responses: '204': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/queue/clear: post: operationId: post-clear-queue summary: Clear the queue description: |- Use the `post-clear-queue` method in the Python package with one of: ```mozart_client await mozart_client.post_clear_queue() ``` ```mozart_api await mozart_api.post_clear_queue() ``` ```playback_api await playback_api.post_clear_queue() ``` responses: '201': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/queue/settings: get: operationId: get-settings-queue summary: Get the current queue settings description: |- Use the `get-settings-queue` method in the Python package with one of: ```mozart_client await mozart_client.get_settings_queue() ``` ```mozart_api await mozart_api.get_settings_queue() ``` ```playback_api await playback_api.get_settings_queue() ``` responses: '200': description: successful operation content: application/json: schema: type: object $ref: '#/components/schemas/PlayQueueSettings' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart put: operationId: set-settings-queue summary: Set queue settings description: |- Use the `set-settings-queue` method in the Python package with one of: ```mozart_client await mozart_client.set_settings_queue() ``` ```mozart_api await mozart_api.set_settings_queue() ``` ```playback_api await playback_api.set_settings_queue() ``` requestBody: description: the desired settings required: true content: application/json: schema: $ref: '#/components/schemas/PlayQueueSettings' responses: '204': description: the new settings were accepted '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/seek: put: operationId: seek-to-position summary: Seek to position in stream description: |- Use the `seek-to-position` method in the Python package with one of: ```mozart_client await mozart_client.seek_to_position() ``` ```mozart_api await mozart_api.seek_to_position() ``` ```playback_api await playback_api.seek_to_position() ``` parameters: - name: position_ms in: query description: position in milliseconds required: true schema: type: integer format: int32 responses: '204': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/sources: get: operationId: get-available-sources summary: Get all the available sources description: |- Use the `get-available-sources` method in the Python package with one of: ```mozart_client await mozart_client.get_available_sources() ``` ```mozart_api await mozart_api.get_available_sources() ``` ```playback_api await playback_api.get_available_sources() ``` parameters: - name: target-remote in: query description: filter sources for remote control required: false schema: type: boolean responses: '200': description: Returns a list of available sources content: application/json: schema: $ref: '#/components/schemas/SourceArray' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/sources/active/{sourceId}: post: operationId: set-active-source summary: Set the active source description: |- Use the `set-active-source` method in the Python package with one of: ```mozart_client await mozart_client.set_active_source() ``` ```mozart_api await mozart_api.set_active_source() ``` ```playback_api await playback_api.set_active_source() ``` parameters: - name: sourceId in: path description: the id of the source to activate required: true schema: type: string responses: '201': description: Successfully changed the active source '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/state: get: operationId: get-playback-state summary: Get the current playback state description: |- Use the `get-playback-state` method in the Python package with one of: ```mozart_client await mozart_client.get_playback_state() ``` ```mozart_api await mozart_api.get_playback_state() ``` ```playback_api await playback_api.get_playback_state() ``` responses: '200': description: Model describing the current playback state and meta data content: application/json: schema: $ref: '#/components/schemas/PlaybackState' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/playback/uri: post: operationId: post-uri-source summary: Set the URI from which sound is streamed description: |- Use the `post-uri-source` method in the Python package with one of: ```mozart_client await mozart_client.post_uri_source() ``` ```mozart_api await mozart_api.post_uri_source() ``` ```playback_api await playback_api.post_uri_source() ``` requestBody: description: the desired uri from which to stream data required: true content: application/json: schema: $ref: '#/components/schemas/Uri' responses: '201': description: successful operation '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Playback - mozart /api/v1/product/info/friendlyname: put: operationId: set-product-friendly-name summary: Set the friendly name description: |- Use the `set-product-friendly-name` method in the Python package with one of: ```mozart_client await mozart_client.set_product_friendly_name() ``` ```mozart_api await mozart_api.set_product_friendly_name() ``` ```product_api await product_api.set_product_friendly_name() ``` requestBody: description: the friendly name for the product required: true content: application/json: schema: $ref: '#/components/schemas/ProductFriendlyName' responses: '204': description: product friendly name updated '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Product - mozart /api/v1/remote: get: operationId: get-remote-menu summary: Get all remote menu items description: |- Use the `get-remote-menu` method in the Python package with one of: ```mozart_client await mozart_client.get_remote_menu() ``` ```mozart_api await mozart_api.get_remote_menu() ``` ```remote_api await remote_api.get_remote_menu() ``` parameters: - name: descendantsTo in: query description: Get all descendants to this item schema: type: string format: uuid responses: '200': description: Successful request content: application/json: example: 6c2ab917-2a9e-42dd-87c6-1fa2fabcdeb0: content: contentUri: tv source: tv firstChildMenuItemId: ee5196ce-65c4-4c56-9a48-1943c4afef9c fixed: true id: 6c2ab917-2a9e-42dd-87c6-1fa2fabcdeb0 label: TV parentMenuItemId: null dd5196ce-65c4-4c56-9a48-1943c4afef9c: content: contentUri: tv://HBO source: tv fixed: false id: dd5196ce-65c4-4c56-9a48-1943c4afef9c label: HBO parentMenuItemId: 6c2ab917-2a9e-42dd-87c6-1fa2fabcdeb0 ee5196ce-65c4-4c56-9a48-1943c4afef9c: content: contentUri: tv://Netflix source: tv fixed: false id: ee5196ce-65c4-4c56-9a48-1943c4afef9c label: Netflix nextSiblingMenuItemId: dd5196ce-65c4-4c56-9a48-1943c4afef9c parentMenuItemId: 6c2ab917-2a9e-42dd-87c6-1fa2fabcdeb0 schema: $ref: '#/components/schemas/RemoteMenuItemMap' tags: - Remote - mozart /api/v1/remote/key/{id}/trigger: post: operationId: post-remote-key-trigger summary: Remote input key press description: |- Use the `post-remote-key-trigger` method in the Python package with one of: ```mozart_client await mozart_client.post_remote_key_trigger() ``` ```mozart_api await mozart_api.post_remote_key_trigger() ``` ```remote_api await remote_api.post_remote_key_trigger() ``` parameters: - name: id in: path description: Key identifier required: true schema: type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RemoteUIKeyState' responses: '204': description: Remote input key press registered successfully '400': description: Failed to register key press content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: Key not found content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Remote - mozart /api/v1/remote/{id}/trigger: parameters: - name: id in: path description: Remote menu item ID required: true schema: type: string format: uuid post: operationId: post-remote-trigger summary: Trigger a remote menu item description: |- Use the `post-remote-trigger` method in the Python package with one of: ```mozart_client await mozart_client.post_remote_trigger() ``` ```mozart_api await mozart_api.post_remote_trigger() ``` ```remote_api await remote_api.post_remote_trigger() ``` responses: '204': description: Menu item successfully triggered '404': description: Menu item not found content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Remote - mozart /api/v1/scene/match-trigger: post: operationId: post-scene-match-trigger summary: Trigger the first scene with same non null objects provided in the SceneMatch object description: |- Use the `post-scene-match-trigger` method in the Python package with one of: ```mozart_client await mozart_client.post_scene_match_trigger() ``` ```mozart_api await mozart_api.post_scene_match_trigger() ``` ```scenes_api await scenes_api.post_scene_match_trigger() ``` requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SceneMatch' responses: '204': description: Successful request '400': description: Bad request no match objects provided content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: Could not find any matching scene content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Scenes - mozart /api/v1/scene/run: post: operationId: run-provided-scene summary: Run provided scene description: |- Use the `run-provided-scene` method in the Python package with one of: ```mozart_client await mozart_client.run_provided_scene() ``` ```mozart_api await mozart_api.run_provided_scene() ``` ```scenes_api await scenes_api.run_provided_scene() ``` requestBody: description: The scene you want to run required: true content: application/json: schema: $ref: '#/components/schemas/SceneProperties' responses: '204': description: Successful request tags: - Scenes - mozart /api/v1/scene/{id}/trigger: post: operationId: post-scene-trigger summary: Trigger a specific scene description: |- Use the `post-scene-trigger` method in the Python package with one of: ```mozart_client await mozart_client.post_scene_trigger() ``` ```mozart_api await mozart_api.post_scene_trigger() ``` ```scenes_api await scenes_api.post_scene_trigger() ``` parameters: - name: id in: path description: ID of the scene required: true schema: type: string format: uuid responses: '204': description: Successful request '400': description: Bad request can't convert id to UUID content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: Could not find scene content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Scenes - mozart /api/v1/scenes: get: operationId: get-all-scenes summary: Get a list of configured scenes description: |- Use the `get-all-scenes` method in the Python package with one of: ```mozart_client await mozart_client.get_all_scenes() ``` ```mozart_api await mozart_api.get_all_scenes() ``` ```scenes_api await scenes_api.get_all_scenes() ``` responses: '200': description: Successful request content: application/json: schema: $ref: '#/components/schemas/SceneMap' tags: - Scenes - mozart /api/v1/setup/bluetooth/devices: get: operationId: get-bluetooth-devices-status summary: Get the bluetooth devices status description: |- Use the `get-bluetooth-devices-status` method in the Python package with one of: ```mozart_client await mozart_client.get_bluetooth_devices_status() ``` ```mozart_api await mozart_api.get_bluetooth_devices_status() ``` ```bluetooth_api await bluetooth_api.get_bluetooth_devices_status() ``` responses: '200': description: returns the current bluetooth devices content: application/json: schema: $ref: '#/components/schemas/BluetoothDeviceList' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Bluetooth - mozart /api/v1/setup/presets: get: operationId: get-presets summary: Get the preset configuration description: |- Use the `get-presets` method in the Python package with one of: ```mozart_client await mozart_client.get_presets() ``` ```mozart_api await mozart_api.get_presets() ``` ```settings_api await settings_api.get_presets() ``` responses: '200': description: The preset audio source mapping content: application/json: schema: $ref: '#/components/schemas/PresetMap' tags: - Settings - mozart /api/v1/setup/remote/home-control-ixp: post: operationId: post-remote-home-control-ixp summary: Change any active Immersive Experience (IXP) description: |- Use the `post-remote-home-control-ixp` method in the Python package with one of: ```mozart_client await mozart_client.post_remote_home_control_ixp() ``` ```mozart_api await mozart_api.post_remote_home_control_ixp() ``` ```settings_api await settings_api.post_remote_home_control_ixp() ``` requestBody: description: The new IXP required: true content: application/json: schema: $ref: '#/components/schemas/HomeControlIxp' responses: '200': description: IXP updated '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Settings - mozart /api/v1/setup/remote/home-control-uri: get: operationId: get-remote-home-control-uri summary: Get HomeControl dashboard uri and (optional) Immersive Experience (IXP) start page description: |- Use the `get-remote-home-control-uri` method in the Python package with one of: ```mozart_client await mozart_client.get_remote_home_control_uri() ``` ```mozart_api await mozart_api.get_remote_home_control_uri() ``` ```settings_api await settings_api.get_remote_home_control_uri() ``` responses: '200': description: HomeControl dashboard and IXP uri content: application/json: schema: $ref: '#/components/schemas/HomeControlUri' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Settings - mozart put: operationId: set-remote-home-control-uri summary: Set the uri for HomeControl dashboard and/or set the Immersive Experience (IXP) start page. description: |- Use the `set-remote-home-control-uri` method in the Python package with one of: ```mozart_client await mozart_client.set_remote_home_control_uri() ``` ```mozart_api await mozart_api.set_remote_home_control_uri() ``` ```settings_api await settings_api.set_remote_home_control_uri() ``` requestBody: description: | The new uri for HomeControl dashboard and/or the IXP start page. Omitting the uri value will keep the current uri value and only update the ixp value. Omitting the ixp value will keep the current ixp value and only update the uri value. Setting the uri value to an empty string will disable the HomeControl dashboard but not the IXP start page. Setting the ixp value to an empty string will disable the IXP start page but not the HomeControl dashboard. required: true content: application/json: schema: $ref: '#/components/schemas/HomeControlUri' responses: '200': description: Uri for HomeControl dashboard and IXP start page updated '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Settings - mozart /api/v1/setup/remotes: get: operationId: get-bluetooth-remotes summary: Get a list of paired bluetooth remotes description: |- Use the `get-bluetooth-remotes` method in the Python package with one of: ```mozart_client await mozart_client.get_bluetooth_remotes() ``` ```mozart_api await mozart_api.get_bluetooth_remotes() ``` ```settings_api await settings_api.get_bluetooth_remotes() ``` responses: '200': description: List of paired remotes was obtained content: application/json: schema: $ref: '#/components/schemas/PairedRemoteResponse' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Settings - mozart /api/v1/softwareupdate: get: operationId: get-softwareupdate-status summary: Get the current software update status description: |- Use the `get-softwareupdate-status` method in the Python package with one of: ```mozart_client await mozart_client.get_softwareupdate_status() ``` ```mozart_api await mozart_api.get_softwareupdate_status() ``` ```software_update_api await software_update_api.get_softwareupdate_status() ``` responses: '200': description: the software update status content: application/json: schema: $ref: '#/components/schemas/SoftwareUpdateStatus' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Software update - mozart /api/v1/sound/features: get: operationId: get-sound-features summary: | Get available sound features that match the current role (standalone or multichannel). description: |- Use the `get-sound-features` method in the Python package with one of: ```mozart_client await mozart_client.get_sound_features() ``` ```mozart_api await mozart_api.get_sound_features() ``` ```sound_api await sound_api.get_sound_features() ``` responses: '200': description: Supported sound features content: application/json: schema: $ref: '#/components/schemas/SupportedSoundFeatures' tags: - Sound - mozart /api/v1/sound/listening-modes: get: operationId: get-listening-mode-set summary: | Get available listening modes that match the current role (standalone, multichannel or both(all)). description: |- Use the `get-listening-mode-set` method in the Python package with one of: ```mozart_client await mozart_client.get_listening_mode_set() ``` ```mozart_api await mozart_api.get_listening_mode_set() ``` ```sound_api await sound_api.get_listening_mode_set() ``` responses: '200': description: the list of listening modes content: application/json: schema: $ref: '#/components/schemas/ListeningModeSet' tags: - Sound - mozart /api/v1/sound/listening-modes/active: get: operationId: get-active-listening-mode summary: Get the active listening mode description: |- Use the `get-active-listening-mode` method in the Python package with one of: ```mozart_client await mozart_client.get_active_listening_mode() ``` ```mozart_api await mozart_api.get_active_listening_mode() ``` ```sound_api await sound_api.get_active_listening_mode() ``` responses: '200': description: the active listening mode content: application/json: schema: $ref: '#/components/schemas/ListeningModeRef' tags: - Sound - mozart /api/v1/sound/listening-modes/{id}/activate: parameters: - $ref: '#/components/parameters/ListeningModeID' post: operationId: activate-listening-mode summary: Activate a listening mode description: |- Use the `activate-listening-mode` method in the Python package with one of: ```mozart_client await mozart_client.activate_listening_mode() ``` ```mozart_api await mozart_api.activate_listening_mode() ``` ```sound_api await sound_api.activate_listening_mode() ``` responses: '204': description: Listening mode active '400': description: Cannot activate listening mode content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': $ref: '#/components/responses/MissingListeningMode' tags: - Sound - mozart /api/v1/sound/settings/adjustments/advancedBeamforming: put: operationId: set-sound-settings-adjustments-advancedBeamforming summary: Update the sound settings adjustments for Advanced Beamforming (marketing name is stage width) description: |- Use the `set-sound-settings-adjustments-advancedBeamforming` method in the Python package with one of: ```mozart_client await mozart_client.set_sound_settings_adjustments_advanced_beamforming() ``` ```mozart_api await mozart_api.set_sound_settings_adjustments_advanced_beamforming() ``` ```sound_api await sound_api.set_sound_settings_adjustments_advanced_beamforming() ``` requestBody: description: the perceived width of the sound field required: true content: application/json: schema: $ref: '#/components/schemas/AdvancedBeamforming' responses: '201': description: Accepted the Advanced Beamforming sound settings '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/settings/adjustments/bass: put: operationId: set-sound-settings-adjustments-bass summary: Update the sound settings adjustments for bass description: |- Use the `set-sound-settings-adjustments-bass` method in the Python package with one of: ```mozart_client await mozart_client.set_sound_settings_adjustments_bass() ``` ```mozart_api await mozart_api.set_sound_settings_adjustments_bass() ``` ```sound_api await sound_api.set_sound_settings_adjustments_bass() ``` requestBody: description: the bass level required: true content: application/json: schema: $ref: '#/components/schemas/Bass' responses: '201': description: accepted the bass sound settings '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/settings/adjustments/directivity: put: operationId: set-sound-settings-adjustments-directivity summary: Update the sound settings adjustments for directivity description: |- Use the `set-sound-settings-adjustments-directivity` method in the Python package with one of: ```mozart_client await mozart_client.set_sound_settings_adjustments_directivity() ``` ```mozart_api await mozart_api.set_sound_settings_adjustments_directivity() ``` ```sound_api await sound_api.set_sound_settings_adjustments_directivity() ``` requestBody: description: the directivity required: true content: application/json: schema: $ref: '#/components/schemas/Directivity' responses: '201': description: accepted the directivity sound settings '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/settings/adjustments/loudness: put: operationId: set-sound-settings-adjustments-loudness summary: Update the sound settings adjustments for loudness description: |- Use the `set-sound-settings-adjustments-loudness` method in the Python package with one of: ```mozart_client await mozart_client.set_sound_settings_adjustments_loudness() ``` ```mozart_api await mozart_api.set_sound_settings_adjustments_loudness() ``` ```sound_api await sound_api.set_sound_settings_adjustments_loudness() ``` requestBody: description: the loudness mode required: true content: application/json: schema: $ref: '#/components/schemas/Loudness' responses: '201': description: accepted the loudness sound settings '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/settings/adjustments/treble: put: operationId: set-sound-settings-adjustments-treble summary: Update the sound settings adjustments for treble description: |- Use the `set-sound-settings-adjustments-treble` method in the Python package with one of: ```mozart_client await mozart_client.set_sound_settings_adjustments_treble() ``` ```mozart_api await mozart_api.set_sound_settings_adjustments_treble() ``` ```sound_api await sound_api.set_sound_settings_adjustments_treble() ``` requestBody: description: the treble level required: true content: application/json: schema: $ref: '#/components/schemas/Treble' responses: '201': description: accepted the treble sound settings '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/speakergroup/active: get: operationId: get-speakergroup-active summary: Get the active speaker group description: |- Use the `get-speakergroup-active` method in the Python package with one of: ```mozart_client await mozart_client.get_speakergroup_active() ``` ```mozart_api await mozart_api.get_speakergroup_active() ``` ```speaker_group_api await speaker_group_api.get_speakergroup_active() ``` responses: '200': description: The active speaker group, or empty if none content: application/json: schema: $ref: '#/components/schemas/SpeakerGroupOverview' tags: - SpeakerGroup - mozart /api/v1/sound/volume: get: operationId: get-current-volume summary: Get the current volume state description: |- Use the `get-current-volume` method in the Python package with one of: ```mozart_client await mozart_client.get_current_volume() ``` ```mozart_api await mozart_api.get_current_volume() ``` ```sound_api await sound_api.get_current_volume() ``` responses: '200': description: The currently active volume content: application/json: schema: $ref: '#/components/schemas/VolumeState' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/volume/level: put: operationId: set-current-volume-level summary: Set the current volume level description: |- Use the `set-current-volume-level` method in the Python package with one of: ```mozart_client await mozart_client.set_current_volume_level() ``` ```mozart_api await mozart_api.set_current_volume_level() ``` ```sound_api await sound_api.set_current_volume_level() ``` requestBody: description: The volume level to apply required: true content: application/json: schema: $ref: '#/components/schemas/VolumeLevel' responses: '201': description: volume level change accepted '400': description: invalid request (e.g. volume cannot be set) content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/sound/volume/mute: put: operationId: set-volume-mute summary: Set the volume mute state description: |- Use the `set-volume-mute` method in the Python package with one of: ```mozart_client await mozart_client.set_volume_mute() ``` ```mozart_api await mozart_api.set_volume_mute() ``` ```sound_api await sound_api.set_volume_mute() ``` requestBody: description: The mute state to apply required: true content: application/json: schema: $ref: '#/components/schemas/VolumeMute' responses: '201': description: volume mute state accepted '400': description: volume mute not accepted tags: - Sound - mozart /api/v1/sound/volume/settings: get: operationId: get-volume-settings summary: Get the current volume settings for default and maximum volume level description: |- Use the `get-volume-settings` method in the Python package with one of: ```mozart_client await mozart_client.get_volume_settings() ``` ```mozart_api await mozart_api.get_volume_settings() ``` ```sound_api await sound_api.get_volume_settings() ``` responses: '200': description: returns the volume settings content: application/json: schema: $ref: '#/components/schemas/VolumeSettings' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart put: operationId: set-volume-settings summary: Set the current volume settings for default and maximum volume level description: |- Use the `set-volume-settings` method in the Python package with one of: ```mozart_client await mozart_client.set_volume_settings() ``` ```mozart_api await mozart_api.set_volume_settings() ``` ```sound_api await sound_api.set_volume_settings() ``` requestBody: description: The settings to apply required: true content: application/json: schema: $ref: '#/components/schemas/VolumeSettings' responses: '201': description: volume settings accepted '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Sound - mozart /api/v1/stand/info: get: operationId: get-stand-info summary: Get stand information description: |- Use the `get-stand-info` method in the Python package with one of: ```mozart_client await mozart_client.get_stand_info() ``` ```mozart_api await mozart_api.get_stand_info() ``` ```stand_api await stand_api.get_stand_info() ``` responses: '200': description: Stand information content: application/json: schema: $ref: '#/components/schemas/StandInfo' '400': description: Stand capability is not available content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: Stand not connected content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Stand - mozart /api/v1/stand/move: post: operationId: set-stand-movement summary: Set stand movement with either an angle or a movement type description: |- Use the `set-stand-movement` method in the Python package with one of: ```mozart_client await mozart_client.set_stand_movement() ``` ```mozart_api await mozart_api.set_stand_movement() ``` ```stand_api await stand_api.set_stand_movement() ``` parameters: - name: slow-speed in: query description: Use slow speed on continuous movement schema: type: boolean requestBody: description: Stand Movement required: true content: application/json: schema: $ref: '#/components/schemas/StandMovement' responses: '204': description: the movement was accepted '400': description: Stand not connected or stand capability is not available content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Stand - mozart /api/v1/stand/status: get: operationId: get-stand-status summary: Get stand Status description: |- Use the `get-stand-status` method in the Python package with one of: ```mozart_client await mozart_client.get_stand_status() ``` ```mozart_api await mozart_api.get_stand_status() ``` ```stand_api await stand_api.get_stand_status() ``` responses: '200': description: The current stand position and movement status content: application/json: schema: $ref: '#/components/schemas/StandStatus' '400': description: Stand capability is not available content: application/json: schema: $ref: '#/components/schemas/ErrorModel' '404': description: StandStatus not available content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Stand - mozart /api/v1/state: get: operationId: get-product-state summary: Get the overall state from the product description: |- Use the `get-product-state` method in the Python package with one of: ```mozart_client await mozart_client.get_product_state() ``` ```mozart_api await mozart_api.get_product_state() ``` ```product_api await product_api.get_product_state() ``` responses: '200': description: A snapshot of the overall state of the product content: application/json: schema: $ref: '#/components/schemas/ProductState' '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Product - mozart /api/v1/state/power: get: operationId: get-power-state summary: Get power state of the product description: |- Use the `get-power-state` method in the Python package with one of: ```mozart_client await mozart_client.get_power_state() ``` ```mozart_api await mozart_api.get_power_state() ``` ```power_api await power_api.get_power_state() ``` responses: '200': description: The power state of the product content: application/json: schema: $ref: '#/components/schemas/PowerStateEnum' tags: - Power - mozart /api/v1/state/reboot: put: operationId: post-reboot summary: Reboot the mozart device description: |- Use the `post-reboot` method in the Python package with one of: ```mozart_client await mozart_client.post_reboot() ``` ```mozart_api await mozart_api.post_reboot() ``` ```power_api await power_api.post_reboot() ``` responses: '200': description: The device is being rebooted '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Power - mozart /api/v1/state/standby: put: operationId: post-standby summary: Put the device in standby description: |- Use the `post-standby` method in the Python package with one of: ```mozart_client await mozart_client.post_standby() ``` ```mozart_api await mozart_api.post_standby() ``` ```power_api await power_api.post_standby() ``` responses: '200': description: The device is put in standby '400': description: invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorModel' tags: - Power - mozart components: parameters: ListeningModeID: in: path name: id required: true schema: $ref: '#/components/schemas/ListeningModeID' schemas: Action: description: | An action object. Examples: RadioAction: ```json { "type": "radio", "radioStationId": "8779112938791514" } ``` ToneAction: ```json { "type": "tone", "toneName": "alarm_2" } ``` SourcePresetAction: ```json { "type": "sourcePreset", "source": { "value": "spotify" }, "presetKey": "Preset3" } ``` DeezerFlowAction: ```json { "type": "deezerFlow", "deezerUserId": "1234" } ``` ActivateSourceAction: ```json { "type": "activateSource", "source": { "value": "spotify" } } ``` PlayQueueAction: ``` { "type": "playQueue", "queueItem": { "provider": { "value": "deezer" }, "startNowFromPosition": 0, "type": "playlist", "uri": "playlist:8074581462" }, "queueSettings": { "consume": false, "repeat": "none", "shuffle": false } } ``` StandbyAction: ```json { "type": "standby" } ``` AllStandbyAction: ```json { "type": "allStandby" } ``` TouchToJoinAction: ```json { "type": "touchToJoin" } ``` ButtonShortPressAction: ```json { "type": "buttonShortPress", "buttonName": "preset1" } ``` FallbackAction: ```json { "type": "fallback" } ``` VolumeAction: ```json { "type": "volume", "volumeLevel": 25 } ``` StopAction: ```json { "type": "stop", "stopDuration": 1300 } ``` TriggerContentAction: ```json { "contentId": "tv://netflix", "type": "triggerContent" } ``` SpeakerGroupAction: ```json { "type": "speakerGroup", "speakerGroupId": "00112233-4455-6677-8899-aabbccddeeff" } ``` ListeningModeAction: ```json { "type": "listeningMode", "listeningModeId": 1234 } ``` StandAction: ```json { "type": "stand", "standPosition": { "angle": 7.5 } } ``` GainAction: ```json { "type": "sourceGain", "source": { "value": "spotify" }, "gainDb": 1.0 } ``` SoundProfileAction: ```json { "type": "soundProfile", "soundProfile": { "speakerId1": { "directivity": "wide" }, "speakerId2": { "directivity": "narrow" } } } ``` type: object properties: buttonName: description: Name of the Button used for button-press types ('buttonShortPress') type: string enum: - preset1 - preset2 - preset3 - preset4 nullable: true contentId: description: Id of content only used for 'type=triggerContent' type: string nullable: true deezerUserId: description: Id of user only used for 'type=deezerFlow' and is optional type: string nullable: true pattern: ^\d{10}$ gainDb: description: Only used for 'type=sourceGain' type: number maximum: 12 minimum: -12 listeningModeId: description: Only used for 'type=listeningMode' $ref: '#/components/schemas/ListeningModeID' nullable: true presetKey: description: Only used for 'type=sourcePreset' type: string nullable: true pattern: ^Preset[0-9]+$ queueItem: description: PlayQueue item only used for 'type=playQueue' $ref: '#/components/schemas/PlayQueueItem' nullable: true queueSettings: description: PlayQueue settings only used for 'type=playQueue' and is optional $ref: '#/components/schemas/PlayQueueSettings' nullable: true radioStationId: description: Id of RadioStation only used for 'type=radio' type: string nullable: true pattern: ^\d{16}$ soundProfile: description: Only used for 'type=soundProfile' type: object example: speakerId1: directivity: directivity1 speakerId2: directivity: directivity1 additionalProperties: $ref: '#/components/schemas/ActionSoundProfile' nullable: true source: $ref: '#/components/schemas/SourceTypeEnum' nullable: true speakerGroupId: description: Only used for 'type=speakerGroup' $ref: '#/components/schemas/SpeakerGroupId' nullable: true standPosition: description: Only used for 'type=stand' $ref: '#/components/schemas/StandPosition' stopDuration: description: The duration to wait (seconds) until stopping only used for 'type=stop' type: integer format: int32 minimum: 0 nullable: true toneName: description: Name of the tone only used for 'type=tone' type: string enum: - alarm_1 - alarm_2 nullable: true type: description: The type of Action type: string enum: - standby - tone - radio - sourcePreset - deezerFlow - activateSource - playQueue - buttonShortPress - allStandby - touchToJoin - fallback - volume - stop - triggerContent - speakerGroup - listeningMode - stand - sourceGain - soundProfile volumeLevel: description: The volume level to configure only used for 'type=volume' type: integer format: int32 maximum: 100 minimum: 0 nullable: true required: - type ActionList: description: An ordered list of Actions to run on the product type: array items: $ref: '#/components/schemas/Action' example: - type: volume volumeLevel: 35 - radioStationId: '8779112938791514' type: radio - stopDuration: 1300 type: stop ActionSoundProfile: type: object properties: directivity: type: string nullable: true AdvancedBeamforming: type: object properties: value: description: Selected Advanced Beamforming value type: integer format: int32 required: - value AdvancedBeamformingFeature: allOf: - $ref: '#/components/schemas/AdvancedBeamforming' - $ref: '#/components/schemas/AdvancedBeamformingRange' AdvancedBeamformingRange: type: object properties: default: description: Product and role specific default Advanced Beamforming value $ref: '#/components/schemas/AdvancedBeamforming' range: description: Product and role specific Advanced Beamforming range type: array items: $ref: '#/components/schemas/AdvancedBeamforming' uniqueItems: true required: - default - range AlarmId: type: string format: uuid AlarmLabel: description: Label for an alarm type: string maxLength: 128 AlarmTimerEventData: type: object properties: event: type: string enum: - add - update - delete id: $ref: '#/components/schemas/AlarmId' type: type: string enum: - alarm - timer AlarmTriggeredInfo: type: object properties: id: $ref: '#/components/schemas/AlarmId' label: $ref: '#/components/schemas/AlarmLabel' Ambience: type: object properties: value: description: Selected ambience value type: number format: double required: - value AmbienceFeature: allOf: - $ref: '#/components/schemas/Ambience' - $ref: '#/components/schemas/AmbienceRange' AmbienceRange: type: object properties: default: description: Product and role specific default ambience value $ref: '#/components/schemas/Ambience' range: description: Product and role specific ambience range type: array items: $ref: '#/components/schemas/Ambience' uniqueItems: true required: - default - range Art: type: object properties: hasLocalImage: type: boolean key: type: string size: type: string type: type: string url: type: string Balance: type: object properties: value: description: Selected balance value type: number format: double required: - value BalanceFeature: allOf: - $ref: '#/components/schemas/Balance' - $ref: '#/components/schemas/BalanceRange' BalanceRange: type: object properties: default: description: Default balance value $ref: '#/components/schemas/Balance' range: description: balance range type: array items: $ref: '#/components/schemas/Balance' uniqueItems: true required: - default - range Bass: type: object properties: value: description: Selected bass value type: integer format: int32 required: - value BassFeature: allOf: - $ref: '#/components/schemas/Bass' - $ref: '#/components/schemas/BassRange' BassManagement: type: object properties: value: description: Selected bass-management value type: string enum: - on - off required: - value BassManagementFeature: allOf: - $ref: '#/components/schemas/BassManagement' - $ref: '#/components/schemas/BassManagementRange' BassManagementRange: type: object properties: default: description: Default bass-management value $ref: '#/components/schemas/BassManagement' range: description: bass-management range type: array items: $ref: '#/components/schemas/BassManagement' uniqueItems: true required: - default - range BassRange: type: object properties: default: description: Product and role specific default bass value $ref: '#/components/schemas/Bass' range: description: Product and role specific bass range type: array items: $ref: '#/components/schemas/Bass' uniqueItems: true required: - default - range BatteryState: type: object properties: batteryLevel: description: | Battery level in percent type: integer isCharging: type: boolean remainingChargingTimeMinutes: description: Remaining charging time in minutes type: integer remainingPlayingTimeMinutes: description: Remaining playing time in minutes type: integer state: type: string enum: - BatteryFull - BatteryMedium - BatteryLow - BatteryVeryLow - Charging - ChargingInputError - ChargingDischargedError - ChargingTemperatureError - ChargingBatteryError - BatteryNotPresent BeoRemoteButton: type: object properties: Key: type: string Type: enum: - KeyPress - KeyRelease BeoShapeStatus: description: Status type: object properties: amplifierTilesConfigured: description: Number of amplifier Shape titles currently configured type: integer format: int32 amplifierTilesOnline: description: Number of amplifier Shape tiles currently connected type: integer format: int32 designId: type: string designName: type: string soundProfile: type: object properties: activeDirectivity: type: string speakerId: type: string supportedDirectivity: description: The supported Beosound Shape directivity. Extracted from the provided design fetched from the cloud. type: array items: type: string required: - speakerId - activeDirectivity - supportedDirectivity speakerTilesConfigured: description: Number of speaker Shape titles currently configured type: integer format: int32 state: type: string enum: - notUsed - updatingFirmware - initializing - errorHardwareConfig - ready required: - state - amplifierTilesOnline - amplifierTilesConfigured - speakerTilesConfigured BeolinkAvailableListener: type: object properties: jid: $ref: '#/components/schemas/BeolinkPeerID' required: - jid BeolinkExperience: type: object properties: category: description: Source category type: string enum: - TV - RADIO - MUSIC - MEDIA - UNKNOWN id: description: experience id, e.g. "RADIO" or "toslink" type: string linkable: description: Linkable means "Does pressing play on this source make sense" type: boolean name: description: Experience name, e.g. "Bluetooth" or "B&O Radio" type: string productFriendlyName: description: Optional product friendly name type: string sourceFriendlyName: description: Optional friendly name for source type: string type: description: Source type. This corresponds to the exhaustive list or sources provided by the control layer type: string uniqueSourceId: description: The actual device jabber id that the experience comes from type: string required: - id - name - type - category - uniqueSourceId - linkable BeolinkExperiencesResult: type: object properties: experiences: type: array items: $ref: '#/components/schemas/BeolinkExperience' requestID: $ref: '#/components/schemas/BeolinkRequestID' status: description: | Current scan status. * busy: there is another scan in progress * timeout: the scan timed out. The results will be partial type: string enum: - ok - busy - timeout required: - requestID - status - experiences BeolinkJoinRequest: type: object properties: jid: $ref: '#/components/schemas/BeolinkPeerID' requestID: $ref: '#/components/schemas/BeolinkRequestID' result: description: Relative URL of the join result type: string format: uri required: - requestID - result BeolinkJoinResult: type: object properties: error: description: Join error type: string enum: - ok - busy - leaderless - alone - silent - missing - rejected - timeout jid: $ref: '#/components/schemas/BeolinkPeerID' requestID: $ref: '#/components/schemas/BeolinkRequestID' status: description: Overall join status type: string enum: - idle - joined - failed type: description: The type of join request this is a result of type: string enum: - join - joinRequested - expand - expandRequested required: - requestID - status - jid - type BeolinkLeader: type: object properties: audioTransport: description: | Specifies the audio transport protocol in use. Can be: - `"v1"`: Use protocol version 1. - `"v2"`: Use protocol version 2. type: string example: v2 friendlyName: type: string jid: $ref: '#/components/schemas/BeolinkPeerID' required: - jid - friendlyName - audioTransport BeolinkListener: type: object properties: audioTransport: description: | Specifies the audio transport protocol in use. Can be: - `"v1"`: Use protocol version 1. - `"v2"`: Use protocol version 2. type: string example: v2 jid: $ref: '#/components/schemas/BeolinkPeerID' required: - jid - audioTransport BeolinkPeer: type: object properties: audioTransport: description: | Specifies the audio transport protocol in use. Can be: - `"v1"`: Use protocol version 1. - `"v2"`: Use protocol version 2. type: string example: v2 friendlyName: type: string ipAddress: $ref: '#/components/schemas/IpAddress' jid: $ref: '#/components/schemas/BeolinkPeerID' required: - jid - friendlyName - ipAddress - audioTransport BeolinkPeerID: description: Beolink peer ID type: string example: 2714.1200304.26451293@products.bang-olufsen.com BeolinkRequestID: description: Beolink request ID type: string format: uuid example: 48985a4f-a4de-4b44-9757-c9a7407b8882 BeolinkSelf: type: object properties: friendlyName: type: string jid: $ref: '#/components/schemas/BeolinkPeerID' required: - jid - friendlyName BluetoothDevice: type: object properties: address: type: string connected: type: boolean name: type: string BluetoothDeviceList: type: object properties: items: type: array items: $ref: '#/components/schemas/BluetoothDevice' ButtonEvent: type: object properties: button: description: identifies the button type: string state: description: identifies the state change type: string ChannelSurveyStatus: type: object properties: status: type: string enum: - started - startedui - finished - aborted - failed Compression: type: object properties: value: description: Selected compression value type: string enum: - off - medium - maximum required: - value CompressionFeature: allOf: - $ref: '#/components/schemas/Compression' - $ref: '#/components/schemas/CompressionRange' CompressionRange: type: object properties: default: description: Default compression value $ref: '#/components/schemas/Compression' range: description: compression range type: array items: $ref: '#/components/schemas/Compression' uniqueItems: true required: - default - range ContentCategoryList: type: array items: enum: - music - movie - tv - hdmi - app type: string ContentItem: type: object properties: categories: $ref: '#/components/schemas/ContentCategoryList' nullable: true contentUri: type: string label: type: string nullable: true source: $ref: '#/components/schemas/SourceTypeEnum' example: contentUri: tv://netflix label: Netflix required: - contentUri - source ContentItemMap: type: object example: 475169e4-32bb-59ad-b88d-a6d53c289838: contentUri: tv://netflix label: Netflix additionalProperties: $ref: '#/components/schemas/ContentItem' ContentItemWithId: type: object properties: content: $ref: '#/components/schemas/ContentItem' id: type: string Directivity: type: object properties: value: type: string enum: - front - left - right - omni - narrow - wide - standalone required: - value DirectivityFeature: allOf: - $ref: '#/components/schemas/Directivity' - $ref: '#/components/schemas/DirectivityRange' DirectivityRange: type: object properties: default: description: Product and role specific default directivity value $ref: '#/components/schemas/Directivity' range: description: Product and role specific list of directivities type: array items: $ref: '#/components/schemas/Directivity' uniqueItems: true required: - default - range ErrorModel: description: the general error model type: object properties: errorCode: description: | A wellknown code that signal the error, can be used by callers type: string errorId: description: | A unique identifier used to e.g. quick find in logs type: string errorMessage: description: | A textual representation, human readable and suitable for logs type: string Fader: type: object properties: value: description: Selected fader value type: number format: double required: - value FaderFeature: allOf: - $ref: '#/components/schemas/Fader' - $ref: '#/components/schemas/FaderRange' FaderRange: type: object properties: default: description: Default fader value $ref: '#/components/schemas/Fader' range: description: fader range type: array items: $ref: '#/components/schemas/Fader' uniqueItems: true required: - default - range HdmiIdType: type: string HdmiInput: type: object properties: contentUri: description: This points to the editable content trigger for this specific hdmi input type: string input: $ref: '#/components/schemas/HdmiIdType' HdmiVideoFormat: type: object properties: pixelFormat: $ref: '#/components/schemas/VideoPixelFormat' vIC: type: integer format: int32 minimum: 0 videoTimings: $ref: '#/components/schemas/VideoTimings' HomeControlIxp: type: object properties: uri: type: string HomeControlUri: type: object properties: ixp: type: string nullable: true uri: type: string InstallRecordIdState: type: object properties: value: type: string enum: - idle - gettingUrl - urlInvalid - downloading - downloadFinished - downloadFailed IpAddress: description: IP address type: string example: fe80::209:a7ff:fe78:f605 LatencyProfile: description: | The latency profile of this speaker group. Needed to handle Beolab's with latency dependant audio quality. Default is set to performance. type: object properties: value: type: string enum: - performance - quality LgeTvSoundSettings: type: object properties: digitalOutput: type: string enum: - auto - passThrough - pcm - unknown eArc: type: boolean output: type: string enum: - tvSpeaker - externalOptical - externalArc - bluetooth - wisaSpeakers - lineout - headphone - tvSpeakerAndExternalOptical - tvSpeakerAndHeadphone - tvSpeakerAndBluetooth - externalArcBno - unknown ListeningMode: allOf: - $ref: '#/components/schemas/ListeningModeProps' required: - features - id - name - triggers ListeningModeFeatures: description: Sound features to apply type: object properties: advancedBeamforming: $ref: '#/components/schemas/AdvancedBeamforming' ambience: $ref: '#/components/schemas/Ambience' balance: $ref: '#/components/schemas/Balance' bassManagement: $ref: '#/components/schemas/BassManagement' compression: $ref: '#/components/schemas/Compression' directivity: $ref: '#/components/schemas/Directivity' fader: $ref: '#/components/schemas/Fader' roomCompensation: $ref: '#/components/schemas/RoomCompensation' spatialEnvelopment: $ref: '#/components/schemas/SpatialEnvelopment' spatialHeight: $ref: '#/components/schemas/SpatialHeight' spatialProcessing: $ref: '#/components/schemas/SpatialProcessing' spatialSurround: $ref: '#/components/schemas/SpatialSurround' spatialWidth: $ref: '#/components/schemas/SpatialWidth' speechEnhance: $ref: '#/components/schemas/SpeechEnhance' toneTouch: $ref: '#/components/schemas/ToneTouch' ListeningModeID: type: integer format: int32 minimum: 0 ListeningModeProps: type: object properties: clientCtx: description: | An optional generic string property supplied from the client. If provided, it will be stored without changes. If not supplied, any current clientCtx will remain unchanged. type: string maxLength: 4096 nullable: true features: $ref: '#/components/schemas/ListeningModeFeatures' id: $ref: '#/components/schemas/ListeningModeID' name: description: Friendly name type: string origin: description: User created, default or an edited default listening mode type: string enum: - user - default - edited role: description: Role a listening mode applies to type: string enum: - standalone - multichannel - all nullable: true triggers: type: array items: $ref: '#/components/schemas/ListeningModeTrigger' ListeningModeRef: description: Reference to a listening mode type: object properties: href: description: | Host relative URI of the listening mode or `null` if there is no active listening mode. type: string format: uri nullable: true id: description: | ID of the active listening mode or `null` if there is no active listening mode. type: integer format: int32 minimum: 0 nullable: true required: - id - href ListeningModeSet: type: array items: allOf: - $ref: '#/components/schemas/ListeningMode' ListeningModeTrigger: allOf: - $ref: '#/components/schemas/PowerLinkTrigger' Loudness: type: object properties: value: type: boolean MicrophoneState: type: object properties: value: type: string enum: - on - off MicrophonesState: description: state of microphones, both physical switches and software state type: object properties: microphoneState: $ref: '#/components/schemas/MicrophoneState' microphoneSwitchState: $ref: '#/components/schemas/MicrophoneState' OptionalIpAddress: description: IP address type: string example: fe80::209:a7ff:fe78:f605 nullable: true OverlayPlayRequest: allOf: - $ref: '#/components/schemas/OverlayPlayRequestCommon' - $ref: '#/components/schemas/OverlayPlayRequestUri' - $ref: '#/components/schemas/OverlayPlayRequestTextToSpeech' - $ref: '#/components/schemas/OverlayPlayRequestFromUsb' OverlayPlayRequestCommon: type: object properties: volumeAbsolute: description: | An optional absolute volume level at which to play the URI. If not provided, the URI will play at the currently configured volume level on the product. The level should be provided in volume steps [0, 100] type: integer format: int32 maximum: 100 minimum: 0 nullable: true OverlayPlayRequestFromUsb: type: object properties: fromUsb: type: object properties: fileLocation: description: | Required field containing the relative path (i.e. from the USB drive root) and file name with extension (if one exists) that will be played. A maximum length of 1024 characters is allowed. type: string maxLength: 1024 required: - fileLocation nullable: true OverlayPlayRequestTextToSpeech: type: object properties: textToSpeech: description: | Object used for performing a text-to-speech operation on the product. type: object properties: lang: description: | An optional specification of the language to use. The default value is ultimately decided by the BeoCloud API, but currently it defaults to `en-us`. type: string example: en-us nullable: true text: description: | Required field containing the actual text that will be converted to speech (audio). A maximum length of 2048 characters is allowed. type: string maxLength: 2048 required: - text nullable: true OverlayPlayRequestUri: type: object properties: uri: $ref: '#/components/schemas/Uri' nullable: true PairedRemote: type: object properties: address: type: string appVersion: type: string batteryLevel: type: integer maximum: 100 minimum: 0 connected: type: boolean dbVersion: type: string lastSeen: type: string format: date-time name: type: string serialNumber: type: string updated: type: array items: enum: - app - db type: string required: - address - name PairedRemoteList: type: array items: $ref: '#/components/schemas/PairedRemote' PairedRemoteResponse: type: object properties: items: $ref: '#/components/schemas/PairedRemoteList' PlayQueueIdType: type: string format: uuid PlayQueueItem: type: object properties: index: type: integer format: int32 metadata: $ref: '#/components/schemas/PlaybackContentMetadata' nullable: true playlistSortBy: description: Option to choose the order that a playlist is sorted by type: string enum: - name - artist - date - album nullable: true provider: $ref: '#/components/schemas/PlayQueueItemType' startNowFromPosition: description: Start playing specified track as soon as possible. This works for any type, for `track` set to 0 and for `playlist` specify the wanted track from position 0 type: integer format: int32 nullable: true type: type: string enum: - track - playlist uri: description: This can be url, track id, playlist id, radio id and suchlike type: string required: - provider - type - uri PlayQueueItemType: type: object properties: value: type: string enum: - uri - dlna - radio - deezer - beoCloud - tidal required: - value PlayQueueSettings: type: object properties: consume: type: boolean gapless: type: boolean repeat: type: string enum: - all - track - none shuffle: type: boolean PlaybackContentMetadata: type: object properties: albumName: type: string art: type: array items: $ref: '#/components/schemas/Art' artistName: type: string bitdepth: type: integer format: int32 bitrate: type: integer format: int32 containerName: type: string encoding: type: string enum: - pcm - wav - mp3 - oggvorbis - aac - flac - sbc - alac - opus - DolbyDigital - DolbyDigitalPlus - DolbyTrueHD - unknown genre: type: string id: type: integer inputChannelProcessing: description: | Input processing/decoding on top of the base codec indicated in encoding. E.g. Dolby Atmos on top of Dolby TrueHD or Dolby Surround on top of PCM. For Dolby, this value has priority over encoding, meaning that if inputChannelProcessing has a value, it must be indicated in the app, and optionally the encoding value can be indicated as well. If inputChannelProcessing does not have value the encoding value must be indicated. type: string enum: - dolbySurround - dolbyAtmos nullable: true inputChannels: description: e.g. 5.1 type: string nullable: true isExplicit: type: boolean organization: description: | This can be filled by gstreamer's GST_TAG_ORGANIZATION. Mozart can also fill this with netradio station name like "P3" and TV content like "Netflix". This is needed so it's possible to show who the provider is for the playing audio track/content. type: string outputChannelProcessing: description: e.g. downmix type: string enum: - Direct - Downmix - TrueImage - DolbyMode nullable: true outputChannels: description: e.g. 7.1 type: string nullable: true queueId: $ref: '#/components/schemas/PlayQueueIdType' remoteLeader: $ref: '#/components/schemas/BeolinkLeader' remoteSource: type: string nullable: true samplerate: type: integer format: int32 source: type: string sourceInternalId: type: string tags: type: array items: type: string title: type: string totalDuration: description: to be removed once all devices and apps are updated type: integer format: int32 nullable: true totalDurationSeconds: type: integer format: int32 nullable: true track: type: integer format: int32 trackCount: type: integer format: int32 uri: type: string PlaybackError: type: object properties: error: type: string item: $ref: '#/components/schemas/PlaybackContentMetadata' PlaybackProgress: type: object properties: id: type: string progress: type: integer format: int32 totalDuration: type: integer format: int32 nullable: true PlaybackState: type: object properties: metadata: $ref: '#/components/schemas/PlaybackContentMetadata' progress: $ref: '#/components/schemas/PlaybackProgress' source: $ref: '#/components/schemas/Source' state: $ref: '#/components/schemas/RenderingState' PowerLinkTrigger: type: object properties: powerLinkPreset: description: | Despite the name, this preset is used anytime a speaker is used as a secondary as a way for the primary to indicate which directivity (and possibly other characteristics in the future) should be used on a speaker by speaker basis. It is used when a speaker is a powerlink speaker (hence the name), WISA speaker or a speakerlink secondary in multichannel. type: integer PowerStateEnum: type: object properties: value: type: string enum: - networkStandby - on - standby - shutdown - storage PowerlinkConnectionStateEnum: description: Indicated the state of the connection with powerlink type: object properties: value: type: string enum: - disabled - enabledPendingData - enabledWithData nullable: true Preset: allOf: - $ref: '#/components/schemas/SceneTriggerBaseProperties' - properties: content: $ref: '#/components/schemas/ContentItem' nullable: true id: type: string name: type: string nullable: true source: $ref: '#/components/schemas/SourceTypeEnum' nullable: true title: type: string type: object PresetMap: type: object additionalProperties: $ref: '#/components/schemas/Preset' ProductCurtainStatus: type: object properties: moving: type: boolean position: type: string enum: - unknown - closed - narrow - wide ProductFriendlyName: type: object properties: friendlyName: description: | The friendly name of the product, assignable by the end user, e.g. 'Kitchen speaker' type: string ProductState: type: object properties: microphones: $ref: '#/components/schemas/MicrophonesState' playback: $ref: '#/components/schemas/PlaybackState' powerState: $ref: '#/components/schemas/PowerStateEnum' softwareUpdateState: $ref: '#/components/schemas/SoftwareUpdateState' soundSettings: $ref: '#/components/schemas/SoundSettings' source: $ref: '#/components/schemas/Source' systemState: type: string enum: - error - booted - firmwareUpdate - idle - initializing - playback - roomCompensation - selfDiagnostics - shuttingDown tv: $ref: '#/components/schemas/TvState' volume: $ref: '#/components/schemas/VolumeState' RemoteMenuItem: allOf: - $ref: '#/components/schemas/RemoteMenuItemProperties' - properties: available: type: boolean nullable: true content: $ref: '#/components/schemas/ContentItem' fixed: description: True if this is a fixed menu item. A fixed item can't be deleted or moved type: boolean id: description: Unique ID for this menu item type: string format: uuid required: - id - fixed type: object RemoteMenuItemMap: type: object example: 6c2ab917-2a9e-42dd-87c6-1fa2fabcdeb0: content: contentUri: netRadio://123456 source: netRadio label: P3 ee5196ce-65c4-4c56-9a48-1943c4afef9c: content: contentUri: tv://netflix source: netRadio label: Netflix additionalProperties: $ref: '#/components/schemas/RemoteMenuItem' RemoteMenuItemProperties: allOf: - $ref: '#/components/schemas/SceneTriggerBaseProperties' - properties: disabled: type: boolean nullable: true dynamicList: description: | Let mozart create a dynamic list. This list will be attached as children to the menu item. If dynamicList is set it's not possible to change or manipulate any of the children because mozart can alter them at any given time type: string enum: - none - radioFavorites nullable: true firstChildMenuItemId: description: ID of the first child menu item type: string format: uuid nullable: true label: description: Alternative label, if omitted mozart will try its best type: string nullable: true nextSiblingMenuItemId: description: ID of the next sibling menu item type: string format: uuid nullable: true parentMenuItemId: description: ID of the parent menu item type: string format: uuid nullable: true type: object RemoteUIKeyState: type: object properties: state: description: | The state of the pressed key. ShortPress and LongPress's duration are determined by the remote. Whereas Down, Continue, and Release reflect the state of the key and press duration is the time between a Down and a Release state. Continue indicates that a button is pressed and the key event should be handled multiple times until a release is received. type: string enum: - ShortPress - LongPress - Down - Continue - Release RenderingState: type: object properties: value: type: string enum: - idle - buffering - started - paused - stopped - ended - error - unknown RoomCompensation: type: object properties: value: $ref: '#/components/schemas/RoomCompensationValue' required: - value RoomCompensationCoefficients: description: Cascaded biquad coefficients and speaker type for a specific speaker. type: object properties: coefficients: description: Array of cascaded biquad filter coefficients type: array items: format: double type: number speakerType: description: Type of the speaker type: string RoomCompensationCurrentMeasurement: description: | State and speaker ID of the currently running measurement. Is only relevant for advanced room compensation. type: object properties: speakerId: description: Speaker ID of the speaker being measured. $ref: '#/components/schemas/SpeakerId' state: description: | State of the measurement for the speaker. started: The measurement has started. done: The measurement has ended successfully. lastDone: The last measurement in the run has ended successfully. error: An error occurred during measurement. type: string enum: - started - done - lastDone - error RoomCompensationDebug: type: object properties: value: type: boolean RoomCompensationEnabled: type: object properties: value: type: boolean RoomCompensationErrorDetails: type: object properties: errorList: description: List of the speakers where measurement failed, including error type. type: array items: $ref: '#/components/schemas/RoomCompensationMeasurementError' RoomCompensationFeature: allOf: - $ref: '#/components/schemas/RoomCompensation' - $ref: '#/components/schemas/RoomCompensationRange' RoomCompensationInfo: type: object properties: debug: $ref: '#/components/schemas/RoomCompensationDebug' enabled: $ref: '#/components/schemas/RoomCompensationEnabled' lastResult: $ref: '#/components/schemas/RoomCompensationResult' lastRun: $ref: '#/components/schemas/RoomCompensationState' type: $ref: '#/components/schemas/RoomCompensationType' version: $ref: '#/components/schemas/RoomCompensationVersion' RoomCompensationMeasurementError: type: object properties: error: description: | noError: The measurement went OK. lowSignal: When there is too low signal in the recording, e.g. due to a loudspeaker being placed at too great a distance from the microphone. speakerSilent: No signal could be measured. Could be because: - The speaker is powered off or not connected. - The left/right switch on a wired powerlink speaker is set in the wrong position. - The speaker is placed in another room behind closed doors. noisyMicrophone: When the recording of the given microphone is too noisy. Could be because: - Something is blocking the microphone externalMicrophoneLocation: When the location of the external microphone is invalid. externalMicrophoneMissing: If the external microphone was missing/disconnected during a measurement. microphonesDisabled: If the microphones are either muted or disabled. noisyMeasurement: When too much background noise has been detected during the measurement internalError: Something went wrong internally - can not be fixed by the user. Try again. type: string enum: - noError - lowSignal - speakerSilent - noisyLeftMicrophone - noisyRightMicrophone - noisyExternalMicrophone - externalMicrophoneLocation - externalMicrophoneMissing - microphonesDisabled - noisyMeasurement - internalError speakerId: description: | Speaker ID of the speaker with measurement error. Is only relevant for advanced room compensation. $ref: '#/components/schemas/SpeakerId' RoomCompensationProperties: allOf: - $ref: '#/components/schemas/RoomCompensationType' - properties: action: description: | Must be set if room compensation type is advanced. runAll: Do measurements on all connected speakers. continue: Continue from and including the speaker where last interrupted (stopped or failed). useSpeakerList: Do measurements on the speakers in the list property. type: string enum: - runAll - continue - useSpeakerList nullable: true continueOnError: description: | On failing measurement on a speaker, default behavior is to stop measurement and skip the remaining speakers. Setting continueOnError to true will make the measurement process continue and finish measurement on all speakers, even though an error ocurred on one of the speakers. type: boolean nullable: true latencyProfile: $ref: '#/components/schemas/LatencyProfile' nullable: true skipAutomaticRoleAssignment: description: Skip calculation of automatic role assignment. type: boolean nullable: true speakerList: description: | List of speaker IDs to include in room compensation / automatic role assignment measurement. Relevant e.g. if you want to create a speaker group without the external speakers included. This can not be used for doing measurements on a partial speaker group, only on all speakers in an existing group or for all speakers in a new group. type: array items: $ref: '#/components/schemas/SpeakerId' nullable: true speakerPreset: description: The Powerlink preset to use for the external PL/WPL speakers. type: integer format: int32 maximum: 255 minimum: 0 nullable: true type: object RoomCompensationRange: type: object properties: default: description: Product and role specific default room compensation value $ref: '#/components/schemas/RoomCompensationValue' maxItems: description: Maximum number of items in the `value` field type: integer maximum: 20 minimum: 1 range: description: Possible values for the `value` field type: array items: type: string example: - internal - external required: - default - range RoomCompensationResponse: type: object properties: frequency: type: integer format: int32 gain: type: number format: double RoomCompensationResult: type: object properties: coefficients: description: | Calculated room compensation coefficients for each speaker. Present only when room compensation was successfully calculated. Maps speaker IDs to their coefficient data. type: object additionalProperties: $ref: '#/components/schemas/RoomCompensationCoefficients' compensation: type: array items: $ref: '#/components/schemas/RoomCompensationResponse' measuredResponse: type: array items: $ref: '#/components/schemas/RoomCompensationResponse' placement: type: string enum: - free - nearWall - unknown referenceResponse: type: array items: $ref: '#/components/schemas/RoomCompensationResponse' speakerGroupSuggestion: description: | Result from automatic speaker role assignment and room compensation measurements. Is only relevant for advanced room compensation. Includes id, type, role, gain, distance and location for requested speakers, together with the ID of the room compensation result. This is not persisted on Mozart side, but can be used by the client, e.g. as basis for a new speaker group. $ref: '#/components/schemas/SpeakerGroup' timeStamp: type: string format: date-time RoomCompensationState: allOf: - $ref: '#/components/schemas/RoomCompensationStateValue' - properties: error: description: | microphoneMuted: The microphone is muted (soft-off, using touch button). microphoneSwitchOff: The microphone switch is set in its off position. microphoneSignalMissing: No signal was detected. Is the microphone blocked? externalMicrophoneMissing: The external microphone is not connected. Is only relevant for advanced room compensation. externalMicrophoneInvalidPosition: The external microphone is placed in an invalid position, e.g. placed too close or in an extreme angle to the internal speakers. Is only relevant for advanced room compensation. noisyEnvironment: Too much environment noise to get a valid measurement. speakerMeasurementFailed: A measurement failed, related to one of the individual speakers. See the errorDetails property for details about the error and which speaker measurement failed. Is only relevant for advanced room compensation. invalidSpeakerList: The speaker list contains invalid speakers. Valid speakers are: all external speakers and non-virtual internal speakers. Is only relevant for advanced room compensation. invalidAction: Could not start with given action. Eg. can't run from last failed speaker if there isn't any failed run. Is only relevant for advanced room compensation. internalError: Internal product error. type: string enum: - noError - microphoneMuted - microphoneSwitchOff - microphoneSignalMissing - externalMicrophoneMissing - externalMicrophoneInvalidPosition - noisyEnvironment - speakerMeasurementFailed - invalidSpeakerList - invalidAction - internalError errorDetails: $ref: '#/components/schemas/RoomCompensationErrorDetails' lastRunAvailable: description: | When true, measurements have been cached due to manual interrupt or failure, making it possible to use the action "continue" where the system will continue from the speaker where interrupted. The cached measurements are only temporary and will be cleared after some time (default 15min), in which case lastRunAvailable becomes false. type: boolean properties: $ref: '#/components/schemas/RoomCompensationProperties' timeStamp: type: string format: date-time type: object RoomCompensationStateValue: type: object properties: state: type: string enum: - notStarted - running - done - error - stopped RoomCompensationType: type: object properties: value: description: | The type of roomcompensation used / to use. simple: For speakers without external speakers. advanced: For products with external speakers or other advanced multichannel capabilities. This requires that at least action in the other properties of RoomCompensationProperties is set. type: string enum: - simple - advanced RoomCompensationValue: description: | List of room compensation sweeps to combine. No room compensation is done if this list is empty. The maximum length of this list is product specific. type: array items: type: string RoomCompensationVersion: type: object properties: algorithm: type: integer format: int32 minimum: 0 coefficients: type: integer format: int32 minimum: 0 Scene: allOf: - $ref: '#/components/schemas/SceneProperties' - $ref: '#/components/schemas/SceneClassification' SceneClassification: type: object properties: classification: description: The classification of Scene type: string enum: - system - userDefined nullable: true SceneList: description: A list of scenes type: array items: format: uuid type: string SceneMap: type: object example: fdecf968-3ab9-46dc-a71d-e4204ef47fdb: actionList: - type: volume volumeLevel: 35 - radioStationId: '8779112938791514' type: radio - stopDuration: 20 type: stop label: New label additionalProperties: $ref: '#/components/schemas/Scene' SceneMatch: type: object properties: label: type: string nullable: true tags: $ref: '#/components/schemas/SceneTags' nullable: true SceneProperties: type: object properties: actionList: $ref: '#/components/schemas/ActionList' clientContext: description: | An optional generic string property supplied from the client. If supplied it will overwrite any currently stored clientContext. If not supplied any stored clientContext will be left unchanged. type: string maxLength: 4096 nullable: true label: type: string nullable: true tags: $ref: '#/components/schemas/SceneTags' nullable: true required: - actionList SceneTags: description: A list of user defined tags. This allows a client to create virtual lists type: array items: type: string SceneTriggerBaseProperties: description: Base properties for a scene trigger type: object properties: actionList: $ref: '#/components/schemas/ActionList' nullable: true sceneList: description: | Actions will be extracted from all scenes in this list and will be merged together with (`actionList`). On colliding actions the priority will be: (N represent last index in `sceneList`) 1. `actionList` 2. scene N in `sceneList` ... 3. scene 0 in `sceneList` $ref: '#/components/schemas/SceneList' nullable: true SerialNumber: description: Speaker serial number type: string example: '12345678' pattern: ^\d{8}$ SoftwareUpdateState: type: object properties: secondsRemaining: type: integer format: int32 value: type: string enum: - idle - checking - updateCheckFailed - noUpdatesAvailable - updateAvailable - downloadingUpdate - updateDownloaded - downloadFailed - installingUpdate - installingAutomaticUpdate - installationFailed - installationDonePendingReboot - schedulerFailed - rebooting SoftwareUpdateStatus: type: object properties: availableUpdate: $ref: '#/components/schemas/SoftwareVersion' lastCheck: type: string format: date-time lastUpdate: type: string format: date-time softwareVersion: $ref: '#/components/schemas/SoftwareVersion' state: $ref: '#/components/schemas/SoftwareUpdateState' updateProgress: type: integer format: int32 updateType: type: string enum: - none - normal - critical - forced required: - softwareVersion - state SoftwareVersion: type: string SoundAdjustments: type: object properties: advancedBeamforming: type: integer format: int32 ambience: type: number format: double bass: type: integer format: int32 directivity: type: string nullable: true ecoMode: type: boolean fadein: type: boolean loudness: type: boolean treble: type: integer format: int32 SoundFeatureSet: type: object properties: advancedBeamforming: $ref: '#/components/schemas/AdvancedBeamformingFeature' ambience: $ref: '#/components/schemas/AmbienceFeature' balance: $ref: '#/components/schemas/BalanceFeature' bass: $ref: '#/components/schemas/BassFeature' bass-management: $ref: '#/components/schemas/BassManagementFeature' compression: $ref: '#/components/schemas/CompressionFeature' directivity: $ref: '#/components/schemas/DirectivityFeature' fader: $ref: '#/components/schemas/FaderFeature' roomCompensation: $ref: '#/components/schemas/RoomCompensationFeature' spatial-envelopment: $ref: '#/components/schemas/SpatialEnvelopmentFeature' spatial-height: $ref: '#/components/schemas/SpatialHeightFeature' spatial-processing: $ref: '#/components/schemas/SpatialProcessingFeature' spatial-surround: $ref: '#/components/schemas/SpatialSurroundFeature' spatial-width: $ref: '#/components/schemas/SpatialWidthFeature' speech-enhance: $ref: '#/components/schemas/SpeechEnhanceFeature' toneTouchX: $ref: '#/components/schemas/ToneTouchXFeature' toneTouchY: $ref: '#/components/schemas/ToneTouchYFeature' treble: $ref: '#/components/schemas/TrebleFeature' SoundSettings: type: object properties: adjustments: $ref: '#/components/schemas/SoundAdjustments' roomCompensation: $ref: '#/components/schemas/RoomCompensationInfo' toneTouch: $ref: '#/components/schemas/SoundToneTouch' SoundToneTouch: type: object properties: x: type: number format: double y: type: number format: double z: type: number format: double nullable: true Source: type: object properties: id: type: string isEnabled: description: some sources require an explicit activation or accept of terms before being enabled type: boolean isMultiroomAvailable: type: boolean isPlayable: type: boolean isSeekable: type: boolean name: type: string type: $ref: '#/components/schemas/SourceTypeEnum' SourceArray: type: object properties: items: type: array items: $ref: '#/components/schemas/Source' SourceTypeEnum: type: object properties: value: description: |- - beolink - bluetooth - dlna - qplay - airPlay - lineIn - chromeCast - uriStreamer - netRadio - local - generator - spotify - spdif - pl - wpl - tv - deezer - classicsAdapter - usbIn - tidal - tidalConnect - unknown type: string example: netRadio SpatialEnvelopment: type: object properties: value: description: Selected spatial-envelopment value type: number format: double required: - value SpatialEnvelopmentFeature: allOf: - $ref: '#/components/schemas/SpatialEnvelopment' - $ref: '#/components/schemas/SpatialEnvelopmentRange' SpatialEnvelopmentRange: type: object properties: default: description: Default spatial-envelopment value $ref: '#/components/schemas/SpatialEnvelopment' range: description: spatial-envelopment range type: array items: $ref: '#/components/schemas/SpatialEnvelopment' uniqueItems: true required: - default - range SpatialHeight: type: object properties: value: description: Selected spatial-height value type: number format: double required: - value SpatialHeightFeature: allOf: - $ref: '#/components/schemas/SpatialHeight' - $ref: '#/components/schemas/SpatialHeightRange' SpatialHeightRange: type: object properties: default: description: Default spatial-height value $ref: '#/components/schemas/SpatialHeight' range: description: spatial-height range type: array items: $ref: '#/components/schemas/SpatialHeight' uniqueItems: true required: - default - range SpatialProcessing: type: object properties: value: description: Selected spatial-processing value type: string enum: - direct - trueimage - downmix - dolbymode required: - value SpatialProcessingFeature: allOf: - $ref: '#/components/schemas/SpatialProcessing' - $ref: '#/components/schemas/SpatialProcessingRange' SpatialProcessingRange: type: object properties: default: description: Default spatial-processing value $ref: '#/components/schemas/SpatialProcessing' range: description: spatial-processing range type: array items: $ref: '#/components/schemas/SpatialProcessing' uniqueItems: true required: - default - range SpatialSurround: type: object properties: value: description: Selected spatial-surround value type: number format: double required: - value SpatialSurroundFeature: allOf: - $ref: '#/components/schemas/SpatialSurround' - $ref: '#/components/schemas/SpatialSurroundRange' SpatialSurroundRange: type: object properties: default: description: Default spatial-surround value $ref: '#/components/schemas/SpatialSurround' range: description: spatial-surround range type: array items: $ref: '#/components/schemas/SpatialSurround' uniqueItems: true required: - default - range SpatialWidth: type: object properties: value: description: Selected spatial-width value type: number format: double required: - value SpatialWidthFeature: allOf: - $ref: '#/components/schemas/SpatialWidth' - $ref: '#/components/schemas/SpatialWidthRange' SpatialWidthRange: type: object properties: default: description: Default spatial-width value $ref: '#/components/schemas/SpatialWidth' range: description: spatial-width range type: array items: $ref: '#/components/schemas/SpatialWidth' uniqueItems: true required: - default - range SpeakerGroup: type: object properties: crossoverFrequency: description: Crossover frequency for bass management in Hz type: integer format: int32 maximum: 300 minimum: 20 nullable: true enablePhaseCompensation: description: Enable phase compensation in bass management. type: boolean nullable: true friendlyName: description: | Friendly name of the SpeakerGroup. Required when creating a new group type: string nullable: true id: $ref: '#/components/schemas/SpeakerGroupId' nullable: true isDeleteable: type: boolean nullable: true items: type: array items: $ref: '#/components/schemas/SpeakerGroupMember' nullable: true latencyProfile: $ref: '#/components/schemas/LatencyProfile' nullable: true roomCompensationId: description: | ID of the calculated coefficients for this group, made during advanced room compensation. When updating an existing group, an empty string will clear roomCompensationId. type: string format: uuid nullable: true speakerPreset: description: Speaker preset / listening mode eg. BL28 curtain position etc. type: integer format: int32 maximum: 99 minimum: 0 nullable: true SpeakerGroupId: type: string format: uuid SpeakerGroupMember: type: object properties: distance: description: Distance from listening position in cm type: integer format: int32 maximum: 1500 minimum: 0 nullable: true friendlyName: type: string nullable: true gain: description: Level in dB type: number format: float maximum: 6 minimum: -24 nullable: true id: type: string location: description: | Coordinates of the speaker position in cm. Location is only relevant when the group is based on the automatic role assignment of advanced room compensation. The location is relative to the external microphone used during advanced room compensation measurements: x=0, y=0, z=0: The location of the external microphone used during measurement. x<0: To the left of the external microphone. x>0: To the right of the external microphone. y<0: Behind the external microphone. y>0: In front of the external microphone. z<0: Above the external microphone (may not be reliable). z>0: Below the external microphone (may not be reliable). type: object nullable: true properties: x: type: integer format: int32 y: type: integer format: int32 z: type: integer format: int32 required: - x - y - z redirectionLevel: description: Redirection level for bass management in dB type: integer format: int32 maximum: 6 minimum: -100 nullable: true role: $ref: '#/components/schemas/SpeakerRole' selectedOutput: description: The name of the selected output corresponding to this speaker type: string default: '' type: type: string nullable: true required: - id SpeakerGroupOverview: type: object properties: friendlyName: type: string id: $ref: '#/components/schemas/SpeakerGroupId' isDeleteable: type: boolean required: - friendlyName - id - isDeleteable SpeakerId: type: string example: FrontLeft SpeakerLinkMemberStatus: type: object properties: baseUrl: description: API prefix to use when talking to the secondary type: string format: uri nullable: true health: description: | `good` Association with speaker completed and clock is synchronized with the clock of the primary. `unknown` The health is not known. Association and clock sync may be in progress. type: string example: good enum: - unknown - good - warning - bad ipAddress: $ref: '#/components/schemas/OptionalIpAddress' networkType: type: string enum: - none - wired - wireless productType: type: string serialNumber: $ref: '#/components/schemas/SerialNumber' state: description: | The precise phase of the association for this secondary. `health` (above) collapses several phases to `unknown`. This `state` lets a client tell them apart and know deterministically what it is waiting for, rather than relying on a timeout: - `added` Secondary is part of the association; the primary has not yet located it on the network. - `resolved` The primary has found the secondary's address. - `associating` The primary has asked the secondary to take the secondary role. The secondary is now switching networks (leaving the home WiFi and joining the primary's access point) and reconnecting. No further event is expected from the secondary until it reconnects, so `updatedAt` is re-stamped periodically as a liveness heartbeat while in this phase. - `associated` The secondary has reconnected to the primary. It reaches `health: good` once its clock is synchronized; until then `health` stays `unknown` while `state` is already `associated`, so a client can distinguish "connected, syncing clock" from "still joining". - `taken` The secondary is associated with a different primary. type: string example: associated enum: - added - resolved - associating - associated - taken updatedAt: $ref: '#/components/schemas/Timestamp' required: - health - serialNumber - updatedAt - networkType SpeakerLinkRole: type: object properties: channel: type: string enum: - all - any - left - right clockSync: description: | Only shown when secondary. `good` The clock is synchronized with the clock of the primary. `bad` The clock synchronization failed. `unknown` The state is not known. Clock sync may be in progress. type: string example: good enum: - unknown - good - bad desired: type: string enum: - none - primary - secondary primary: $ref: '#/components/schemas/SerialNumber' role: type: string enum: - none - primary - secondary required: - role SpeakerLinkStatus: type: object properties: roleInfo: $ref: '#/components/schemas/SpeakerLinkRole' speakers: type: array items: $ref: '#/components/schemas/SpeakerLinkMemberStatus' type: type: string enum: - standalone - stereo - surround required: - type - speakers SpeakerRole: type: string nullable: true SpeakerRoleEnum: type: object properties: value: type: string enum: - standalone - multichannel SpeechEnhance: type: object properties: value: description: Selected speech-enhance value type: number format: double required: - value SpeechEnhanceFeature: allOf: - $ref: '#/components/schemas/SpeechEnhance' - $ref: '#/components/schemas/SpeechEnhanceRange' SpeechEnhanceRange: type: object properties: default: description: Default speech-enhance value $ref: '#/components/schemas/SpeechEnhance' range: description: speech-enhance range type: array items: $ref: '#/components/schemas/SpeechEnhance' uniqueItems: true required: - default - range StandConnected: type: object properties: connected: type: boolean StandInfo: type: object properties: applicationVersion: type: string bootloaderVersion: type: string serialNumber: type: string standType: type: string enum: - wallBracketLeft - wallBracketRight - floorStand - floorStandExtendedRange supportedAxes: type: array items: enum: - turn type: string StandMovement: type: object properties: angle: type: number format: float nullable: true ignoreEndstop: type: boolean example: false standMotion: type: string enum: - continuousCCW - stepCCW - stop - stepCW - continuousCW StandMovementStatus: type: object properties: movementState: type: string enum: - stopped - movingCW - movingCCW - blocked StandPosition: type: object properties: angle: type: number format: float StandStatus: type: object properties: manuallyadjusted: type: boolean movementstatus: $ref: '#/components/schemas/StandMovementStatus' position: $ref: '#/components/schemas/StandPosition' targetAngle: type: number format: float SupportedSoundFeatures: description: Supported sound features type: object additionalProperties: $ref: '#/components/schemas/SoundFeatureSet' Timestamp: description: Timestamp in RFC3393 format type: string format: date-time ToneTouch: type: object properties: x: $ref: '#/components/schemas/ToneTouchType' y: $ref: '#/components/schemas/ToneTouchType' ToneTouchType: type: object properties: value: type: number format: double required: - value ToneTouchTypeRange: type: object properties: default: description: Product and role specific default ToneTouch X or Y $ref: '#/components/schemas/ToneTouchType' range: description: Product and role specific tone touch X or Y range type: array items: $ref: '#/components/schemas/ToneTouchType' uniqueItems: true required: - default - range ToneTouchXFeature: allOf: - $ref: '#/components/schemas/ToneTouchType' - $ref: '#/components/schemas/ToneTouchTypeRange' ToneTouchYFeature: allOf: - $ref: '#/components/schemas/ToneTouchType' - $ref: '#/components/schemas/ToneTouchTypeRange' Treble: type: object properties: value: description: Selected treble value type: integer format: int32 required: - value TrebleFeature: allOf: - $ref: '#/components/schemas/Treble' - $ref: '#/components/schemas/TrebleRange' TrebleRange: type: object properties: default: description: Product and role specific default treble value $ref: '#/components/schemas/Treble' range: description: Product and role specific treble range type: array items: $ref: '#/components/schemas/Treble' uniqueItems: true required: - default - range TvBnOModeStatus: type: object properties: value: type: string enum: - disabled - enabled - pendingDisable - pendingEnable nullable: true TvInfoEventData: type: object properties: integration: $ref: '#/components/schemas/TvIntegrationTypes' TvIntegrationTypes: type: object properties: value: type: string enum: - ThirdParty - Lge TvProperties: type: object properties: integrationSupported: $ref: '#/components/schemas/TvIntegrationTypes' name: type: string nullable: true year: type: integer nullable: true TvSoundSettings: type: object properties: lge: $ref: '#/components/schemas/LgeTvSoundSettings' TvState: type: object properties: integration: $ref: '#/components/schemas/TvIntegrationTypes' soundSettings: $ref: '#/components/schemas/TvSoundSettings' tvInfo: $ref: '#/components/schemas/TvProperties' Uri: type: object properties: location: type: string UserFlow: type: object properties: userId: type: string format: int64 VideoPixelFormat: type: object properties: bitdepth: type: string enum: - bit8 - bit10 - bit12 chromaSubsample: type: string enum: - yCbCr444RGB - yCbCr422 - yCbCr420 colorimetry: type: string enum: - rGB - opRGB - rGBP3D65 - rGBP3DCI - rGB2020 - yCC601 - yCC709 - xvYCC601 - xvYCC709 - sYCC601 - opYCC601 - yCC2020NCL - yCC2020NL fullRange: type: boolean VideoTimings: type: object properties: horizontalResolution: type: integer interlaced: type: boolean refreshRate: type: number format: double verticalResolution: type: integer VolumeLevel: type: object properties: level: type: integer format: int32 VolumeMute: type: object properties: muted: type: boolean VolumeSettings: type: object properties: default: $ref: '#/components/schemas/VolumeLevel' maximum: $ref: '#/components/schemas/VolumeLevel' VolumeState: type: object properties: default: $ref: '#/components/schemas/VolumeLevel' level: $ref: '#/components/schemas/VolumeLevel' maximum: $ref: '#/components/schemas/VolumeLevel' muted: $ref: '#/components/schemas/VolumeMute' WebSocketEventActiveHdmiInputSignal: description: |- Usage examples: Use the `get_active_hdmi_input_signal_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_active_hdmi_input_signal_notifications(): """React on WebSocketEventActiveHdmiInputSignal events.""" def active_hdmi_input_signal_notifications(notification: HdmiInput): """WebSocketEventActiveHdmiInputSignal notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_active_hdmi_input_signal_notifications(active_hdmi_input_signal_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_active_hdmi_input_signal_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_active_hdmi_input_signal_notifications(): """React on WebSocketEventActiveHdmiInputSignal events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventActiveHdmiInputSignal": print(notification["eventData"]) asyncio.run(receive_active_hdmi_input_signal_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/HdmiInput' eventType: type: string WebSocketEventActiveListeningMode: description: |- Usage examples: Use the `get_active_listening_mode_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_active_listening_mode_notifications(): """React on WebSocketEventActiveListeningMode events.""" def active_listening_mode_notifications(notification: ListeningModeProps): """WebSocketEventActiveListeningMode notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_active_listening_mode_notifications(active_listening_mode_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_active_listening_mode_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_active_listening_mode_notifications(): """React on WebSocketEventActiveListeningMode events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventActiveListeningMode": print(notification["eventData"]) asyncio.run(receive_active_listening_mode_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/ListeningModeProps' eventType: type: string WebSocketEventActiveSpeakerGroup: description: |- Usage examples: Use the `get_active_speaker_group_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_active_speaker_group_notifications(): """React on WebSocketEventActiveSpeakerGroup events.""" def active_speaker_group_notifications(notification: SpeakerGroupOverview): """WebSocketEventActiveSpeakerGroup notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_active_speaker_group_notifications(active_speaker_group_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_active_speaker_group_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_active_speaker_group_notifications(): """React on WebSocketEventActiveSpeakerGroup events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventActiveSpeakerGroup": print(notification["eventData"]) asyncio.run(receive_active_speaker_group_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SpeakerGroupOverview' eventType: type: string WebSocketEventAlarmTimer: description: |- Usage examples: Use the `get_alarm_timer_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_alarm_timer_notifications(): """React on WebSocketEventAlarmTimer events.""" def alarm_timer_notifications(notification: AlarmTimerEventData): """WebSocketEventAlarmTimer notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_alarm_timer_notifications(alarm_timer_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_alarm_timer_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_alarm_timer_notifications(): """React on WebSocketEventAlarmTimer events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventAlarmTimer": print(notification["eventData"]) asyncio.run(receive_alarm_timer_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/AlarmTimerEventData' eventType: type: string WebSocketEventAlarmTriggered: description: |- Usage examples: Use the `get_alarm_triggered_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_alarm_triggered_notifications(): """React on WebSocketEventAlarmTriggered events.""" def alarm_triggered_notifications(notification: AlarmTriggeredInfo): """WebSocketEventAlarmTriggered notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_alarm_triggered_notifications(alarm_triggered_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_alarm_triggered_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_alarm_triggered_notifications(): """React on WebSocketEventAlarmTriggered events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventAlarmTriggered": print(notification["eventData"]) asyncio.run(receive_alarm_triggered_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/AlarmTriggeredInfo' eventType: type: string WebSocketEventBattery: description: |- Usage examples: Use the `get_battery_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_battery_notifications(): """React on WebSocketEventBattery events.""" def battery_notifications(notification: BatteryState): """WebSocketEventBattery notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_battery_notifications(battery_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_battery_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_battery_notifications(): """React on WebSocketEventBattery events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventBattery": print(notification["eventData"]) asyncio.run(receive_battery_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/BatteryState' eventType: type: string WebSocketEventBeoRemoteButton: description: |- This notification is sent on the /remoteControl WebSocket notification channel. Usage examples: Use the `get_beo_remote_button_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_beo_remote_button_notifications(): """React on WebSocketEventBeoRemoteButton events.""" def beo_remote_button_notifications(notification: BeoRemoteButton): """WebSocketEventBeoRemoteButton notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_beo_remote_button_notifications(beo_remote_button_notifications) await mozart_client.connect_notifications(remote_control=True) # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_beo_remote_button_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_beo_remote_button_notifications(): """React on WebSocketEventBeoRemoteButton events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/remoteControl") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventBeoRemoteButton": print(notification["eventData"]) asyncio.run(receive_beo_remote_button_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/BeoRemoteButton' eventType: type: string WebSocketEventBeolinkExperiencesResult: description: |- Usage examples: Use the `get_beolink_experiences_result_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_beolink_experiences_result_notifications(): """React on WebSocketEventBeolinkExperiencesResult events.""" def beolink_experiences_result_notifications(notification: BeolinkExperiencesResult): """WebSocketEventBeolinkExperiencesResult notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_beolink_experiences_result_notifications(beolink_experiences_result_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_beolink_experiences_result_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_beolink_experiences_result_notifications(): """React on WebSocketEventBeolinkExperiencesResult events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventBeolinkExperiencesResult": print(notification["eventData"]) asyncio.run(receive_beolink_experiences_result_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/BeolinkExperiencesResult' eventType: type: string required: - eventType - eventData WebSocketEventBeolinkJoinResult: description: |- Usage examples: Use the `get_beolink_join_result_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_beolink_join_result_notifications(): """React on WebSocketEventBeolinkJoinResult events.""" def beolink_join_result_notifications(notification: BeolinkJoinResult): """WebSocketEventBeolinkJoinResult notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_beolink_join_result_notifications(beolink_join_result_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_beolink_join_result_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_beolink_join_result_notifications(): """React on WebSocketEventBeolinkJoinResult events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventBeolinkJoinResult": print(notification["eventData"]) asyncio.run(receive_beolink_join_result_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/BeolinkJoinResult' eventType: type: string required: - eventType - eventData WebSocketEventButton: description: |- Usage examples: Use the `get_button_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_button_notifications(): """React on WebSocketEventButton events.""" def button_notifications(notification: ButtonEvent): """WebSocketEventButton notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_button_notifications(button_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_button_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_button_notifications(): """React on WebSocketEventButton events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventButton": print(notification["eventData"]) asyncio.run(receive_button_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/ButtonEvent' eventType: type: string WebSocketEventChannelSurveyStatus: description: |- Usage examples: Use the `get_channel_survey_status_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_channel_survey_status_notifications(): """React on WebSocketEventChannelSurveyStatus events.""" def channel_survey_status_notifications(notification: ChannelSurveyStatus): """WebSocketEventChannelSurveyStatus notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_channel_survey_status_notifications(channel_survey_status_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_channel_survey_status_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_channel_survey_status_notifications(): """React on WebSocketEventChannelSurveyStatus events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventChannelSurveyStatus": print(notification["eventData"]) asyncio.run(receive_channel_survey_status_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/ChannelSurveyStatus' eventType: type: string WebSocketEventClassicsAdapterContent: description: |- Usage examples: Use the `get_classics_adapter_content_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_classics_adapter_content_notifications(): """React on WebSocketEventClassicsAdapterContent events.""" def classics_adapter_content_notifications(notification: ContentItem): """WebSocketEventClassicsAdapterContent notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_classics_adapter_content_notifications(classics_adapter_content_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_classics_adapter_content_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_classics_adapter_content_notifications(): """React on WebSocketEventClassicsAdapterContent events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventClassicsAdapterContent": print(notification["eventData"]) asyncio.run(receive_classics_adapter_content_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/ContentItem' eventType: type: string WebSocketEventCurtains: description: |- Usage examples: Use the `get_curtains_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_curtains_notifications(): """React on WebSocketEventCurtains events.""" def curtains_notifications(notification: ProductCurtainStatus): """WebSocketEventCurtains notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_curtains_notifications(curtains_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_curtains_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_curtains_notifications(): """React on WebSocketEventCurtains events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventCurtains": print(notification["eventData"]) asyncio.run(receive_curtains_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/ProductCurtainStatus' eventType: type: string WebSocketEventHdmiVideoFormatSignal: description: |- Usage examples: Use the `get_hdmi_video_format_signal_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_hdmi_video_format_signal_notifications(): """React on WebSocketEventHdmiVideoFormatSignal events.""" def hdmi_video_format_signal_notifications(notification: HdmiVideoFormat): """WebSocketEventHdmiVideoFormatSignal notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_hdmi_video_format_signal_notifications(hdmi_video_format_signal_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_hdmi_video_format_signal_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_hdmi_video_format_signal_notifications(): """React on WebSocketEventHdmiVideoFormatSignal events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventHdmiVideoFormatSignal": print(notification["eventData"]) asyncio.run(receive_hdmi_video_format_signal_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/HdmiVideoFormat' eventType: type: string WebSocketEventNotification: description: |- This telegram is used to send a tagged notification. Usage examples: Use the `get_notification_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_notification_notifications(): """React on WebSocketEventNotification events.""" def notification_notifications(notification: WebsocketNotificationTag): """WebSocketEventNotification notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_notification_notifications(notification_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_notification_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_notification_notifications(): """React on WebSocketEventNotification events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventNotification": print(notification["eventData"]) asyncio.run(receive_notification_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/WebsocketNotificationTag' eventType: type: string WebSocketEventPlaybackError: description: |- Usage examples: Use the `get_playback_error_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_playback_error_notifications(): """React on WebSocketEventPlaybackError events.""" def playback_error_notifications(notification: PlaybackError): """WebSocketEventPlaybackError notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_playback_error_notifications(playback_error_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_playback_error_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_playback_error_notifications(): """React on WebSocketEventPlaybackError events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPlaybackError": print(notification["eventData"]) asyncio.run(receive_playback_error_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/PlaybackError' eventType: type: string WebSocketEventPlaybackMetadata: description: |- Usage examples: Use the `get_playback_metadata_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_playback_metadata_notifications(): """React on WebSocketEventPlaybackMetadata events.""" def playback_metadata_notifications(notification: PlaybackContentMetadata): """WebSocketEventPlaybackMetadata notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_playback_metadata_notifications(playback_metadata_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_playback_metadata_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_playback_metadata_notifications(): """React on WebSocketEventPlaybackMetadata events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPlaybackMetadata": print(notification["eventData"]) asyncio.run(receive_playback_metadata_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/PlaybackContentMetadata' eventType: type: string WebSocketEventPlaybackProgress: description: |- Usage examples: Use the `get_playback_progress_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_playback_progress_notifications(): """React on WebSocketEventPlaybackProgress events.""" def playback_progress_notifications(notification: PlaybackProgress): """WebSocketEventPlaybackProgress notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_playback_progress_notifications(playback_progress_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_playback_progress_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_playback_progress_notifications(): """React on WebSocketEventPlaybackProgress events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPlaybackProgress": print(notification["eventData"]) asyncio.run(receive_playback_progress_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/PlaybackProgress' eventType: type: string WebSocketEventPlaybackSource: description: |- Usage examples: Use the `get_playback_source_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_playback_source_notifications(): """React on WebSocketEventPlaybackSource events.""" def playback_source_notifications(notification: Source): """WebSocketEventPlaybackSource notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_playback_source_notifications(playback_source_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_playback_source_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_playback_source_notifications(): """React on WebSocketEventPlaybackSource events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPlaybackSource": print(notification["eventData"]) asyncio.run(receive_playback_source_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/Source' eventType: type: string WebSocketEventPlaybackState: description: |- Usage examples: Use the `get_playback_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_playback_state_notifications(): """React on WebSocketEventPlaybackState events.""" def playback_state_notifications(notification: RenderingState): """WebSocketEventPlaybackState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_playback_state_notifications(playback_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_playback_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_playback_state_notifications(): """React on WebSocketEventPlaybackState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPlaybackState": print(notification["eventData"]) asyncio.run(receive_playback_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/RenderingState' eventType: type: string WebSocketEventPowerState: description: |- Usage examples: Use the `get_power_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_power_state_notifications(): """React on WebSocketEventPowerState events.""" def power_state_notifications(notification: PowerStateEnum): """WebSocketEventPowerState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_power_state_notifications(power_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_power_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_power_state_notifications(): """React on WebSocketEventPowerState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPowerState": print(notification["eventData"]) asyncio.run(receive_power_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/PowerStateEnum' eventType: type: string WebSocketEventPowerlinkConnectionState: description: |- Usage examples: Use the `get_powerlink_connection_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_powerlink_connection_state_notifications(): """React on WebSocketEventPowerlinkConnectionState events.""" def powerlink_connection_state_notifications(notification: PowerlinkConnectionStateEnum): """WebSocketEventPowerlinkConnectionState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_powerlink_connection_state_notifications(powerlink_connection_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_powerlink_connection_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_powerlink_connection_state_notifications(): """React on WebSocketEventPowerlinkConnectionState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPowerlinkConnectionState": print(notification["eventData"]) asyncio.run(receive_powerlink_connection_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/PowerlinkConnectionStateEnum' eventType: type: string WebSocketEventPucInstallRemoteIdStatus: description: |- Usage examples: Use the `get_puc_install_remote_id_status_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_puc_install_remote_id_status_notifications(): """React on WebSocketEventPucInstallRemoteIdStatus events.""" def puc_install_remote_id_status_notifications(notification: InstallRecordIdState): """WebSocketEventPucInstallRemoteIdStatus notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_puc_install_remote_id_status_notifications(puc_install_remote_id_status_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_puc_install_remote_id_status_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_puc_install_remote_id_status_notifications(): """React on WebSocketEventPucInstallRemoteIdStatus events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventPucInstallRemoteIdStatus": print(notification["eventData"]) asyncio.run(receive_puc_install_remote_id_status_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/InstallRecordIdState' eventType: type: string WebSocketEventRole: description: |- Usage examples: Use the `get_role_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_role_notifications(): """React on WebSocketEventRole events.""" def role_notifications(notification: SpeakerRoleEnum): """WebSocketEventRole notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_role_notifications(role_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_role_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_role_notifications(): """React on WebSocketEventRole events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventRole": print(notification["eventData"]) asyncio.run(receive_role_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SpeakerRoleEnum' eventType: type: string WebSocketEventRoomCompensationCurrentMeasurementEvent: description: |- Sent when a room compensation measurement is started/done. Is only sent when room compensation type is advanced. Usage examples: Use the `get_room_compensation_current_measurement_event_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_room_compensation_current_measurement_event_notifications(): """React on WebSocketEventRoomCompensationCurrentMeasurementEvent events.""" def room_compensation_current_measurement_event_notifications(notification: RoomCompensationCurrentMeasurement): """WebSocketEventRoomCompensationCurrentMeasurementEvent notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_room_compensation_current_measurement_event_notifications(room_compensation_current_measurement_event_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_room_compensation_current_measurement_event_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_room_compensation_current_measurement_event_notifications(): """React on WebSocketEventRoomCompensationCurrentMeasurementEvent events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventRoomCompensationCurrentMeasurementEvent": print(notification["eventData"]) asyncio.run(receive_room_compensation_current_measurement_event_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/RoomCompensationCurrentMeasurement' eventType: type: string WebSocketEventRoomCompensationState: description: |- Usage examples: Use the `get_room_compensation_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_room_compensation_state_notifications(): """React on WebSocketEventRoomCompensationState events.""" def room_compensation_state_notifications(notification: RoomCompensationStateValue): """WebSocketEventRoomCompensationState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_room_compensation_state_notifications(room_compensation_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_room_compensation_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_room_compensation_state_notifications(): """React on WebSocketEventRoomCompensationState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventRoomCompensationState": print(notification["eventData"]) asyncio.run(receive_room_compensation_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/RoomCompensationStateValue' eventType: type: string WebSocketEventSoftwareUpdateState: description: |- Usage examples: Use the `get_software_update_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_software_update_state_notifications(): """React on WebSocketEventSoftwareUpdateState events.""" def software_update_state_notifications(notification: SoftwareUpdateState): """WebSocketEventSoftwareUpdateState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_software_update_state_notifications(software_update_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_software_update_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_software_update_state_notifications(): """React on WebSocketEventSoftwareUpdateState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventSoftwareUpdateState": print(notification["eventData"]) asyncio.run(receive_software_update_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SoftwareUpdateState' eventType: type: string WebSocketEventSoundSettings: description: |- Usage examples: Use the `get_sound_settings_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_sound_settings_notifications(): """React on WebSocketEventSoundSettings events.""" def sound_settings_notifications(notification: SoundSettings): """WebSocketEventSoundSettings notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_sound_settings_notifications(sound_settings_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_sound_settings_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_sound_settings_notifications(): """React on WebSocketEventSoundSettings events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventSoundSettings": print(notification["eventData"]) asyncio.run(receive_sound_settings_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SoundSettings' eventType: type: string WebSocketEventSourceChange: description: |- Usage examples: Use the `get_source_change_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_source_change_notifications(): """React on WebSocketEventSourceChange events.""" def source_change_notifications(notification: Source): """WebSocketEventSourceChange notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_source_change_notifications(source_change_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_source_change_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_source_change_notifications(): """React on WebSocketEventSourceChange events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventSourceChange": print(notification["eventData"]) asyncio.run(receive_source_change_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/Source' eventType: type: string WebSocketEventSpeakerGroupChanged: description: |- Usage examples: Use the `get_speaker_group_changed_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_speaker_group_changed_notifications(): """React on WebSocketEventSpeakerGroupChanged events.""" def speaker_group_changed_notifications(notification: str): """WebSocketEventSpeakerGroupChanged notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_speaker_group_changed_notifications(speaker_group_changed_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_speaker_group_changed_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_speaker_group_changed_notifications(): """React on WebSocketEventSpeakerGroupChanged events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventSpeakerGroupChanged": print(notification["eventData"]) asyncio.run(receive_speaker_group_changed_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SpeakerGroupId' eventType: type: string WebSocketEventSpeakerLinkStatusChanged: description: |- Usage examples: Use the `get_speaker_link_status_changed_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_speaker_link_status_changed_notifications(): """React on WebSocketEventSpeakerLinkStatusChanged events.""" def speaker_link_status_changed_notifications(notification: SpeakerLinkStatus): """WebSocketEventSpeakerLinkStatusChanged notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_speaker_link_status_changed_notifications(speaker_link_status_changed_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_speaker_link_status_changed_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_speaker_link_status_changed_notifications(): """React on WebSocketEventSpeakerLinkStatusChanged events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventSpeakerLinkStatusChanged": print(notification["eventData"]) asyncio.run(receive_speaker_link_status_changed_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/SpeakerLinkStatus' eventType: type: string WebSocketEventStandConnected: description: |- Usage examples: Use the `get_stand_connected_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_stand_connected_notifications(): """React on WebSocketEventStandConnected events.""" def stand_connected_notifications(notification: StandConnected): """WebSocketEventStandConnected notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_stand_connected_notifications(stand_connected_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_stand_connected_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_stand_connected_notifications(): """React on WebSocketEventStandConnected events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventStandConnected": print(notification["eventData"]) asyncio.run(receive_stand_connected_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/StandConnected' eventType: type: string WebSocketEventStandPosition: description: |- Usage examples: Use the `get_stand_position_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_stand_position_notifications(): """React on WebSocketEventStandPosition events.""" def stand_position_notifications(notification: StandPosition): """WebSocketEventStandPosition notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_stand_position_notifications(stand_position_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_stand_position_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_stand_position_notifications(): """React on WebSocketEventStandPosition events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventStandPosition": print(notification["eventData"]) asyncio.run(receive_stand_position_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/StandPosition' eventType: type: string WebSocketEventTvBnOMode: description: |- Usage examples: Use the `get_tv_bn_o_mode_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_tv_bn_o_mode_notifications(): """React on WebSocketEventTvBnOMode events.""" def tv_bn_o_mode_notifications(notification: TvBnOModeStatus): """WebSocketEventTvBnOMode notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_tv_bn_o_mode_notifications(tv_bn_o_mode_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_tv_bn_o_mode_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_tv_bn_o_mode_notifications(): """React on WebSocketEventTvBnOMode events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventTvBnOMode": print(notification["eventData"]) asyncio.run(receive_tv_bn_o_mode_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/TvBnOModeStatus' eventType: type: string WebSocketEventTvInfo: description: |- Usage examples: Use the `get_tv_info_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_tv_info_notifications(): """React on WebSocketEventTvInfo events.""" def tv_info_notifications(notification: TvInfoEventData): """WebSocketEventTvInfo notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_tv_info_notifications(tv_info_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_tv_info_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_tv_info_notifications(): """React on WebSocketEventTvInfo events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventTvInfo": print(notification["eventData"]) asyncio.run(receive_tv_info_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/TvInfoEventData' eventType: type: string WebSocketEventVolume: description: |- Usage examples: Use the `get_volume_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_volume_notifications(): """React on WebSocketEventVolume events.""" def volume_notifications(notification: VolumeState): """WebSocketEventVolume notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_volume_notifications(volume_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_volume_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_volume_notifications(): """React on WebSocketEventVolume events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventVolume": print(notification["eventData"]) asyncio.run(receive_volume_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/VolumeState' eventType: type: string WebSocketEventWisaOutState: description: |- Speaker Discovery State changed Usage examples: Use the `get_wisa_out_state_notifications()` method in the Python package to get notifications of this type. ```python import asyncio from mozart_api.mozart_client import MozartClient async def receive_wisa_out_state_notifications(): """React on WebSocketEventWisaOutState events.""" def wisa_out_state_notifications(notification: WisaOutState): """WebSocketEventWisaOutState notification handler.""" print(notification) async with MozartClient(host="192.168.0.1") as mozart_client: mozart_client.get_wisa_out_state_notifications(wisa_out_state_notifications) await mozart_client.connect_notifications() # Receive notifications while True: await asyncio.sleep(0) asyncio.run(receive_wisa_out_state_notifications()) ``` Use the AIOHTTP library to get notifications of this type. ```python import asyncio from aiohttp import ClientSession async def receive_wisa_out_state_notifications(): """React on WebSocketEventWisaOutState events.""" async with ( ClientSession() as session, session.ws_connect(url="ws://192.168.0.1:9339/") as websocket, ): async for notification in websocket: notification = notification.json() if notification["eventType"] == "WebSocketEventWisaOutState": print(notification["eventData"]) asyncio.run(receive_wisa_out_state_notifications()) ``` type: object properties: eventData: $ref: '#/components/schemas/WisaOutState' eventType: type: string required: - eventType - eventData WebsocketNotificationTag: type: object properties: value: type: string enum: - configuration - uri - generatorSettings - lineInSettings - bluetoothDevices - remoteControlDevices - secondariesList - queueHasBeenChanged - endOfQueueHasBeenReached - beolinkPeers - beolinkListeners - beolinkAvailableListeners - bluetoothPairingStateChanged - outputsChanged - speakerGroupOverviewChanged - remoteMenuChanged - proximityPresenceDetected - proximityPresenceNotDetected WisaOutState: type: object properties: state: type: string enum: - idle - discovering - deleting - updatingSpeakerFirmware responses: BeolinkJoinResponse: description: | Join started Joining always happens asynchronously, use the `requestID` field in the response to match your request with a `WebsocketEventBeolinkJoinResult` web socket event. content: application/json: schema: $ref: '#/components/schemas/BeolinkJoinRequest' MissingListeningMode: description: No such listening mode security: []