<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
|
|
<meta charset="utf-8">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="shortcut icon" href="../../img/favicon.ico">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
<title>安装 - DT-HA</title>
|
<link href="../../css/bootstrap-3.3.7.min.css" rel="stylesheet">
|
<link href="../../css/font-awesome-4.7.0.css" rel="stylesheet">
|
<link href="../../css/base.css" rel="stylesheet">
|
<link rel="stylesheet" href="../../css/highlight.css">
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!--[if lt IE 9]>
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
<![endif]-->
|
|
<script src="../../js/jquery-3.2.1.min.js"></script>
|
<script src="../../js/bootstrap-3.3.7.min.js"></script>
|
<script src="../../js/highlight.pack.js"></script>
|
|
<base target="_top">
|
<script>
|
var base_url = '../..';
|
var is_top_frame = false;
|
|
var pageToc = [
|
{title: "\u5b89\u88c5HomeAssistant", url: "#_top", children: [
|
{title: "HAOS\u5b89\u88c5", url: "#haos" },
|
]},
|
];
|
|
</script>
|
<script src="../../js/base.js"></script>
|
</head>
|
|
<body>
|
<script>
|
if (is_top_frame) { $('body').addClass('wm-top-page'); }
|
</script>
|
|
|
|
<div class="container-fluid wm-page-content">
|
<a name="_top"></a>
|
|
|
|
|
|
|
|
<div class="row wm-article-nav-buttons" role="navigation" aria-label="navigation">
|
|
<div class="wm-article-nav pull-right">
|
<a href="../../Usages/usage/" class="btn btn-xs btn-default pull-right">
|
Next
|
<i class="fa fa-chevron-right" aria-hidden="true"></i>
|
</a>
|
<a href="../../Usages/usage/" class="btn btn-xs btn-link">
|
使用
|
</a>
|
</div>
|
|
<div class="wm-article-nav">
|
<a href="../../about/" class="btn btn-xs btn-default pull-left">
|
<i class="fa fa-chevron-left" aria-hidden="true"></i>
|
Previous</a><a href="../../about/" class="btn btn-xs btn-link">
|
关于
|
</a>
|
</div>
|
|
</div>
|
|
|
|
<h1 id="homeassistant">安装HomeAssistant</h1>
|
<p>HomeAssistant的安装有多种方式与方法,最常用折有硬备直接安装,docker安装虚拟机安装等.</p>
|
<p>下面我们就以硬盘安装HAOS为例介绍基于x86硬件的基础上安装HAOS,基它的安装方式,后续会介绍.</p>
|
<h2 id="haos">HAOS安装</h2>
|
<h3 id="x86pc">安装在X86PC硬盘上</h3>
|
<p>haos要安装在硬盘上,总体思路是,先到HA的官网下载haos的官方镜像文件 ,一般为.gz或.gz.xz等格式,然后再用写盘工具,直接把这个镜像写入硬盘.</p>
|
<p>将镜像文件写入硬盘上约有两种方法:</p>
|
<ul>
|
<li>
|
<p>在linux操作系统上写入镜像</p>
|
</li>
|
<li>
|
<p>在windows平台上写入镜像</p>
|
</li>
|
</ul>
|
<h4 id="linux"><a href="../LinuxInstall/"> 基于linux操作系统写入镜像</a></h4>
|
<p>这种方法的操作方法是:</p>
|
<ol>
|
<li>
|
<p>先下载安装ubuntu24.04操作系统</p>
|
</li>
|
<li>
|
<p>在虚拟机或物理机中安装此ubuntu24.04操作系统.(临时使用)</p>
|
</li>
|
<li>
|
<p>使用ubuntu24.04制作linux启动U盘ubuntu live</p>
|
</li>
|
<li>
|
<p>使用启动U盘ubuntu live引导x86小工控机.</p>
|
</li>
|
<li>
|
<p>进入try模式(不安装).</p>
|
</li>
|
<li>
|
<p>在try模式中,下载ha安方镜像</p>
|
</li>
|
<li>
|
<p>使用ubuntu live的自带的磁盘恢复工具写入镜像到硬盘.</p>
|
</li>
|
<li>
|
<p>移除U盘</p>
|
</li>
|
<li>
|
<p>重启系统</p>
|
</li>
|
<li>
|
<p>进入HA cli界面</p>
|
</li>
|
</ol>
|
<p>此种方法的好处是,不用拆除硬盘,直接在小工控机上就能实现操作.</p>
|
<h4 id="windows">基于windows操作系统写入镜像.</h4>
|
<p>官方在介绍这种方法是让用户把小工控机的硬盘拆下,装入用户自已的电脑中,并用balenaEtcher写盘工具将镜像写入小工控的机的硬盘后,再把小工控机机的硬盘装入小工控机.这方法方便快捷,但是需要拆机,有需要的用户可以到官方介绍页面<a href="https://www.home-assistant.io/installation/generic-x86-64">Geneic x86-64</a>去看具体操作方法.</p>
|
<p>我们常用的方法如下:</p>
|
<ol>
|
<li>
|
<p>制作一个其于windows PE系统的引导U盘.</p>
|
</li>
|
<li>
|
<p>下载官方镜像到U盘中。</p>
|
</li>
|
<li>
|
<p>解压镜像为.img文件 </p>
|
</li>
|
<li>
|
<p>用PE带的写盘工具,将HA镜像写入硬盘。</p>
|
</li>
|
<li>
|
<p>移除U盘。</p>
|
</li>
|
<li>
|
<p>重启进入HA ClI.</p>
|
</li>
|
</ol>
|
|
<br>
|
|
|
|
|
|
|
|
<div class="row wm-article-nav-buttons" role="navigation" aria-label="navigation">
|
|
<div class="wm-article-nav pull-right">
|
<a href="../../Usages/usage/" class="btn btn-xs btn-default pull-right">
|
Next
|
<i class="fa fa-chevron-right" aria-hidden="true"></i>
|
</a>
|
<a href="../../Usages/usage/" class="btn btn-xs btn-link">
|
使用
|
</a>
|
</div>
|
|
<div class="wm-article-nav">
|
<a href="../../about/" class="btn btn-xs btn-default pull-left">
|
<i class="fa fa-chevron-left" aria-hidden="true"></i>
|
Previous</a><a href="../../about/" class="btn btn-xs btn-link">
|
关于
|
</a>
|
</div>
|
|
</div>
|
|
<br>
|
</div>
|
|
<footer class="container-fluid wm-page-content">
|
<p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a> using <a href="https://github.com/gristlabs/mkdocs-windmill">Windmill</a> theme by Grist Labs.</p>
|
</footer>
|
|
</body>
|
</html>
|