经 AI Skill Hub 精选评估,本地OpenAI集成 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
Home Assistant本地OpenAI服务集成,支持对话代理
本地OpenAI集成 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Home Assistant本地OpenAI服务集成,支持对话代理
本地OpenAI集成 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install hass_local_openai_llm
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install hass_local_openai_llm
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/skye-harris/hass_local_openai_llm
cd hass_local_openai_llm
pip install -e .
# 验证安装
python -c "import hass_local_openai_llm; print('安装成功')"
# 命令行使用
hass_local_openai_llm --help
# 基本用法
hass_local_openai_llm input_file -o output_file
# Python 代码中调用
import hass_local_openai_llm
# 示例
result = hass_local_openai_llm.process("input")
print(result)
# hass_local_openai_llm 配置文件示例(config.yml) app: name: "hass_local_openai_llm" debug: false log_level: "INFO" # 运行时指定配置文件 hass_local_openai_llm --config config.yml # 或通过环境变量配置 export HASS_LOCAL_OPENAI_LLM_API_KEY="your-key" export HASS_LOCAL_OPENAI_LLM_OUTPUT_DIR="./output"
Have HACS installed, this will allow you to update easily.
Adding Tools for Assist to HACS can be using this button:
<br>
[!NOTE] If the button above doesn't work, add https://github.com/skye-harris/hass_local_openai_llm as a custom repository of type Integration in HACS.
Local OpenAI LLM integration.<details><summary>Manual Install</summary>
Copy the local_openai folder from latest release to the custom_components folder in your config directory. Restart the Home Assistant.
</details>
After installation, configure the integration through Home Assistant's UI:
Settings → Devices & Services.Add Integration.Local OpenAI LLM.---
/v1 but may differ depending on your server configuration.chat_template_kwargs request parameter---
When the server type is set to DeepSeek Cloud, both conversation and AI task agents show a new DeepSeek Configuration section with a Reasoning Effort option. This option controls whether thinking is enabled, and what level of reasoning to perform on the request.
When enabled, thinking content returned by the model is also fed back into the conversation as reasoning content on supported Home Assistant versions (2026.4+).
---
When the server type is set to llama.cpp, both conversation and AI task agents show a llama.cpp Configuration section with the following options.
Passes enable_thinking=true via chat_template_kwargs to enable reasoning on supported models.
When enabled, thinking content returned by the model is also fed back into the conversation as reasoning content on supported Home Assistant versions (2026.4+).
Note: This option completely overrides any existing enable_thinking option in your Chat Template Arguments.
Pins requests to a specific llama.cpp server slot for prompt-cache reuse. Leave empty to allow any slot to be used.
llama.cpp exposes the value supplied via its --alias flag on the model object. When an alias is set it is used as the model's display name; otherwise the raw model id (typically the full model file path) is used, with the path and .gguf extension stripped for a cleaner name.
---
docker-compose.yml is provided in the weaviate directory of this repository.Weaviate configuration section and fill in the details server address and API key (homeassistant if using the supplied docker-compose.yml).Homeassistant, can be changed if you want a different data store for the Agent. The integration will handle creating the required object class within Weaviate if it does not already exist.2.0.9.0.5. Balances the hybrid result scoring between 0 (fully text-matched) and 1 (fully vectorised) matching.Allows use of generic OpenAI-compatible LLM services, such as (but not limited to):
This integration has been forked from Home Assistants OpenRouter integration, with the following changes:
<think> tags from responses---
高质量的Home Assistant本地OpenAI集成
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:本地OpenAI集成 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | hass_local_openai_llm |
| Topics | ai-agentsai-assistanthome-assistant |
| GitHub | https://github.com/skye-harris/hass_local_openai_llm |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-31 · 更新时间:2026-05-31 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端