用途:这是一个面向 Home Assistant 的 Lovelace 仪表盘设计技能,帮助用户在编写 ui-lovelace.yaml、创建仪表盘视图、配置自定义卡片、开发主题和实现响应式布局时获得结构化参考。
主要能力:提供仪表盘结构示例(title、views,含 badges、cards、panel、subview、back_path 等字段);列出常用卡片类型及用途,如 entities、glance、button、light、thermostat、weather-forecast、picture-glance、gauge、grid、horizontal-stack、vertical-stack;给出布局卡片与条件卡片写法;列出常见自定义卡片模式,如 custom:mushroom-entity-card、custom:button-card、custom:mini-graph-card;整理主题 CSS 变量(primary-color、accent-color、ha-card-background、ha-card-border-radius、state-icon-active-color 等);提供 card_mod 样式示例。
使用方式:在 Home Assistant 中编辑 ui-lovelace.yaml,按资料中的结构搭建视图与卡片;自定义卡片依赖项包括 custom:button-card、custom:mushroom-*、custom:mini-graph-card、custom:card-mod、custom:layout-card、custom:auto-entities,可按资料所述通过 HACS 界面进入 Frontend,搜索卡片名称后安装并重启。
适用场景:家庭自动化仪表盘搭建、房间视图分区、设备状态与温控展示、移动端与桌面端差异化布局、主题与视觉样式定制。
限制:资料仅提供配置模式与示例,未说明具体 Home Assistant 版本要求、各自定义卡片的安装细节、收费或授权信息,也未给出除 HACS 安装步骤外的其它部署方式;实际效果与兼容性暂未提供。