A Home Assistant mobile dashboard layout that works on a phone
A dashboard designed on a desktop monitor usually makes a poor phone dashboard: tiny buttons, long scrolling, and cards that were never meant to be pressed with a thumb. This guide covers the handful of rules that fix that, with a complete single-column layout you can paste.
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.
Rules for a phone dashboard
One column. Set max_columns: 1 on a sections view. Everything stacks in the order you wrote it, so the most important item goes first.
Two tiles per row at most. A tile card is easy to hit at two across on a modern phone. Three across starts producing mis-taps. Use the built-in grid card with columns: 2.
Put actions above information. On a phone you open the app to do something: unlock a door, turn off a light, open the garage. Put those tiles near the top and the gauges and history lower down.
Keep it short. If you have to scroll more than about three screens, split it into a second view and add a tab. Home Assistant's bottom navigation on mobile makes switching views cheap.
Use a presence header. One banner at the top that shows who is home and whether the front door is locked answers the two questions most people open the app to check.
The YAML
Complete example. Paste it into the raw configuration editor of a dashboard, then replace the placeholder entity ids with yours.
title: Phone
views:
- title: Phone
path: phone
icon: mdi:cellphone
type: sections
max_columns: 1
sections:
- type: grid
cards:
- type: weather-forecast
entity: weather.home
show_current: true
show_forecast: false
- type: heading
heading: Home
icon: mdi:home
badges:
- type: entity
entity: person.me
show_state: true
- type: entity
entity: lock.front_door
show_state: true
- type: grid
columns: 2
square: false
cards:
- type: tile
entity: light.living_room
- type: tile
entity: light.bedroom
- type: tile
entity: climate.thermostat
- type: tile
entity: cover.garage_door
- type: grid
columns: 3
square: false
cards:
- type: gauge
entity: sensor.living_room_temperature
name: Living
min: 10
max: 35
severity:
green: 10
yellow: 28
red: 33
- type: gauge
entity: sensor.bedroom_temperature
name: Bed
min: 10
max: 35
severity:
green: 10
yellow: 28
red: 33
- type: gauge
entity: sensor.kitchen_temperature
name: Kitchen
min: 10
max: 35
severity:
green: 10
yellow: 28
red: 33
- type: logbook
title: Recent
hours_to_show: 12
target:
entity_id:
- binary_sensor.front_door
- lock.front_door
How it works
The first card is a compact weather summary. The heading next is the status line: it shows the person state and the front door lock as small badges. Below that, four tiles in a two-column grid give you the controls, followed by three small temperature gauges and a short activity log limited to the last 12 hours with hours_to_show.
Everything lives in one section, which is what makes the single column predictable. If you add a second section, it will also stack below the first on a phone, so ordering is just the order of your sections.
Showing different cards on phone and desktop
If you share one dashboard between a wall display and your phone, Home Assistant lets you show or hide a card depending on screen width using the visibility option with a screen condition and a media query such as (max-width: 600px). Add it to any card to show it only on small screens, or wrap a card in a condition that hides it there. Test it by resizing your browser window before you rely on it.
The simpler approach, and the one we prefer, is a separate view just for the phone. It is easier to reason about and nothing disappears unexpectedly.
Testing on a real phone
Do not judge a mobile layout from a narrowed desktop window. Open it in the Home Assistant Companion app, hold the phone one-handed, and try to reach everything with your thumb. Move anything you have to stretch for. Check it in both light and dark themes too, since banner and gauge colors you pick yourself will not change with the theme.
Also check the app on mobile data, away from home. Cards that load camera snapshots can feel slow there, so keep those on their own view.
Quick answers
How wide is a phone in Home Assistant terms?
It depends on the phone and on whether it is held upright or sideways, which is why a single-column sections view is more reliable than trying to target one exact width.
Should the phone and the tablet share one dashboard?
They can, but a separate view per device is simpler to maintain. Add a link between them if you want to jump from one to the other.
Do I need the Companion app?
No, a mobile browser works. The Companion app adds notifications and sensors, and feels smoother for a dashboard you open many times a day.