Where do glance cards go?

I feel like an idiot asking this, but the docs here aren’t super helpful. They list an example:

- type: glance
  title: Glance card sample
  entities:
    - binary_sensor.movement_backyard
    - light.bed_light
    - binary_sensor.basement_floor_wet
    - sensor.outside_temperature
    - light.ceiling_lights
    - switch.ac
    - lock.kitchen_door

but where in the configuration does this get defined? I’m trying to define this in my groups.yaml like so:

server_rack:
    name: Server Rack
    entities:
      card:
      - type: glance

but when I run the validation, I get errors. I then tried adding a “cards:” section to configuration.yaml, but this also threw an error. I’ve tried defining sections in my groups such as “card.xyz” but this also throws errors. After 30 minutes of googling " home assistant glance cards section" and every combination of, I can’t figure out where to define glance cards, and then how to include them in a view, like so:

powerusage:
    name: Power Usage
    view: yes
    icon: mdi:flash
    entities:
      - sensor.current_meter_usage
      - sensor.total_meter_used
      - group.refrigerator
      - group.server_rack
      - card.power_consumption_card  <----

Are the docks not very detailed or am I just dense somehow?

You need to put it in your ui-lovelace.yaml file

2 Likes

see. Dense. lol. Thanks, the docs should include pointers to that (didn’t see it on the glance page).

Will have to read through this :slightly_smiling_face:

thanks!