Home Dashboard Layout PackGuidesFree cards

Building a Home Assistant camera dashboard

A camera view is different from the rest of your dashboard. It wants the whole screen, it can use a lot of bandwidth, and most of the time nothing is happening. This guide covers the layout choices that matter, then gives YAML for a camera wall that highlights the camera with motion.

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.

Use a panel view

A type: panel view shows exactly one card at full size. That is what you want for cameras: no gutters, no other cards competing. Anything else on the dashboard stays on other views. If you want cameras and a few controls together, use a sections view instead and accept smaller feeds.

Live streams or snapshots

Cameras can show a live stream or a refreshed still image. Streams look better but use more bandwidth and CPU, and several at once can slow a tablet or a remote connection. A common compromise is one large live view for the camera that matters right now and small refreshing thumbnails for the rest. The built-in picture-entity card has a camera_view: live option for live streams. Without it, you get periodic snapshots. For a simple static grid of a few cameras, built-in cards in a grid work well.

Streaming reliability also depends on your camera integration and stream settings. If a live view stalls, check the integration's own documentation before blaming the dashboard.

A camera wall with motion focus

Home Assistant has no single wall card, but built-in cards cover the same ground. The first view is a panel view holding one grid card of live picture-entity cards. The third view uses conditional cards: each one holds a large live camera and only appears while that camera's motion sensor is on. That gives you a simple motion focus with no extra software. A picture-glance card, used for the garage, adds a snapshot or live view with a few status icons across the bottom.

The YAML

Complete example. Paste it into the raw configuration editor of a dashboard, then replace the placeholder entity ids with yours.

title: Cameras
views:
  - title: Camera wall
    path: cameras
    icon: mdi:cctv
    type: panel
    cards:
      - type: grid
        columns: 2
        square: false
        cards:
          - type: picture-entity
            entity: camera.front_porch
            name: Front porch
            camera_view: live
            show_state: false
          - type: picture-entity
            entity: camera.back_yard
            name: Back yard
            camera_view: live
            show_state: false
          - type: picture-glance
            title: Garage
            camera_image: camera.garage
            camera_view: live
            entities:
              - binary_sensor.garage_motion
              - cover.garage_door
  - title: Camera grid
    path: camera-grid
    icon: mdi:grid
    type: sections
    max_columns: 2
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Front
          - type: picture-entity
            entity: camera.front_porch
            camera_view: live
            show_state: false
      - type: grid
        cards:
          - type: heading
            heading: Back
          - type: picture-entity
            entity: camera.back_yard
            camera_view: live
            show_state: false
  - title: Motion
    path: camera-motion
    icon: mdi:motion-sensor
    type: sections
    max_columns: 1
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Cameras with motion
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.front_porch_motion
                state: 'on'
            card:
              type: picture-entity
              entity: camera.front_porch
              name: Front porch
              camera_view: live
              show_state: false
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.back_yard_motion
                state: 'on'
            card:
              type: picture-entity
              entity: camera.back_yard
              name: Back yard
              camera_view: live
              show_state: false

Two views, one dashboard

The example has three views. The first is a full-screen wall of live cameras. The second is a sections view with larger feeds, grouped by area. The third shows a camera only while its motion sensor is on, and is blank otherwise, so leave it open on a spare screen.

Replace camera.front_porch and the others with your own camera entities, and replace each motion entity with the binary sensor that reports motion for that camera. If a camera has no motion sensor, leave it out of the third view.

Privacy and safety notes

Cameras are sensitive. Give the dashboard to people deliberately: a dedicated Home Assistant user for a kitchen tablet can be set so it only sees the dashboard you choose. Avoid exposing cameras to the internet without Home Assistant's authentication in front. Also check local laws and the privacy of neighbors when pointing a camera outward.

Quick answers

Why is my camera view slow or black?
Often the stream is still starting, or the camera integration is producing a format the browser handles badly. Test the stream in the camera's own more-info dialog before changing the dashboard.

Can I get motion alerts here?
A dashboard only displays; alerts are automations. You can pair the same motion sensors with a notification automation, then use the dashboard to look.

How does the motion view work?
Each camera sits inside a conditional card that only shows while its motion sensor is on. When nothing is moving, the view is blank, which is why it suits a spare screen.

More guides