mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Add sample for using DIRECTORY media type with kodi (#11043)
This commit is contained in:
parent
671c45d03b
commit
fac4400b29
@ -277,6 +277,26 @@ script:
|
|||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
#### Simple script to play a smart playlist
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
```yaml
|
||||||
|
script:
|
||||||
|
play_kodi_smp:
|
||||||
|
alias: Turn on the silly box with random Firefighter Sam episode
|
||||||
|
sequence:
|
||||||
|
- alias: TV on
|
||||||
|
service: media_player.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: media_player.kodi
|
||||||
|
- service: media_player.play_media
|
||||||
|
data:
|
||||||
|
entity_id: media_player.kodi
|
||||||
|
media_content_type: DIRECTORY
|
||||||
|
media_content_id: special://profile/playlists/video/feuerwehrmann_sam.xsp
|
||||||
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
#### Trigger a Kodi video library update
|
#### Trigger a Kodi video library update
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user