Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RamonBell/0f035880af19b178a1a7c732fee67988 to your computer and use it in GitHub Desktop.
Save RamonBell/0f035880af19b178a1a7c732fee67988 to your computer and use it in GitHub Desktop.
mushroom person card with phone entities
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mushroom-person-card
entity: person.ramon_bell
use_entity_picture: true
hide_name: true
layout: vertical
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: binary_sensor.pixel_6_is_charging
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
icon_color: |-
{% set state=states('binary_sensor.pixel_6_is_charging') %}
{% if state=='on' %}
green
{% elif state=='off' %}
yellow
{% else %}
red
{% endif %}
- type: entity
entity: sensor.pixel_6_battery_level
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
- type: entity
entity: sensor.pixel_6_ringer_mode
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
alignment: center
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment