#Thanks, I have looked into it, but I
1 messages ยท Page 1 of 1 (latest)
The auto-entities card is capable of "generating" individual cards for each entity. This is an example that uses a custom:layout-card and then generates custom:button-cards.
type: custom:auto-entities
card:
type: custom:layout-card
layout_type: custom:grid-layout
layout_options:
width: 100
layout:
grid-template-columns: auto auto
grid-template-rows: auto
filter:
include:
- entity_id: light.*_lights
options:
type: custom:button-card
entity_id: this.entity_id
layout: vertical
show_last_changed: true
aspect_ratio: 1/1
styles:
card:
- box-shadow: none
- background-color: transparent
- border: 1
- padding: 15%
- color: yellow
- opacity: 1
- font-size: 10px
- text-shadow: 0px 0px 5px black
- text-transform: capitalize
icon:
- width: 40%
- padding-top: 10px
label:
- color: gray
- font-size: 10px
- padding-top: 0px
- opacity: 0.7
name:
- white-space: normal
- font-weight: 300
- font-size: 10px
- color: white
tap_action:
action: toggle
hold_action:
action: more-info
exclude:
- state: 'off'
- entity_id: '*screen*'
- entity_id: light.all_lights
- state: '0'
- state: unavailable
sort:
method: name
reverse: false
numeric: false
show_empty: true```
Yes, that one I saw, and if I wanted separate cards it would had been nice fit, I am looking more something to convert this (the smallest card so far) into more manageble card ๐
I think I am just gonna try make my own card
Can you send a screenshot of what the above code looks like? I assume that's the goal but have it generated by itself.
I think I managed to achieve what I wanted ๐ค
It took me a minute to get a grasp on what is going on. Basically, each row of the entities card is defined from Lines 12-39. The foreach-template-row "injects" the portion of the entity_id to complete the full name going down the list of each of the entries:. That's kind cool. ๐
I wonder if you could still implement the decluttering card and effectively reduce the lines 12-39 to something smaller. ๐ค I don't know if variables can be passed back and forth like that, though.
The idea u provide entries list of obj and then it gets applied for template