maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
898 stars 38 forks source link

Card name not showing #737

Closed Generalnoob closed 3 weeks ago

Generalnoob commented 3 months ago

Hi I'm trying to set up the card, everything works perfectly but the card name doesn't show up, any help would be greatly appreciated :)

YAML configuration


type: custom:battery-state-card
name: Kids Phones
secondary_info: '{last_updated}'
entities:
  - entity: sensor.kidname1_mobile_battery_level
    name: kidname1's Mobile
    secondary_info: '{charging}'
    charging_state:
      attribute:
        name: is_charging
        value: true
  - entity: sensor.kidname2_mobile_battery_level
    name: kidname2's Mobile
    secondary_info: '{charging}'
    charging_state:
      attribute:
        name: is_charging
        value: true

Screenshot image

Version v3.2.1

GeoffWy commented 3 months ago

I believe you should be using title: rather than name: if you want a card title to appear. name: is not an potion under Card config.

Generalnoob commented 3 months ago

I believe you should be using title: rather than name: if you want a card title to appear. name: is not an potion under Card config.

Yeah I noticed last night lol thanks for replying 😁