Sensor Card

The Sensor card gives you a quick overview of your sensors state with an optional graph to visualize change over time.

Screenshot of the sensor card Screenshot of the sensor card.

To add the Sensor 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 Sensor from the card picker. All options for this card can be configured via the user interface.

Configuration Variables

type string Required
entity string Required

Entity id of sensor domain

icon string (Optional)

The card icon

name string (Optional)

The card name

graph string (Optional)

Type of graph none or line

unit string (Optional)

The unit of measurement

detail integer (Optional, default: 1)

Detail of the graph 1 or 2, 1 equals one point/hour, 2 equals six points/hour

hours_to_show integer (Optional, default: 24)

Hours to show in graph

theme string (Optional)

Set to any theme within themes.yaml


Alternatively, the card can be configured using YAML:

type: sensor
entity: sensor.illumination
name: Illumination