Skip to content

Commit a486944

Browse files
authored
Update universal.markdown (home-assistant#21504)
1 parent 534b824 commit a486944

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

source/_integrations/universal.markdown

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ha_platforms:
1111
- media_player
1212
---
1313

14-
Universal Media Players combine multiple existing entities in Home Assistant into one media player entity. This is used for creating a single entity that controls an entire media center.
14+
A Universal Media Player can combine multiple existing entities in Home Assistant into a single media player entity. This is used to create a single media player entity that can control an entire media center.
1515

16-
Multiple media player entities can be controlled from a universal media player. Additionally, the universal media player allows volume and power commands to be re-routed to other entities in Home Assistant. This allows the power and volume to control external devices like a television or audio receiver.
16+
Multiple media player entities may be controlled from a Universal Media Player. Additionally, the Universal Media Player can enable volume and power commands to be directed to other Home Assistant entities. This enables the media player power and volume commands to control devices like a television, amplifier or audio receiver, for example.
1717

1818
A Universal Media Player is created in `configuration.yaml` as follows.
1919

@@ -61,23 +61,23 @@ media_player:
6161
6262
{% configuration %}
6363
name:
64-
description: The name to assign the player.
64+
description: The name to assign to the player.
6565
required: true
6666
type: string
6767
children:
68-
description: Ordered list of child media players this entity will control.
68+
description: Ordered list of child media players that this entity will control.
6969
required: false
7070
type: list
7171
state_template:
72-
description: "A [template](/topics/templating/) can be specified to render the state of the media player. This way, the state could depend on entities different from media players, like switches or input booleans."
72+
description: "A [template](/topics/templating/) can be specified to render the state of the media player. In this way, the state may depend on entities that are not themselves media players, like switches or input booleans."
7373
required: false
7474
type: template
7575
commands:
76-
description: "Commands to be overwritten. Almost all media player service commands can be overwritten. Example entries are `turn_on`, `turn_off`, `select_source`, `volume_set`, `volume_up`, `volume_down`, `volume_mute`, `media_play`, `media_pause`, `media_stop`, `media_previous_track`, `media_next_track` and `play_media` (refer to the [`media_player` documentation](/integrations/media_player/) to see the full list)."
76+
description: "Media player commands to be overridden. Almost all media player service commands may be overridden. Example entries are `turn_on`, `turn_off`, `select_source`, `volume_set`, `volume_up`, `volume_down`, `volume_mute`, `media_play`, `media_pause`, `media_stop`, `media_previous_track`, `media_next_track` and `play_media` (refer to the [`media_player` documentation](/integrations/media_player/) to see the full list)."
7777
required: false
7878
type: string
7979
attributes:
80-
description: "Attributes that can be overwritten. Most, if not all, media player attributes can be overwritten. Example entries are `is_volume_muted`, `state`, `source`, `source_list` and `volume_level`. The values should be an entity ID and state attribute separated by a pipe character (|). If the entity ID's state should be used, then only the entity id should be provided."
80+
description: "Attributes that can be overridden. Most, if not all, media player attributes can be overridden. Example entries are `is_volume_muted`, `state`, `source`, `source_list` and `volume_level`. The values should be an entity ID and state attribute separated by a pipe character (|). If the entity ID's state should be used, then only the entity id needs to be provided."
8181
required: false
8282
type: string
8383
device_class:
@@ -100,7 +100,7 @@ When using `state_template`, if you use a template that depends on the current t
100100

101101
### Chromecast & Kodi control with switches
102102

103-
In this example, a switch is available to control the power of the television. Switches are also available to turn the volume up, turn the volume down, and mute the audio. These could be command line switches or any other entity in Home Assistant. The `turn_on` and `turn_off` commands will be redirected to the television, and the volume commands will be redirected to an audio receiver. The `select_source` command will be passed directly to an A/V receiver.
103+
In this example, a switch is available to control the power to the television. Switches are also available to turn the volume up, turn the volume down, and mute the audio. These could be command line switches or any other entity in Home Assistant. The `turn_on` and `turn_off` commands will be redirected to the television, and the volume commands will be redirected to an audio receiver. The `select_source` command will be passed directly to an A/V receiver.
104104

105105
The children are a Chromecast and a Kodi player. If the Chromecast is playing, the Universal Media Player will reflect its status. If the Chromecast is idle and Kodi is playing, the universal media player will change to reflect its status.
106106

@@ -271,36 +271,36 @@ media_player:
271271
- platform: universal
272272
name: Media Room TV
273273
attributes:
274-
state: remote.alexander_down_guest
275-
source_list: remote.alexander_down_guest|activity_list
276-
source: remote.alexander_down_guest|current_activity
274+
state: remote.harmony_hub
275+
source_list: remote.harmony_hub|activity_list
276+
source: remote.harmony_hub|current_activity
277277
commands:
278278
turn_on:
279279
service: remote.turn_on
280280
target:
281-
entity_id: remote.alexander_down_guest
281+
entity_id: remote.remote.harmony_hub
282282
turn_off:
283283
service: remote.turn_off
284284
target:
285-
entity_id: remote.alexander_down_guest
285+
entity_id: remote.remote.harmony_hub
286286
volume_up:
287287
service: remote.send_command
288288
target:
289-
entity_id: remote.alexander_down_guest
289+
entity_id: remote.remote.harmony_hub
290290
data:
291291
device: Receiver
292292
command: VolumeUp
293293
volume_down:
294294
service: remote.send_command
295295
target:
296-
entity_id: remote.alexander_down_guest
296+
entity_id: remote.remote.harmony_hub
297297
data:
298298
device: Receiver
299299
command: VolumeDown
300300
select_source:
301301
service: remote.turn_on
302302
target:
303-
entity_id: remote.alexander_down_guest
303+
entity_id: remote.remote.harmony_hub
304304
data:
305305
activity: "{{ source }}"
306306
device_class: tv

0 commit comments

Comments
 (0)