{"id":10020574,"date":"2024-12-31T09:24:08","date_gmt":"2024-12-31T01:24:08","guid":{"rendered":"https:\/\/itmax.cn\/?p=10020574"},"modified":"2024-12-31T09:24:08","modified_gmt":"2024-12-31T01:24:08","slug":"%e5%b0%8f%e7%b1%b3%e6%ad%a3%e5%bc%8f%e5%ae%98%e5%ae%a3%e5%bc%80%e6%ba%90%ef%bc%81%e6%9d%80%e7%96%af%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10020574","title":{"rendered":"\u5c0f\u7c73\u6b63\u5f0f\u5b98\u5ba3\u5f00\u6e90\uff01\u6740\u75af\u4e86\uff01"},"content":{"rendered":"<p>\u6700\u8fd1\uff0c\u548c\u5f80\u5e38\u4e00\u6837\u5728\u5237 GitHub Trending \u70ed\u699c\u65f6\uff0c\u7a81\u7136\u770b\u5230\u53c8\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u51b2\u4e0a\u4e86 Trending \u699c\u5355\u3002<\/p>\n<p>\u4e00\u5929\u4e4b\u5185\u5c31\u72c2\u63fd\u6570\u5343 star\uff0c\u4ec5\u4ec5\u7528\u4e24\u4e09\u5929\u65f6\u95f4\uff0cstar \u6570\u5c31\u8fc5\u901f\u7834\u4e07\uff0c\u589e\u957f\u66f2\u7ebf\u90fd\u5feb\u5e72\u5782\u76f4\u4e86\uff01<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689826\" alt=\"\" title=\"\"><\/p>\n<p>\u51fa\u4e8e\u597d\u5947\uff0c\u70b9\u8fdb\u53bb\u770b\u4e86\u770b\u3002<\/p>\n<p>\u597d\u5bb6\u4f19\uff0c\u8fd9\u5c45\u7136\u8fd8\u662f<strong>\u5c0f\u7c73\u5f00\u6e90\u7684\u9879\u76ee<\/strong>\uff0c\u76f8\u4fe1\u4e0d\u5c11\u5c0f\u4f19\u4f34\u4e5f\u5237\u5230\u4e86\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689827\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u540d\u4e3a\uff1a<strong>ha_xiaomi_home<\/strong>\u3002<\/p>\n<p>\u5168\u79f0\uff1a<strong>Xiaomi Home Integration for Home Assistant<\/strong>\u3002<\/p>\n<p>\u539f\u6765\u8fd9\u5c31\u662f\u5c0f\u7c73\u5f00\u6e90\u7684 <strong>Home Assistant \u7c73\u5bb6\u96c6\u6210<\/strong>\uff0c\u4e00\u4e2a\u7531\u5c0f\u7c73\u5b98\u65b9\u63d0\u4f9b\u652f\u6301\u7684 Home Assistant \u96c6\u6210\u7ec4\u4ef6\uff0c\u5b83\u53ef\u4ee5\u8ba9\u7528\u6237\u5728 Home Assistant \u5e73\u53f0\u4e2d\u4f7f\u7528\u548c\u7ba1\u7406\u5c0f\u7c73 IoT \u667a\u80fd\u8bbe\u5907\u3002<\/p>\n<p>Home Assistant \u5927\u5bb6\u77e5\u9053\uff0c\u8fd9\u662f\u4e00\u6b3e<strong>\u5f00\u6e90\u7684<\/strong>\u5bb6\u5ead\u81ea\u52a8\u5316\u667a\u80fd\u5bb6\u5c45\u5e73\u53f0\uff0c\u4ee5\u5176\u5f00\u653e\u6027\u548c\u517c\u5bb9\u6027\u8457\u79f0\uff0c\u5176\u5141\u8bb8\u7528\u6237\u5c06\u5bb6\u4e2d\u7684\u667a\u80fd\u8bbe\u5907\u96c6\u6210\u5230\u4e00\u4e2a\u7edf\u4e00\u7684\u7cfb\u7edf\u4e2d\u8fdb\u884c\u7ba1\u7406\u548c\u63a7\u5236\uff0c\u540c\u65f6\u652f\u6301\u591a\u79cd\u534f\u8bae\u548c\u5e73\u53f0\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689828\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u901a\u8fc7 Home Assistant\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u7684\u81ea\u52a8\u5316\u63a7\u5236\uff0c\u5982\u667a\u80fd\u706f\u5149\u3001\u667a\u80fd\u5b89\u9632\u3001\u667a\u80fd\u6e29\u63a7\u7b49\uff0c\u6240\u4ee5\u662f\u4e0d\u5c11\u667a\u80fd\u5bb6\u5c45\u7231\u597d\u8005\u7684\u9009\u62e9\u3002<\/p>\n<p>\u53e6\u5916\u901a\u8fc7\u5b89\u88c5\u96c6\u6210\uff08Integration\uff09\uff0c\u7528\u6237\u53ef\u4ee5\u5728 Home Assistant \u4e0a\u5b9e\u73b0\u5bb6\u5c45\u8bbe\u5907\u7684\u81ea\u52a8\u5316\u573a\u666f\u521b\u5efa\uff0c\u5e76\u4e14\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u529f\u80fd\uff0c\u6240\u4ee5\u4e00\u76f4\u6bd4\u8f83\u53d7 DIY \u7231\u597d\u8005\u4eec\u7684\u559c\u7231\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689829\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5927\u5bb6\u77e5\u9053\uff0c\u5c0f\u7c73\u5728\u667a\u80fd\u5bb6\u5c45\u9886\u57df\u7684\u6218\u7565\u5e03\u5c40\u4e00\u76f4\u8fd8\u633a\u5927\u7684\uff0cIoT \u5e73\u53f0\u7684\u8fde\u63a5\u8bbe\u5907\u66f4\u662f\u6570\u4ee5\u4ebf\u8bb0\uff0c\u5927\u5230\u5404\u79cd\u5bb6\u7535\u3001\u7535\u5668\uff0c\u5c0f\u5230\u5404\u79cd\u6444\u50cf\u5934\u3001\u706f\u5149\u3001\u5f00\u5173\u3001\u4f20\u611f\u5668\uff0c\u4ea7\u54c1\u9762\u94fa\u5f97\u975e\u5e38\u5e7f\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689830\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u90a3\u8fd9\u6b21\u5c0f\u7c73\u5f00\u6e90\u7684\u8fd9\u4e2a\u6240\u8c13\u7684\u7c73\u5bb6\u96c6\u6210\u7ec4\u4ef6\uff0c\u8bb2\u767d\u4e86\u5c31\u662f<strong>\u7ed9 Home Assistant \u63d0\u4f9b\u5b98\u65b9\u89d2\u5ea6\u7684\u652f\u6301<\/strong>\u3002<\/p>\n<p>\u800c\u8fd9\u5bf9\u4e8e\u5f88\u591a\u559c\u6b22\u6298\u817e\u667a\u80fd\u5bb6\u5c45\u6216\u8005 IoT \u7269\u8054\u7f51\u8bbe\u5907\u7684\u5c0f\u4f19\u4f34\u6765\u8bf4\uff0c\u65e0\u7591\u4e5f\u7b97\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u6d88\u606f\u3002<\/p>\n<p>ha_xiaomi_home \u7684\u5b89\u88c5\u65b9\u6cd5\u6709\u597d\u51e0\u79cd\uff0c\u5305\u62ec\u76f4\u63a5 clone \u5b89\u88c5\uff0c\u501f\u52a9 HACS \u5b89\u88c5\uff0c\u6216\u8005\u901a\u8fc7 Samba \u6216 FTPS \u6765\u624b\u52a8\u5b89\u88c5\u7b49\u3002<\/p>\n<p>\u4f46\u662f\u5b98\u65b9\u662f\u63a8\u8350\u76f4\u63a5\u4f7f\u7528 git clone \u547d\u4ee4\u6765\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002<\/p>\n<pre><code>cd config\ngit clone https:\/\/github.com\/XiaoMi\/ha_xiaomi_home.git\ncd ha_xiaomi_home\n.\/install.sh \/config<\/code><\/pre>\n<p>\u539f\u56e0\u662f\uff0c\u8fd9\u6837\u4e00\u6765\u5f53\u7528\u6237\u60f3\u8981\u66f4\u65b0\u81f3\u7279\u5b9a\u7248\u672c\u65f6\uff0c\u53ea\u9700\u8981\u5207\u6362\u76f8\u5e94 Tag \u5373\u53ef\uff0c\u8fd9\u6837\u4f1a\u6bd4\u8f83\u65b9\u4fbf\u3002<\/p>\n<p>\u6bd4\u5982\uff0c\u60f3\u8981\u66f4\u65b0\u7c73\u5bb6\u96c6\u6210\u7248\u672c\u81f3 v1.0.0\uff0c\u53ea\u9700\u8981\u5982\u4e0b\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<pre><code>cd config\/ha_xiaomi_home\ngit checkout v1.0.0\n.\/install.sh \/config<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u5c31\u53ef\u4ee5\u53bb Home Assistant \u7684\u8bbe\u7f6e\u91cc\u9762\u53bb\u6dfb\u52a0\u96c6\u6210\u4e86\uff0c\u7136\u540e\u4f7f\u7528\u5c0f\u7c73\u8d26\u53f7\u767b\u5f55\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000045689831\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5176\u5b9e\u5728\u8fd9\u6b21\u5c0f\u7c73\u5b98\u65b9\u63a8\u51fa Home Assistant \u7c73\u5bb6\u96c6\u6210\u4e4b\u524d\uff0c\u5e02\u9762\u4e0a\u4e5f\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u7684\u7c73\u5bb6\u8bbe\u5907\u96c6\u6210\uff0c\u4f46\u662f\u591a\u591a\u5c11\u5c11\u4f1a\u6709\u4e00\u4e9b\u4e0d\u5b8c\u7f8e\u7684\u5730\u65b9\uff0c\u5178\u578b\u7684\u6bd4\u5982\u8bbe\u5907\u72b6\u6001\u54cd\u5e94\u5ef6\u65f6\uff0c\u6240\u4ee5\u5bfc\u81f4\u4f53\u9a8c\u5e76\u4e0d\u662f\u6700\u4f73\u3002<\/p>\n<p>\u4e0e\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u96c6\u6210\u76f8\u6bd4\uff0c\u5c0f\u7c73\u8fd9\u6b21\u65b0\u63a8\u51fa\u7684\u5b98\u65b9\u7c73\u5bb6\u96c6\u6210\u65e0\u8bba\u662f\u6027\u80fd\u8fd8\u662f\u5b89\u5168\u6027\u90fd\u53ef\u4ee5\u66f4\u671f\u5f85\u4e00\u4e0b\u3002<\/p>\n<p>\u5982\u5b98\u65b9\u6240\u8a00\uff0cHome Assistant \u7c73\u5bb6\u96c6\u6210\u63d0\u4f9b\u4e86\u5b98\u65b9\u7684 OAuth 2.0 \u767b\u5f55\u65b9\u5f0f\uff0c\u5e76\u4e0d\u4f1a\u5728 Home Assistant \u4e2d\u4fdd\u5b58\u7528\u6237\u7684\u8d26\u53f7\u5bc6\u7801\uff0c\u540c\u65f6\u8d26\u53f7\u5bc6\u7801\u4e5f\u4e0d\u518d\u9700\u63d0\u4f9b\u7ed9\u7b2c\u4e09\u65b9\uff0c\u56e0\u6b64\u4e5f\u5c31\u907f\u514d\u4e86\u8d26\u53f7\u5bc6\u7801\u6cc4\u9732\u7684\u98ce\u9669\u3002<\/p>\n<p>\u4f46\u662f\u8fd9\u91cc\u9762\u4ecd\u7136\u6709\u4e00\u4e2a\u95ee\u9898\u9700\u8981\u6ce8\u610f\uff0c\u9879\u76ee\u5b98\u65b9\u4e5f\u8bf4\u5f97\u5f88\u660e\u786e\uff1a\u867d\u8bf4 Home Assistant \u7c73\u5bb6\u96c6\u6210\u63d0\u4f9b\u4e86 OAuth \u7684\u767b\u5f55\u65b9\u5f0f\uff0c\u4f46\u7531\u4e8e Home Assistant \u5e73\u53f0\u7684\u9650\u5236\uff0c\u767b\u5f55\u6210\u529f\u540e\uff0c\u7528\u6237\u7684\u5c0f\u7c73\u7528\u6237\u4fe1\u606f\uff08\u5305\u62ec\u8bbe\u5907\u4fe1\u606f\u3001\u8bc1\u4e66\u3001 token \u7b49\uff09\u4f1a\u660e\u6587\u4fdd\u5b58\u5728 Home Assistant \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002\u56e0\u6b64\u7528\u6237\u9700\u8981\u4fdd\u7ba1\u597d\u81ea\u5df1\u7684 Home Assistant \u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u4e0d\u8981\u6cc4\u9732\u3002<\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u5f00\u6e90\u4e4b\u540e\uff0c\u5728\u7f51\u4e0a\u8fd8\u662f\u76f8\u5f53\u53d7\u6b22\u8fce\u7684\uff0c\u5f53\u7136\u8ba8\u8bba\u7684\u58f0\u97f3\u4e5f\u6709\u5f88\u591a\u3002<br \/>\u5c0f\u7c73\u4f5c\u4e3a\u4e00\u5bb6\u5546\u4e1a\u516c\u53f8\uff0c\u65e2\u7136\u4e13\u95e8\u641e\u4e86\u8fd9\u6837\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u6765\u505a HA \u7c73\u5bb6\u96c6\u6210\uff0c\u8fd9\u5bf9\u4e8e\u4ed6\u4eec\u6765\u8bf4\u4e0d\u7ba1\u662f\u5546\u4e1a\u8fd8\u662f\u4ea7\u54c1\uff0c\u80af\u5b9a\u90fd\u662f\u6709\u5229\u7684\u3002<\/p>\n<p>\u4e0d\u8fc7\u8bdd\u8bf4\u56de\u6765\uff0c\u6709\u4e86\u8fd9\u6837\u4e00\u4e2a\u7531\u5b98\u65b9\u63a8\u51fa\u7684\u5f00\u6e90\u96c6\u6210\u7ec4\u4ef6\uff0c\u4e0d\u8bba\u662f\u7528\u6237\u4f53\u9a8c\u8fd8\u662f\u53ef\u73a9\u6027\u90fd\u4f1a\u6709\u6240\u63d0\u5347\uff0c\u8fd9\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\u4e5f\u672a\u5c1d\u4e0d\u662f\u4e00\u4ef6\u597d\u4e8b\u3002<\/p>\n<p>\u90a3\u5173\u4e8e\u8fd9\u6b21\u5c0f\u7c73\u5b98\u65b9\u5f00\u6e90\u7684 Home Assistant \u7c73\u5bb6\u96c6\u6210\u9879\u76ee\uff0c\u5927\u5bb6\u600e\u4e48\u770b\u5462\uff1f<\/p>\n<blockquote><p>\u6ce8\uff1a\u672c\u6587\u5728GitHub\u5f00\u6e90\u4ed3\u5e93\u300c\u7f16\u7a0b\u4e4b\u8def\u300d <a href=\"https:\/\/link.segmentfault.com\/?enc=qorqG9vrf3bU0cOR%2BfeNJw%3D%3D.YvCiq0cEJWLUvavlm9WxN%2FsHF1tn5%2BkJjJrHYBFwwUg%2BNH6h4Clwij6fmGbnW1Ml\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/rd2coding\/Road2Coding<\/a> \u4e2d\u5df2\u7ecf\u6536\u5f55\uff0c\u91cc\u9762\u6709\u6211\u6574\u7406\u76846\u5927\u7f16\u7a0b\u65b9\u5411(\u5c97\u4f4d)\u7684\u81ea\u5b66\u8def\u7ebf+\u77e5\u8bc6\u70b9\u5927\u68b3\u7406\u3001\u9762\u8bd5\u8003\u70b9\u3001\u6211\u7684\u7b80\u5386\u3001\u51e0\u672c\u786c\u6838pdf\u7b14\u8bb0\uff0c\u4ee5\u53ca\u7a0b\u5e8f\u5458\u751f\u6d3b\u548c\u611f\u609f\uff0c\u6b22\u8fcestar\u3002<\/p><\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000045689824\">https:\/\/segmentfault.com\/a\/1190000045689824<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\uff0c\u548c\u5f80\u5e38\u4e00\u6837\u5728\u5237 GitHub Trending \u70ed\u699c\u65f6\uff0c\u7a81\u7136\u770b\u5230\u53c8\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u51b2\u4e0a\u4e86 Trending  [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10020574","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10020574"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10020574\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10020574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10020574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10020574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}