mcpField
H
home-assistant-custom-integration

home-assistant-custom-integration

github.com/bradsjm开发46587 次安装16 周前更新
代码仓库

关于 home-assistant-custom-integration

用于构建 Home Assistant 自定义集成的技能,提供官方文档参考和实践清单,并通过模板、中级及推送数据示例逐步扩展。

主要功能

  1. 01官方文档参考
  2. 02集成开发清单
  3. 03模板集成示例
  4. 04中级集成示例
  5. 05推送数据集成示例

适用场景

  1. 01规划自定义集成
  2. 02从模板开始开发
  3. 03添加推送数据支持

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/bradsjm/hassio-addons --skill home-assistant-custom-integration

安装后在 Claude Code 中输入/home-assistant-custom-integration确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/
checklist.md
references/msp_integration_101_intermediate/
__init__.py
api.py
base.py
binary_sensor.py
config_flow.py
const.py
coordinator.py
fan.py
light.py
manifest.json
README.md
sensor.py
services.py
services.yaml
strings.json
switch.py
references/msp_integration_101_intermediate/translations/
en.json
references/msp_integration_101_template/
__init__.py
api.py
binary_sensor.py
config_flow.py
const.py
coordinator.py
manifest.json
README.md
sensor.py
strings.json
references/msp_integration_101_template/translations/
en.json
references/msp_push_data_example/
__init__.py

详细介绍

Home Assistant 自定义集成示例

工作流

  • 首先阅读官方文档概览。
  • 构建时使用实用检查清单。
  • 从模板示例开始,然后通过中级示例和推送数据示例逐步增加复杂度。

参考资料

所有参考文件和脚本文件都相对于此 SKILL.md 文件所在的位置。

  • 官方文档概览:references/official-docs.md
  • 构建检查清单:references/checklist.md
  • 模板示例:references/msp_integration_101_template
  • 中级示例:references/msp_integration_101_intermediate
  • 推送数据示例:references/msp_push_data_example

评论

支持 Markdown