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).
![how to use kodi library how to use kodi library](https://cdn.technadu.com/wp-content/uploads/2020/07/Kodi-UI-Settings.jpg)
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.
![how to use kodi library how to use kodi library](https://cdn.windowsreport.com/wp-content/uploads/2020/05/all-repositories.png)
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.
![how to use kodi library how to use kodi library](https://www.rapidseedbox.com/wp-content/uploads/Screenshot-2020-08-06-at-14.40.02-1.jpeg)