mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Update universal.markdown (#23925)
This commit is contained in:
parent
1b7802f100
commit
8900e82a9a
@ -58,6 +58,7 @@ media_player:
|
|||||||
is_volume_muted: ENTITY_ID|ATTRIBUTE
|
is_volume_muted: ENTITY_ID|ATTRIBUTE
|
||||||
state: ENTITY_ID|ATTRIBUTE
|
state: ENTITY_ID|ATTRIBUTE
|
||||||
device_class: tv
|
device_class: tv
|
||||||
|
unique_id: a_unique_string
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -85,6 +86,10 @@ device_class:
|
|||||||
description: The device class that this entity represents. Can be `tv`, `speaker`, or `receiver`.
|
description: The device class that this entity represents. Can be `tv`, `speaker`, or `receiver`.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
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 %}
|
{% 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.
|
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:
|
data:
|
||||||
activity: "{{ source }}"
|
activity: "{{ source }}"
|
||||||
device_class: tv
|
device_class: tv
|
||||||
|
unique_id: media_room_harmony_hub
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user