Add sample for using DIRECTORY media type with kodi (#11043)

This commit is contained in:
thoscut 2020-01-22 19:31:38 +01:00 committed by Teemu R
parent 671c45d03b
commit fac4400b29

View File

@ -277,6 +277,26 @@ script:
```
{% 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
```yaml