Anthropic
Anthropic 集成在 Home Assistant 中添加了一个由 Anthropic 提供支持的对话代理,例如 Claude 3.5 Sonnet。
控制 Home Assistant 是通过向 AI 提供 Home Assistant 的 Assist API 访问权限来完成的。您可以从 暴露实体页面 控制它可以访问哪些设备和实体。AI 可以为您提供有关设备的信息并控制它们。
法律声明:欢迎个人和爱好者将 Anthropic API 用于个人用途,但请注意,无论您是个人还是代表公司,API 的使用均受其商业服务条款约束。
前提条件
- 此集成需要 API 密钥才能使用,您可以在这里生成。。
- 这是一项付费服务,我们建议您密切监控您在 Anthropic 门户中的费用。
生成 API 密钥
Anthropic API 密钥用于验证对 Anthropic API 的请求。要生成 API 密钥,请执行以下步骤:
- 登录 Anthropic 门户或注册账户。
- 在计划页面使用有效的信用卡启用计费。
- 访问 API 密钥页面获取您将用于配置集成的 API 密钥。
此集成可通过 UI 配置。前往 设置 > 设备与服务 添加。
Options
To define options for Anthropic, follow these steps:
-
In Home Assistant, go to Settings > Devices & services.
-
If multiple instances of Anthropic are configured, choose the instance you want to configure.
-
On the card, select the cogwheel
. - If the card does not have a cogwheel, the integration does not support options for this device.

-
Edit the options, then select Submit to save the changes.
该集成提供以下类型的子条目:
如果您选择不使用推荐设置,可以配置以下选项:
用例
该集成提供由 Anthropic API 驱动的 conversation 和 ai_task 实体。有关更多详细信息和示例,请参阅相应的集成:
已知限制
此集成不与句子触发器集成。
移除集成
此集成遵循标准集成移除流程。无需额外步骤。
To remove an integration instance from Home Assistant
- Go to Settings > Devices & services and select the integration card.
- From the list of devices, select the integration instance you want to remove.
- Next to the entry, select the three-dot
menu. Then, select Delete.

