{"id":79854,"date":"2026-03-03T11:49:51","date_gmt":"2026-03-03T03:49:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79854.html"},"modified":"2026-03-03T11:49:51","modified_gmt":"2026-03-03T03:49:51","slug":"%e6%97%a0%e9%9c%80root%ef%bc%81termuxalpine%e6%89%93%e9%80%a0%e7%a8%b3%e5%ae%9ahomeassistant%e6%9c%8d%e5%8a%a1%e5%99%a8-%e9%81%bf%e5%9d%91%e4%b8%8e%e4%bc%98%e5%8c%96%e6%8c%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79854.html","title":{"rendered":"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357"},"content":{"rendered":"<h3>1. \u4e3a\u4ec0\u4e48\u9009\u62e9Termux&#043;Alpine\u65b9\u6848<\/h3>\n<p>\u6700\u8fd1\u5f88\u591a\u670b\u53cb\u90fd\u5728\u95ee&#xff0c;\u80fd\u4e0d\u80fd\u7528\u95f2\u7f6e\u7684\u5b89\u5353\u624b\u673a\u642d\u5efa\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u4e2d\u5fc3&#xff1f;\u6bd5\u7adf\u73b0\u5728\u8c01\u5bb6\u91cc\u6ca1\u51e0\u4e2a\u65e7\u624b\u673a&#xff0c;\u653e\u7740\u4e5f\u662f\u5403\u7070&#xff0c;\u4e0d\u5982\u62ff\u6765\u53d1\u6325\u4f59\u70ed\u3002\u6211\u81ea\u5df1\u4e5f\u662f\u4ece\u6811\u8393\u6d3e\u8f6c\u6218\u5230\u624b\u673a\u65b9\u6848\u7684&#xff0c;\u8bf4\u5b9e\u8bdd&#xff0c;\u8fd9\u6761\u8def\u786e\u5b9e\u6709\u70b9\u5751&#xff0c;\u4f46\u8d70\u901a\u4e86\u4e4b\u540e\u771f\u9999&#xff01;<\/p>\n<p>\u5148\u8bf4\u8bf4\u4e3a\u4ec0\u4e48\u9009\u62e9Termux&#043;Alpine\u8fd9\u4e2a\u7ec4\u5408\u3002Termux\u662f\u4e2a\u5f3a\u5927\u7684\u5b89\u5353\u7ec8\u7aef\u6a21\u62df\u5668&#xff0c;\u5b83\u80fd\u5728\u4e0droot\u624b\u673a\u7684\u60c5\u51b5\u4e0b\u7ed9\u4f60\u4e00\u4e2a\u5b8c\u6574\u7684Linux\u73af\u5883\u3002\u800cAlpine Linux\u4ee5\u8f7b\u91cf\u7ea7\u8457\u79f0&#xff0c;\u955c\u50cf\u5927\u5c0f\u53ea\u6709\u51e0MB&#xff0c;\u8fd0\u884c\u8d77\u6765\u7279\u522b\u8282\u7701\u8d44\u6e90&#xff0c;\u7279\u522b\u9002\u5408\u624b\u673a\u8fd9\u79cd\u786c\u4ef6\u73af\u5883\u3002\u6700\u91cd\u8981\u7684\u662f&#xff0c;\u8fd9\u4e2a\u65b9\u6848\u5b8c\u5168\u4e0d\u9700\u8981root\u6743\u9650&#xff0c;\u4e0d\u7528\u62c5\u5fc3\u624b\u673a\u53d8\u7816\u6216\u8005\u5931\u53bb\u4fdd\u4fee\u3002<\/p>\n<p>\u6211\u6700\u521d\u4e5f\u8bd5\u8fc7\u5176\u4ed6\u65b9\u6848&#xff0c;\u6bd4\u5982Linux Deploy&#xff0c;\u4f46\u9700\u8981root\u6743\u9650&#xff0c;\u64cd\u4f5c\u590d\u6742&#xff0c;\u5bf9\u65b0\u624b\u4e0d\u592a\u53cb\u597d\u3002\u4e5f\u8bd5\u8fc7Termux\u76f4\u63a5\u5b89\u88c5HomeAssistant&#xff0c;\u4f46\u5728cryptography\u4f9d\u8d56\u90a3\u91cc\u5c31\u5361\u4f4f\u4e86\u3002\u8fd8\u8bd5\u8fc7Termux&#043;Andronix\u88c5Ubuntu&#xff0c;\u8981\u4e48\u662f\u6743\u9650\u95ee\u9898&#xff0c;\u8981\u4e48\u662f\u7248\u672c\u592a\u8001\u3002\u6700\u540e\u53d1\u73b0Termux&#043;proot-distro&#043;Alpine\u624d\u662f\u6700\u7a33\u5b9a\u7684\u7ec4\u5408\u3002<\/p>\n<h3>2. \u73af\u5883\u51c6\u5907\u4e0e\u57fa\u7840\u914d\u7f6e<\/h3>\n<h4>2.1 Termux\u5b89\u88c5\u4e0e\u521d\u59cb\u5316<\/h4>\n<p>\u9996\u5148\u8981\u5728\u5b89\u5353\u624b\u673a\u4e0a\u5b89\u88c5Termux\u3002\u5efa\u8bae\u4eceF-Droid\u5e94\u7528\u5546\u5e97\u4e0b\u8f7d&#xff0c;\u8fd9\u91cc\u7684\u7248\u672c\u6700\u7a33\u5b9a\u3002Google Play\u4e0a\u7684\u7248\u672c\u53ef\u80fd\u6bd4\u8f83\u65e7&#xff0c;\u4f1a\u6709\u5404\u79cd\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u6253\u5f00Termux&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u662f\u66f4\u65b0\u5305\u7ba1\u7406\u5668&#xff1a;<\/p>\n<p>pkg update &amp;&amp; pkg upgrade<\/p>\n<p>\u8fd9\u4e2a\u6b65\u9aa4\u5f88\u91cd\u8981&#xff0c;\u56e0\u4e3a\u7cfb\u7edf\u81ea\u5e26\u7684\u8f6f\u4ef6\u6e90\u53ef\u80fd\u4e0d\u662f\u6700\u65b0\u7684&#xff0c;\u4e0d\u66f4\u65b0\u7684\u8bdd\u540e\u9762\u5b89\u88c5\u53ef\u80fd\u4f1a\u51fa\u95ee\u9898\u3002\u6211\u521a\u5f00\u59cb\u73a9\u7684\u65f6\u5019\u5c31\u56e0\u4e3a\u8df3\u8fc7\u8fd9\u4e00\u6b65&#xff0c;\u5bfc\u81f4\u540e\u9762\u5b89\u88c5proot-distro\u65f6\u5404\u79cd\u62a5\u9519\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5\u4e00\u4e9b\u57fa\u7840\u5de5\u5177&#xff1a;<\/p>\n<p>pkg install curl wget vim openssh<\/p>\n<p>\u7279\u522b\u662fopenssh&#xff0c;\u5efa\u8bae\u4e00\u5b9a\u8981\u88c5&#xff0c;\u56e0\u4e3a\u624b\u673a\u5c4f\u5e55\u4e0a\u6572\u547d\u4ee4\u5b9e\u5728\u4e0d\u65b9\u4fbf&#xff0c;\u88c5\u4e86ssh\u4e4b\u540e\u5c31\u53ef\u4ee5\u7528\u7535\u8111\u8fde\u63a5\u624b\u673a\u7ec8\u7aef\u4e86&#xff0c;\u64cd\u4f5c\u8d77\u6765\u8212\u670d\u5f88\u591a\u3002<\/p>\n<h4>2.2 \u914d\u7f6eSSH\u8fdc\u7a0b\u8fde\u63a5<\/h4>\n<p>\u914d\u7f6eSSH\u662f\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u64cd\u4f5c&#xff0c;\u6bd5\u7adf\u5728\u624b\u673a\u5c0f\u5c4f\u5e55\u4e0a\u6572\u4ee3\u7801\u592a\u75db\u82e6\u4e86\u3002\u5148\u8bbe\u7f6e\u5bc6\u7801&#xff1a;<\/p>\n<p>passwd<\/p>\n<p>\u8f93\u5165\u4f60\u60f3\u8981\u7684\u5bc6\u7801&#xff0c;\u7136\u540e\u542f\u52a8SSH\u670d\u52a1&#xff1a;<\/p>\n<p>sshd<\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u5728\u7535\u8111\u4e0a\u7528ssh\u8fde\u63a5\u624b\u673a\u4e86\u3002\u9996\u5148\u67e5\u770b\u624b\u673a\u7684IP\u5730\u5740&#xff0c;\u5728Termux\u91cc\u8f93\u5165&#xff1a;<\/p>\n<p>ifconfig<\/p>\n<p>\u627e\u5230wlan0\u4e0b\u9762\u7684inet\u5730\u5740&#xff0c;\u7136\u540e\u5728\u7535\u8111\u7ec8\u7aef\u8fde\u63a5&#xff1a;<\/p>\n<p>ssh username&#064;\u624b\u673aIP -p 8022<\/p>\n<p>\u8fd9\u6837\u5c31\u80fd\u5728\u7535\u8111\u4e0a\u64cd\u4f5c\u624b\u673a\u7684Termux\u73af\u5883\u4e86&#xff0c;\u590d\u5236\u7c98\u8d34\u547d\u4ee4\u90fd\u65b9\u4fbf\u5f88\u591a\u3002<\/p>\n<h3>3. Alpine Linux\u5b89\u88c5\u4e0e\u914d\u7f6e<\/h3>\n<h4>3.1 \u5b89\u88c5proot-distro<\/h4>\n<p>proot-distro\u662fTermux\u5b98\u65b9\u63d0\u4f9b\u7684Linux\u53d1\u884c\u7248\u7ba1\u7406\u5de5\u5177&#xff0c;\u6bd4Andronix\u66f4\u7a33\u5b9a\u3002\u5b89\u88c5\u547d\u4ee4\u5f88\u7b80\u5355&#xff1a;<\/p>\n<p>pkg install proot-distro<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u67e5\u770b\u53ef\u7528\u7684Linux\u53d1\u884c\u7248&#xff1a;<\/p>\n<p>proot-distro list<\/p>\n<p>\u4f60\u4f1a\u770b\u5230\u4e00\u5806\u53ef\u9009\u7684\u7cfb\u7edf&#xff0c;\u5305\u62ecUbuntu\u3001Debian\u3001Alpine\u7b49\u3002\u8fd9\u91cc\u5f3a\u70c8\u63a8\u8350Alpine&#xff0c;\u56e0\u4e3a\u5b83\u7684\u8f7b\u91cf\u7279\u6027\u7279\u522b\u9002\u5408\u624b\u673a\u73af\u5883\u3002<\/p>\n<p>\u6211\u4e4b\u524d\u8bd5\u8fc7\u5b89\u88c5Ubuntu&#xff0c;\u4f46proot-distro\u63d0\u4f9b\u7684ubuntu25.10\u7248\u672c\u592a\u65b0&#xff0c;\u5f88\u591a\u4f9d\u8d56\u90fd\u4e0d\u5b8c\u5584&#xff0c;\u5b89\u88c5HomeAssistant\u65f6\u5404\u79cd\u62a5\u9519\u3002\u6362\u6210Alpine\u540e\u5c31\u987a\u5229\u591a\u4e86\u3002<\/p>\n<h4>3.2 \u5b89\u88c5\u548c\u914d\u7f6eAlpine<\/h4>\n<p>\u5b89\u88c5Alpine Linux&#xff1a;<\/p>\n<p>proot-distro install alpine<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u548c\u5b89\u88c5&#xff0c;\u901f\u5ea6\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u7edc\u60c5\u51b5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\u767b\u5f55Alpine&#xff1a;<\/p>\n<p>proot-distro login alpine<\/p>\n<p>\u73b0\u5728\u4f60\u5df2\u7ecf\u8fdb\u5165\u4e00\u4e2a\u5b8c\u6574\u7684Alpine Linux\u73af\u5883\u4e86&#xff01;\u9996\u5148\u66f4\u65b0\u8f6f\u4ef6\u6e90&#xff1a;<\/p>\n<p>apk update &amp;&amp; apk upgrade<\/p>\n<p>Alpine\u7528\u7684\u662fapk\u5305\u7ba1\u7406\u5668&#xff0c;\u548cUbuntu\u7684apt\u4e0d\u4e00\u6837&#xff0c;\u8fd9\u70b9\u9700\u8981\u6ce8\u610f\u3002\u63a5\u4e0b\u6765\u5b89\u88c5\u4e00\u4e9b\u57fa\u7840\u5de5\u5177&#xff1a;<\/p>\n<p>apk add nano bash curl wget<\/p>\n<p>\u7279\u522b\u662fnano\u7f16\u8f91\u5668&#xff0c;\u6bd4vi\u597d\u7528\u591a\u4e86&#xff0c;\u9002\u5408\u65b0\u624b\u3002bash shell\u4e5f\u6bd4\u9ed8\u8ba4\u7684ash\u66f4\u597d\u7528\u3002<\/p>\n<h3>4. HomeAssistant\u5b89\u88c5\u4e0e\u4f18\u5316<\/h3>\n<h4>4.1 \u5b89\u88c5\u4f9d\u8d56\u73af\u5883<\/h4>\n<p>\u5728Alpine\u91cc\u5b89\u88c5HomeAssistant\u9700\u8981\u5148\u88c5\u4e00\u5806\u4f9d\u8d56&#xff0c;\u8fd9\u4e00\u6b65\u5f88\u5173\u952e&#xff0c;\u7f3a\u4e86\u54ea\u4e2a\u90fd\u4f1a\u5bfc\u81f4\u540e\u7eed\u5b89\u88c5\u5931\u8d25&#xff1a;<\/p>\n<p>apk add python3 python3-dev py3-pip gcc musl-dev jpeg-dev zlib-dev psmisc tzdata<\/p>\n<p>\u8fd9\u4e9b\u4f9d\u8d56\u5305\u542b\u4e86Python\u73af\u5883\u3001\u7f16\u8bd1\u5de5\u5177\u3001\u56fe\u50cf\u5904\u7406\u5e93\u7b49\u3002\u5176\u4e2dmusl-dev\u7279\u522b\u91cd\u8981&#xff0c;\u56e0\u4e3aAlpine\u7528\u7684\u662fmusl libc\u800c\u4e0d\u662f\u5e38\u89c1\u7684glibc&#xff0c;\u7f3a\u5c11\u8fd9\u4e2a\u4f1a\u5bfc\u81f4Python\u5305\u7f16\u8bd1\u5931\u8d25\u3002<\/p>\n<p>\u5347\u7ea7pip\u5230\u6700\u65b0\u7248\u672c&#xff1a;<\/p>\n<p>pip3 install &#8211;upgrade pip<\/p>\n<p>\u7136\u540e\u521b\u5efa\u865a\u62df\u73af\u5883&#xff0c;\u8fd9\u662f\u4e2a\u597d\u4e60\u60ef&#xff0c;\u53ef\u4ee5\u907f\u514d\u6c61\u67d3\u7cfb\u7edf\u73af\u5883&#xff1a;<\/p>\n<p>python3 -m venv \/opt\/homeassistant<\/p>\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff1a;<\/p>\n<p>source \/opt\/homeassistant\/bin\/activate<\/p>\n<p>\u6fc0\u6d3b\u540e\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u9762\u4f1a\u663e\u793a(homeassistant)&#xff0c;\u8868\u793a\u5df2\u7ecf\u5728\u865a\u62df\u73af\u5883\u4e2d\u4e86\u3002<\/p>\n<h4>4.2 \u5b89\u88c5HomeAssistant\u6838\u5fc3<\/h4>\n<p>\u5148\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684Python\u5305&#xff1a;<\/p>\n<p>pip install numpy mutagen PyTurboJPEG tzdata aiohttp setuptools wheel<\/p>\n<p>\u8fd9\u4e9b\u5305\u662fHomeAssistant\u8fd0\u884c\u6240\u5fc5\u9700\u7684&#xff0c;\u5982\u679c\u76f4\u63a5\u5b89\u88c5HomeAssistant\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7f3a\u5c11\u4f9d\u8d56\u800c\u5931\u8d25\u3002\u7279\u522b\u662fnumpy\u548cmutagen&#xff0c;\u5206\u522b\u662f\u89c6\u9891\u6d41\u548cTTS\u529f\u80fd\u6240\u5fc5\u9700\u7684\u3002<\/p>\n<p>\u6700\u540e\u5b89\u88c5HomeAssistant&#xff1a;<\/p>\n<p>pip install homeassistant<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u6bd4\u8f83\u957f&#xff0c;\u56e0\u4e3a\u8981\u4e0b\u8f7d\u548c\u7f16\u8bd1\u5f88\u591a\u4f9d\u8d56\u5305\u3002\u5728\u624b\u673a\u4e0a\u8fdb\u884c\u7f16\u8bd1\u65f6\u53ef\u80fd\u4f1a\u6bd4\u8f83\u6162&#xff0c;\u9700\u8981\u8010\u5fc3\u7b49\u5f85\u3002\u5982\u679c\u67d0\u4e2a\u5305\u7f16\u8bd1\u5931\u8d25&#xff0c;\u901a\u5e38\u662f\u7f3a\u5c11\u5bf9\u5e94\u7684\u5f00\u53d1\u5e93&#xff0c;\u53ef\u4ee5\u6839\u636e\u9519\u8bef\u4fe1\u606f\u5b89\u88c5\u76f8\u5e94\u7684apk\u5305\u3002<\/p>\n<h4>4.3 \u89e3\u51b3\u6743\u9650\u95ee\u9898<\/h4>\n<p>\u5728proot\u73af\u5883\u4e0b\u8fd0\u884cHomeAssistant\u4f1a\u9047\u5230\u6743\u9650\u95ee\u9898&#xff0c;\u7279\u522b\u662f\u7f51\u7edc\u63a5\u53e3\u68c0\u6d4b\u4f1a\u5931\u8d25\u3002\u6211\u4eec\u9700\u8981\u4fee\u6539ifaddr\u5e93\u7684\u4ee3\u7801\u6765\u7ed5\u8fc7\u8fd9\u4e2a\u9650\u5236&#xff1a;<\/p>\n<p>\u627e\u5230ifaddr\u5e93\u7684\u4f4d\u7f6e&#xff0c;\u901a\u5e38\u5728\u865a\u62df\u73af\u5883\u7684site-packages\u76ee\u5f55\u4e0b&#xff1a;<\/p>\n<p>nano \/opt\/homeassistant\/lib\/python3.12\/site-packages\/ifaddr\/_posix.py<\/p>\n<p>\u627e\u5230get_adapters()\u51fd\u6570&#xff0c;\u66ff\u6362\u4e3a&#xff1a;<\/p>\n<p>def get_adapters():<br \/>\n    return []<\/p>\n<p>\u8fd9\u6837\u4fee\u6539\u540eHomeAssistant\u5c31\u4e0d\u4f1a\u5c1d\u8bd5\u68c0\u6d4b\u7f51\u7edc\u63a5\u53e3\u4e86&#xff0c;\u907f\u514d\u4e86PermissionError\u3002\u867d\u7136\u8fd9\u662f\u4e2a\u53d6\u5de7\u7684\u529e\u6cd5&#xff0c;\u4f46\u5728proot\u73af\u5883\u4e0b\u662f\u53ef\u884c\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h3>5. \u914d\u7f6e\u4e0e\u542f\u52a8\u4f18\u5316<\/h3>\n<h4>5.1 \u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u9996\u5148\u521b\u5efa\u914d\u7f6e\u76ee\u5f55&#xff1a;<\/p>\n<p>mkdir -p \/root\/.homeassistant<br \/>\ncd \/root\/.homeassistant<\/p>\n<p>\u521b\u5efa\u6700\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>echo -e &#034;http:\\\\n server_host: 0.0.0.0\\\\n server_port: 7777&#034; &gt; configuration.yaml<\/p>\n<p>\u8fd9\u91cc\u4f7f\u75287777\u7aef\u53e3\u662f\u4e3a\u4e86\u907f\u514d\u548c\u7cfb\u7edf\u5e38\u7528\u7aef\u53e3\u51b2\u7a81\u30020.0.0.0\u8868\u793a\u76d1\u542c\u6240\u6709\u7f51\u7edc\u63a5\u53e3&#xff0c;\u8fd9\u6837\u540c\u4e00\u5c40\u57df\u7f51\u5185\u7684\u5176\u4ed6\u8bbe\u5907\u4e5f\u80fd\u8bbf\u95eeHomeAssistant\u3002<\/p>\n<p>\u91ca\u653e\u53ef\u80fd\u88ab\u5360\u7528\u7684\u7aef\u53e3&#xff1a;<\/p>\n<p>fuser -k 7777\/tcp 2&gt;\/dev\/null<\/p>\n<h4>5.2 \u542f\u52a8HomeAssistant<\/h4>\n<p>\u73b0\u5728\u53ef\u4ee5\u542f\u52a8HomeAssistant\u4e86&#xff1a;<\/p>\n<p>python3 -m homeassistant &#8211;config \/root\/.homeassistant<\/p>\n<p>\u7b2c\u4e00\u6b21\u542f\u52a8\u4f1a\u6bd4\u8f83\u6162&#xff0c;\u56e0\u4e3a\u8981\u521d\u59cb\u5316\u6570\u636e\u5e93\u548c\u4e0b\u8f7d\u5fc5\u8981\u7684\u7ec4\u4ef6\u3002\u542f\u52a8\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u770b\u5230\u4e00\u4e9b\u8b66\u544a\u548c\u9519\u8bef\u4fe1\u606f&#xff0c;\u6bd4\u5982\u5929\u6c14API\u8fde\u63a5\u5931\u8d25&#xff0c;\u8fd9\u4e9b\u53ef\u4ee5\u6682\u65f6\u5ffd\u7565&#xff0c;\u4e0d\u5f71\u54cd\u6838\u5fc3\u529f\u80fd\u3002<\/p>\n<p>\u770b\u5230&#034;HomeAssistant is running&#034;\u7684\u63d0\u793a\u5c31\u8868\u793a\u542f\u52a8\u6210\u529f\u4e86\u3002\u73b0\u5728\u53ef\u4ee5\u5728\u7535\u8111\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165&#034;\u624b\u673aIP:7777&#034;\u8bbf\u95eeHomeAssistant\u7684web\u754c\u9762\u4e86\u3002<\/p>\n<h4>5.3 \u521b\u5efa\u5feb\u6377\u542f\u52a8\u811a\u672c<\/h4>\n<p>\u6bcf\u6b21\u624b\u52a8\u542f\u52a8\u592a\u9ebb\u70e6&#xff0c;\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u542f\u52a8\u811a\u672c\u3002\u5728Alpine\u73af\u5883\u4e2d\u521b\u5efa&#xff1a;<\/p>\n<p>nano \/root\/start_ha.sh<\/p>\n<p>\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>#!\/bin\/bash<br \/>\nsource \/opt\/homeassistant\/bin\/activate<br \/>\npython3 -m homeassistant &#8211;config \/root\/.homeassistant<\/p>\n<p>\u7ed9\u811a\u672c\u6267\u884c\u6743\u9650&#xff1a;<\/p>\n<p>chmod &#043;x \/root\/start_ha.sh<\/p>\n<p>\u4ee5\u540e\u53ea\u9700\u8981\u8fd0\u884c.\/start_ha.sh\u5c31\u80fd\u542f\u52a8HomeAssistant\u4e86\u3002<\/p>\n<h3>6. \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>6.1 \u6027\u80fd\u4f18\u5316\u6280\u5de7<\/h4>\n<p>\u624b\u673a\u8fd0\u884cHomeAssistant\u6700\u62c5\u5fc3\u7684\u5c31\u662f\u6027\u80fd\u95ee\u9898\u3002\u7ecf\u8fc7\u6211\u7684\u5b9e\u6d4b&#xff0c;\u6709\u8fd9\u51e0\u4e2a\u4f18\u5316\u70b9&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u662f\u8c03\u6574HomeAssistant\u7684\u65e5\u5fd7\u7ea7\u522b&#xff0c;\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u65e5\u5fd7\u8f93\u51fa\u3002\u5728configuration.yaml\u4e2d\u6dfb\u52a0&#xff1a;<\/p>\n<p>logger:<br \/>\n  default: warning<br \/>\n  logs:<br \/>\n    homeassistant.components: info<\/p>\n<p>\u7b2c\u4e8c\u662f\u7981\u7528\u4e0d\u9700\u8981\u7684\u7ec4\u4ef6\u3002\u624b\u673a\u8d44\u6e90\u6709\u9650&#xff0c;\u53ea\u5f00\u542f\u771f\u6b63\u9700\u8981\u7684\u529f\u80fd\u7ec4\u4ef6\u3002<\/p>\n<p>\u7b2c\u4e09\u662f\u5b9a\u671f\u6e05\u7406\u6570\u636e\u5e93\u3002HomeAssistant\u7684\u6570\u636e\u5e93\u4f1a\u8d8a\u6765\u8d8a\u5927&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u81ea\u52a8\u6e05\u7406&#xff1a;<\/p>\n<p>recorder:<br \/>\n  purge_keep_days: 3<br \/>\n  commit_interval: 30<\/p>\n<h4>6.2 \u7f51\u7edc\u914d\u7f6e\u5efa\u8bae<\/h4>\n<p>\u4e3a\u4e86\u8ba9HomeAssistant\u7a33\u5b9a\u8fd0\u884c&#xff0c;\u6700\u597d\u7ed9\u624b\u673a\u5206\u914d\u9759\u6001IP\u5730\u5740\u3002\u53ef\u4ee5\u5728\u8def\u7531\u5668\u4e2d\u8bbe\u7f6eDHCP\u4fdd\u7559&#xff0c;\u6216\u8005\u76f4\u63a5\u5728\u624b\u673aWi-Fi\u8bbe\u7f6e\u4e2d\u914d\u7f6e\u9759\u6001IP\u3002<\/p>\n<p>\u5982\u679c\u53d1\u73b0HomeAssistant\u5076\u5c14\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u53ef\u80fd\u662f\u624b\u673a\u4f11\u7720\u5bfc\u81f4\u7f51\u7edc\u4e2d\u65ad\u3002\u9700\u8981\u5728\u624b\u673a\u8bbe\u7f6e\u4e2d\u7981\u6b62Termux\u4f11\u7720&#xff0c;\u5141\u8bb8\u540e\u53f0\u8fd0\u884c\u3002<\/p>\n<h4>6.3 \u7a33\u5b9a\u6027\u5904\u7406<\/h4>\n<p>\u957f\u65f6\u95f4\u8fd0\u884c\u540e\u53ef\u80fd\u4f1a\u53d1\u73b0HomeAssistant\u53d8\u6162&#xff0c;\u8fd9\u65f6\u53ef\u4ee5\u8bbe\u7f6e\u5b9a\u65f6\u91cd\u542f\u3002\u5728Alpine\u4e2d\u53ef\u4ee5\u7528crontab\u8bbe\u7f6e\u6bcf\u5929\u81ea\u52a8\u91cd\u542f&#xff1a;<\/p>\n<p>crontab -e<\/p>\n<p>\u6dfb\u52a0\u4e00\u884c&#xff1a;<\/p>\n<p>0 3 * * * \/root\/start_ha.sh<\/p>\n<p>\u8fd9\u6837\u6bcf\u5929\u51cc\u66683\u70b9\u4f1a\u81ea\u52a8\u91cd\u542fHomeAssistant\u3002\u8bb0\u5f97\u5148kill\u6389\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u518d\u542f\u52a8\u3002<\/p>\n<h3>7. \u8fdb\u9636\u4f7f\u7528\u6280\u5de7<\/h3>\n<h4>7.1 \u5907\u4efd\u4e0e\u6062\u590d<\/h4>\n<p>\u914d\u7f6e\u597d\u4e0d\u5bb9\u6613\u914d\u597d\u4e86&#xff0c;\u4e00\u5b9a\u8981\u5b9a\u671f\u5907\u4efd\u3002\u6700\u91cd\u8981\u7684\u5c31\u662f\/root\/.homeassistant\u76ee\u5f55&#xff0c;\u91cc\u9762\u5305\u542b\u6240\u6709\u914d\u7f6e\u548c\u6570\u636e\u5e93\u3002<\/p>\n<p>\u53ef\u4ee5\u5199\u4e2a\u5907\u4efd\u811a\u672c&#xff1a;<\/p>\n<p>#!\/bin\/bash<br \/>\ntar -czf \/sdcard\/ha_backup_$(date &#043;%Y%m%d).tar.gz \/root\/.homeassistant<\/p>\n<p>\u7136\u540e\u5728Termux\u4e2d\u8bbe\u7f6e\u5b9a\u671f\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c\u3002\u5907\u4efd\u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728\u624b\u673a\u5b58\u50a8\u4e2d&#xff0c;\u65b9\u4fbf\u9700\u8981\u65f6\u6062\u590d\u3002<\/p>\n<h4>7.2 \u63d2\u4ef6\u5b89\u88c5\u4e0e\u7ba1\u7406<\/h4>\n<p>\u5728\u624b\u673a\u7aef\u5b89\u88c5HACS&#xff08;HomeAssistant\u793e\u533a\u5546\u5e97&#xff09;\u7684\u65b9\u6cd5\u548c\u666e\u901a\u5b89\u88c5\u4e00\u6837&#xff0c;\u4f46\u9700\u8981\u6ce8\u610f\u7f51\u7edc\u95ee\u9898\u3002\u6709\u65f6\u5019\u4e0b\u8f7d\u4f1a\u6bd4\u8f83\u6162&#xff0c;\u9700\u8981\u8010\u5fc3\u7b49\u5f85\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u5efa\u8bae\u53ea\u5b89\u88c5\u5fc5\u9700\u7684\u63d2\u4ef6&#xff0c;\u6bcf\u4e2a\u63d2\u4ef6\u90fd\u4f1a\u5360\u7528\u4e00\u5b9a\u7684\u7cfb\u7edf\u8d44\u6e90\u3002\u7279\u522b\u662f\u90a3\u4e9b\u9700\u8981\u9891\u7e41\u8f6e\u8be2\u7684\u63d2\u4ef6&#xff0c;\u53ef\u80fd\u4f1a\u6bd4\u8f83\u8017\u7535\u3002<\/p>\n<h4>7.3 \u5916\u90e8\u8bbf\u95ee\u914d\u7f6e<\/h4>\n<p>\u5982\u679c\u60f3\u8ba9HomeAssistant\u80fd\u88ab\u5916\u7f51\u8bbf\u95ee&#xff0c;\u5efa\u8bae\u4f7f\u7528\u4e91\u96a7\u9053\u670d\u52a1&#xff0c;\u6bd4\u5982Cloudflare Tunnel\u3002\u76f4\u63a5\u5728Alpine\u4e2d\u5b89\u88c5cloudflared&#xff0c;\u7136\u540e\u521b\u5efa\u96a7\u9053\u5373\u53ef\u3002<\/p>\n<p>\u4e0d\u5efa\u8bae\u76f4\u63a5\u66b4\u97327777\u7aef\u53e3\u5230\u516c\u7f51&#xff0c;\u8fd9\u6837\u4e0d\u592a\u5b89\u5168\u3002\u901a\u8fc7\u4e91\u96a7\u9053\u53ef\u4ee5\u589e\u52a0\u5b89\u5168\u6027&#xff0c;\u8fd8\u80fd\u7701\u53bb\u914d\u7f6eDDNS\u7684\u9ebb\u70e6\u3002<\/p>\n<p>\u6211\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u53d1\u73b0&#xff0c;\u624b\u673a\u8fd0\u884cHomeAssistant\u7684\u7a33\u5b9a\u6027\u5176\u5b9e\u76f8\u5f53\u4e0d\u9519&#xff0c;\u53ea\u8981\u914d\u7f6e\u5f97\u5f53&#xff0c;\u8fde\u7eed\u8fd0\u884c\u51e0\u5468\u90fd\u6ca1\u6709\u95ee\u9898\u3002\u5173\u952e\u662f\u9009\u5bf9Linux\u53d1\u884c\u7248&#xff08;Alpine\u786e\u5b9e\u662f\u6700\u4f73\u9009\u62e9&#xff09;&#xff0c;\u8fd8\u6709\u505a\u597d\u5fc5\u8981\u7684\u4f18\u5316\u8c03\u6574\u3002<\/p>\n<p>\u8017\u7535\u65b9\u9762&#xff0c;\u6d4b\u8bd5\u4e0b\u6765\u4e00\u53f0\u65e7\u624b\u673a\u8fd0\u884cHomeAssistant&#xff0c;24\u5c0f\u65f6\u8017\u7535\u91cf\u5927\u7ea6\u572820-30%\u5de6\u53f3&#xff0c;\u5efa\u8bae\u4e00\u76f4\u63d2\u7740\u7535\u6e90\u4f7f\u7528\u3002\u6e29\u5ea6\u63a7\u5236\u4e5f\u4e0d\u9519&#xff0c;\u4e0d\u4f1a\u51fa\u73b0\u8fc7\u70ed\u7684\u60c5\u51b5&#xff0c;\u6bd4\u60f3\u8c61\u4e2d\u8981\u7a33\u5b9a\u5f97\u591a\u3002<\/p>\n<p>\u5982\u679c\u9047\u5230\u7279\u522b\u96be\u89e3\u7684\u95ee\u9898&#xff0c;\u8bb0\u5f97\u53bbHomeAssistant\u5b98\u65b9\u8bba\u575b\u6216\u8005Reddit\u7684\u76f8\u5173\u7248\u5757\u6c42\u52a9&#xff0c;\u90a3\u91cc\u6709\u5f88\u591a\u70ed\u5fc3\u7684\u73a9\u5bb6\u613f\u610f\u5206\u4eab\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u65b9\u6848<br \/>\n\u6700\u8fd1\u5f88\u591a\u670b\u53cb\u90fd\u5728\u95ee&#xff0c;\u80fd\u4e0d\u80fd\u7528\u95f2\u7f6e\u7684\u5b89\u5353\u624b\u673a\u642d\u5efa\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u4e2d\u5fc3&#xff1f;\u6bd5\u7adf\u73b0\u5728\u8c01\u5bb6\u91cc\u6ca1\u51e0\u4e2a\u65e7\u624b\u673a&#xff0c;\u653e\u7740\u4e5f\u662f\u5403\u7070&#xff0c;\u4e0d\u5982\u62ff\u6765\u53d1\u6325\u4f59\u70ed\u3002\u6211\u81ea\u5df1\u4e5f\u662f\u4ece\u6811\u8393\u6d3e\u8f6c\u6218\u5230\u624b\u673a\u65b9\u6848\u7684&#xff0c;\u8bf4\u5b9e\u8bdd&#xff0c;\u8fd9\u6761\u8def\u786e\u5b9e\u6709\u70b9\u5751&#xff0c;\u4f46\u8d70\u901a\u4e86\u4e4b\u540e\u771f\u9999&#xff01;<br \/>\n\u5148\u8bf4\u8bf4\u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u8fd9\u4e2a\u7ec4\u5408\u3002Termux\u662f\u4e2a\u5f3a\u5927\u7684\u5b89\u5353\u7ec8\u7aef\u6a21\u62df\u5668&#xff0c;\u5b83\u80fd\u5728\u4e0droo<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8935,407,2115,43],"topic":[],"class_list":["post-79854","post","type-post","status-publish","format-standard","hentry","category-server","tag-homeassistant","tag-termux","tag-2115","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/79854.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u65b9\u6848 \u6700\u8fd1\u5f88\u591a\u670b\u53cb\u90fd\u5728\u95ee&#xff0c;\u80fd\u4e0d\u80fd\u7528\u95f2\u7f6e\u7684\u5b89\u5353\u624b\u673a\u642d\u5efa\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u4e2d\u5fc3&#xff1f;\u6bd5\u7adf\u73b0\u5728\u8c01\u5bb6\u91cc\u6ca1\u51e0\u4e2a\u65e7\u624b\u673a&#xff0c;\u653e\u7740\u4e5f\u662f\u5403\u7070&#xff0c;\u4e0d\u5982\u62ff\u6765\u53d1\u6325\u4f59\u70ed\u3002\u6211\u81ea\u5df1\u4e5f\u662f\u4ece\u6811\u8393\u6d3e\u8f6c\u6218\u5230\u624b\u673a\u65b9\u6848\u7684&#xff0c;\u8bf4\u5b9e\u8bdd&#xff0c;\u8fd9\u6761\u8def\u786e\u5b9e\u6709\u70b9\u5751&#xff0c;\u4f46\u8d70\u901a\u4e86\u4e4b\u540e\u771f\u9999&#xff01; \u5148\u8bf4\u8bf4\u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u8fd9\u4e2a\u7ec4\u5408\u3002Termux\u662f\u4e2a\u5f3a\u5927\u7684\u5b89\u5353\u7ec8\u7aef\u6a21\u62df\u5668&#xff0c;\u5b83\u80fd\u5728\u4e0droo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79854.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-03T03:49:51+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79854.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79854.html\",\"name\":\"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-03T03:49:51+00:00\",\"dateModified\":\"2026-03-03T03:49:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79854.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79854.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79854.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/79854.html","og_locale":"zh_CN","og_type":"article","og_title":"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u65b9\u6848 \u6700\u8fd1\u5f88\u591a\u670b\u53cb\u90fd\u5728\u95ee&#xff0c;\u80fd\u4e0d\u80fd\u7528\u95f2\u7f6e\u7684\u5b89\u5353\u624b\u673a\u642d\u5efa\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u4e2d\u5fc3&#xff1f;\u6bd5\u7adf\u73b0\u5728\u8c01\u5bb6\u91cc\u6ca1\u51e0\u4e2a\u65e7\u624b\u673a&#xff0c;\u653e\u7740\u4e5f\u662f\u5403\u7070&#xff0c;\u4e0d\u5982\u62ff\u6765\u53d1\u6325\u4f59\u70ed\u3002\u6211\u81ea\u5df1\u4e5f\u662f\u4ece\u6811\u8393\u6d3e\u8f6c\u6218\u5230\u624b\u673a\u65b9\u6848\u7684&#xff0c;\u8bf4\u5b9e\u8bdd&#xff0c;\u8fd9\u6761\u8def\u786e\u5b9e\u6709\u70b9\u5751&#xff0c;\u4f46\u8d70\u901a\u4e86\u4e4b\u540e\u771f\u9999&#xff01; \u5148\u8bf4\u8bf4\u4e3a\u4ec0\u4e48\u9009\u62e9TermuxAlpine\u8fd9\u4e2a\u7ec4\u5408\u3002Termux\u662f\u4e2a\u5f3a\u5927\u7684\u5b89\u5353\u7ec8\u7aef\u6a21\u62df\u5668&#xff0c;\u5b83\u80fd\u5728\u4e0droo","og_url":"https:\/\/www.wsisp.com\/helps\/79854.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-03T03:49:51+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79854.html","url":"https:\/\/www.wsisp.com\/helps\/79854.html","name":"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-03T03:49:51+00:00","dateModified":"2026-03-03T03:49:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79854.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79854.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79854.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u65e0\u9700Root\uff01Termux+Alpine\u6253\u9020\u7a33\u5b9aHomeAssistant\u670d\u52a1\u5668\u2014\u2014\u907f\u5751\u4e0e\u4f18\u5316\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=79854"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79854\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79854"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}