Skip to content

Commit

Permalink
Use picture from person entity in person card
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Aug 25, 2024
1 parent 7d66e61 commit 9fa2ee2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dashboards/cards/household.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ cards:
file: person.yaml.j2
variables:
battery_entity: sensor.chris_pixel_6_battery_level
image: /local/secrets/chris.webp
person_entity: person.chris
- !template
file: person.yaml.j2
variables:
battery_entity: sensor.karine_pixel_7_battery_level
image: /local/secrets/karine.webp
person_entity: person.karine
2 changes: 1 addition & 1 deletion dashboards/cards/person.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: picture-elements
image: "{{ image }}"
image_entity: "{{ person_entity }}"
card_mod:
style: |
.element[class~=element] {
Expand Down

0 comments on commit 9fa2ee2

Please sign in to comment.