{"id":259,"date":"2023-01-29T23:14:22","date_gmt":"2023-01-30T07:14:22","guid":{"rendered":"https:\/\/www.shadowfly.top\/?p=259"},"modified":"2023-03-09T23:11:24","modified_gmt":"2023-03-10T07:11:24","slug":"homeassistant-hacs%e5%9c%a8%e6%a0%91%e8%8e%93%e6%b4%be4%e4%b8%ad%e7%9a%84%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.shadowfly.top\/?p=259","title":{"rendered":"HomeAssistant\u5b89\u88c5\u5230\u6811\u8393\u6d3e4"},"content":{"rendered":"<h2>HomeAssistant\u5b89\u88c5\u5230\u6811\u8393\u6d3e4<\/h2>\n<p>\u5b98\u65b9\u7f51\u7ad9\u6709\u8fc7HomeAssistant Core\u7684\u5b89\u88c5\u6559\u7a0b\uff0c\u5982\u679c\u6709\u9700\u8981\u88c5HACS\u6269\u5c55\u5546\u5e97\u7684\u8bdd\uff0c\u5c31\u9700\u8981\u5b89\u88c5HomeAssistant Supervisor\u540e\u624d\u80fd\u5b89\u88c5HACS\u5546\u5e97\u3002<br \/>\n\u8fd9\u91cc\u4ee5\u6811\u8393\u6d3ePi400\u4e3a\u4f8b\uff0c\u4f7f\u7528\u7684\u7cfb\u7edf\u662f\u6811\u8393\u6d3e\u768464\u4f4d\u7cfb\u7edf\u3002<\/p>\n<ul>\n<li>\n<p>\u901a\u8fc7\u7ba1\u7406\u5458\u8d26\u53f7\u6267\u884c\u4f9d\u8d56\u5305\u5b89\u88c5\uff0cHomeAssistant Supervisor\u91c7\u7528\u7684\u662fDocker\u8fd0\u884c\u65b9\u5f0f<br \/>\n<code>su -<\/code>or<code>sudo su -<\/code><\/p>\n<pre><code>apt-get install \\\napparmor \\\njq \\\nwget \\\ncurl \\\nudisks2 \\\nlibglib2.0-bin \\\nnetwork-manager \\\ndbus \\\nlsb-release \\\nsystemd-journal-remote -y<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5b89\u88c5Docker-CE<\/p>\n<pre><code>curl -fsSL get.docker.com | sh<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5b89\u88c5OS-Agent:<br \/>\na. \u4eceOS Agent GitHub \u53d1\u884c\u7248\u9875\u9762\u4e0b\u8f7d\u6700\u65b0\u7684Debian\u5305:<br \/>\n<a href=\"https:\/\/github.com\/home-assistant\/os-agent\/releases\/latest\">https:\/\/github.com\/home-assistant\/os-agent\/releases\/latest<\/a><br \/>\nb. \u5b89\u88c5\u66f4\u65b0\u4e0b\u8f7d\u7684OS-Agent\u5305\uff1a<br \/>\n<code>sudo apt install os-agent_1.4.1_linux_aarch64.deb<\/code><\/p>\n<blockquote>\n<p>\u6ce8\u610f: \u66ff\u6362deb\u6587\u4ef6\u540d\uff0c\u8fd9\u91cc\u53ea\u662f\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c\u662f\u6811\u8393\u6d3e64\u4f4d\u7cfb\u7edf\uff0c\u8bf7\u4e0b\u8f7daarch64\u7684deb\u5305<br \/>\n\u4f60\u53ef\u4ee5\u6d4b\u8bd5\u5b89\u88c5\u662f\u5426\u6210\u529f:<br \/>\n<code>gdbus introspect --system --dest io.hass.os --object-path \/io\/hass\/os<\/code><br \/>\n\u8fd9\u91cc\u4e0d\u5e94\u8be5\u8fd4\u56de\u9519\u8bef\u3002\u5982\u679c\u4f60\u5f97\u5230\u4e00\u4e2aobject introspection\u5e26interface\u7b49\u5185\u5bb9\u7684\u3002\u8bf4\u660eOS Agent\u5df2\u7ecf\u6b63\u5e38\u5de5\u4f5c\u4e86\u3002<br \/>\n\u4f60\u53ef\u80fd\u9700\u8981\u5b89\u88c5libglib2.0-bin\u53bb\u6267\u884cgdbus\u547d\u4ee4\u3002<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>\u5378\u8f7dOS Agent\uff0c\u5982\u679c\u9700\u8981\u5378\u8f7d<\/p>\n<pre><code>sudo apt-get remove os-agent<\/code><\/pre>\n<\/li>\n<li>\n<p>\u5b89\u88c5HomeAssistant Supervised Debain\u5305<\/p>\n<pre><code>wget https:\/\/github.com\/home-assistant\/supervised-installer\/releases\/latest\/download\/homeassistant-supervised.deb\napt install homeassistant-supervised.deb #\u5b89\u88c5\u4e0b\u8f7d\u540e\u7684deb\u5305\n#\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9700\u8981\u5bf9\u786c\u4ef6\u7cfb\u7edf\u8fdb\u884c\u9009\u62e9\uff0cPi400+64\u4f4d\u7cfb\u7edf\uff0c\u8fd9\u91cc\u9009\u62e9raspberrypi4-64<\/code><\/pre>\n<\/li>\n<li>\n<p>\u652f\u6301\u7684\u8bbe\u5907<\/p>\n<pre><code>generic-x86-64\nodroid-c2\nodroid-c4\nodroid-n2\nodroid-xu\nqemuarm\nqemuarm-64\nqemux86\nqemux86-64\nraspberrypi\nraspberrypi2\nraspberrypi3\nraspberrypi4\nraspberrypi3-64\nraspberrypi4-64\ntinker\nkhadas-vim3<\/code><\/pre>\n<\/li>\n<li>\n<p>\u914d\u7f6e<br \/>\n\u9ed8\u8ba4\u7684$DATA_SHARE\u8def\u5f84\u662f\/usr\/share\/hassio\u3002\u8fd9\u4e2a\u8def\u5f84\u662f\u7528\u4e8e\u5b58\u50a8\u6240\u6709home assistant\u76f8\u5173\u7684\u5185\u5bb9\u7684\u3002<br \/>\n\u4f60\u53ef\u4ee5\u5728\u5b89\u88c5\u65f6\u91cd\u65b0\u914d\u7f6e\u8fd9\u4e2a\u8def\u5f84\u3002<\/p>\n<pre><code>DATA_SHARE=\/my\/own\/homeassistant dpkg --force-confdef --force-confold -i homeassistant-supervised.deb\n#\u53ef\u4ee5\u5c06\/my\/own\/homeassistant\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u8def\u5f84<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6545\u969c\u6392\u67e5<br \/>\n\u5982\u679c\u5728\u5b89\u88c5\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u4f7f\u7528:<br \/>\n<code>journalctl -f #\u83b7\u53d6\u7cfb\u7edf\u7684log<\/code><br \/>\n\u5982\u679c\u4f60\u4e0d\u719f\u6089Linux\u6216\u8005\u65e0\u6cd5\u4fee\u590d\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u5efa\u8bae\u4f60\u4f7f\u7528Home Assistant OS\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ul>\n<li>HomeAssistant \u4e3b\u9875\uff1a<a href=\"https:\/\/home-assistant.io\">https:\/\/home-assistant.io<\/a><\/li>\n<li>HomeAssistant \u5b89\u88c5Supervisor\u7684\u6307\u5357\uff1a<a href=\"https:\/\/github.com\/home-assistant\/supervised-installer\">https:\/\/github.com\/home-assistant\/supervised-installer<\/a><\/li>\n<li>HomeAssistant \u5b89\u88c5OS Agent\u7684\u6307\u5357\uff1a<a href=\"https:\/\/github.com\/home-assistant\/os-agent\/tree\/main#using-home-assistant-supervised-on-debian\">https:\/\/github.com\/home-assistant\/os-agent\/tree\/main#using-home-assistant-supervised-on-debian<\/a><\/li>\n<li>HomeAssistant \u9879\u76ee\u4e3b\u9875\uff1a<a href=\"https:\/\/github.com\/home-assistant\">https:\/\/github.com\/home-assistant<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>HomeAssistant\u5b89\u88c5\u5230\u6811\u8393\u6d3e4 \u5b98\u65b9\u7f51\u7ad9\u6709\u8fc7HomeAssistant Core\u7684\u5b89\u88c5\u6559\u7a0b\uff0c\u5982\u679c\u6709\u9700 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-ha"],"_links":{"self":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":4,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}