maybe nt what you are looking for, but my family is displayed with entity_pictures based on their zone.
Does take the effort to create these manually, and then use a setup using this template:
- type: custom:button-card
template: button_picture_family
entity: device_tracker.life360_name
entity_picture_template: >
if (entity.state === 'home' || entity.state === 'not_home') return '/local/tiles/family/name_' + entity.state + '.png';
return '/local/tiles/family/name_' + states['sensor.name_location_picture'].state + '.png';
tap_action:
entity: group.name
of course replace ‘name’ in the sensors above with the actual name of the person.
the button template takes care of the background color:
home = green, not_home (and not in a zone) = grey, in a zone (life360) purple:
button_picture_family:
size: 80%
show_state: false
show_label: false
show_name: false
show_entity_picture: true
color_type: card
aspect_ratio: 1/1
tap_action:
action: more-info
haptic: light
hold_action:
action: more-info
haptic: success
styles:
card:
- border-radius: 6px
- box-shadow: '0px 0px 2px 1px #F0C209'
entity_picture:
- border-radius: 6px
state:
- operator: template
value: >
return entity.state === 'home'
color: '#008000'
- operator: template
value: >
return entity.state === 'not_home'
color: '#555B65'
- operator: default
color: '#643aac'
see What does your deafult page look like? for an (edited) image