12/27/2022 0 Comments Kodi movie cast![]() Kodi services samples Simple script to turn on the PVR in some channel as a time function script: It’ll also expose the endpoints standby, toggle and activate without authentication on your Kodi player. This example and the following requires to have the script.json-cec plugin installed on your Kodi player. Turn on and off the TV with the Kodi JSON-CEC Add-onįor Kodi devices running 24/7 attached to a CEC capable TV (OSMC / OpenElec and systems alike running in Rasperry Pi’s, for example), this configuration enables the optimal way to turn on/off the attached TV from Home Assistant while Kodi is always active and ready: script: Here are the equivalent ways to configure each of the old options to turn off Kodi ( quit, hibernate, suspend, reboot, or shutdown): ![]() To use this service, first you need to configuration the wake_on_lan integration in Home Assistant, which is achieved simply by adding wake_on_lan: to your configuration.yaml. With this configuration, when calling media_player/turn_on on the Kodi device, a magic packet will be sent to the specified MAC address. You could also simply use these sequences directly in the automations without creating scripts. The following scripts can be used in automations for turning on/off your Kodi instance see Turning on/off. When calling the kodi.call_method service, if the Kodi JSON-RPC API returns data, when received by Home Assistant it will fire a kodi_call_method_result event on the event bus with the following event_data: entity_id: "" Optional parameters for the Kodi API call. 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: automation:Ī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. ArchivesCategories |