2019-08-10 21:31:04 +00:00
# Describes the format for available Kodi services
add_to_playlist :
2021-05-14 18:34:59 +00:00
name : Add to playlist
2019-08-10 21:31:04 +00:00
description : Add music to the default playlist (i.e. playlistid=0).
2021-05-14 18:34:59 +00:00
target :
entity :
integration : kodi
domain : media_player
2019-08-10 21:31:04 +00:00
fields :
media_type :
2021-05-14 18:34:59 +00:00
name : Media type
2019-08-10 21:31:04 +00:00
description : Media type identifier. It must be one of SONG or ALBUM.
2021-05-14 18:34:59 +00:00
required : true
2019-08-10 21:31:04 +00:00
example : ALBUM
2021-05-14 18:34:59 +00:00
selector :
text :
2019-08-10 21:31:04 +00:00
media_id :
2021-05-14 18:34:59 +00:00
name : Media ID
2019-08-10 21:31:04 +00:00
description : 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.
example : 123456
2021-05-14 18:34:59 +00:00
selector :
text :
2019-08-10 21:31:04 +00:00
media_name :
2021-05-14 18:34:59 +00:00
name : Media Name
2019-08-10 21:31:04 +00:00
description : 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.
2020-04-05 15:27:16 +00:00
example : "Highway to Hell"
2021-05-14 18:34:59 +00:00
selector :
text :
2019-08-10 21:31:04 +00:00
artist_name :
2021-05-14 18:34:59 +00:00
name : Artist name
2019-08-10 21:31:04 +00:00
description : Optional artist name for filtering media.
2020-04-05 15:27:16 +00:00
example : "AC/DC"
2021-05-14 18:34:59 +00:00
selector :
text :
2019-08-10 21:31:04 +00:00
call_method :
2021-05-14 18:34:59 +00:00
name : Call method
2020-04-05 15:27:16 +00:00
description : "Call a Kodi JSONRPC API method with optional parameters. Results of the Kodi API call will be redirected in a Home Assistant event: `kodi_call_method_result`."
2021-05-14 18:34:59 +00:00
target :
entity :
integration : kodi
domain : media_player
2019-08-10 21:31:04 +00:00
fields :
method :
2021-05-14 18:34:59 +00:00
name : Method
2019-08-10 21:31:04 +00:00
description : Name of the Kodi JSONRPC API method to be called.
2021-05-14 18:34:59 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "VideoLibrary.GetRecentlyAddedEpisodes"
2021-05-14 18:34:59 +00:00
selector :
text :