SuperAPI AI 工具集

ha-dashboard

通用与其它

查看项目

更新于 10-16 02:31

技能介绍

用途:为 Home Assistant 配置 Lovelace 仪表盘,包括卡片、视图、主题与自定义卡片资源,适合需要手写 dashboard YAML 的场景。

主要能力:提供仪表盘结构、视图类型(masonry、panel、sections、sidebar)、内置卡片(entities、button、weather-forecast、markdown、conditional、horizontal-stack 等)与主题变量的配置参考;附带 references/ 与 assets/ 模板文件,并列出常见错误及排查方法。

使用方式:可在 configuration.yaml 中设置 lovelace: mode: yaml 启用 YAML 模式,再在 ui-lovelace.yaml 或 dashboards.yaml 中定义 title、views 与 cards。自定义卡片需在 lovelace.resources 中加载,例如 url: /local/card.js、type: module。排查时可用 ha core logs | grep -i lovelace 查看日志,或用 python -c "import yaml; yaml.safe_load(open('ui-lovelace.yaml'))" 校验 YAML。

限制与注意:缩进必须用 2 个空格,不能用 Tab;实体 ID 须为 domain.entity_name;weather-forecast 卡片自 2023 起需 forecast_type;避免混用 UI 与 YAML 管理模式。资料未提供收费、价格与平台信息。