From 432511b0615b37819763b0afa9dedb784739836d Mon Sep 17 00:00:00 2001 From: Volodymyr Honchar Date: Sun, 4 May 2025 23:23:25 -0700 Subject: [PATCH] Display attribute of an entity in Gauge card (#38831) --- source/_dashboards/gauge.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_dashboards/gauge.markdown b/source/_dashboards/gauge.markdown index 96109181545..2fb2304f1e5 100644 --- a/source/_dashboards/gauge.markdown +++ b/source/_dashboards/gauge.markdown @@ -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.