For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /developers/api/native-app-integration.md.

原生应用集成

本指南描述如何构建一个原生的 Home Assistant 应用,使其与 Home Assistant 通信并提供无缝集成。以下是本指南将要讨论的内容。

  • 允许用户建立连接并使用自己的 Home Assistant 实例进行认证。
  • 将位置和DeviceInfo 发送回 Home Assistant。
  • 调用 service actions、触发 events 以及渲染 templates。
  • 通过已认证的 webview 提供一个控制房屋视图。