Add play media documentation to Cambridge Audio (#35341)

* Add media play documentation to Cambridge Audio

* Tiny tweak

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Noah Husby 2024-10-25 01:15:07 -04:00 committed by GitHub
parent 6ea0d1070f
commit c4b6323e51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,42 @@ Host:
The integration provides a few entities to configure the device settings. The following entities are supported: The integration provides a few entities to configure the device settings. The following entities are supported:
- Display brightness - Display brightness
## Playing media
Cambridge Audio supports playing a variety of formats using the `media_player.play_media` action.
### Examples:
Cambridge Audio can recall any stored presets saved on the device. An example action using a preset:
```yaml
action: media_player.play_media
target:
entity_id: media_player.cambridge_audio
data:
media_content_type: "preset"
media_content_id: "1"
```
An example action using an Airable radio ID:
```yaml
action: media_player.play_media
target:
entity_id: media_player.cambridge_audio
data:
media_content_type: "airable"
media_content_id: "12345678"
```
An example action using an internet radio url:
```yaml
action: media_player.play_media
target:
entity_id: media_player.cambridge_audio
data:
media_content_type: "internet_radio"
media_content_id: "https://example.com/internet-radio/station_abcd.mp3"
```
## Troubleshooting ## Troubleshooting
### The buttons to skip, shuffle, and repeat the track are missing ### The buttons to skip, shuffle, and repeat the track are missing