登录 注册

ha_xiaomi_home

去点 Star
AI 应用与 AI Agent home-assistanthome-assistant-integrationmiotmiot-devicessmart-homexiaomi
22,332
Stars
1,203
Forks
84
Watchers
175
Open Issues
NOASSERTION
许可证
Python
语言
2024-09-09
创建时间
2026-09-28
最近更新

项目能做什么

用于将米家设备接入 Home Assistant 智能家居系统的官方集成插件。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Xiaomi Home Integration for Home Assistant

[English](./README.md) | [简体中文](./doc/README_zh.md)

Xiaomi Home Integration is an integrated component of Home Assistant supported by Xiaomi official. It allows you to use Xiaomi IoT smart devices in Home Assistant.

## Installation

> Home Assistant version requirement:
>
> - Core $\geq$ 2024.4.4
> - Operating System $\geq$ 13.0

### Method 1: Git clone from GitHub

```bash
cd config
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
cd ha_xiaomi_home
./install.sh /config
```

We recommend this installation method, for it is convenient to switch to a tag when updating `xiaomi_home` to a certain version.

For example, update to version v1.0.0

```bash
cd config/ha_xiaomi_home
git fetch
git checkout v1.0.0
./install.sh /config
```

### Method 2: [HACS](https://hacs.xyz/)

One-click installation from HACS:

[![Open your Home Assistant instance and open the Xiaomi Home integration inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=XiaoMi&repository=ha_xiaomi_home&category=integration)

Or, HACS > In the search box, type **Xiaomi Home** > Click **Xiaomi Home**, getting into the detail page > DOWNLOAD

### Method 3: Manually installation via [Samba](https://github.com/home-assistant/addons/tree/master/samba) / [FTPS](https://github.com/hassio-addons/addon-ftp)

Download and copy `custom_components/xiaomi_home` folder to `config/custom_components` folder in your Home Assistant.

## Configuration

### Login

[Settings > Devices & services > ADD INTEGRATION](https://my.home-assistant.io/redirect/brand/?brand=xiaomi_home) > Search `Xiaomi Home` > NEXT > Click here to login > Sign in with Xiaomi account

[![Open your Home Assistant instance and start setting up a new Xiaomi Home integration instance.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=xiaomi_home)

### Add MIoT Devices

After logging in successfully, a dialog box named "Select Home and Devices" pops up. You can select the home containing the device that you want to import in Home Assistant.

### Multiple User Login

After a Xiaomi account login and its user configuration are completed, you can continue to add other Xiaomi accounts in the configured Xiaomi Home Integration page.

Method: [Settings > Devices & services > Configured > Xiaomi Home](https://my.home-assistant.io/redirect/integration/?domain=xiaomi_home) > ADD HUB > NEXT > Click here to login > Sign in with Xiaomi account

[![Open your Home Assistant instance and show Xiaomi Home integration.](https://my.home-assistant.io/badges/integration.svg)](https://my.home-assistant.io/redirect/integration/?domain=xiaomi_home)

### Update Configurations

You can change the configurations in the "Configuration Options" dialog box, in which you can update your user nickname and the list of the devices importing
阅读完整原文

商业机会分析 AI 生成

软硬件一体化 HA 预装网关(米家专项优化版)

产品构想针对动手能力弱但想用 HA 统一管理米家及其他生态设备的用户,提供预装 HAOS 及该官方插件的成品微型主机(如树莓派/工控机/小主机)。
核心功能开箱即用、一键扫码绑定米家账号、内置精选米家设备 Dashboard 模板、自动备份与远程排障内网穿透通道。
目标用户不具备 Linux/HA 部署知识的小白智能家居爱好者、米家全屋智能升级用户。
难度/周期低 · 1-2周 · 成本:硬件采购成本、小批量打样包材及测试机耗损
收费模式硬件差价销售 + 增值远程运维订阅费
竞争风险硬件供应链存货风险;小米官方后续如果推出自研跨协议中枢可能会挤压空间(推测)。
依据 已验证事实

米家生态定制化全屋智能交付与代搭建服务

产品构想为米家多设备家庭提供远程/上门定制实施,通过该插件完成设备批量映射、复杂家庭自动化情景编写、Apple HomeKit/Matter 生态跨接。
核心功能米家设备导入 HA、传感器与执行器跨品牌自动化配置、HomeKit 桥接家庭共享、定制化 3D 户型控制看板。
目标用户装修新房业主、改善型住宅家庭、高端智能家居定制客户。
难度/周期中等 · 按订单执行(单次1-3天) · 成本:人力时间成本、客户支持沟通成本
收费模式单次技术服务费(按设备数或平米计费) + 年费维护包
竞争风险无法标准化规模化,极度依赖交付工程师时间;官方集成更新可能导致自动化实体变更需后期维护。
依据 数据支持的判断

民宿/长租公寓多米家账号统一物联网中控系统

产品构想基于该插件的多账号登录能力,构建面向轻量商业场景(民宿、小型办公室、共享自习室)的集中管理面板与能耗监测方案。
核心功能多小米账号跨房间集中聚合看板、离店自动断电/设备重置、异常能耗告警、批量下发设备 Action 指令。
目标用户民宿主理人、长租公寓运营商、轻量级共享办公空间管理者。
难度/周期高 · 1-2个月 · 成本:云端测试服务器、多账号与多设备联调成本
收费模式SaaS 软件月/年订阅费,或私有化部署授权费
竞争风险小米云端 API 频率限制风险;官方目前协议为 NOASSERTION,商业授权边界需严格界定(AI推测)。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ruvnet/RuView 中文介绍暂未生成
π RuView turns commodity WiFi signals into real-time spatial
104,067 Rust
blakeblackshear/frigate 中文介绍暂未生成
NVR with realtime local object detection for IP cameras
37,413 Python
community-scripts/ProxmoxVE 中文介绍暂未生成
Proxmox VE Helper-Scripts (Community Edition)
30,103 Shell
mikeroyal/Self-Hosting-Guide 中文介绍暂未生成
Self-Hosting Guide. Learn all about locally hosting (on pre
23,529 Dockerfile
tteck/Proxmox 中文介绍暂未生成
Proxmox VE Helper-Scripts
15,144 Shell
AlexxIT/go2rtc 中文介绍暂未生成
Ultimate camera streaming application
14,636 Go
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2024-09-09,最近推送 2026-09-28,发布过 29 个 Release
社区活跃Star 22,332 / Fork 1,203 / Issue 175(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
cd ha_xiaomi_home
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。