Card Reference
Complete reference for Home Assistant Lovelace built-in card types with YAML examples.
Entity Display Cards
Entities Card
Display a list of entities with optional header toggle.
type: entities
title: Living Room
show_header_toggle: true
state_color: true
entities:
- entity: light.living_room
name: Main Light
icon: mdi:ceiling-light
- entity: switch.fan
secondary_info: last-changed
- type: divider
- type: section
label: Climate
- entity: climate.thermostatGlance Card
Compact overview of multiple entities.
type: glance
title: At a Glance
columns: 4
show_name: true
show_state: true
show_icon: true
entities:
- entity: sensor.temperature
name: Temp
- entity: sensor.humidity
name: Humidity
- entity: binary_sensor.motion
show_last_changed: true
- entity: light.bedroom
tap_action:
action: toggleButton Card
Single entity button with customizable actions.
type: button
entity: light.living_room
name: Living Room
icon: mdi:lightbulb
show_name: true
show_icon: true
show_state: true
tap_action:
action: toggle
hold_action:
action: more-info
double_tap_action:
action: call-service
service: light.turn_on
data:
brightness_pct: 100
entity_id: light.living_roomTile Card
Modern entity control with features.
type: tile
entity: light.living_room
name: Living Room Light
icon: mdi:lightbulb
color: amber
show_entity_picture: false
vertical: false
features:
- type: light-brightness
- type: light-color-tempTile Features by Domain:
light:light-brightness,light-color-tempclimate:climate-hvac-modes,target-temperaturecover:cover-open-close,cover-position,cover-tiltfan:fan-speedvacuum:vacuum-commandsselect/input_select:select-optionslawn_mower:lawn-mower-commands
Sensor Card
Sensor with optional graph.
type: sensor
entity: sensor.temperature
name: Temperature
icon: mdi:thermometer
graph: line
hours_to_show: 24
detail: 2Gauge & Statistics Cards
Gauge Card
Circular gauge for numeric values.
type: gauge
entity: sensor.cpu_usage
name: CPU Usage
unit: "%"
min: 0
max: 100
severity:
green: 0
yellow: 60
red: 80
needle: trueGauge with Segments:
type: gauge
entity: sensor.battery
segments:
- from: 0
color: red
- from: 20
color: orange
- from: 40
color: yellow
- from: 60
color: greenStatistic Card
Display statistical values over time.
type: statistic
entity: sensor.energy_usage
stat_type: mean
period:
calendar:
period: month
name: Average Energy This Monthstat_type options: mean, min, max, sum, state, change
Statistics Graph Card
Historical statistics visualization.
type: statistics-graph
title: Energy Statistics
entities:
- sensor.daily_energy
stat_types:
- mean
- min
- max
period:
calendar:
period: day
days_to_show: 7Media Cards
Weather Forecast Card
Weather with forecast display.
type: weather-forecast
entity: weather.home
show_current: true
show_forecast: true
forecast_type: daily
secondary_info_attribute: humidityforecast_type options: daily, hourly, twice_daily
Media Control Card
Media player controls.
type: media-control
entity: media_player.living_roomPicture Card
Static image display.
type: picture
image: /local/images/floorplan.png
tap_action:
action: navigate
navigation_path: /lovelace/floorplanPicture Entity Card
Entity represented by an image.
type: picture-entity
entity: camera.front_door
camera_view: live
show_name: true
show_state: true
tap_action:
action: more-infoPicture Glance Card
Image with entity state overlay.
type: picture-glance
title: Living Room
image: /local/images/living-room.jpg
entities:
- entity: light.living_room
- entity: binary_sensor.motion
- entity: sensor.temperaturePicture Elements Card
Interactive image with positioned elements.
type: picture-elements
image: /local/images/floorplan.png
elements:
- type: state-badge
entity: binary_sensor.motion_living
style:
top: 30%
left: 40%
- type: state-icon
entity: light.living_room
tap_action:
action: toggle
style:
top: 50%
left: 60%
- type: state-label
entity: sensor.temperature
style:
top: 70%
left: 20%
color: whiteInformation Cards
Markdown Card
Render markdown content with templates.
type: markdown
title: Welcome
content: |
## Hello {{ user }}!
The temperature is **{{ states('sensor.temperature') }}°C**
{% if is_state('binary_sensor.motion', 'on') %}
Motion detected!
{% endif %}Logbook Card
Entity history log.
type: logbook
entities:
- binary_sensor.front_door
- lock.front_door
hours_to_show: 24History Graph Card
Historical state graph.
type: history-graph
title: Temperature History
entities:
- entity: sensor.indoor_temp
name: Indoor
- entity: sensor.outdoor_temp
name: Outdoor
hours_to_show: 48Calendar Card
Calendar events display.
type: calendar
entities:
- calendar.family
- calendar.work
initial_view: listWeekMap Card
Entity location map.
type: map
entities:
- entity: device_tracker.phone
- entity: zone.home
- entity: zone.work
aspect_ratio: 16:9
default_zoom: 14
dark_mode: trueIframe Card
Embed external content.
type: iframe
url: https://grafana.local/d/dashboard
aspect_ratio: 16:9Climate Cards
Thermostat Card
Climate control interface.
type: thermostat
entity: climate.living_room
features:
- type: climate-hvac-modes
hvac_modes:
- heat
- cool
- auto
- "off"Humidifier Card
Humidity control.
type: humidifier
entity: humidifier.bedroom
features:
- type: humidifier-modesLayout Cards
Horizontal Stack
Cards side by side.
type: horizontal-stack
cards:
- type: button
entity: light.living_room
- type: button
entity: light.bedroom
- type: button
entity: light.kitchenVertical Stack
Cards stacked vertically.
type: vertical-stack
cards:
- type: entities
entities:
- light.living_room
- type: history-graph
entities:
- sensor.temperatureGrid Card
Grid layout for cards.
type: grid
columns: 3
square: true
cards:
- type: button
entity: light.one
- type: button
entity: light.two
- type: button
entity: light.threeConditional & Filter Cards
Conditional Card
Show card based on conditions.
type: conditional
conditions:
- condition: state
entity: binary_sensor.home_occupied
state: "on"
- condition: numeric_state
entity: sensor.temperature
above: 20
card:
type: entities
entities:
- climate.thermostatEntity Filter Card
Dynamic entity list based on state.
type: entity-filter
entities:
- light.living_room
- light.bedroom
- light.kitchen
- light.bathroom
state_filter:
- "on"
card:
type: glance
title: Lights On
show_empty: falseSpecial Cards
Alarm Panel Card
Alarm control interface.
type: alarm-panel
entity: alarm_control_panel.home
states:
- arm_home
- arm_away
- arm_nightLight Card
Simple light control.
type: light
entity: light.living_room
name: Living Room
icon: mdi:ceiling-lightShopping List Card
Shopping list management.
type: shopping-list
title: Grocery ListTodo List Card
Todo list display.
type: todo-list
entity: todo.shopping
title: Shopping ListEnergy Cards
Energy dashboard cards (require energy integration).
# Energy Distribution
type: energy-distribution
link_dashboard: true
# Energy Usage Graph
type: energy-usage-graph
# Energy Solar Graph
type: energy-solar-graphCard Actions Reference
All cards support these action types:
tap_action:
action: toggle # Toggle entity state
# OR
action: more-info # Open entity dialog
# OR
action: navigate # Navigate to view
navigation_path: /lovelace/bedroom
# OR
action: url # Open URL
url_path: https://example.com
# OR
action: call-service # Call Home Assistant service
service: light.turn_on
data:
entity_id: light.bedroom
brightness_pct: 50
# OR
action: none # Disable actionActions available on most cards:
tap_action- Single tap/clickhold_action- Long press/holddouble_tap_action- Double tap/click