2 Commits

Author SHA1 Message Date
julesverhaeren
6456f6489f update kodi URL (#3323)
https://home-assistant.io/components/mediaplayer.kodi/    =>   https://home-assistant.io/components/media_player.kodi/
2017-09-07 15:51:14 +02:00
Eugenio Panadero
1bb8aeccd1 Kodi specific service to call Kodi API methods

 (#2635)
* Kodi specific services to call Kodi API methods



 - Doc for new service: `kodi_execute_addon` to run a Kodi Addon with optional parameters. Results of the Kodi API call, if any, are redirected in a Home Assistant event: `kodi_execute_addon_result`.

 - Doc for new service: `kodi_run_method` to run a Kodi JSONRPC API method with optional parameters. Results of the Kodi API call are redirected in a Home Assistant event: `kodi_run_method_result`.

 - Add `timeout` parameter to yaml config (needed to make slow queries to the JSONRPC API, default timeout is set to 5s).

 - Examples for using the new services: one simple yaml example to call `kodi_execute_addon`and turn on the TV attached to Kodi; and other, more complex, to query the Kodi library and make a dynamic input select.

* remove `kodi_execute_addon` service; change example to work with `kodi_run_method`

* naming changes

* complex example to cookbook

* Update media_player.kodi.markdown
2017-05-17 08:43:27 -04:00