{"id":3134,"date":"2020-09-16T16:59:11","date_gmt":"2020-09-16T08:59:11","guid":{"rendered":"https:\/\/sumju.net\/?p=3134"},"modified":"2022-10-02T17:34:15","modified_gmt":"2022-10-02T17:34:15","slug":"node-red-%e6%8e%a7%e5%88%b6%e6%96%90%e8%ae%afdc1%e6%8f%92%e6%8e%92%ef%bc%8c%e5%90%8c%e6%97%b6%e6%8b%a5%e6%9c%89ui%e6%8e%a7%e5%88%b6-mqtt%e6%8e%a7%e5%88%b6-home-assistant%e8%87%aa%e5%8a%a8%e5%8f%91","status":"publish","type":"post","link":"https:\/\/sumju.net\/?p=3134","title":{"rendered":"Node-Red \u63a7\u5236\u6590\u8bafDC1\u63d2\u6392\uff0c\u540c\u65f6\u62e5\u6709UI\u63a7\u5236\/MQTT\u63a7\u5236\/Home Assistant\u81ea\u52a8\u53d1\u73b0"},"content":{"rendered":"<pre>\u4e00\u76f4\u5f88\u61d2\u6ca1\u6709\u53bb\u62c6DC1\u5237\u56fa\u4ef6\uff0c\u4e4b\u524d\u4e00\u76f4\u4f7f\u7528Home Assistant\u7684DC1\u63d2\u4ef6\u52ab\u6301\u57df\u540d\u6765\u4f7f\u7528\uff0c\u7528\u4e86\u4e00\u9635\u5b50\u53d1\u73b0\u7a33\u5b9a\u6027\u5f88\u5dee\uff0c\u540e\u6765\u53d1\u73b0\u7f51\u4e0a\u6709\u4e2aNode-Red\u7684\u6d41\u4e5f\u53ef\u4ee5\u63a7\u5236DC1\uff0c\u8bd5\u4e86\u4e00\u4e0b\uff0c\u679c\u7136\u7a33\u5b9a\uff0c\u679c\u65ad\u6539\u4e86\u6539\u652f\u6301\u4e86MQTT\uff0c\u96c6\u6210\u5230\u4e86Home Assistant\u91cc\u3002<\/pre>\n<p><a href=\"https:\/\/sumju.net\/?attachment_id=3136\" rel=\"attachment wp-att-3136\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3136\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/dc1.png?resize=1587%2C867&#038;ssl=1\" alt=\"\" width=\"1587\" height=\"867\" \/><\/a><\/p>\n<p>\u89c6\u9891\u6559\u7a0b\uff1a<\/p>\n<p><a href=\"https:\/\/youtu.be\/yVzCNbusr7g\" rel=\"attachment wp-att-3184\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3184 size-full\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/icloud-Max-Quality.jpg?resize=1920%2C1080&#038;ssl=1\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/a><\/p>\n<p>\u6590\u8bafDC1\u539f\u751f\u56fa\u4ef6\u52ab\u6301\u65b9\u6cd5\uff0c\u5229\u7528Node-Red\u63a5\u5165,\u5e76\u4e14\u5728Home Assistant\u7684MQTT\u4e2d\u53ef\u4ee5\u76f4\u63a5\u53d1\u73b04\u4e2a\u5f00\u5173\uff0c2\u4e2a\u4f20\u611f\u5668\uff0c\u5206\u522b\u4e3a\u4e00\u4e2a\u603b\u5f00\u5173\uff0c\u4e09\u4e2a\u5b50\u5f00\u5173\uff0c\u7535\u538b\uff0c\u529f\u7387\u4f20\u611f\u5668\u3002<\/p>\n<p><a href=\"https:\/\/sumju.net\/?attachment_id=3140\" rel=\"attachment wp-att-3140\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3140\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/%E6%8D%95%E8%8E%B7.png?resize=798%2C501&#038;ssl=1\" alt=\"\" width=\"798\" height=\"501\" \/><\/a><\/p>\n<p>Node-Red\u81ea\u5e26\u7f51\u9875\u63a7\u5236 http:\/\/node-red-ip-address:1880\/ui<br \/>\n<a href=\"https:\/\/sumju.net\/?attachment_id=3146\" rel=\"attachment wp-att-3146\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3146\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/%E6%8D%95%E8%8E%B71.png?resize=478%2C550&#038;ssl=1\" alt=\"\" width=\"478\" height=\"550\" \/><\/a><\/p>\n<p>Home Assistant \u7f51\u9875\u63a7\u5236<br \/>\n<a href=\"https:\/\/sumju.net\/?attachment_id=3154\" rel=\"attachment wp-att-3154\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3154\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/%E6%8D%95%E8%8E%B73-1.png?resize=586%2C344&#038;ssl=1\" alt=\"\" width=\"586\" height=\"344\" \/><\/a><\/p>\n<pre>\u672c\u6d41\u662f\u6839\u636e\u5927\u4f6c\u4eec\u539f\u6709\u6d41\u7a0b\u589e\u52a0MQTT\u548cHome Assistant\u81ea\u52a8\u53d1\u73b0\u800c\u6765\uff0c\u5e76\u4e14\u652f\u6301\u591aDC1\u63a5\u5165\u4f46\u9700\u8981\u81ea\u884c\u4fee\u6539\u3002\n\n\u4f7f\u7528\u65b9\u6cd5\uff1a\n1.\u8282\u70b9\u7ba1\u7406\u91cc\u5b89\u88c5 node-red-dashboard\u3002\n<a href=\"https:\/\/sumju.net\/?attachment_id=3158\" rel=\"attachment wp-att-3158\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3158\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/09\/3.png?resize=879%2C689&#038;ssl=1\" alt=\"\" width=\"879\" height=\"689\" \/><\/a>\n\n2.\u4e0b\u8f7d\u597d\u6d41\u6587\u4ef6\uff0c\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\uff0c\u628a\u6587\u4ef6\u5185\u6240\u6709MAC\u5730\u5740\u66ff\u6362\u4e3a\u4f60\u81ea\u5df1\u7684MAC\u5730\u5740\u518d\u5bfc\u5165Node-Red\u3002\n\n<\/pre>\n<pre>Node-Red \u4e00\u952e\u5b89\u88c5\n\nbash &lt;(curl -sL https:\/\/raw.githubusercontent.com\/node-red\/linux-installers\/master\/deb\/update-nodejs-and-nodered)\n\n<\/pre>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n<pre><div class=\"erphpdown erphpdown-see erphpdown-see-pay erphpdown-content-vip\" id=\"erphpdown\" style=\"display:block;\">\u6b64\u5185\u5bb9\u67e5\u770b\u4ef7\u683c\u4e3a<span class=\"erphpdown-price\">1.99<\/span>\u667a\u80fd\u5e01<a class=\"erphpdown-iframe erphpdown-buy\" href=\"https:\/\/sumju.net\/wp-content\/plugins\/erphpdown\/buy.php?postid=3134&timestamp=1781818203\" target=\"_blank\">\u7acb\u5373\u8d2d\u4e70<\/a><div class=\"erphpdown-tips\">\u4f60\u7684\u652f\u6301\u662f\u6211\u66f4\u65b0\u539f\u521b\u7684\u52a8\u529b\uff0c\u5982\u679c\u6709\u7591\u95ee\u8be6\u8be2qq:16900693<\/div><\/div><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u5f88\u61d2\u6ca1\u6709\u53bb\u62c6DC1\u5237\u56fa\u4ef6\uff0c\u4e4b\u524d\u4e00\u76f4\u4f7f\u7528Home Assistant\u7684DC1\u63d2\u4ef6\u52ab\u6301\u57df\u540d\u6765\u4f7f\u7528\uff0c\u7528&hellip; <a href=\"https:\/\/sumju.net\/?p=3134\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Node-Red \u63a7\u5236\u6590\u8bafDC1\u63d2\u6392\uff0c\u540c\u65f6\u62e5\u6709UI\u63a7\u5236\/MQTT\u63a7\u5236\/Home Assistant\u81ea\u52a8\u53d1\u73b0<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[35,98],"tags":[],"class_list":{"0":"post-3134","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-home-assistant","7":"category-node-red","8":"h-entry","10":"h-as-article"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/3134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3134"}],"version-history":[{"count":21,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/3134\/revisions"}],"predecessor-version":[{"id":6977,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/3134\/revisions\/6977"}],"wp:attachment":[{"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}