Skip to content

Display attribute of an entity in Gauge card #38831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions source/_dashboards/gauge.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.