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/cast.markdown
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ ha_iot_class: "Local Polling"
15
15
redirect_from: /components/media_player.cast/
16
16
---
17
17
18
-
19
18
Google Cast devices like Android TVs and Chromecasts will be automatically discovered if you enable [the discovery component]({{site_root}}/components/discovery/). If you don't have the discovery component enabled, you can enable the Cast component by going to the Integrations page inside the config panel.
20
19
21
20
## {% linkable_title Advanced use %}
@@ -24,15 +23,34 @@ The Cast component has some extra configuration options available for advanced u
24
23
25
24
For example, Cast devices can only be discovered if they are on the same subnet as Home Assistant. If this is not the case, you want to configure the IP address of the Cast device directly:
26
25
27
-
28
26
```yaml
29
27
# Example configuration.yaml entry
30
28
cast:
31
29
media_player:
32
30
- host: 192.168.1.10
33
31
```
34
32
35
-
Configuration variables:
36
-
37
-
- **host** (*Optional*): Use only if you don't want to scan for devices.
38
-
- **ignore_cec** (*Optional*) A list of Chromecasts that should ignore CEC data for determining the active input. [See the upstream documentation for more information.](https://github.com/balloob/pychromecast#ignoring-cec-data)
33
+
{% configuration %}
34
+
media_player:
35
+
description: A list that contains all Cast devices.
36
+
required: true
37
+
type: list
38
+
keys:
39
+
host:
40
+
description: Use only if you don't want to scan for devices.
41
+
required: false
42
+
type: string
43
+
ignore_cec:
44
+
description: A list of Chromecasts that should ignore CEC data for determining the active input. [See the upstream documentation for more information.](https://github.com/balloob/pychromecast#ignoring-cec-data)
45
+
required: false
46
+
type: list
47
+
{% endconfiguration %}
48
+
49
+
If you want to manually configure multiple Case media players, you can define those as follow:
50
+
```yaml
51
+
# Example configuration.yaml entry for multiple devices
0 commit comments