-
Notifications
You must be signed in to change notification settings - Fork 123
allow card_param to be a path #480
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
base: master
Are you sure you want to change the base?
Conversation
@mrnerdhair
and then you can use
But I do not recall a card with such structure. |
I was trying to do something along the lines of this, where type: custom:mod-card
card:
type: vertical-stack
entities: []
card_mod:
style: |
ha-card {
// ...
} |
Well,
Do you know any other possible applications apart of |
It would also be nice if auto-entities allowed populating individual cards instead of a combined card (ie, behave like a vertical stack, horizontal stack, grid, or similar custom card such as Mushroom card: chips), but that is a little different. Sorry, this might seem a little off-topic, but all the examples I found ended up falling into that category. |
If you mean “I wish AE to populate cards in stacks/grid” - this is already possible. |
If I have something like this: type: horizontal-stack
cards:
- type: entity
entity: sensor.entity
- type: entity
entity: sensor.entity2 I can't use AE, because it can't put entities under type: custom:auto-entities
filter: # filtering
card:
type: horizontal-stack
cards:
- type: entity
entity: populate[0]
- type: entity
entity: populate[1] Which can't be done - at least as far as I can tell based on the documentation. |
In your scenario, you need to populate a list of objects inside a list of objects. Not sure if this can be achieved if card_param is a “path”(( |
This parses
card_param
as a path to a property rather than the name of a property which must be on an immediate child. This is useful if you'd like to use a wrapper card rather than a card which shows entities directly.