Skip to content

Commit fe5184b

Browse files
alexmogaverofabaff
authored andcommitted
Update kodi with new services information (home-assistant#2475)
The new platform specific services added in pull request home-assistant#6426
1 parent 66ef7d7 commit fe5184b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

source/_components/notify.kodi.markdown

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,32 @@ kodi_notification:
5555
- **displaytime** (*Optional*): Length in milliseconds the message stays on screen. *Defaults to `10000` ms*
5656

5757
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
58+
59+
## {% linkable_title Services %}
60+
61+
### {% linkable_title Media control services %}
62+
Available services: `kodi_add_to_playlist`, `kodi_set_shuffle`
63+
64+
| Service data attribute | Optional | Description |
65+
| ---------------------- | -------- | ------------------------------------------------ |
66+
| `entity_id` | yes | Target a specific media player. Defaults to all. |
67+
68+
#### {% linkable_title Service `media_player/kodi_set_shuffle` %}
69+
70+
| Service data attribute | Optional | Description |
71+
|------------------------|----------|----------------------------------------------------------|
72+
| `entity_id` | yes | Target a specific media player. It must be of type kodi. |
73+
| `shuffle_on ` | no | True/false for shuffle on/off |
74+
75+
#### {% linkable_title Service `media_player/kodi_add_to_playlist` %}
76+
77+
Add a song or an entire album to the default playlist (i.e. playlist id 0).
78+
79+
| Service data attribute | Optional | Description |
80+
|------------------------|----------|----------------------------------------------------------------------------|
81+
| `entity_id` | yes | Target a specific media player. It must be of type kodi. |
82+
| `media_type ` | no | either SONG or ALBUM |
83+
| media_id | yes | id of the media as defined in kodi |
84+
| 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. |
85+
| artist_name | yes | name of the artist, HA will search for the artist with name closer to this.|
86+

0 commit comments

Comments
 (0)