mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Added Automation example for the Radio Browser Intigration (#32779)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
aaaec45bb5
commit
0c84119d8b
@ -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.
|
||||||

|

|
||||||
|
|
||||||
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user