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.universal.markdown
+28-28Lines changed: 28 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -21,38 +21,38 @@ A Universal Media Player is created in `configuration.yaml` as follows.
21
21
```yaml
22
22
# Example configuration.yaml entry
23
23
media_player:
24
-
platform: universal
25
-
name: MEDIA_PLAYER_NAME
26
-
children:
27
-
- media_player.CHILD_1_ID
28
-
- media_player.CHILD_2_ID
29
-
commands:
30
-
turn_on:
31
-
service: SERVICE
32
-
data: SERVICE_DATA
33
-
turn_off:
34
-
service: SERVICE
35
-
data: SERVICE_DATA
36
-
volume_up:
37
-
service: SERVICE
38
-
data: SERVICE_DATA
39
-
volume_down:
40
-
service: SERVICE
41
-
data: SERVICE_DATA
42
-
volume_mute:
43
-
service: SERVICE
44
-
data: SERVICE_DATA
45
-
attributes:
46
-
is_volume_muted: ENTITY_ID|ATTRIBUTE
47
-
state: ENTITY_ID|ATTRIBUTE
24
+
- platform: universal
25
+
name: MEDIA_PLAYER_NAME
26
+
children:
27
+
- media_player.CHILD_1_ID
28
+
- media_player.CHILD_2_ID
29
+
commands:
30
+
turn_on:
31
+
service: SERVICE
32
+
data: SERVICE_DATA
33
+
turn_off:
34
+
service: SERVICE
35
+
data: SERVICE_DATA
36
+
volume_up:
37
+
service: SERVICE
38
+
data: SERVICE_DATA
39
+
volume_down:
40
+
service: SERVICE
41
+
data: SERVICE_DATA
42
+
volume_mute:
43
+
service: SERVICE
44
+
data: SERVICE_DATA
45
+
attributes:
46
+
is_volume_muted: ENTITY_ID|ATTRIBUTE
47
+
state: ENTITY_ID|ATTRIBUTE
48
48
```
49
49
50
50
Configuration variables:
51
51
52
-
- **name**: The name to assign the player
53
-
- **children**: Ordered list of child media players this entity will control
54
-
- **commands** *Optional*: Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*.
55
-
- **attributes** *Optional*: Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided.
52
+
- **name** (*Required*): The name to assign the player
53
+
- **children** (*Required*): Ordered list of child media players this entity will control
54
+
- **commands** (*Optional*): Commands to be overwritten. Possible entries are *turn_on*, *turn_off*, *volume_up*, *volume_down*, and *volume_mute*.
55
+
- **attributes** (*Optional*): Attributes that can be overwritten. Possible entries are *is_volume_muted* and *state*. The values should be an entity id and state attribute separated by a bar (\|). If the entity id's state should be used, then only the entity id should be provided.
56
56
57
57
The universal media player will primarily imitate one of its *children*. The first child in the list that is active (not idle/off) will be controlled the universal media player. The universal media player will also inherit its state from the first active child. Entities in the *children* list must be media players.
0 commit comments