From fac4400b29ef1db8c880c5d6bdc22f9cd36d92ac Mon Sep 17 00:00:00 2001 From: thoscut Date: Wed, 22 Jan 2020 19:31:38 +0100 Subject: [PATCH] Add sample for using DIRECTORY media type with kodi (#11043) --- source/_integrations/kodi.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_integrations/kodi.markdown b/source/_integrations/kodi.markdown index 870979b3f4a..46358cfac5d 100644 --- a/source/_integrations/kodi.markdown +++ b/source/_integrations/kodi.markdown @@ -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