8000 Add config block to media selector by balloob · Pull Request #39696 · home-assistant/home-assistant.io · GitHub
[go: up one dir, main page]

Skip to content

Add config block to media selector #39696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
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
17 changes: 15 additions & 2 deletions source/_docs/blueprint/selectors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1029,17 +1029,30 @@ You are prompted to select the device used to play media. Once the device is sel

![Screenshot of the Media selector](/images/blueprints/selector-media.png)

To ask the user to select a media device and suitable media, you can use the
media selector without any options:

```yaml
media:
```

You can also use the media selector with an optional `accept` filter to limit the
media types that can be selected. The user will not be asked to pick a device.

```yaml
# Do not ask for a device but manually specify a filter for the media.
media:
accept:
- image/*
```

{% configuration media %}
accept:
description: >
List of media types the user is allowed to select.
type: list
required: false
{% endconfiguration %}

The output of the media selector, is an mapping with information about
the selected media device and the selected media to play. There is also
metadata, which is used by the frontend and should not be used in the
Expand Down Expand Up @@ -1181,7 +1194,7 @@ object:
fields:
name:
label: Name
selector:
selector:
text:
percentage:
label: Percentage
Expand Down
0