Name of the Kodi JSON-RPC API method to be called. Name(s) of the Kodi entities where to run the API method. Results of the Kodi API call will be redirected in a Home Assistant event: kodi_call_method_result. Optional artist name for filtering media.Ĭall a Kodi JSON-RPC API method with optional parameters. Can be ‘ALL’ when media_type is ‘ALBUM’ and artist_name is specified, to add all songs from one artist. If not defined, media_name and artist_name are needed to search the Kodi music library. Unique Id of the media entry to add ( songid or albumid). Name(s) of the Kodi entities where to add the media. Automations would be of the form:Īutomation : - id : kodi_turn_on alias : " Kodi: turn on" trigger : - platform : device device_id : !secret kodi_device_id domain : kodi entity_id : media_player.kodi type : turn_on action : - service : script.kodi_turn_on - id : kodi_turn_off alias : " Kodi: turn off" trigger : - platform : device device_id : !secret kodi_device_id domain : kodi entity_id : media_player.kodi type : turn_off action : - service : script.kodi_turn_off Services Service kodi.add_to_playlistĪdd music to the default playlist (i.e., playlistid=0). If you prefer YAML, you’ll need to get the device ID from the UI automation editor. These automations can be configured through the UI (see Device Triggers for automations). Simply use the relevant Kodi device triggers and your automation will be called to perform the turn_on or turn_off sequence see the Kodi turn on/off samples section for scripts that can be used. You can customize your turn on and off actions through automations. ![]() Kodi must be on when Home Assistant is loading for the first time for the configuration to be imported.This functionality is now available through device triggers. Your turn on/off actions will not be imported.If you do not remove it, your configuration will be imported with the following limitations: If you previously had Kodi configured through configuration.yaml, it’s advisable to remove it, and configure from the UI. ![]() If it wasn’t discovered automatically, don’t worry! You can set up aįollow the instructions on screen to complete the setup.
0 Comments
Leave a Reply. |