-
Notifications
You must be signed in to change notification settings - Fork 113
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
Unable to filter media_player domain #9
Comments
Auto-entities works by populating the Auto-entities can't be used to create several cards at this point. |
Thanks for the assistance! Makes total sense now.
…On Fri, Mar 8, 2019, 01:32 Thomas Lovén ***@***.***> wrote:
Closed #9 <#9>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhB4hMs0sWRSE6OgjkFcbUP6_4mauMNks5vUiAmgaJpZM4bk0Vd>
.
|
It would be good to support it somehow ;-) |
|
Thanks for this card I was really hoping this would help with my Plex on Xbox, it keys creating new players and I was hoping I could use this card to just display any player it so happens to use. |
I have managed to make a workaround for this by using
See https://www.home-assistant.io/lovelace/entities/#options-for-entities |
Or see the bottom here: https://github.com/thomasloven/lovelace-layout-card#a-few-tips |
A year+ later, but wanted to share a slightly different take on this - thanks to all the above for your previous posts! I've implemented like this, which only shows the cards that are playing or paused: (apparently I suck at formatting. sorry cant figure out how to put a code block. just puts it all inline.)
|
I think this is how you had it formatted: type: custom:auto-entities
card:
type: entities
show_header_toggle: false
filter:
include:
- state: playing
options:
type: custom:mini-media-player
artwork: cover
- state: paused
options:
type: custom:mini-media-player
artwork: cover
show_empty: false BTW, you can use markdown to format the code and even specify that it is yaml for proper colorization. Start it with this and then end it with 3 more backticks: |
In case others come across this post and my config could help them... I have a (likely relatively unique) setup where I have a bunch of Sonos Ports plugged into a matrix audio switcher that drives a bunch of rooms. Nowadays you would just have 1 Port per room, but in my case the Sonos-es came later and the # of Ports would be cost prohibitive. I wanted a dynamic UI that would show just the rooms currently sourced to each Sonos so here is what I have per Sonos: type: entities
entities:
- type: custom:mini-media-player
entity: media_player.main_floor
group: true
info: short
hide:
volume: true
power: true
source: true
- type: custom:auto-entities
card:
type: entities
filter:
include:
- entity_id: media_player.*_speakers
attributes:
source: Main Floor Sonos
options:
type: custom:mini-media-player
group: true
toggle_power: false
hide:
controls: true
sort:
method: name
show_empty: false
unique: true Then I have this to list out all the rooms that are not associated to a Sonos so I can easily assign them: type: custom:auto-entities
card:
type: entities
title: Unassigned Speakers
filter:
include:
- entity_id: media_player.*_speakers
state: 'off'
options:
type: custom:mini-media-player
group: true
toggle_power: false
hide:
controls: true
sort:
method: name
show_empty: false
unique: true |
looks as though i can't set my card type to anything like 'media-control' or 'custom:mini-media-player' because
or
I know that the error associates itself with card-tools but i think it just may be returning zero results from the filter in auto-entries. thus... opening the issue on this repo and not on card-tools.
Thanks for your help! love all the work you've put into lovelace.
btw here is my lovelace card:
The text was updated successfully, but these errors were encountered: