![]() ![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |