lovelace-design
БесплатноБез исполняемых скриптовНе проверенAdvanced Lovelace dashboard patterns for Home Assistant.
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Lovelace Dashboard Design Skill
Advanced Lovelace dashboard patterns for Home Assistant.
Activation Triggers
- Working with
ui-lovelace.yaml - Creating dashboard views
- Custom card configurations
- Theme development
- Responsive layouts
Core Patterns
Dashboard Structure
# ui-lovelace.yaml structure
title: Home
views:
- title: Overview
path: overview
icon: mdi:home
badges: []
cards: []
- title: Rooms
path: rooms
icon: mdi:floor-plan
panel: false
cards: []
- title: Settings
path: settings
icon: mdi:cog
subview: true
back_path: /lovelace/overview
cards: []
Card Types Reference
| Card | Use Case |
|---|---|
entities |
List of entities |
glance |
Quick status view |
button |
Single action |
light |
Light control |
thermostat |
Climate control |
weather-forecast |
Weather display |
picture-glance |
Camera/image |
gauge |
Sensor display |
grid |
Card layout |
horizontal-stack |
Horizontal layout |
vertical-stack |
Vertical layout |
Layout Cards
# Grid layout
type: grid
columns: 3
square: false
cards:
- type: entity
entity: sensor.temp
# Horizontal stack
type: horizontal-stack
cards:
- type: button
entity: light.living
# Vertical stack
type: vertical-stack
cards:
- type: entities
entities: []
Conditional Cards
type: conditional
conditions:
- condition: state
entity: person.owner
state: home
- condition: numeric_state
entity: sensor.temperature
above: 70
card:
type: entities
entities:
- climate.thermostat
Custom Card Patterns
# Mushroom card
type: custom:mushroom-entity-card
entity: light.living_room
icon_color: amber
fill_container: true
layout: horizontal
# Button card
type: custom:button-card
entity: light.living_room
name: Living Room
icon: mdi:lightbulb
color: auto
tap_action:
action: toggle
styles:
card:
- border-radius: 20px
# Mini graph card
type: custom:mini-graph-card
entities:
- sensor.temperature
hours_to_show: 24
points_per_hour: 2
show:
labels: true
Theme Variables
Key CSS Variables
# Colors
primary-color: "#03a9f4"
accent-color: "#ff9800"
primary-background-color: "#ffffff"
secondary-background-color: "#f5f5f5"
primary-text-color: "#212121"
secondary-text-color: "#727272"
# Cards
ha-card-background: "#ffffff"
ha-card-border-radius: "8px"
ha-card-box-shadow: "0 2px 4px rgba(0,0,0,0.1)"
# States
state-icon-active-color: "#ffc107"
state-icon-color: "#9e9e9e"
Card-Mod Styling
card_mod:
style: |
ha-card {
background: transparent;
box-shadow: none;
border: 1px solid var(--divider-color);
}
.card-header {
font-weight: bold;
color: var(--primary-color);
}
Responsive Design
Device Detection
# Browser_mod popup
type: custom:state-switch
entity: browser_mod.browser_id
default: desktop
states:
mobile:
type: vertical-stack
cards: []
desktop:
type: grid
columns: 4
cards: []
View Visibility
views:
- title: Mobile Home
path: mobile
visible:
- user: phone_user
cards: []
- title: Desktop Home
path: desktop
visible:
- user: all
cards: []
HACS Card Dependencies
Essential Cards
custom:button-cardcustom:mushroom-*custom:mini-graph-cardcustom:card-modcustom:layout-cardcustom:auto-entities
Installation
# Via HACS UI
1. Open HACS
2. Go to Frontend
3. Search for card name
4. Install and restart
Best Practices
- Mobile First - Design for smallest screen first
- Consistent Spacing - Use grid for alignment
- Color Coding - Use colors meaningfully
- Performance - Limit cards per view
- Navigation - Clear path structure
Установить lovelace-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lovelace-design?
Advanced Lovelace dashboard patterns for Home Assistant.
Как установить скилл lovelace-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lovelace-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic