Free Home Assistant Card Generator

Generate Lovelace dashboard cards for Home Assistant. Build YAML configurations for entities, buttons, lights, gauges, thermostats, and more.

Select Card Type

Card Configuration

Entity 1
Entity 2

Generated YAML

type: entities
title: My Card
entities:
  - entity: light.living_room
    name: Living Room Light
  - entity: switch.bedroom_fan
    name: Bedroom Fan

How to Use This YAML

  1. Copy the generated YAML configuration
  2. Open your Home Assistant dashboard
  3. Click the three dots menu → Edit Dashboard
  4. Click "+ Add Card" → "Manual" at the bottom
  5. Paste the YAML and click Save

Common Entity Types

light.*
Lights
switch.*
Switches
sensor.*
Sensors
binary_sensor.*
Binary Sensors
climate.*
Thermostats
weather.*
Weather
cover.*
Covers/Blinds
media_player.*
Media Players

How to Use the Home Assistant Card Generator

Select a Card Type

Choose the Lovelace card type you want to create: entities, entity, button, light, gauge, thermostat, weather, or custom. Each type has specific options for its purpose.

Enter Entity IDs

Add your Home Assistant entity IDs in the format domain.name (e.g., light.living_room, sensor.temperature). Find these in Developer Tools > States in your Home Assistant instance.

Configure Card Options

Customize the card title, icon (mdi:icon-name format), tap actions, and type-specific settings like gauge min/max values, severity colors, or thermostat HVAC modes.

Copy the Generated YAML

Click Generate to create your card configuration. Copy the YAML output and paste it into your Lovelace dashboard in Manual mode, or download as a .yaml file.

Pro tip: Your data is processed entirely in your browser. Nothing is sent to any server, ensuring complete privacy.

About Home Assistant Cards

Home Assistant's Lovelace dashboard system uses YAML-configured cards to display and control your smart home devices. While there's a visual editor, many advanced users prefer writing YAML directly for more control. Our generator helps you create properly formatted card configurations.

Supported Card Types

  • Entities Card: Display multiple entities in a list format with optional custom names and icons
  • Entity Card: Show a single entity prominently with state and optional graph
  • Button Card: Create interactive buttons with customizable tap actions
  • Light Card: Specialized control for light entities with brightness slider
  • Gauge Card: Display sensor values in a circular gauge with severity colors
  • Thermostat Card: Climate control with temperature display and HVAC controls

Frequently Asked Questions

What is a Home Assistant Lovelace card?

Lovelace is the Home Assistant dashboard UI. Cards are the building blocks of your dashboard - each card displays information or controls for your smart home devices. Cards are configured using YAML and can show entity states, provide controls, display weather, and more.

How do I add a card to my Home Assistant dashboard?

Go to your Home Assistant dashboard, click the three-dot menu in the top right, select "Edit Dashboard", then click "+ Add Card". You can choose a visual card editor or click "Manual" at the bottom to paste YAML directly. Save when done.

What entity ID should I use?

Entity IDs follow the format domain.name (e.g., light.living_room, switch.bedroom_fan). Find your entity IDs in Home Assistant under Developer Tools → States. Common domains include light, switch, sensor, binary_sensor, climate, cover, and media_player.

What icons can I use in Home Assistant cards?

Home Assistant uses Material Design Icons (MDI). Format is mdi:icon-name (e.g., mdi:lightbulb, mdi:thermometer, mdi:door). Browse all available icons at materialdesignicons.com. You can also use custom icons if you have them installed.

What is the difference between entities card and entity card?

The entities card displays a list of multiple entities in rows, perfect for grouping related devices. The entity card shows a single entity with a larger display, ideal for important sensors or devices you want to highlight prominently on your dashboard.