Update universal.markdown (#23925)

This commit is contained in:
holysoles 2022-09-10 16:56:56 -05:00 committed by GitHub
parent 1b7802f100
commit 8900e82a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ media_player:
is_volume_muted: ENTITY_ID|ATTRIBUTE
state: ENTITY_ID|ATTRIBUTE
device_class: tv
unique_id: a_unique_string
```
{% configuration %}
@ -85,6 +86,10 @@ device_class:
description: The device class that this entity represents. Can be `tv`, `speaker`, or `receiver`.
required: false
type: string
unique_id:
description: A unique identifier for this entity. Needs to be unique within the `media_player` platform.
required: false
type: string
{% endconfiguration %}
The Universal Media Player will primarily imitate one of its `children`. The Universal Media Player will control the first child on the list that is active (not idle/off). The Universal Media Player will also inherit its state from the first active child if a `state_template` is not provided. Entities in the `children:` list must be media players, but the state template can contain any entity.
@ -305,6 +310,7 @@ media_player:
data:
activity: "{{ source }}"
device_class: tv
unique_id: media_room_harmony_hub
```
{% endraw %}