Plugin ‚kodi‘ Konfiguration

plugin logo

Im folgenden sind etwaige Anforderungen und unterstützte Hardware beschrieben. Danach folgt die Beschreibung, wie das Plugin kodi konfiguriert wird. Außerdem ist im folgenden beschrieben, wie das Plugin in den Item Definitionen genutzt werden kann. [1]

Es handelt sich bei diesem Plugin um ein interface Plugin.

Beschreibung

Anforderungen

  • Minimum SmartHomeNG Version: 1.9.5

  • Minimum Python Version: 3.7

Konfiguration

Im folgenden ist beschrieben, wie das Plugin kodi konfiguriert wird. Außerdem ist im folgenden beschrieben, wie das Plugin in den Item Definitionen genutzt werden kann.

Parameter

Das Plugin verfügt über folgende Parameter, die in der Datei ../etc/plugin.yaml konfiguriert werden:

autoconnect

  • Datentyp: bool

autoreconnect

  • Datentyp: bool

  • Standardwert: True

connect_cycle

  • Datentyp: num

  • Standardwert: 3

connect_retries

  • Datentyp: num

  • Standardwert: 5

delay_initial_read

  • Datentyp: num

  • Standardwert: 10

host

  • Datentyp: str

port

  • Datentyp: int

  • Standardwert: 9090

resume_initial_read

  • Datentyp: bool

retry_cycle

  • Datentyp: num

  • Standardwert: 30

retry_suspend

  • Datentyp: num

  • Standardwert: 3

send_retries

  • Datentyp: num

  • Standardwert: 3

send_timeout

  • Datentyp: num

  • Standardwert: 5

suspend_item

  • Datentyp: str

timeout

  • Datentyp: num

  • Standardwert: 3

Item Attribute

Das Plugin unterstützt folgende Item Attribute, die in den Dateien im Verzeichnis ../items verwendet werden:

kodi_command

  • Datentyp: str

kodi_lookup

  • Datentyp: str

kodi_read

  • Datentyp: bool

kodi_read_cycle

  • Datentyp: num

kodi_read_group

  • Datentyp: list(str)

kodi_read_group_trigger

  • Datentyp: str

kodi_read_initial

  • Datentyp: bool

kodi_write

  • Datentyp: bool

Item-Structs

Das Plugin stellt die folgenden Item-Structs zur Verfügung. Diese Informationen sind aus der plugin.yaml entnommen und möglicherweise nicht vollständig.

ALL

  • ALL (foo, —)
    • read (bool, —)

    • info (foo, —)
      • read (bool, —)

      • player (num, —)

      • state (str, —)

      • media (str, —)

      • title (str, —)

      • streams (list, —)

      • subtitles (list, —)

      • macro (bool, —)

    • status (foo, —)
      • read (bool, —)

      • update (bool, —)

      • ping (bool, —)

      • get_status_au (bool, —)

      • get_actplayer (bool, —)

      • get_settings (dict, —)

      • get_status_play (bool, —)

      • get_item (bool, —)

      • get_favourites (bool, —)

    • control (foo, —)
      • read (bool, —)

      • playpause (bool, —)

      • seek (num, —)

      • audio (foo, —)

      • speed (num, —)

      • subtitle (foo, —)

      • stop (bool, —)

      • goto (str, —)

      • power (bool, —)

      • quit (bool, —)

      • mute (bool, —)

      • volume (num, —)

      • action (str, —)

control

  • control (foo, —)
    • read (bool, —)

    • playpause (bool, —)

    • seek (num, —)

    • audio (foo, —)

    • speed (num, —)

    • subtitle (foo, —)

    • stop (bool, —)

    • goto (str, —)

    • power (bool, —)

    • quit (bool, —)

    • mute (bool, —)

    • volume (num, —)

    • action (str, —)

info

  • info (foo, —)
    • read (bool, —)

    • player (num, —)

    • state (str, —)

    • media (str, —)

    • title (str, —)

    • streams (list, —)

    • subtitles (list, —)

    • macro (bool, —)

old_control

  • old_control (foo, —)
    • update (bool, —)

    • play (bool, —)
      • play_cmd (bool, —)

    • pause (bool, —)
      • pause_cmd (bool, —)

    • stop (bool, —)

    • playpause (bool, —)

    • previous (bool, —)

    • next (bool, —)

    • seek (num, —)

    • speed (num, —)

    • volume (num, —)

    • mute (bool, —)

    • macro (bool, —)

    • on_off (bool, —)

    • input (str, —)

    • get_favourites (bool, —)

    • audiostream (foo, —)

    • subtitle (foo, —)

old_info

  • old_info (foo, —)
    • read (bool, —)

    • player (num, —)

    • state (str, —)

    • media (str, —)

    • title (str, —)

    • audiostreams (list, —)

    • subtitles (list, —)

status

  • status (foo, —)
    • read (bool, —)

    • update (bool, —)

    • ping (bool, —)

    • get_status_au (bool, —)

    • get_actplayer (bool, —)

    • get_settings (dict, —)

    • get_status_play (bool, —)

    • get_item (bool, —)

    • get_favourites (bool, —)

Logik Parameter

Das Plugin verfügt über folgende Parameter, die in der Datei ../etc/logic.yaml konfiguriert werden:

Keine Logik Parameter in den Metadaten beschrieben - Bitte in der README nachsehen (siehe Fußnote)

Plugin Functions

Das Plugin verfügt über folgende öffentliche Funktionen, die z.B. in Logiken aufgerufen werden können.

Keine