{"id":348,"date":"2023-07-17T22:15:13","date_gmt":"2023-07-17T14:15:13","guid":{"rendered":"http:\/\/blog.naspro.cc\/?p=348"},"modified":"2023-07-21T10:10:27","modified_gmt":"2023-07-21T02:10:27","slug":"%e4%b8%80%e4%b8%aa%e7%ae%80%e5%8d%95%e7%9a%84%e5%bc%80%e9%97%a8%e8%87%aa%e5%8a%a8%e5%bc%80%e7%81%af%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/blog.naspro.cc\/?p=348","title":{"rendered":"\u4e00\u4e2a\u7b80\u5355\u7684\u5b9a\u65f6\u5f00\u95e8\u81ea\u52a8\u5f00\u706f\u6d41\u7a0b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/p.tolan.link:1443\/i\/2023\/07\/21\/gly13c-0.png\" alt=\"\u7b80\u5355\u56fe\u5e8a - EasyImage\" \/><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/blog.naspro.cc\/?p=348\/#%e4%bb%a3%e7%a0%81\" title=\"\u4ee3\u7801\">\u4ee3\u7801<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/blog.naspro.cc\/?p=348\/#%e4%b8%8b%e8%bd%bd%e5%9c%b0%e5%9d%80\" title=\"\u4e0b\u8f7d\u5730\u5740\">\u4e0b\u8f7d\u5730\u5740<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%e4%bb%a3%e7%a0%81\"><\/span>\u4ee3\u7801<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre class=\"prettyprint linenums\" ><code class=\"language-json\">[\n    {\n        &quot;id&quot;: &quot;22eb91fa122ebca9&quot;,\n        &quot;type&quot;: &quot;tab&quot;,\n        &quot;label&quot;: &quot;\u5bb6\u5ead\u5df2\u7ecf\u90e8\u7f72\u7684\u81ea\u52a8\u5316&quot;,\n        &quot;disabled&quot;: false,\n        &quot;info&quot;: &quot;&quot;,\n        &quot;env&quot;: []\n    },\n    {\n        &quot;id&quot;: &quot;b0fb86d46810fbdc&quot;,\n        &quot;type&quot;: &quot;switch&quot;,\n        &quot;z&quot;: &quot;22eb91fa122ebca9&quot;,\n        &quot;name&quot;: &quot;\u83b7\u53d6\u95e8\u7a97\u4fe1\u606f&quot;,\n        &quot;property&quot;: &quot;payload&quot;,\n        &quot;propertyType&quot;: &quot;msg&quot;,\n        &quot;rules&quot;: [\n            {\n                &quot;t&quot;: &quot;eq&quot;,\n                &quot;v&quot;: &quot;on&quot;,\n                &quot;vt&quot;: &quot;str&quot;\n            },\n            {\n                &quot;t&quot;: &quot;eq&quot;,\n                &quot;v&quot;: &quot;off&quot;,\n                &quot;vt&quot;: &quot;str&quot;\n            }\n        ],\n        &quot;checkall&quot;: &quot;true&quot;,\n        &quot;repair&quot;: false,\n        &quot;outputs&quot;: 2,\n        &quot;x&quot;: 620,\n        &quot;y&quot;: 140,\n        &quot;wires&quot;: [\n            [],\n            []\n        ]\n    },\n    {\n        &quot;id&quot;: &quot;828c789a6e09a1b4&quot;,\n        &quot;type&quot;: &quot;server-state-changed&quot;,\n        &quot;z&quot;: &quot;22eb91fa122ebca9&quot;,\n        &quot;name&quot;: &quot;\u95e8\u7a97\u4f20\u611f\u5668&quot;,\n        &quot;server&quot;: &quot;1562ef53d113eab6&quot;,\n        &quot;version&quot;: 4,\n        &quot;exposeToHomeAssistant&quot;: false,\n        &quot;haConfig&quot;: [\n            {\n                &quot;property&quot;: &quot;name&quot;,\n                &quot;value&quot;: &quot;&quot;\n            },\n            {\n                &quot;property&quot;: &quot;icon&quot;,\n                &quot;value&quot;: &quot;&quot;\n            }\n        ],\n        &quot;entityidfilter&quot;: &quot;binary_sensor.0x00158d00026ab4db_contact&quot;,\n        &quot;entityidfiltertype&quot;: &quot;exact&quot;,\n        &quot;outputinitially&quot;: false,\n        &quot;state_type&quot;: &quot;str&quot;,\n        &quot;haltifstate&quot;: &quot;&quot;,\n        &quot;halt_if_type&quot;: &quot;str&quot;,\n        &quot;halt_if_compare&quot;: &quot;is&quot;,\n        &quot;outputs&quot;: 1,\n        &quot;output_only_on_state_change&quot;: true,\n        &quot;for&quot;: &quot;0&quot;,\n        &quot;forType&quot;: &quot;num&quot;,\n        &quot;forUnits&quot;: &quot;minutes&quot;,\n        &quot;ignorePrevStateNull&quot;: false,\n        &quot;ignorePrevStateUnknown&quot;: false,\n        &quot;ignorePrevStateUnavailable&quot;: false,\n        &quot;ignoreCurrentStateUnknown&quot;: false,\n        &quot;ignoreCurrentStateUnavailable&quot;: false,\n        &quot;outputProperties&quot;: [\n            {\n                &quot;property&quot;: &quot;payload&quot;,\n                &quot;propertyType&quot;: &quot;msg&quot;,\n                &quot;value&quot;: &quot;&quot;,\n                &quot;valueType&quot;: &quot;entityState&quot;\n            },\n            {\n                &quot;property&quot;: &quot;data&quot;,\n                &quot;propertyType&quot;: &quot;msg&quot;,\n                &quot;value&quot;: &quot;&quot;,\n                &quot;valueType&quot;: &quot;eventData&quot;\n            },\n            {\n                &quot;property&quot;: &quot;topic&quot;,\n                &quot;propertyType&quot;: &quot;msg&quot;,\n                &quot;value&quot;: &quot;&quot;,\n                &quot;valueType&quot;: &quot;triggerId&quot;\n            }\n        ],\n        &quot;x&quot;: 160,\n        &quot;y&quot;: 200,\n        &quot;wires&quot;: [\n            [\n                &quot;53d917f73c658e43&quot;\n            ]\n        ]\n    },\n    {\n        &quot;id&quot;: &quot;53d917f73c658e43&quot;,\n        &quot;type&quot;: &quot;time-range-switch&quot;,\n        &quot;z&quot;: &quot;22eb91fa122ebca9&quot;,\n        &quot;name&quot;: &quot;&quot;,\n        &quot;lat&quot;: &quot;31.40527&quot;,\n        &quot;lon&quot;: &quot;121.48941&quot;,\n        &quot;startTime&quot;: &quot;18:00&quot;,\n        &quot;endTime&quot;: &quot;02:00&quot;,\n        &quot;startOffset&quot;: &quot;0&quot;,\n        &quot;endOffset&quot;: &quot;0&quot;,\n        &quot;x&quot;: 390,\n        &quot;y&quot;: 200,\n        &quot;wires&quot;: [\n            [\n                &quot;b0fb86d46810fbdc&quot;\n            ],\n            []\n        ]\n    },\n    {\n        &quot;id&quot;: &quot;1562ef53d113eab6&quot;,\n        &quot;type&quot;: &quot;server&quot;,\n        &quot;name&quot;: &quot;Home Assistant&quot;,\n        &quot;version&quot;: 5,\n        &quot;addon&quot;: false,\n        &quot;rejectUnauthorizedCerts&quot;: true,\n        &quot;ha_boolean&quot;: &quot;y|yes|true|on|home|open&quot;,\n        &quot;connectionDelay&quot;: true,\n        &quot;cacheJson&quot;: true,\n        &quot;heartbeat&quot;: false,\n        &quot;heartbeatInterval&quot;: &quot;30&quot;,\n        &quot;areaSelector&quot;: &quot;friendlyName&quot;,\n        &quot;deviceSelector&quot;: &quot;friendlyName&quot;,\n        &quot;entitySelector&quot;: &quot;friendlyName&quot;,\n        &quot;statusSeparator&quot;: &quot;: &quot;,\n        &quot;statusYear&quot;: &quot;hidden&quot;,\n        &quot;statusMonth&quot;: &quot;short&quot;,\n        &quot;statusDay&quot;: &quot;numeric&quot;,\n        &quot;statusHourCycle&quot;: &quot;default&quot;,\n        &quot;statusTimeFormat&quot;: &quot;h:m&quot;,\n        &quot;enableGlobalContextStore&quot;: false\n    }\n]<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%e4%b8%8b%e8%bd%bd%e5%9c%b0%e5%9d%80\"><\/span><a href=\"http:\/\/tolan.link:5244\/%E7%BD%91%E7%AB%99\/%E4%B8%80%E4%B8%AA%E7%AE%80%E5%8D%95%E7%9A%84%E5%BC%80%E9%97%A8%E8%87%AA%E5%8A%A8%E5%BC%80%E7%81%AF%E6%B5%81%E7%A8%8B\" title=\"\u4e0b\u8f7d\u5730\u5740\">\u4e0b\u8f7d\u5730\u5740<\/a><span class=\"ez-toc-section-end\"><\/span><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee3\u7801 [ { &quot;id&quot;: &quot;22eb91fa122ebca9&quot;, &quot;type&quot;: &quot;tab&quot;, &quot;label&quot;: &quot;\u5bb6\u5ead\u5df2\u7ecf\u90e8\u7f72\u7684\u81ea\u52a8\u5316&quot;, &quot;disabled&quot;: false, &quot;info&quot;: &quot;&quot;, &quot;en [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[40],"class_list":["post-348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-home-assistant","tag-node-red"],"_links":{"self":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=348"}],"version-history":[{"count":0,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/348\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/media\/352"}],"wp:attachment":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}