From 0c84119d8bb376be2b0fbc74cfec69a135141774 Mon Sep 17 00:00:00 2001 From: Maxklos <17532916+Maxklos@users.noreply.github.com> Date: Wed, 15 May 2024 16:28:24 +0200 Subject: [PATCH] Added Automation example for the Radio Browser Intigration (#32779) Co-authored-by: Franck Nijhof --- source/_integrations/radio_browser.markdown | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/source/_integrations/radio_browser.markdown b/source/_integrations/radio_browser.markdown index 8e0abc377bc..4a16aab96f4 100644 --- a/source/_integrations/radio_browser.markdown +++ b/source/_integrations/radio_browser.markdown @@ -22,6 +22,20 @@ in Home Assistant. 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) -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. +## Automation + +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.