From bc99a8d8e0b0955888e0de8f1ad95ba30846b494 Mon Sep 17 00:00:00 2001 From: azogue Date: Thu, 11 May 2017 20:12:12 +0200 Subject: [PATCH 1/2] Added Kodi-specific services doc --- source/_components/media_player.kodi.markdown | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source/_components/media_player.kodi.markdown b/source/_components/media_player.kodi.markdown index 9d40a141b1b7..cd05290ad9e9 100644 --- a/source/_components/media_player.kodi.markdown +++ b/source/_components/media_player.kodi.markdown @@ -37,3 +37,25 @@ Configuration variables: - **password** (*Optional*): The XBMC/Kodi HTTP password. - **turn_off_action** (*Optional*): The desired turn off action. Options are `none`, `quit`, `hibernate`, `suspend`, `reboot`, or `shutdown`. Default `none`. - **enable_websocket** (*Optional*): Enable websocket connections to Kodi via the TCP port. Defaults to `true`. The websocket connection allows Kodi to push updates to Home Assistant and removes the need for Home Assistant to poll. If websockets don't work on your installation this can be set to `false`. + + +### {% linkable_title Service `kodi_add_to_playlist` %} + +Add music to the default playlist (i.e. playlistid=0). + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | no | Name(s) of the Kodi entities where to add the media. +| `media_type` | yes | Media type identifier. It must be one of SONG or ALBUM. +| `media_id` | no | Unique Id of the media entry to add (`songid` or `albumid`). If not defined, `media_name` and `artist_name` are needed to search the Kodi music library. +| `media_name` | no| Optional media name for filtering media. Can be 'ALL' when `media_type` is 'ALBUM' and `artist_name` is specified, to add all songs from one artist. +| `artist_name` | no | Optional artist name for filtering media. + +### {% linkable_title Service `kodi_set_shuffle` %} + +Set shuffling state. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | no | Name(s) of entities to set. +| `shuffle_on` | yes | True/false for enabling/disabling shuffle From 4e6ae94b78dea3517540f977d9fc6fb7ad2636f5 Mon Sep 17 00:00:00 2001 From: azogue Date: Fri, 12 May 2017 01:33:05 +0200 Subject: [PATCH 2/2] Removed `kodi_set_shuffle` service (is the same as `media_player.shuffle_set`) --- source/_components/media_player.kodi.markdown | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/_components/media_player.kodi.markdown b/source/_components/media_player.kodi.markdown index cd05290ad9e9..cd94a2b0da1b 100644 --- a/source/_components/media_player.kodi.markdown +++ b/source/_components/media_player.kodi.markdown @@ -51,11 +51,3 @@ Add music to the default playlist (i.e. playlistid=0). | `media_name` | no| Optional media name for filtering media. Can be 'ALL' when `media_type` is 'ALBUM' and `artist_name` is specified, to add all songs from one artist. | `artist_name` | no | Optional artist name for filtering media. -### {% linkable_title Service `kodi_set_shuffle` %} - -Set shuffling state. - -| Service data attribute | Optional | Description | -| ---------------------- | -------- | ----------- | -| `entity_id` | no | Name(s) of entities to set. -| `shuffle_on` | yes | True/false for enabling/disabling shuffle