<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home Assistant on 墨殇个人博客</title><link>https://example.org/tags/home-assistant/</link><description>Recent content from 墨殇个人博客</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>moshang168@gmail.com (墨殇'BLOG)</managingEditor><webMaster>moshang168@gmail.com (墨殇'BLOG)</webMaster><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><atom:link href="https://example.org/tags/home-assistant/index.xml" rel="self" type="application/rss+xml"/><item><title>Home Assistant智能家居中枢入门：把所有智能家居设备统一管理</title><link>https://example.org/posts/home-assistant-smart-home-guide/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><author>moshang168@gmail.com (墨殇'BLOG)</author><guid>https://example.org/posts/home-assistant-smart-home-guide/</guid><description>
<![CDATA[<h1>Home Assistant智能家居中枢入门：把所有智能家居设备统一管理</h1><p>作者：墨殇'BLOG（moshang168@gmail.com）</p>
        
          <h2 id="为什么需要home-assistant">
<a class="header-anchor" href="#%e4%b8%ba%e4%bb%80%e4%b9%88%e9%9c%80%e8%a6%81home-assistant"></a>
为什么需要Home Assistant
</h2><p>现在你家的智能家居设备大概率是这样的：小米设备用米家APP，绿米用Aqara，灯用智能灯厂家的APP，空调用空调自己的APP，每个设备一个APP，开关的时候要切换好几个应用，还不能跨品牌联动。</p>
<p>Home Assistant是一个开源免费的智能家居中枢，支持几乎所有品牌的智能设备，把所有设备整合到一个统一的界面里，还能自己写自动化规则，比如&quot;人走了自动关灯关空调&quot;&ldquo;开门自动开灯&rdquo;，不用看厂家的脸色做自动化。而且所有数据都在你自己家里，不会上传到厂商服务器，隐私有保障。</p>
<hr>
<h2 id="部署方式选择">
<a class="header-anchor" href="#%e9%83%a8%e7%bd%b2%e6%96%b9%e5%bc%8f%e9%80%89%e6%8b%a9"></a>
部署方式选择
</h2><p>新手推荐用开箱即用的方式部署，不用折腾复杂的Docker命令：</p>
<ol>
<li>下载 <a href="https://www.home-assistant.io/installation/">Home Assistant Operating System</a> 镜像</li>
<li>刷到U盘里，插到你家里一直开机的设备上（旧笔记本、软路由、树莓派都行）</li>
<li>开机后等5分钟，浏览器输入 <code>http://homeassistant.local:8123</code> 就能进管理后台</li>
</ol>
<p>如果你已经有PVE或者Docker环境，直接用Docker部署也很简单，几行命令就能跑起来。</p>
<hr>
<h2 id="接入设备流程">
<a class="header-anchor" href="#%e6%8e%a5%e5%85%a5%e8%ae%be%e5%a4%87%e6%b5%81%e7%a8%8b"></a>
接入设备流程
</h2><p>Home Assistant支持超过2000种品牌的设备，接入流程非常简单：</p>
<ol>
<li>打开设置 → 设备与服务 → 添加集成</li>
<li>搜索你要接入的品牌，比如米家、TP-Link、飞利浦Hue、涂鸦智能</li>
<li>按照提示输入账号密码，自动扫描同局域网下的所有设备，一键全部导入</li>
</ol>
<p>导入完成后，所有设备在一个界面里就能控制，手机、平板、电脑的浏览器都能打开同一个控制面板。</p>
<hr>
<h2 id="自定义自动化场景">
<a class="header-anchor" href="#%e8%87%aa%e5%ae%9a%e4%b9%89%e8%87%aa%e5%8a%a8%e5%8c%96%e5%9c%ba%e6%99%af"></a>
自定义自动化场景
</h2><p>Home Assistant最强大的地方就是自动化，你可以自己写规则，不需要厂家支持：</p>
<ul>
<li>晚上10点之后自动把家里的灯调成暖黄色，亮度降到30%</li>
<li>门窗传感器检测到开门，自动打开玄关的灯</li>
<li>检测到你手机连接家里WiFi，自动把空调调到你习惯的温度</li>
<li>出门离家模式，一键关闭所有灯、插座、空调</li>
</ul>
<p>所有规则都是可视化拖拽配置，不需要写代码，设置一次之后自动运行，比厂商自带的自动化灵活太多。</p>
        
        <hr><p>本文0001-01-01首发于<a href='https://example.org/'>墨殇个人博客</a>，最后修改于0001-01-01</p>]]></description><category>开源工具</category></item></channel></rss>