karwosts 1600d123a2
Remove 'options for exemptions' where it doesnt belong (#35559)
* Update picture-glance.markdown

* Update glance.markdown

* Update picture-elements.markdown

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2024-11-05 07:37:10 +01:00

3.9 KiB

type, title, sidebar_label, description, related
type title sidebar_label description related
card Glance card Glance The glance card is useful to group multiple sensors in a compact overview.
docs title
/dashboards/actions/ Card actions
docs title
/integrations/frontend/ Themes
docs title
/dashboards/cards/ Dashboard cards

The glance card is useful to group multiple sensors in a compact overview. Keep in mind that this can be used together with entity-filter cards to create dynamic cards.

Screenshot of the glance card Screenshot of the glance card.

{% include dashboard/edit_dashboard.md %}

All options for this card can be configured via the user interface.

YAML configuration

The following YAML options are available when you use YAML mode or just prefer to use YAML in the code editor in the UI.

{% configuration %} type: required: true description: "glance" type: string entities: required: true description: "A list of entity IDs or entity objects, see below." type: list title: required: false description: Card title. type: string show_name: required: false description: Show entity name. type: boolean default: "true" show_icon: required: false description: Show entity icon. type: boolean default: "true" show_state: required: false description: Show entity state text. type: boolean default: "true" theme: required: false description: Override the used theme for this card with any loaded theme. For more information about themes, see the frontend documentation. type: string columns: required: false description: Number of columns to show. If not specified the number will be set automatically. type: integer state_color: required: false description: Set to true to have icons colored when entity is active. type: boolean default: true {% endconfiguration %}

Options for entities

If you define entities as objects instead of strings, you can add more customization and configuration:

{% configuration %} entity: required: true description: Entity ID. type: string name: required: false description: Overwrites friendly name. type: string icon: required: false description: Overwrites icon. type: string image: required: false description: Overwrites entity picture. type: string show_last_changed: required: false description: Overwrites the state display with the relative time since last changed. type: boolean default: false show_state: required: false description: Show entity state text. type: boolean default: true tap_action: required: false description: Action taken on card tap. See action documentation. type: map hold_action: required: false description: Action taken on card tap and hold. See action documentation. type: map double_tap_action: required: false description: Action taken on card double tap. See action documentation. type: map {% endconfiguration %}

Examples

Basic 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

Screenshot of the glance card with custom title Screenshot of the glance card with custom title.

Define entities as objects and apply a custom name:

type: glance
title: Better names
entities:
  - entity: binary_sensor.movement_backyard
    name: Movement?
  - light.bed_light
  - binary_sensor.basement_floor_wet
  - sensor.outside_temperature
  - light.ceiling_lights
  - switch.ac
  - lock.kitchen_door
  - entity: switch.wall_plug_switch
    tap_action:
      action: toggle