Skip to content

Commit

Permalink
Replace a custom:auto-entities with a grid
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Aug 1, 2024
1 parent c156a34 commit b125877
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions lovelace/views/achtertuin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,19 @@ cards:
- type: custom:mushroom-title-card
subtitle: Afval

- type: custom:auto-entities
show_empty: true
card:
type: grid
columns: 2
square: false
card_param: cards
filter:
include:
- domain: sensor
attributes:
Wastecollector: purmerend
options:
type: custom:mushroom-template-card
tap_action:
action: more-info
primary: >-
{{ state_attr(entity, "friendly_name") }}
secondary: >-
{{ iif("," in states(entity), states(entity).split(",")[0], states(entity)) }}
picture: >-
{{ state_attr(entity, "entity_picture") }}
sort:
method: attribute
attribute: Days_until
numeric: true
- type: grid
columns: 2
square: false
cards:
- type: tile
entity: sensor.purmerend_bio_afval
show_entity_picture: true
- type: tile
entity: sensor.purmerend_papier
show_entity_picture: true
- type: tile
entity: sensor.purmerend_restafval
show_entity_picture: true

- type: vertical-stack
cards:
Expand Down

0 comments on commit b125877

Please sign in to comment.