Skip to content

Commit ce9ca34

Browse files
authored
Update Configuration Variables section
1 parent 6ae8a40 commit ce9ca34

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

source/_components/cast.markdown

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ha_iot_class: "Local Polling"
1515
redirect_from: /components/media_player.cast/
1616
---
1717

18-
1918
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.
2019

2120
## {% linkable_title Advanced use %}
@@ -24,15 +23,34 @@ The Cast component has some extra configuration options available for advanced u
2423

2524
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:
2625

27-
2826
```yaml
2927
# Example configuration.yaml entry
3028
cast:
3129
media_player:
3230
- host: 192.168.1.10
3331
```
3432
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
52+
cast:
53+
media_player:
54+
- host: IP_ADDRESS_DEVICE_1
55+
- host: IP_ADDRESS_DEVICE_2
56+
```

0 commit comments

Comments
 (0)