impress_sig_mesh_hacs/hacs.json
impressionyang 23f671fa62 fix: 修复 Lovelace 卡片加载错误
问题:Custom element not found: sigmesh-gateway-panel

修复内容:
1. sigmesh-gateway-panel.js:
   - 添加 window.customCards 注册
   - 添加卡片元数据(name, description, preview)
   - 更新使用说明

2. hacs.json:
   - 添加 frontend.extra_module_url 配置
   - 添加 category: integration

3. 新增 deploy.sh 部署脚本:
   - 自动复制集成文件和 Lovelace 卡片
   - 设置正确权限
   - 提示用户配置 frontend

4. README.md:
   - 添加部署脚本使用说明
   - 添加常见问题排查(卡片加载错误)
   - 区分手动部署和 HACS 安装两种方式

部署步骤:
1. chmod +x deploy.sh && ./deploy.sh
2. 在 configuration.yaml 添加 frontend.extra_module_url
3. ha core restart
4. 清除浏览器缓存后添加卡片
2026-04-16 14:26:00 +08:00

15 lines
366 B
JSON

{
"name": "SigMesh Gateway",
"content_in_root": false,
"filename": "sigmesh_gateway.zip",
"render_readme": true,
"zip_release": true,
"homeassistant": "2024.1.0",
"hacs": "1.34.0",
"icon": ".asset/impress_sig_mesh_hacs.png",
"category": "integration",
"frontend": {
"extra_module_url": "/local/sigmesh_gateway/sigmesh-gateway-panel.js"
}
}