Radio Browser
The Radio Browser integration allows you to use the directory of
radio stations collected on Radio Browser
配置
要将 Radio Browser service 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 Radio Browser。
-
按照屏幕上的说明完成设置。
To start the Radio Browser, in Home Assistant, go to Media > Radio Browser and select the speaker.
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:
action: 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 for more options.