{"id":10268,"date":"2026-01-10T18:00:13","date_gmt":"2026-01-10T16:00:13","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=10268"},"modified":"2026-05-09T22:59:22","modified_gmt":"2026-05-09T20:59:22","slug":"comment-eviter-les-notifications-alexa-intempestives-avec-le-planificateur-home-assistant","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/zh\/comment-eviter-les-notifications-alexa-intempestives-avec-le-planificateur-home-assistant","title":{"rendered":"\u5982\u4f55\u907f\u514d\u4f7f\u7528 Home Assistant Scheduler \u7684 Alexa \u901a\u77e5\uff1f"},"content":{"rendered":"<p><strong>4\u70b932\u5206\uff0c\u661f\u671f\u516d\u65e9\u4e0a\u3002<\/strong> \u623f\u5b50\u76846 Alexa\u7684\u516c\u544a\u6495\u88c2\u4e86\u6c89\u9ed8\uff1a <strong>\u5f00\u59cb\u4e0b\u96e8\u4e86\uff01<\/strong> Alexa \u521a\u628a\u6574\u4e2a\u623f\u5b50\u90fd\u5435\u9192\u4e86 \u6211\u6ca1\u6709\u544a\u8bc9\u4f60\u65e9\u9910\u7684\u6c14\u6c1b\u3002 <strong>\u5f88\u68d2\u7684\u5f00\u59cb\u5230\u5468\u672b\u3002<\/strong><\/p>\n<p>\u539f\u56e0\uff1f \u6211\u7684\u96e8\u611f\u5e94\u5668\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/zh\/product\/zg-223z\/\" target=\"_blank\" rel=\"noopener\">ZG-223Z<\/a> \u5728\u51cc\u66684\u70b925\u5206\u68c0\u6d4b\u5230\u51e0\u6ef4\uff0c\u6211\u7684\u81ea\u52a8\u5316\u89e6\u53d1\u4e86Alexa\u5e7f\u544a\u3002 <em>\u4e0d\u53bb\u60f3\u65f6\u95f4<\/em>.<\/p>\n<p>\u6211\u60f3\u8981\u4e00\u4e2a\u89e3\u51b3\u65b9\u6848 <strong>\u7b80\u5355\uff0c\u672c\u5730\u5bb6\u5ead\u52a9\u7406<\/strong> \u8bf4\uff1a \u300b\u00a0<em>\u60a8\u4ec5\u5728\u5de5\u4f5c\u65e5\u4e0a\u53489\u70b9\u81f3\u665a\u4e0a9:30\u4e4b\u95f4\u5ba3\u5e03\uff0c\u5468\u672b\u4e0a\u534810\u70b9-10\u70b9<\/em>. \u5728\u6d4b\u8bd5\u4e86 input_datetime\u3001 \u591a\u4e2a\u81ea\u52a8\u5316\u548c\u590d\u6742\u811a\u672c\u4e4b\u540e\uff0c\u6211\u53d1\u73b0 <strong>\u89c4\u5212 \u8005<\/strong>. <strong>5\u5206\u949f\u7684\u914d\u7f6e\uff0c\u6c38\u8fdc\u4e0d\u4f1a\u518d\u6b21\u4e0d\u5408\u65f6\u5b9c\u7684\u89c9\u9192\u3002<\/strong><\/p>\n<p>\u6211\u544a\u8bc9\u4f60 <strong>\u6211\u7684\u6574\u4e2a\u65c5\u7a0b<\/strong>, <strong>\u4e00\u6b65\u4e00\u6b65<\/strong>, \u5c31\u50cf\u6211\u505a\u7684\u4e00\u6837\u3002<!--more--><\/p>\n<h2>\u6211\u7684\u8fdb\u653b\u8ba1\u5212<\/h2>\n<p>\u76ee\u6807\uff1a \u521b\u5efa a\u00a0<em>\u65f6\u95f4\u8868\u4fdd\u7ba1\u4eba<\/em>\u00a0\u6839\u636e\u65f6\u95f4+\u5929\u5bf9Alexa\u5e7f\u544a\u8bf4\u662f\/\u5426\u3002 \u6211\u9009\u62e9\u4e86 <strong>HA \u89c4\u5212 \u5e08<\/strong> \u56e0\u4e3a\uff1a<\/p>\n<ul>\n<li>\u6211 <strong>\u6ed1\u52a8 \u548c \u6ef4\u6ef4<\/strong> \u6211 \u7684 \u65f6\u95f4 \u63d2\u69fd<\/li>\n<li>\u5b83\u7ed9\u4e86\u6211\u4e00\u4e2a\u72b6\u6001\u3002 <strong>\u5f00\/\u5173\u95ed<\/strong> \u81ea\u52a8 \u81ea\u52a8<\/li>\n<li><strong>\u96f6\u4ee3\u7801<\/strong>, 100% \u4e3b\u9875 \u52a9\u7406 \u63a5\u53e3<\/li>\n<li>\u6211\u5728\u505a <strong>\u6761\u4ef6 \u6761\u4ef6<\/strong> \u5728\u6211\u6240\u6709\u7684\u81ea\u52a8\u5316\u4e2d<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u6b65\u9aa41\uff1a \u6211 \u521b\u5efa \u89c4\u5212<\/h2>\n<p><strong>\u6211 \u70b9\u51fb<\/strong> <em>\u8bbe\u7f6e \u2192 \u8bbe\u5907\u548c\u670d\u52a1 \u2192 \u8f93\u5165(Helpers)<\/em><\/p>\n<p><strong>\u6211 \u70b9\u51fb<\/strong> <em>\u521b\u5efa\u5165\u53e3 \u2192 Planner<\/em><\/p>\n<p><strong>\u6211 \u540d\u5b57<\/strong> : <code>\u6d88\u606f Alexa \u6388\u6743<\/code> \u81ea\u52a8\u5b9e\u4f53ID\uff1a <code>schedule.message_alexa_ \u5141\u8bb8<\/code><\/p>\n<p><strong>\u6211\u8bbe\u7f6e\u4e86\u6211\u7684\u8303\u56f4\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u661f\u671f\u4e00\u81f3\u661f\u671f\u4e94<\/strong> : 09:00 \u2192 21:30 \uff08\u84dd\u8272\uff09<\/li>\n<li><strong>\u661f\u671f\u516d<\/strong> : 08:30 \u2192 21:30 \uff08\u84dd\u8272\uff09<\/li>\n<li><strong>\u661f\u671f \u65e5 \u661f\u671f<\/strong> : 10:00 \u2192 21:30 \uff08\u84dd\u8272\uff09<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10271\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-162142.png\" alt=\"\" width=\"479\" height=\"418\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-162142.png 479w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-162142-300x262.png 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/p>\n<p>\u6211\u4fdd\u5b58\u548c\u53ef\u89c6\u5316\u4f20\u611f\u5668\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10272\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-165508.png\" alt=\"\" width=\"531\" height=\"236\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-165508.png 531w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-165508-300x133.png 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/p>\n<p>\u56e0\u6b64\uff0c\u5f53\u4f20\u611f\u5668\u88ab\u6fc0\u6d3b\u65f6\uff0cAlexa\u6709\u6743\u901a\u77e5\uff1a<\/p>\n<p><code>schedule.message_alexa_allows=ON<\/code><\/p>\n<p>&nbsp;<\/p>\n<h2>\u6b65\u9aa42\uff1a \u6211\u521b\u5efa\u4e00\u4e2a\u89c6\u89c9\u4f20\u611f\u5668\uff08\u53ef\u9009\uff09<\/h2>\n<p>\u4e3a\u4e86\u6211\u7684\u4eea\u8868\u677f\uff0c <strong>\u6211 \u4ee3\u7801<\/strong> \u8fd9\u4e2a \u4e8c\u8fdb\u5236 _sensor in my <code>\u6a21\u677f.yaml<\/code> :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u59d3\u540d\uff1a \"Alexa Authorized Messages\" \u552f\u4e00 _id\uff1a binary_sensor.alexa_messages_allowed \u72b6\u6001\uff1a {{{ is_state('schedule.message_alexa_ authorize', 'on')}} device_class\uff1a \u8fde\u63a5\u56fe\u6807 \uff1a &gt; {% if is_state('schedule.message_alexa_allow', 'on') %MDI:bell-badge {% \u5176\u4ed6 \u5176\u5b83 %MDI:bell-off {% Endif \u7684 %}<\/pre>\n<p><strong>HA \u91cd\u65b0 \u542f\u52a8<\/strong> \u2192 <code>binary_sensor.alexa_messages_allowed<\/code> \u770b\u8d77\u6765... <strong>\u6211\u52a0\u4e86<\/strong> \u6211\u7684\u56fe\u7247\u5143\u7d20\u4eea\u8868\u677f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10274\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170521.png\" alt=\"\" width=\"121\" height=\"121\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170521.png 121w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170521-100x100.png 100w\" sizes=\"auto, (max-width: 121px) 100vw, 121px\" \/><\/p>\n<h2>\u2699 \u6b65\u9aa4 3\uff1a \u6211\u4fdd\u62a4\u6211\u7684\u81ea\u52a8\u5316<\/h2>\n<p><strong>\u6211\u7684\u5178\u578b\u4f8b\u5b50<\/strong> : \u96e8\u901a\u77e5\uff08\u8c01\u628a\u6211\u5435\u9192\u4e86\uff01\uff09<\/p>\n<p><em>\u4ee5\u524d<\/em> \u5371\u9669\u6027\uff1a Rain \u2192 \u76f4\u63a5\u516c\u544a \u2192 4h32\u5bb6\u5ead\u95f9\u949f<\/p>\n<p><em>\u4e4b\u540e<\/em> (secured)\uff1a Rain + Schedule ON \u2192 \u516c\u544a \u5426\u5219\uff1a \u6c89\u9ed8 - \u5b89\u9759<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u5316\u540d \uff1a \u96e8\u6c34\u5b89\u5168\u63cf\u8ff0\uff1a \"Rain Detected AND Time OK\" \u89e6\u53d1\u5668\uff1a Entent_id \uff1a binary_sensor.pluie_en_cours # \u6211\u7684ZG-223Z\uff1a \u300e\u5173\u95ed\u300f\u5230\uff1a \"on\" \u7528\u4e8e\uff1a \u7b2c\u4e8c\uff1a 20 # \u53cd\u5047\u9633\u6027\u6761\u4ef6\uff1a \u6761\u4ef6\uff1a \u56fd\u5bb6\u5b9e\u4f53_id\uff1a schedule.message_alexa_ \u5141\u8bb8 # My GUARDIAN! \u300e\u4e0a\u300f\u884c\u52a8\uff1a \u670d\u52a1\uff1a Notify.alexa _media _partout \u6570\u636e\uff1a \u7559\u8a00\uff1a \u5916\u9762\u5f00\u59cb\u4e0b\u96e8\u4e86\uff01 \u95ed\u5408\u767e\u53f6\u7a97\uff0c\u6d47\u6c34\u5207\u5272\"\u6570\u636e\uff1a \u7c7b\u578b \uff1a \u5ba3\u5e03 - \u5ef6\u8fdf\uff1a \"00:00:02\"\u6a21\u5f0f\uff1a \u5355 \u4eba \u5355<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10276\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170709.png\" alt=\"\" width=\"556\" height=\"128\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170709.png 556w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/Capture-decran-2026-01-10-170709-300x69.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p><strong>\u6d4b\u8bd5 \uff1a<\/strong> 4pm \u2192 Simulated Rain \u2192 \u300aIt's Raining!<\/p>\n<p><strong>\u6d4b\u8bd5 \uff1a<\/strong> 23h \u6a21\u62df\u96e8 <em>\u5b8c\u5168\u6c89\u9ed8<\/em> \u2705<\/p>\n<h2>1. My Pro tips(exlicit for startners)<\/h2>\n<h3>1. \u667a\u80fd\u4eea\u8868\u677f\u5fbd\u7ae0<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u7c7b\u578b\uff1a \u6761\u4ef6\u6761\u4ef6\uff1a - \u5b9e\u4f53\uff1a binary_sensor.alexa_messages_allowed \u72b6\u6001\uff1a \"on\"\u5143\u7d20\uff1a \u7c7b\u578b\uff1a \u56fd\u5bb6\u7279\u8bb8\u7ecf\u8425\u5b9e\u4f53\uff1a binary_sensor.alexa_messages_allowed \u6837\u5f0f\uff1a \u9876\u90e8\uff1a 85% \u5de6\uff1a 5% card-mod-icon-color\uff1a \u7eff\u8272 \u7eff\u8272<\/pre>\n<p><strong>\u51fa\u73b0\u5728GREEN<\/strong> \u5982\u679c\u8fd8\u597d\u7684\u8bdd <strong>\u9690\u5f62 \u7684<\/strong> \u5426\u5219... \u9b54\u6cd5\uff01<\/p>\n<h3>2. \u8f7b\u677e \u8c03\u8bd5<\/h3>\n<p><em>\u5f00\u53d1 \u5de5\u5177 \u2192 \u6a21\u677f<\/em> \u2192 <code>{ States\uff08'schedule.message _alexa _\u6388\u6743'\uff09}<\/code> \u77ac\u95f4\uff01<\/p>\n<p>\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u4f20\u611f\u5668\u503c\u3002<\/p>\n<h2>1\u5468\u4e4b\u540e\u7684\u5224\u51b3<\/h2>\n<p><strong>\u2705 <\/strong><em>\u52a0\u4e0a\u4e00\u4e2a\u4e0d\u5408\u65f6\u5b9c\u7684\u89c9\u9192<\/em>. \u5bb6\u4eba\u7761\u7740\u4e86\uff0c\u6211\u662f\u7985\u3002<\/p>\n<p><strong>\u2705 5 \u5206\u949f<\/strong> \u521d\u59cb\u914d\u7f6e\uff0c\u7136\u540e\u5168\u90e8\u81ea\u52a8\u3002<\/p>\n<p><strong>Visual \u2705 \uff1a<\/strong> \u5f69\u8272\u8303\u56f4\uff0c\u4eea\u8868\u677f\u5fbd\u7ae0\uff0c\u6e05\u6670\u7684\u65e5\u5fd7\u3002<\/p>\n<p><strong>\u2705 Natif\uff1a<\/strong> \u96f6\u5916\u90e8\u4f9d\u8d56\uff0c\u6613\u4e8e\u5347\u7ea7\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10281\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo.jpg\" alt=\"\" width=\"347\" height=\"347\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo-300x300.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo-150x150.jpg 150w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo-768x768.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo-600x600.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/01\/dodo-100x100.jpg 100w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>4\u70b932\u5206\uff0c\u661f\u671f\u516d\u65e9\u4e0a\u3002 \u623f\u5b50\u76846 Alexa\u7684\u516c\u544a\u6495\u88c2\u4e86\u6c89\u9ed8\uff1a \"\u5f00\u59cb\u4e0b\u96e8\u4e86\uff01\"Alexa\u521a\u521a\u628a\u6574\u4e2a\u623f\u5b50\u90fd\u5435\u9192\u4e86\u3002 \u6211\u6ca1\u6709\u544a\u8bc9\u4f60\u65e9\u9910\u7684\u6c14\u6c1b\u3002 \u5f88\u68d2\u7684\u5f00\u59cb\u5230\u5468\u672b\u3002 \u539f\u56e0\uff1f \u6211\u7684\u96e8\u4f20\u611f\u5668ZG-223Z\u57284\u70b925\u5206\u68c0\u6d4b\u5230\u4e86\u51e0\u6ef4\uff0c\u800c\u6211\u7684[\u2026]<\/p>","protected":false},"author":1,"featured_media":10411,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,166],"tags":[],"class_list":["post-10268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-home-assistant","category-retex"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/10268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/comments?post=10268"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/10268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media\/10411"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media?parent=10268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/categories?post=10268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/tags?post=10268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}