-
Notifications
You must be signed in to change notification settings - Fork 112
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
Always include/show some entities? #22
Comments
You could wrap auto-entities in another auto-entities type: custom:auto-entities
filter:
include:
- dynamic things
exclude:
- filter out dynamic things
card:
type: custom:auto-entities
filter:
include:
- things to always include
card:
type: entities Haven't tested it, but I think this should work... |
Sorry for the delay getting back to you on this! I'm on holiday at the moment and have limited internet access. I've tried this, but it wouldn't work for me:
Also, I tried 'show_empty: true' in a normal auto-entities card (without wrapping multiple auto-entities) and it doesn't show the card until I turn on a light that's a listed entity. Does that work OK for you? |
Take another look at that indentation, and the order of things. filter:
include:
- entity_id: light.always_show_me
- entity_id: light.show_me_sometimes
not:
- state: "off"
state 2: "unavailable" |
I have a variant of this, where I want to sort a group, but then have certain entities pulled to the front. I do this by specifying those entities first, and then including the group, and finally setting the But something else ocured to me along the way; I wonder if it would make sense to add a
From a brief look at the code, it doesn't look like it'd take much to do that. The function that builds the entities list would take a config as parameter (the main card config itself in the base case), then when it hits a |
I've looked at the indentation, tried more variations etc. but still can't get it to work. Not to worry, thanks anyway for trying. |
While the example I gave you was not correct (edited now), I think you could find the problem if we look at this together.
|
Is it possible to create a card with this that always shows some entities, along with filtering other entities?
I tried with this (and a few variations) but didn't work
Ideally I'd like to show cards for each room, and always show certain scenes, scripts etc. but hide other lights and switches. I could then activate scenes from that card, or activate a popup card from displayed scenes or scripts to turn on lights individually.
If not possible please consider adding it as a feature request in the future :)
The text was updated successfully, but these errors were encountered: