Person Card

Come inserire il nome dello smartphone nella person card con la percentuale della batteria. Di seguito il mio codice

type: custom:vertical-stack-in-card
cards:

  • type: custom:mushroom-person-card
    entity: person.homeassistant
    icon_type: entity-picture
    primary_info: state
    secondary_info: last-updated
  • type: custom:mushroom-chips-card
    chips:
    • type: entity
      entity: sensor.iphone_di_francesco_battery_level
      use_entity_picture: false
      name: :battery: iPhone Battery
      card_mod:
      style: |
      ha-card {
      border: none
      }
    • type: conditional
      conditions:
      • entity: binary_sensor.in_meeting
        state: ‘on’
        chip:
        type: template
        double_tap_action:
        action: none
        icon: mdi:video-box
        icon_color: red
        content: In a meeting
        tap_action:
        action: none
        hold_action:
        action: none
        card_mod:
        style: |
        ha-card {
        border: none
        }
        alignment: center

Hi, Welcome on the forum. 2 things though:
First, This is an English only forum.There are other forums for different languages if you prefer that.
Second, please post your cards, automations and things in a code block. Indentation matters, and the forum changes it too much if you do not use it. Thanks!

1 Like