You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/media_player.kodi.markdown
+51-14Lines changed: 51 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,57 @@ media_player:
28
28
host: 192.168.0.123
29
29
```
30
30
31
-
Configuration variables:
32
-
33
-
- **host** (*Required*): The host name or address of the device that is running XBMC/Kodi.
34
-
- **port** (*Optional*): The HTTP port number. Defaults to 8080.
35
-
- **tcp_port** (*Optional*): The TCP port number. Defaults to 9090. Used for websocket connections to Kodi.
36
-
- **name** (*Optional*): The name of the device used in the frontend.
37
-
- **proxy_ssl** (*Optional*): Connect to kodi with HTTPS and WSS. Defaults to `false`. Useful if Kodi is behind an SSL proxy.
38
-
- **username** (*Optional*): The XBMC/Kodi HTTP username.
39
-
- **password** (*Optional*): The XBMC/Kodi HTTP password.
40
-
- **turn_on_action** (*Optional*): Home Assistant script sequence to call when turning on.
41
-
- **turn_off_action** (*Optional*): Home Assistant script sequence to call when turning off.
42
-
- **enable_websocket** (*Optional*): Enable websocket connections to Kodi via the TCP port. Defaults to `true`. The websocket connection allows Kodi to push updates to Home Assistant and removes the need for Home Assistant to poll. If websockets don't work on your installation this can be set to `false`.
43
-
- **timeout** (*Optional*): Set timeout for connections to Kodi. Defaults to 5 seconds.
44
-
31
+
{% configuration %}
32
+
host:
33
+
description: The host name or address of the device that is running XBMC/Kodi.
34
+
required: true
35
+
type: string
36
+
port:
37
+
description: The HTTP port number.
38
+
required: false
39
+
type: integer
40
+
default: 8080
41
+
tcp_port:
42
+
description: The TCP port number. Used for websocket connections to Kodi.
43
+
required: false
44
+
type: integer
45
+
default: 9090
46
+
name:
47
+
description: The name of the device used in the frontend.
48
+
required: false
49
+
type: string
50
+
proxy_ssl:
51
+
description: Connect to kodi with HTTPS and WSS. Useful if Kodi is behind an SSL proxy.
52
+
required: false
53
+
type: boolean
54
+
default: false
55
+
username:
56
+
description: The XBMC/Kodi HTTP username.
57
+
required: false
58
+
type: string
59
+
password:
60
+
description: The XBMC/Kodi HTTP password.
61
+
required: false
62
+
type: string
63
+
turn_on_action:
64
+
description: Home Assistant script sequence to call when turning on.
65
+
required: false
66
+
type: list
67
+
turn_off_action:
68
+
description: Home Assistant script sequence to call when turning off.
69
+
required: false
70
+
type: list
71
+
enable_websocket:
72
+
description: Enable websocket connections to Kodi via the TCP port. The websocket connection allows Kodi to push updates to Home Assistant and removes the need for Home Assistant to poll. If websockets don't work on your installation this can be set to `false`.
73
+
required: false
74
+
type: boolean
75
+
default: true
76
+
timeout:
77
+
description: Set timeout for connections to Kodi. Defaults to 5 seconds.
78
+
required: false
79
+
type: integer
80
+
default: 5
81
+
{% endconfiguration %}
45
82
46
83
### {% linkable_title Service `kodi_add_to_playlist` %}
0 commit comments