Added Automation example for the Radio Browser Intigration (#32779)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Maxklos 2024-05-15 16:28:24 +02:00 committed by GitHub
parent aaaec45bb5
commit 0c84119d8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,20 @@ in Home Assistant.
To start the Radio Browser, in Home Assistant, go to **Media** > **Radio Browser** and select the speaker. To start the Radio Browser, in Home Assistant, go to **Media** > **Radio Browser** and select the speaker.
![Starting the radio browser](/images/integrations/radio_browser/radio_browser.png) ![Starting the radio browser](/images/integrations/radio_browser/radio_browser.png)
You can also use the Radio Browser in automations. When creating an automation, use the **Play Media** action to pick a station from the directory. This allows you for example to create ## Automation
an automation that starts playing your favorite radio station on your
Cast devices. You can also use the Radio Browser in automations. When creating an automation, use the **Play Media** action to pick a station from the directory. This allows you, for example, to create
an automation that starts playing your favorite radio station on your Cast devices.
If you want to use a YAML for the automation, you would look like this:
```yaml
service: media_player.play_media
target:
entity_id: media_player.YOUR_MEDIA_PLAYER
data:
media_content_id: media-source://radio_browser/963ccae5-0601-11e8-ae97-52543be04c81
media_content_type: audio/mpeg
```
See [Media Player](/integrations/media_player) for more options.