mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Entity Card: Documentation (#12572)
This commit is contained in:
parent
e0a395e45a
commit
74b0cdcddc
66
source/_lovelace/entity.markdown
Normal file
66
source/_lovelace/entity.markdown
Normal file
@ -0,0 +1,66 @@
|
||||
---
|
||||
title: "Entity Card"
|
||||
sidebar_label: Entity
|
||||
description: "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.
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/lovelace/lovelace_entity_card.png' alt='Screenshot of the entity card'>
|
||||
Screenshot of the entity card.
|
||||
</p>
|
||||
|
||||
{% configuration %}
|
||||
type:
|
||||
required: true
|
||||
description: entity
|
||||
type: string
|
||||
entity:
|
||||
required: true
|
||||
description: Home Assistant entity ID.
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
description: Name of Entity
|
||||
type: string
|
||||
default: Entity Name
|
||||
icon:
|
||||
required: false
|
||||
description: Overwrites icon.
|
||||
type: string
|
||||
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: Set to any theme within `themes.yaml`
|
||||
type: string
|
||||
footer:
|
||||
required: false
|
||||
description: Footer widget to render. See [footer documentation](/lovelace/header-footer/).
|
||||
type: map
|
||||
{% endconfiguration %}
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
- 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: '%'
|
||||
```
|
BIN
source/images/lovelace/lovelace_entity_card.png
Normal file
BIN
source/images/lovelace/lovelace_entity_card.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Loading…
x
Reference in New Issue
Block a user