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 “Add Card” 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 = one point/hour, 2 = six points/hour).

hours_to_show integer (Optional, default: 24)

Hours to show in graph.

theme string (Optional)

Override the used theme for this card with any loaded theme. For more information about themes, see the frontend documentation.


Alternatively, the card can be configured using YAML:

type: sensor
entity: sensor.illumination
name: Illumination