mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
new media_player media_content_type (#10259)
This commit is contained in:
parent
a2820d0dc3
commit
9daf8b9464
@ -38,7 +38,7 @@ automation:
|
|||||||
data:
|
data:
|
||||||
entity_id: media_player.nursery
|
entity_id: media_player.nursery
|
||||||
media_content_id: http://fileserver/rain.mp3
|
media_content_id: http://fileserver/rain.mp3
|
||||||
media_content_type: audio/mp4
|
media_content_type: music
|
||||||
|
|
||||||
|
|
||||||
# If you select "Babbling Brook", play the "babbling_brook.mp3" file
|
# If you select "Babbling Brook", play the "babbling_brook.mp3" file
|
||||||
@ -54,7 +54,7 @@ automation:
|
|||||||
data:
|
data:
|
||||||
entity_id: media_player.nursery
|
entity_id: media_player.nursery
|
||||||
media_content_id: http://fileserver/babbling_brook.mp3
|
media_content_id: http://fileserver/babbling_brook.mp3
|
||||||
media_content_type: audio/mp4
|
media_content_type: music
|
||||||
|
|
||||||
# If you select "None, turn the Chromecast off
|
# If you select "None, turn the Chromecast off
|
||||||
- alias: Stop the Lullaby
|
- alias: Stop the Lullaby
|
||||||
@ -160,5 +160,5 @@ automation:
|
|||||||
{% else %}{% endraw %}
|
{% else %}{% endraw %}
|
||||||
none{% raw %}
|
none{% raw %}
|
||||||
{% endif %}{% endraw %}
|
{% endif %}{% endraw %}
|
||||||
media_content_type: 'audio/mp4'
|
media_content_type: 'music'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user