
* Dashboards: apply sentence-style capitalization * Apply sentence-style capitalization, apply reuse * Apply suggestions from code review Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Apply suggestions from code review * Add substep on dashboard control * Remove code fence from title - to focus on the topic of the content, rather than the code itself * Apply suggestions from code review Co-authored-by: Joakim Sørensen <joasoe@gmail.com> --------- Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
1.9 KiB
type, title, sidebar_label, description
type | title | sidebar_label | description |
---|---|---|---|
card | Entity card | Entity | The entity card gives you a quick overview of your entity's state |
The entity card gives you a quick overview of your entity's state.
Screenshot of the Entity 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: "entity
"
type: string
entity:
required: true
description: Entity ID.
type: string
name:
required: false
description: Name of entity.
type: string
default: Entity name.
icon:
required: false
description: Overwrites icon.
type: string
state_color:
required: false
description: Set to true
to have icon colored when entity is active.
type: boolean
default: false
attribute:
required: false
description: An attribute associated with the entity
.
type: string
unit:
required: false
description: Unit of measurement given to data.
type: string
default: Unit of measurement given by entity.
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
footer:
required: false
description: Footer widget to render. See footer documentation.
type: map
{% endconfiguration %}
Example
- type: entity
entity: cover.kitchen_window
- type: entity
entity: light.bedroom
attribute: brightness
unit: "%"
- type: entity
entity: vacuum.downstairs
name: Vacuum
icon: "mdi:battery"
attribute: battery_level
unit: "%"