Gauge Card


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

Screenshot of the gauge card Screenshot of the gauge card.

- type: gauge
  entity: sensor.cpu_usage

Configuration Variables

type

(string)(Required)gauge

entity

(string)(Required)Entity id to show

name

(string)(Optional)Name of Gauge Entity

Default value: Entity Name

unit

(string)(Optional)Unit of Measurement given to data

Default value: Unit Of Measurement given by entity

theme

(string)(Optional)Set to any theme within themes.yaml

min

(integer)(Optional)Minimum value for graph

Default value: 0

max

(integer)(Optional)Maximum value for graph

Default value: 100

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
  title: CPU Usuage
  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
  title: With Severity
  unit: '%'
  entity: sensor.cpu_usage
  severity:
    green: 0
    yellow: 45
    red: 85