mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Display attribute of an entity in Gauge card (#38831)
This commit is contained in:
parent
acd2d91741
commit
432511b061
@ -39,6 +39,10 @@ entity:
|
||||
required: true
|
||||
description: Entity ID to show.
|
||||
type: string
|
||||
attribute:
|
||||
required: false
|
||||
description: Attribute from the selected entity to display
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
description: Name of gauge entity.
|
||||
@ -198,3 +202,14 @@ segments:
|
||||
- from: 65
|
||||
color: var(--error-color)
|
||||
```
|
||||
|
||||
Display attribute of an entity instead of its state:
|
||||
|
||||
```yaml
|
||||
type: gauge
|
||||
entity: sensor.back_door_info
|
||||
attribute: battery_level
|
||||
unit: '%'
|
||||
max: 100
|
||||
```
|
||||
In this example, the card displays the `battery_level` attribute of the `sensor.back_door_info` entity.
|
||||
|
Loading…
x
Reference in New Issue
Block a user