Gauge Card


The Gauge card is a basic card that allows visually seeing sensor data.

Screenshot of the gauge card Screenshot of the Gauge card.

To add the Gauge card to your user interface, click the Lovelace menu (three dots at the top right of the screen) and then Edit Dashboard. Click the plus button in the bottom right corner and select Gauge from the card picker. All options for this card can be configured via the user interface.

Alternatively, the card can be configured using YAML:

type: gauge
entity: sensor.cpu_usage

Configuration Variables

type string Required

gauge

entity string Required

Entity id to show

name string (Optional, default: Entity Name)

Name of Gauge Entity

unit string (Optional)

Unit of Measurement given to data

Default:

Unit Of Measurement given by entity

theme string (Optional)

Set to any theme within themes.yaml

min integer (Optional, default: 0)

Minimum value for graph

max integer (Optional, default: 100)

Maximum value for graph

severity map (Optional)

Allows setting of colors for different numbers

green integer Required

Value from which to start green color

yellow integer Required

Value from which to start yellow color

red integer Required

Value from which to start red color

Examples

Title and Unit of Measurement Example:

type: gauge
name: CPU Usage
unit: '%'
entity: sensor.cpu_usage

Screenshot of the gauge card with custom title and unit of measurement Screenshot of the gauge card with custom title and unit of measurement.

Define the severity map:

type: gauge
name: With Severity
unit: '%'
entity: sensor.cpu_usage
severity:
  green: 0
  yellow: 45
  red: 85