Home Assistant dashboard examples in YAML
Most Home Assistant dashboard advice stops at screenshots. This page gives you the opposite: one complete dashboard as YAML, what each block does, and how to change it for your own house. Paste it, swap the entity ids, and you have a working overview.
Disclosure: Written by the maker of this site. The YAML below parses as valid YAML and uses only built-in Home Assistant cards and options from the official documentation. This exact example has not been run on every Home Assistant version or setup.
What this example contains
The dashboard below is a single view with three sections. The first section holds a weather card and an activity log. The second holds one heading per room with live readings. The third holds a row of temperature gauges and a few tiles for the things you touch every day. Everything on the page is a built-in Home Assistant card, so there is nothing to install: the grid, heading, tile, gauge, weather-forecast and logbook (shown as the Activity card in the editor) cards.
How to paste it
- Open the dashboard you want to change, click the pencil, then the three dots, then Raw configuration editor. (If the dashboard is still auto-generated, choose Take control first. That cannot be undone for that dashboard, so make a new dashboard if you want to experiment.)
- Select everything, paste the YAML below, and save.
- Replace the placeholder entity ids with yours. Find and replace in the raw editor is the fastest way. Your own ids are listed under Settings, Devices and services, Entities.
If a card shows an error box, the entity id on it usually does not exist yet. Fix or delete that one block and the rest keeps working.
The YAML
Complete example. Paste it into the raw configuration editor of a dashboard, then replace the placeholder entity ids with yours.
title: Home
views:
- title: Home
path: home
icon: mdi:home
type: sections
max_columns: 3
sections:
- type: grid
cards:
- type: heading
heading: Today
- type: weather-forecast
entity: weather.home
show_current: true
show_forecast: false
- type: logbook
title: Home activity
hours_to_show: 24
target:
entity_id:
- binary_sensor.front_door
- lock.back_door
- type: grid
cards:
- type: heading
heading: Rooms
- type: heading
heading: Living room
icon: mdi:sofa
badges:
- type: entity
entity: sensor.living_room_temperature
show_state: true
- type: entity
entity: sensor.living_room_humidity
show_state: true
- type: entity
entity: binary_sensor.living_room_motion
show_state: true
- type: heading
heading: Bedroom
icon: mdi:bed
badges:
- type: entity
entity: sensor.bedroom_temperature
show_state: true
- type: entity
entity: sensor.bedroom_humidity
show_state: true
- type: grid
cards:
- type: heading
heading: Quick controls
- type: grid
columns: 3
square: false
cards:
- type: gauge
entity: sensor.living_room_temperature
name: Living room
min: 10
max: 35
severity:
green: 10
yellow: 28
red: 33
- type: grid
columns: 2
square: false
cards:
- type: tile
entity: light.living_room
- type: tile
entity: lock.front_door
Why it is built this way
Sections instead of masonry. The sections view type (Home Assistant 2024.8 and newer) lets you set max_columns and keeps cards aligned in tidy columns. On a phone the sections stack, so you do not need a second layout for small screens.
One summary per room. A heading card can carry small entity badges. A heading per room, with a temperature, a humidity reading and a motion state beside it, tells you more at a glance than a list of twenty entities. Each badge needs show_state: true to display its value.
Gauges for numbers that have a good range. Temperature, humidity, power draw and battery level all have a range you care about. The built-in gauge card colors itself with its severity option: the number you give for green, yellow and red is where each color starts.
Tiles for actions. The tile card handles lights, locks, covers and climate with the correct controls without any configuration. Use it wherever you want to tap something.
Adapting it
Change max_columns to 2 for a narrower screen or 4 for a wide monitor. Duplicate a room heading for each additional room. Change hours_to_show on the activity card to look further back. If you have no weather integration, remove the weather card; Home Assistant ships with the free Met.no integration, which gives you a weather. entity in a couple of clicks.
Keep each card's option names exactly as shown. Home Assistant ignores unknown keys silently for some cards and errors loudly for others, so a typo can look like a card that does nothing.
Quick answers
Can I use this on the auto-generated dashboard?
Not directly. The auto-generated dashboard has to be taken over before you can paste YAML into it. Create a new dashboard under Settings, Dashboards instead, and paste there.
Will it break if I do not have a calendar or weather entity?
A card pointing at an entity that does not exist shows an error for that card only. The rest of the dashboard keeps working, so delete or fix the one block.
Do I need to install anything?
No. Every card in the example is built into Home Assistant, so there is nothing to download first.