Update kodi with new services information (#2475)

The new platform specific services added in pull request #6426
This commit is contained in:
Alessandro Mogavero 2017-04-22 20:10:55 +01:00 committed by Fabian Affolter
parent 66ef7d730a
commit fe5184b875

View File

@ -55,3 +55,32 @@ kodi_notification:
- **displaytime** (*Optional*): Length in milliseconds the message stays on screen. *Defaults to `10000` ms* - **displaytime** (*Optional*): Length in milliseconds the message stays on screen. *Defaults to `10000` ms*
To use notifications, please see the [getting started with automation page](/getting-started/automation/). To use notifications, please see the [getting started with automation page](/getting-started/automation/).
## {% linkable_title Services %}
### {% linkable_title Media control services %}
Available services: `kodi_add_to_playlist`, `kodi_set_shuffle`
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ------------------------------------------------ |
| `entity_id` | yes | Target a specific media player. Defaults to all. |
#### {% linkable_title Service `media_player/kodi_set_shuffle` %}
| Service data attribute | Optional | Description |
|------------------------|----------|----------------------------------------------------------|
| `entity_id` | yes | Target a specific media player. It must be of type kodi. |
| `shuffle_on ` | no | True/false for shuffle on/off |
#### {% linkable_title Service `media_player/kodi_add_to_playlist` %}
Add a song or an entire album to the default playlist (i.e. playlist id 0).
| Service data attribute | Optional | Description |
|------------------------|----------|----------------------------------------------------------------------------|
| `entity_id` | yes | Target a specific media player. It must be of type kodi. |
| `media_type ` | no | either SONG or ALBUM |
| media_id | yes | id of the media as defined in kodi |
| media_name | yes | name of the media, HA will search for the media with name closer to this. If ALL add all albums, if artist_name is provided adds all albums of that artist. |
| artist_name | yes | name of the artist, HA will search for the artist with name closer to this.|