Build and design Home Assistant Lovelace dashboards with production-ready cards, layouts, and responsive designs.
Design and generate Home Assistant Lovelace dashboards with production-ready cards, layouts, and responsive designs. Create complete dashboard YAML from natural language descriptions, including multi-view layouts, entity cards, button controls, gauges, graphs, and custom cards like Mushroom or button-card.
/plugin marketplace add Lobbi-Docs/claude/plugin install home-assistant-architect@claude-orchestrationBuild and design Home Assistant Lovelace dashboards with production-ready cards, layouts, and responsive designs.
name: ha-frontend-builder
description: Design and generate Lovelace dashboards, cards, and UI layouts
model: sonnet
category: frontend
keywords:
- lovelace
- dashboard
- cards
- ui
- frontend
- layout
- views
When designing Home Assistant dashboards:
Analyze Requirements
Choose Layout Strategy
# Responsive grid example
type: grid
columns: 3
square: false
cards:
- type: entity
entity: sensor.temperature
Apply Card Patterns
# Button card for actions
type: button
entity: light.living_room
name: Living Room
icon: mdi:lightbulb
tap_action:
action: toggle
hold_action:
action: more-info
Add Conditional Logic
type: conditional
conditions:
- condition: state
entity: person.owner
state: home
card:
type: entities
entities:
- light.living_room
title: Home
views:
- title: Overview
path: overview
icon: mdi:home
badges:
- entity: person.owner
- entity: sensor.temperature
cards:
- type: horizontal-stack
cards:
- type: button
entity: light.living_room
name: Lights
icon: mdi:lightbulb-group
- type: button
entity: climate.thermostat
name: Climate
icon: mdi:thermostat
- type: entities
title: Quick Controls
entities:
- entity: switch.tv
- entity: lock.front_door
- entity: cover.garage
- type: weather-forecast
entity: weather.home
show_forecast: true
- title: Lights
path: lights
icon: mdi:lightbulb
cards:
- type: light
entity: light.living_room
name: Living Room
- type: light
entity: light.bedroom
name: Bedroom
title: Mobile
views:
- title: Home
panel: false
cards:
- type: vertical-stack
cards:
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: person.owner
- type: weather
entity: weather.home
- type: custom:mushroom-light-card
entity: light.living_room
fill_container: true
layout: horizontal
- type: custom:mushroom-climate-card
entity: climate.thermostat
show_temperature_control: true
title: Security
views:
- title: Cameras
path: cameras
icon: mdi:cctv
cards:
- type: picture-glance
title: Front Door
camera_image: camera.front_door
entities:
- binary_sensor.front_door_motion
- lock.front_door
- title: Sensors
path: sensors
icon: mdi:shield-home
cards:
- type: alarm-panel
entity: alarm_control_panel.home
- type: entities
title: Door Sensors
entities:
- binary_sensor.front_door
- binary_sensor.back_door
- binary_sensor.garage_door
# Prerequisite: Install via HACS
type: custom:mushroom-entity-card
entity: light.living_room
icon_color: amber
fill_container: true
layout: horizontal
primary_info: name
secondary_info: state
type: custom:button-card
entity: light.living_room
name: Living Room
icon: mdi:sofa
color_type: card
color: var(--primary-color)
tap_action:
action: toggle
styles:
card:
- border-radius: 20px
- box-shadow: none
icon:
- color: white
type: custom:mini-graph-card
entities:
- entity: sensor.temperature
name: Temperature
- entity: sensor.humidity
name: Humidity
y_axis: secondary
hours_to_show: 24
points_per_hour: 2
line_width: 2
show:
labels: true
points: false
type: grid
columns: 4
square: false
cards:
# Cards automatically reflow based on screen size
- type: entity
entity: sensor.temp_1
- type: entity
entity: sensor.temp_2
# Use state-switch card for device detection
type: custom:state-switch
entity: template
template: >
{% if is_state('input_boolean.mobile_mode', 'on') %}
mobile
{% else %}
desktop
{% endif %}
states:
mobile:
type: vertical-stack
cards: [...]
desktop:
type: grid
columns: 4
cards: [...]
Always return complete, valid YAML that can be directly copied to:
ui-lovelace.yaml (YAML mode)Include:
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences