{"id":725,"date":"2017-11-24T23:37:23","date_gmt":"2017-11-24T15:37:23","guid":{"rendered":"https:\/\/xujiwei.com\/blog\/?p=725"},"modified":"2017-11-28T17:26:09","modified_gmt":"2017-11-28T09:26:09","slug":"homeautomation-domoticz-events","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/","title":{"rendered":"\u73a9\u73a9\u667a\u80fd\u5bb6\u5c457\uff1aDomoticz \u4e2d\u7684 Events"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d497bca2b44\" class=\"ez-toc-cssicon-toggle-label\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d497bca2b44\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E6%97%B6%E9%97%B4%E5%B7%AE%E5%A4%84%E7%90%86\" title=\"\u65f6\u95f4\u5dee\u5904\u7406\">\u65f6\u95f4\u5dee\u5904\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E4%BD%BF%E7%94%A8_UserVariable_%E8%AE%B0%E5%BD%95%E4%B8%8A%E6%AC%A1%E6%93%8D%E4%BD%9C%E6%97%B6%E9%97%B4\" title=\"\u4f7f\u7528 UserVariable \u8bb0\u5f55\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4\">\u4f7f\u7528 UserVariable \u8bb0\u5f55\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E6%A3%80%E6%B5%8B%E9%97%A8%E7%A3%81%E8%B6%85%E6%97%B6%E6%9C%AA%E5%85%B3%E9%97%AD\" title=\"\u68c0\u6d4b\u95e8\u78c1\u8d85\u65f6\u672a\u5173\u95ed\">\u68c0\u6d4b\u95e8\u78c1\u8d85\u65f6\u672a\u5173\u95ed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E5%BB%B6%E6%97%B6%E5%A4%84%E7%90%86\" title=\"\u5ef6\u65f6\u5904\u7406\">\u5ef6\u65f6\u5904\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E6%A0%B9%E6%8D%AE%E6%97%B6%E9%97%B4%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E5%BC%80%E5%85%B3%E7%81%AF\" title=\"\u6839\u636e\u65f6\u95f4\u5224\u65ad\u662f\u5426\u5f00\u5173\u706f\">\u6839\u636e\u65f6\u95f4\u5224\u65ad\u662f\u5426\u5f00\u5173\u706f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E5%AE%9A%E6%97%B6%E5%88%A4%E6%96%AD%E8%AE%BE%E5%A4%87%E5%9C%A8%E7%BA%BF\" title=\"\u5b9a\u65f6\u5224\u65ad\u8bbe\u5907\u5728\u7ebf\">\u5b9a\u65f6\u5224\u65ad\u8bbe\u5907\u5728\u7ebf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\" title=\"\u53c2\u8003\u8d44\u6599\">\u53c2\u8003\u8d44\u6599<\/a><\/li><\/ul><\/nav><\/div>\n<p>\u5728\u4f7f\u7528 Domoticz \u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u4e86\u907f\u514d\u8ba9 Domoticz \u53ea\u662f\u6210\u4e3a\u4e00\u4e2a\u624b\u673a\u4e0a\u7684\u9065\u63a7\u5668\uff0c\u5c31\u9700\u8981\u6839\u636e\u751f\u6d3b\u4f7f\u7528\u573a\u666f\u53bb\u5b9a\u5236\u4e00\u4e9b\u81ea\u52a8\u5316\u7684\u89c4\u5219\uff0c\u4f8b\u5982\u5728\u5929\u9ed1\u56de\u5bb6\u65f6\u81ea\u52a8\u6253\u5f00\u706f\uff0c\u53c8\u6216\u8005\u662f\u5728\u7761\u89c9\u4e4b\u540e\u81ea\u52a8\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u706f\uff0c\u5728\u8fd9\u4e2a\u65f6\u5019\uff0c\u5c31\u9700\u8981\u4f7f\u7528 Domoticz \u7684 Events \u7cfb\u7edf\u4e86\u3002<\/p>\n<p>Domoticz \u7684 Events \u652f\u6301\u5f88\u591a\u79cd\u7c7b\u8bed\u8a00\u7684\u7f16\u7801\uff0c\u5176\u4e2d\u8fd8\u5305\u62ec\u56fe\u5f62\u5316\u7684\u914d\u7f6e\u5de5\u5177 Blockly\u3002<\/p>\n<p>\u5f53\u7136\u8fd9\u91cc\u5e76\u4e0d\u4f1a\u53bb\u4ecb\u7ecd Blockly \u7684\u914d\u7f6e\u65b9\u5f0f\uff0c\u56e0\u4e3a\u4f7f\u7528\u7f16\u7801\u7684\u65b9\u5f0f\u53ef\u4ee5\u5f97\u5230\u66f4\u7ec6\u7c92\u5ea6\u7684\u63a7\u5236\uff0c\u4ee5\u53ca\u66f4\u81ea\u7531\u7684\u573a\u666f\u6761\u4ef6\u63a7\u5236\u3002<\/p>\n<p>\u8fd9\u91cc\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e9b\u5904\u7406\u4e8b\u4ef6\u65f6\u7684\u6280\u5de7\u548c\u601d\u8def\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%97%B6%E9%97%B4%E5%B7%AE%E5%A4%84%E7%90%86\"><\/span>\u65f6\u95f4\u5dee\u5904\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u4e8b\u4ef6\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u6700\u91cd\u8981\u7684\u4e00\u4ef6\u4e8b\u5c31\u662f\u5224\u65ad\u4e8b\u4ef6\u53d1\u751f\u7684\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u95f4\u5dee\uff0c\u901a\u8fc7\u8fd9\u4e2a\u65f6\u95f4\u5dee\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u6839\u636e\u4e0d\u540c\u7684\u65f6\u95f4\u5dee\u6765\u8fbe\u5230\u4e0d\u540c\u7684\u76ee\u7684\u3002<\/p>\n<pre><code>now = os.date('*t')\n\nfunction timedifference (s)\n  year = string.sub(s, 1, 4)\n  month = string.sub(s, 6, 7)\n  day = string.sub(s, 9, 10)\n  hour = string.sub(s, 12, 13)\n  minutes = string.sub(s, 15, 16)\n  seconds = string.sub(s, 18, 19)\n  t1 = os.time()\n  t2 = os.time{year=year, month=month, day=day, hour=hour, min=minutes, sec=seconds}\n  difference = os.difftime (t1, t2)\n  return difference\nend\n<\/code><\/pre>\n<p>\u76f4\u63a5\u4f7f\u7528 <code>timedifference(otherdevices_lastupdate['\u8bbe\u5907\u540d\u79f0'])<\/code> \u5c31\u53ef\u4ee5\u5f97\u5230\u5f53\u524d\u8ddd\u79bb\u8fd9\u4e2a\u8bbe\u5907\u72b6\u6001\u6700\u540e\u53d8\u5316\u7684\u65f6\u95f4\u4e86\u3002<\/p>\n<p><!--more--><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8_UserVariable_%E8%AE%B0%E5%BD%95%E4%B8%8A%E6%AC%A1%E6%93%8D%E4%BD%9C%E6%97%B6%E9%97%B4\"><\/span>\u4f7f\u7528 UserVariable \u8bb0\u5f55\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u67d0\u4e2a\u4e8b\u4ef6\u53d1\u751f\u540e\uff0c\u53ef\u80fd\u8fc7\u4e00\u6bb5\u65f6\u95f4\u624d\u4f1a\u89e6\u53d1\u901a\u77e5\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u4f7f\u7528 Time \u7c7b\u578b\u7684\u4e8b\u4ef6\u3002\u4f46\u662f\u5728\u53d1\u9001\u901a\u77e5\u4e4b\u540e\uff0c\u5f88\u53ef\u80fd\u89e6\u53d1\u901a\u77e5\u7684\u6761\u4ef6\u8fd8\u662f\u6ee1\u8db3\u7684\uff0c\u4e8e\u662f\u4e0b\u4e00\u5206\u949f\uff0c\u53c8\u4f1a\u91cd\u590d\u53d1\u9001\u901a\u77e5\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u53ef\u4ee5\u4f7f\u7528 UserVariable \u8bb0\u5f55\u4e0a\u6b21\u901a\u77e5\u65f6\u95f4\uff0c\u907f\u514d\u91cd\u590d\u53d1\u9001\u901a\u77e5\u3002<\/p>\n<pre><code>commandArray['Variable:\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4'] = tostring(os.time())\n<\/code><\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4<\/code> \u8fd9\u4e2a\u53d8\u91cf\u9700\u8981\u63d0\u524d\u5728 UserVariable \u9762\u677f\u4e2d\u6dfb\u52a0\u3002<\/p>\n<p>\u8fd9\u6837\uff0c\u5728\u4e0b\u6b21\u89e6\u53d1\u901a\u77e5\u65f6\uff0c\u53ef\u4ee5\u591a\u52a0\u4e00\u4e2a\u5224\u65ad\u6761\u4ef6\uff0c\u5c31\u53ef\u4ee5\u907f\u514d\u91cd\u590d\u901a\u77e5\u4e86\uff1a<\/p>\n<pre><code>if (sendNotication &amp;&amp; timedifference(uservariables_lastupdate['\u4e0a\u6b21\u64cd\u4f5c\u65f6\u95f4']) &gt; 300) {\n  commandArray['SendNotification'] = 'subject#message'\n}\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%B5%8B%E9%97%A8%E7%A3%81%E8%B6%85%E6%97%B6%E6%9C%AA%E5%85%B3%E9%97%AD\"><\/span>\u68c0\u6d4b\u95e8\u78c1\u8d85\u65f6\u672a\u5173\u95ed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6709\u4e9b\u65f6\u5019\u4f1a\u78b0\u5230\u5fd8\u8bb0\u5173\u95e8\u7684\u60c5\u51b5\uff0c\u53c8\u6216\u8005\u662f\u5173\u95e8\u65f6\u6ca1\u6709\u6ce8\u610f\u5230\u5bfc\u81f4\u95e8\u6ca1\u6709\u88ab\u5173\u597d\uff0c\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u80fd\u6709\u4e00\u4e2a\u901a\u77e5\u63d0\u793a\u5c31\u6bd4\u8f83\u597d\u4e86\u3002\u901a\u8fc7\u52a0\u4e00\u4e2a\u95e8\u78c1\u518d\u4e0a\u8d85\u65f6\u68c0\u6d4b\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<pre><code>if otherdevices['\u5165\u6237\u95e8\u78c1'] == 'Open' and timedifference(otherdevices_lastupdate['\u5165\u6237\u95e8\u78c1']) &gt; 300 then\n    commandArray['SendNotification'] = '\u5165\u6237\u95e8\u672a\u5173'\nend\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u5728\u5165\u6237\u95e8\u78c1\u5904\u4e8e Open \u72b6\u6001\uff0c\u5e76\u4e14\u8d85\u8fc7 300 \u79d2\u4e5f\u5c31\u662f 5 \u5206\u949f\u540e\uff0c\u5c31\u4f1a\u53d1\u9001\u4e00\u4e2a\u901a\u77e5\u5230\u7528\u6237\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%BB%B6%E6%97%B6%E5%A4%84%E7%90%86\"><\/span>\u5ef6\u65f6\u5904\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u901a\u5e38\u6211\u4eec\u4f1a\u6709\u901a\u8fc7\u4eba\u4f53\u4f20\u611f\u5668\u72b6\u6001\u6765\u63a7\u5236\u706f\u7684\u5f00\u548c\u5173\uff0c\u4f46\u662f\u5728\u5904\u7406\u5173\u7684\u65f6\u5019\uff0c\u5e76\u4e0d\u5efa\u8bae\u68c0\u6d4b\u5230\u4eba\u4f53\u4f20\u611f\u5668\u72b6\u6001\u53d8\u4e3a\u65e0\u4eba\u5c31\u7acb\u5373\u5173\u95ed\u706f\uff0c\u8fd9\u6837\u53ef\u80fd\u4f1a\u5bfc\u81f4\u706f\u88ab\u9891\u7e41\u5f00\u548c\u5173\u3002\u56e0\u6b64\u5728\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u540c\u65f6\u5224\u65ad\u4eba\u4f53\u4f20\u611f\u5668\u7684\u72b6\u6001\u548c\u5b83\u6700\u540e\u66f4\u65b0\u7684\u65f6\u95f4\u95f4\u9694\uff1a<\/p>\n<pre><code>function checkPIROffWithDelay(name, delay)\n    if otherdevices[name] == 'Off' and timedifference(otherdevices_lastupdate[name]) &gt; delay then\n        return true\n    end\n    return false\nend\n<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E6%A0%B9%E6%8D%AE%E6%97%B6%E9%97%B4%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E5%BC%80%E5%85%B3%E7%81%AF\"><\/span>\u6839\u636e\u65f6\u95f4\u5224\u65ad\u662f\u5426\u5f00\u5173\u706f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u56de\u5bb6\u5f00\u95e8\u7684\u65f6\u5019\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u65f6\u95f4\u6765\u5224\u65ad\u662f\u5426\u5f00\u706f\uff0c\u4f8b\u5982\u53ea\u6709\u5728\u592a\u9633\u4e0b\u5c71\u4e4b\u540e\u624d\u5f00\u706f\uff0c\u6216\u8005\u6307\u5b9a\u65f6\u95f4\u5185\u90fd\u6253\u5f00\u706f\uff1a<\/p>\n<pre><code>if (devicechanged['\u5165\u6237\u95e8\u78c1'] == 'Open' and timeofday['Nighttime']) then\n    commandArray['\u7384\u5173\u706f'] = 'On'\nend\n<\/code><\/pre>\n<p>\u901a\u8fc7 <code>timeofday['Nighttime']<\/code> \u53ef\u4ee5\u7528\u6765\u5224\u65ad\u662f\u5426\u5904\u4e8e\u592a\u9633\u4e0b\u5c71\u4e4b\u540e\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u81ea\u5df1\u52a0\u4e2a\u53d8\u91cf\u6765\u5224\u65ad\u662f\u5426\u5904\u4e8e\u81ea\u5b9a\u4e49\u7684\u4e00\u4e2a\u65f6\u95f4\u533a\u95f4\uff0c\u53ef\u4ee5\u66f4\u65e9\u7684\u6253\u5f00\u706f\uff1a<\/p>\n<pre><code>now = os.date('*t')\nmyNighttime = now.hour &lt; 8 and now.hour &gt; 16\n<\/code><\/pre>\n<p>\u4e0a\u9762\u7684\u6761\u4ef6\u5c31\u662f\u5728\u4e0b\u5348 4 \u70b9\u4e4b\u540e\uff0c\u65e9\u4e0a 8 \u70b9\u4e4b\u524d\uff0c\u90fd\u8ba4\u4e3a\u662f\u9700\u8981\u6253\u5f00\u706f\u7684\u65f6\u95f4\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%9A%E6%97%B6%E5%88%A4%E6%96%AD%E8%AE%BE%E5%A4%87%E5%9C%A8%E7%BA%BF\"><\/span>\u5b9a\u65f6\u5224\u65ad\u8bbe\u5907\u5728\u7ebf<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7535\u89c6\u9065\u63a7\u5668\u4e0a\u7684\u7535\u6e90\u5f00\u5173\u662f\u4e0d\u533a\u5206\u5f00\u548c\u5173\u7684\u6307\u4ee4\u7684\uff0c\u8fd9\u5c31\u5bfc\u81f4\u5982\u679c\u9700\u8981\u4f7f\u7528\u7ea2\u5916\u9065\u63a7\u6765\u64cd\u4f5c\u7535\u89c6\u7535\u6e90\u7684\u65f6\u5019\uff0c\u9700\u8981\u63d0\u524d\u5224\u65ad\u7535\u89c6\u662f\u5426\u5904\u4e8e\u6253\u5f00\u72b6\u6001\uff0c\u9632\u6b62\u51fa\u73b0\u60f3\u8981\u6253\u5f00\u7535\u89c6\uff0c\u4f46\u662f\u7535\u89c6\u7535\u6e90\u5df2\u7ecf\u6253\u5f00\u7684\u60c5\u51b5\u4e0b\uff0c\u53c8\u53d1\u9001\u4e86\u7535\u6e90\u6307\u4ee4\uff0c\u5bfc\u81f4\u7535\u89c6\u88ab\u5173\u95ed\u3002<\/p>\n<pre><code>if timedifference(otherdevices_lastupdate['\u677e\u4e0b']) &gt; 60 and otherdevices['\u677e\u4e0b'] == 'On' then\n    commandArray['UpdateDevice'] = '136|0|0'\nend\n<\/code><\/pre>\n<p>\u8fd9\u6837\u6302\u4e00\u4e2a ESP8266 \u5728\u7535\u89c6\u7684 USB \u63a5\u53e3\u4e0a\uff0c\u8bbe\u7f6e\u66f4\u65b0\u65f6\u95f4\u4e3a 30 \u79d2\uff0c\u5728 Domoticz \u4e2d\u6bcf 60 \u79d2\u68c0\u6d4b\u4e00\u6b21\u8bbe\u5907\u72b6\u6001\u6709\u6ca1\u6709\u88ab\u66f4\u65b0\uff0c\u5982\u679c\u6ca1\u6709\u66f4\u65b0\u5c31\u8bf4\u660e\u7535\u89c6\u7535\u6e90\u5df2\u7ecf\u88ab\u5173\u95ed\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\"><\/span>\u53c2\u8003\u8d44\u6599<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li><a href=\"http:\/\/www.domoticz.com\/wiki\/LUA_commands\">Domoticz: LUA commands<\/a><\/li>\n<\/ol>\n<p>---EOF---<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f7f\u7528 Domoticz \u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e3a\u4e86\u907f\u514d\u8ba9 Domoticz \u53ea\u662f\u6210\u4e3a\u4e00\u4e2a\u624b &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2017\/11\/homeautomation-domoticz-events\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[167],"tags":[251,259,270,255,254],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/725"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=725"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/725\/revisions"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}