Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/_integrations/universal.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ media_player:
attributes:
is_volume_muted: ENTITY_ID|ATTRIBUTE
state: ENTITY_ID|ATTRIBUTE
browse_media_entity: media_player.CHILD_2_ID
device_class: tv
unique_id: a_unique_string
```
Expand All @@ -82,6 +83,10 @@ attributes:
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."
required: false
type: string
browse_media_entity:
description: Allows override the browse media entity to desired media player.
required: false
type: string
device_class:
description: The device class that this entity represents. Can be `tv`, `speaker`, or `receiver`.
required: false
Expand All @@ -102,6 +107,8 @@ When providing `select_source` as a command, it is recommended to also provide t

When using `state_template`, if you use a template that depends on the current time it is recommended to use `now()`. Using `now()` will cause templates to be refreshed at the start of every new minute. For more information see the [time](/docs/configuration/templating/#time) section in the template documentation.

The `browse_media_entity` parameter allows you to specify which media player will be used in media browser.

## Usage examples

### Chromecast & Kodi control with switches
Expand Down