[{"data":1,"prerenderedAt":11783,"buildId":11784},["ShallowReactive",2],{"$frh4y29kg23n2":3,"docs-items-zh-Hans":9,"spook-counts":1193,"zh-Hans:\u002Fother-features":1712,"zh-Hans:modified:02.features\u002F02.other-features":13},{"installations":4,"stars":5,"release":6},31252,1850,{"version":7,"date":8},"v5.12.0","2026-11-26T16:39:45Z",[10,17,30,43,54,59,72,82,93,98,109,120,131,141,152,163,173,184,196,206,217,222,234,253,267,338,348,358,368,415,429,439,449,459,471,515,529,539,549,559,569,580,590,600,610,620,634,644,658,680,694,704,716,728,738,776,786,796,808,824,834,844,856,868,878,888,898,903,914,924,934,944,949,962,974,987,998,1009,1019,1024,1036,1048,1060,1071,1083,1095,1105,1110,1120,1130,1142,1147,1157,1169,1181],{"path":11,"title":12,"description":13,"stem":14,"navigation":15,"meta":16},"\u002Fgetting-started\u002F.navigation","Getting started 🚀",null,"01.getting-started\u002F.navigation",true,{},{"path":18,"title":19,"description":20,"stem":21,"navigation":22,"meta":24},"\u002Finstallation","在 Home Assistant 中安装 Spook","几分钟就能在 Home Assistant 中装好 Spook，从 Marketplace 或 HACS 安装，全部在 Home Assistant 界面中完成。一步一步来。","01.getting-started\u002F02.installation",{"title":23},"安装",{"subtitle":25,"offers":26,"counts":27,"repairs":28,"sections":29},"Don't worry, we'll go through it step-by-step.",[],{},[],3,{"path":31,"title":32,"description":33,"stem":34,"navigation":35,"meta":37},"\u002Fusage","你和 Spook 的头十分钟","装好 Spook 之后的一个简短导览。看看它在你的 Home Assistant 里发现了什么问题，试试你的第一个新动作，再找到它添加的实体。","01.getting-started\u002F03.usage",{"title":36},"头十分钟",{"subtitle":38,"offers":39,"counts":40,"repairs":41,"sections":42},"Spook is oddly familiar.",[],{},[],4,{"path":44,"title":45,"description":46,"stem":47,"navigation":15,"meta":48},"\u002Fsupport","支持","Spook 不受 Home Assistant 项目支持，但能找到帮助的地方有很多。这个页面告诉你该去哪里。","01.getting-started\u002F05.support",{"subtitle":49,"offers":50,"counts":51,"repairs":52,"sections":53},"Getting directions in this rollercoaster theme park. 🎢",[],{},[],6,{"path":55,"title":56,"description":13,"stem":57,"navigation":15,"meta":58},"\u002Ffeatures\u002F.navigation","More features","02.features\u002F.navigation",{},{"path":60,"title":61,"description":62,"stem":63,"navigation":64,"meta":66},"\u002Fdocs","Spook 添加的一切","Spook 为 Home Assistant 添加的一切，按所在位置分类。选一个部分看，或者按名称查找动作、触发条件、条件或修复。","02.features\u002F00.docs",{"title":65},"概览",{"subtitle":67,"offers":68,"counts":69,"repairs":70,"sections":71},"You want to know what Spook can do for you? 🧪",[],{},[],0,{"path":73,"title":74,"description":75,"stem":76,"navigation":15,"meta":77},"\u002Fassistants","AI 助手","让 AI 助手问 Spook 你家里哪里出了问题、某样东西在哪里被用到，以及草稿自动化里有没有引用不存在的东西。仅限管理员，绝不经过语音助手。","02.features\u002F01.assistants",{"subtitle":78,"offers":79,"counts":80,"repairs":81,"sections":29},"Ghost hunting, now with a sidekick. 🤖",[],{},[],{"path":83,"title":84,"description":85,"stem":86,"navigation":15,"meta":87},"\u002Fother-features","其他功能","Spook 为 Home Assistant 提供的、不属于任何单个集成的触发条件、条件和动作。Cron 计划、看门狗、冷却时间等等。","02.features\u002F02.other-features",{"subtitle":88,"offers":89,"counts":91,"repairs":92,"sections":29},"Home of the useless, the fun, and the surprisingly handy. 🤡",[90],"actions",{"actions":29},[],{"path":94,"title":95,"description":13,"stem":96,"navigation":15,"meta":97},"\u002Fcore-extensions\u002F.navigation","Core extensions","03.core-extensions\u002F.navigation",{},{"path":99,"title":100,"description":101,"stem":102,"navigation":103,"meta":104},"\u002Fcore-extensions","核心扩展","Spook 为 Home Assistant 添加了动作，让你可以在自动化和脚本中管理集成、标签、类别、楼层、区域、设备、实体和用户。","03.core-extensions\u002F00.core-extensions",{"title":65},{"subtitle":105,"offers":106,"counts":107,"repairs":108,"sections":71},"It is like the turbo cartridge for your Commodore 64 🕹️",[],{},[],{"path":110,"title":111,"description":112,"stem":113,"navigation":15,"meta":114},"\u002Fintegrations","集成管理","Spook 为 Home Assistant 添加了启用和禁用集成、停止和开始轮询更新，以及忽略 Home Assistant 发现的所有东西的动作。","03.core-extensions\u002F01.integrations",{"subtitle":115,"offers":116,"counts":117,"repairs":119,"sections":29},"Integrate all the things! 🎉",[90],{"actions":118},5,[],{"path":121,"title":122,"description":123,"stem":124,"navigation":15,"meta":125},"\u002Flabels","标签管理","Spook 为 Home Assistant 添加了创建、更新和删除标签，以及给区域、设备和实体贴上或取下标签的动作，全都可以在你自己的自动化和脚本里完成。","03.core-extensions\u002F02.labels",{"subtitle":126,"offers":127,"counts":128,"repairs":130,"sections":29},"If you liked it then you should have put a label on it 🏷️",[90],{"actions":129},9,[],{"path":132,"title":133,"description":134,"stem":135,"navigation":15,"meta":136},"\u002Fcategories","类别管理","Spook 为 Home Assistant 添加的动作可以创建、更新和删除类别，并把自动化、脚本、场景和辅助元素归入类别，全部在你自己的自动化和脚本中完成。","03.core-extensions\u002F03.categories",{"subtitle":137,"offers":138,"counts":139,"repairs":140,"sections":29},"A place for everything, and everything in its place 🗂️",[90],{"actions":118},[],{"path":142,"title":143,"description":144,"stem":145,"navigation":15,"meta":146},"\u002Ffloors","楼层管理","Spook 添加了动作，让你可以在自动化和脚本中创建、修改和删除 Home Assistant 的楼层，并管理它们的别名和区域。","03.core-extensions\u002F04.floors",{"subtitle":147,"offers":148,"counts":149,"repairs":151,"sections":29},"Floors brings Home Assistant to a whole new level 🤪",[90],{"actions":150},8,[],{"path":153,"title":154,"description":155,"stem":156,"navigation":15,"meta":157},"\u002Fareas","区域管理","Spook 添加了在 Home Assistant 中创建、修改和删除区域，以及把设备和实体移入或移出区域的动作，直接在自动化和脚本里完成。","03.core-extensions\u002F05.areas",{"subtitle":158,"offers":159,"counts":160,"repairs":162,"sections":29},"Is there room for one more?",[90],{"actions":161},10,[],{"path":164,"title":165,"description":166,"stem":167,"navigation":15,"meta":168},"\u002Fdevices","设备管理","Spook 添加的动作可以在自动化和脚本中禁用、启用和更新 Home Assistant 中的设备。","03.core-extensions\u002F06.devices",{"subtitle":169,"offers":170,"counts":171,"repairs":172,"sections":29},"Which devices are you rocking? 🎸",[90],{"actions":29},[],{"path":174,"title":175,"description":176,"stem":177,"navigation":15,"meta":178},"\u002Fentities","实体管理","Spook 添加了动作，让你可以在自动化和脚本中管理 Home Assistant 的实体。禁用、隐藏、重命名、公开，设置图标和别名，以及清理孤立实体。","03.core-extensions\u002F07.entities",{"subtitle":179,"offers":180,"counts":181,"repairs":183,"sections":29},"Everything is an entity, and entities are everything 🪄",[90],{"actions":182},14,[],{"path":185,"title":186,"description":187,"stem":188,"navigation":15,"meta":189},"\u002Fdevices-entities","设备与实体","Spook 添加一个 Home Assistant 设备，带有重新加载和重启的按钮，以及统计你的实体、辅助元素、自动化、设备、集成等数量的传感器。","03.core-extensions\u002F08.devices-entities",{"subtitle":190,"offers":191,"counts":193,"repairs":195,"sections":29},"Can I haz more devices and entities? 😁",[192],"entities",{"entities":194},2,[],{"path":197,"title":198,"description":199,"stem":200,"navigation":15,"meta":201},"\u002Fusers","用户管理","Spook 添加了动作，让你可以在自动化和脚本中禁用和启用 Home Assistant 的用户账户。","03.core-extensions\u002F09.users",{"subtitle":202,"offers":203,"counts":204,"repairs":205,"sections":29},"Who's in your home? 👤",[90],{"actions":194},[],{"path":207,"title":208,"description":209,"stem":210,"navigation":15,"meta":211},"\u002Fmisc","其他","Spook 为 Home Assistant 的重启动作扩展了一个强制选项，用在正常重启行不通的时候。","03.core-extensions\u002F10.misc",{"subtitle":212,"offers":213,"counts":214,"repairs":216,"sections":29},"Oh, there is some more stuff here. 🦄",[90],{"actions":215},1,[],{"path":218,"title":219,"description":13,"stem":220,"navigation":15,"meta":221},"\u002Fenhanced-integrations\u002F.navigation","Integrations","04.enhanced-integrations\u002F.navigation",{},{"path":223,"title":224,"description":225,"stem":226,"navigation":227,"meta":229},"\u002Fenhanced-integrations","增强的集成","Spook 增强的每一个 Home Assistant 集成，以及它为每个集成带来的修复、动作和实体。找到你的集成，看看 Spook 加了什么。","04.enhanced-integrations\u002F00.enhanced-integrations",{"title":228},"所有集成",{"subtitle":230,"offers":231,"counts":232,"repairs":233,"sections":71},"A little bit of ectoplasm goes a long way. 🧪",[],{},[],{"path":235,"title":236,"description":237,"stem":238,"navigation":15,"meta":239},"\u002Falert","警报","警报因为不该有的原因安静下来时，Spook 会告诉你，比如它监视的实体已经不存在，或者它通过 Home Assistant 没有的动作发通知。","04.enhanced-integrations\u002F01.alert",{"subtitle":240,"offers":241,"counts":243,"repairs":244,"sections":194},"An alarm nobody hears is just furniture.",[242],"repairs",{"repairs":194},[245,249],{"id":246,"title":247,"summary":248},"unknown-watched-entity","Unknown watched entity","An alert watches an entity that no longer exists, usually because it was renamed or removed. The alert can never fire again, and it looks exactly like an alert with nothing to report.",{"id":250,"title":251,"summary":252},"unknown-notifiers","Unknown notifiers","An alert sends its notifications through an action Home Assistant does not have. The alert still fires, repeats and can be acknowledged, but the notification goes nowhere.",{"path":254,"title":255,"description":256,"stem":257,"navigation":15,"meta":258},"\u002Fassist-pipeline","Assist 管道","语音助手用到的对话代理，或者语音、发声、唤醒词引擎已经不存在时，Spook 会告诉你。","04.enhanced-integrations\u002F02.assist-pipeline",{"subtitle":259,"offers":260,"counts":261,"repairs":262,"sections":194},"Nobody home at the other end of the line.",[242],{"repairs":215},[263],{"id":264,"title":265,"summary":266},"unknown-engines","Unknown engines","A voice assistant uses a conversation agent, or a speech-to-text, text-to-speech or wake word engine, that no longer exists. Usually because the integration behind it was removed. The next voice command fails with an error about a missing provider or agent. Until then, you get no warning.",{"path":268,"title":269,"description":270,"stem":271,"navigation":15,"meta":272},"\u002Fautomation","自动化","自动化用到了已经不存在的东西，比如实体、区域或动作时，Spook 会告诉你，它还添加了让自动化打盹或暂时保持启用的动作。","04.enhanced-integrations\u002F03.automation",{"subtitle":273,"offers":274,"counts":275,"repairs":277,"sections":194},"The breathing (mechanical) heart of Home Assistant.",[90,242],{"actions":194,"repairs":276},15,[278,282,286,290,294,298,302,306,310,314,318,322,326,330,334],{"id":279,"title":280,"summary":281},"unknown-referenced-areas","Unknown referenced areas","An automation targets an area that no longer exists, usually because the area was removed or merged into another. The step that uses it does nothing.",{"id":283,"title":284,"summary":285},"unknown-referenced-attributes","Unknown referenced attributes","An automation waits for, or checks, an attribute its entity does not have, like brightness on a plain switch. An attribute is an extra detail an entity carries next to its state. A trigger like that never fires, and you get no error.",{"id":287,"title":288,"summary":289},"unknown-referenced-states","Unknown referenced states","An automation waits for a state its entity is never in, like On for a light that is on or off. A trigger like that never fires, and you get no error.",{"id":291,"title":292,"summary":293},"unknown-referenced-devices","Unknown referenced devices","An automation uses a device that no longer exists, usually because it was removed or replaced. Triggers, conditions and actions that use it no longer work.",{"id":295,"title":296,"summary":297},"unknown-referenced-integration-entries","Unknown referenced integration entries","An action in an automation points at an integration entry that no longer exists: one setup of an integration, like your Hue bridge. This usually happens after you removed an integration and added it again: it looks the same, but the action still points at the old one, and fails when it runs.",{"id":299,"title":300,"summary":301},"unknown-referenced-entities","Unknown referenced entities","An automation uses an entity that no longer exists, usually because it was renamed, replaced or removed. The step that uses it does nothing.",{"id":303,"title":304,"summary":305},"unknown-referenced-actions","Unknown referenced actions","An automation uses an action that does not exist, usually because the integration that provided it was removed. The step fails when it runs.",{"id":307,"title":308,"summary":309},"unknown-icons","Unknown icons","An automation hands out an icon that Home Assistant does not have, usually because of a typo or a renamed icon. Whatever it sets shows an empty spot where the icon should be.",{"id":311,"title":312,"summary":313},"unknown-referenced-floors","Unknown referenced floors","An automation targets a floor that no longer exists. The step that uses it does nothing.",{"id":315,"title":316,"summary":317},"unknown-referenced-labels","Unknown referenced labels","An automation targets a label that no longer exists. The step that uses it does nothing.",{"id":319,"title":320,"summary":321},"unknown-referenced-conditions","Unknown referenced conditions","An automation uses a condition that no integration provides anymore, usually because that integration was removed. The whole automation stops working. Home Assistant tells you the automation is broken; Spook tells you which condition did it.",{"id":323,"title":324,"summary":325},"unknown-referenced-triggers","Unknown referenced triggers","An automation uses a trigger that no integration provides anymore, usually because that integration was removed. The whole automation stops working. Home Assistant tells you the automation is broken; Spook tells you which trigger did it.",{"id":327,"title":328,"summary":329},"unknown-referenced-trigger-ids","Unknown referenced trigger IDs","An automation checks which trigger started it, using a trigger ID none of its triggers has. That check never passes, so whatever comes after it never runs. It usually happens when a trigger was renamed or removed, or the ID has a typo.",{"id":331,"title":332,"summary":333},"templates-that-can-never-pass","Templates that can never pass","An automation has a template that, the way it is written, can never be true. A template is a small piece of code between {{ }} that works out a value. Its condition always fails, its trigger never fires, or its wait only ends on a timeout. You get no error.",{"id":335,"title":336,"summary":337},"removed-users","Removed users","An automation only reacts to a certain user, and that user was removed. A trigger waiting for them never fires again.",{"path":339,"title":340,"description":341,"stem":342,"navigation":15,"meta":343},"\u002Fblueprint","蓝图","当你导入的蓝图被作者改了，Spook 会告诉你，让你像安装其他更新一样安装这个改动，还添加了一个从 URL 导入蓝图的动作。","04.enhanced-integrations\u002F04.blueprint",{"subtitle":344,"offers":345,"counts":346,"repairs":347,"sections":29},"Don't be a blueprint. Be an original.",[192,90],{"entities":215,"actions":215},[],{"path":349,"title":350,"description":351,"stem":352,"navigation":15,"meta":353},"\u002Fcalendar","日历","Spook 添加的动作可以在自动化中修改和删除日历事件，按标题找到它们。","04.enhanced-integrations\u002F05.calendar",{"subtitle":354,"offers":355,"counts":356,"repairs":357,"sections":215},"What goes in, must come out. 📅",[90],{"actions":194},[],{"path":359,"title":360,"description":361,"stem":362,"navigation":15,"meta":363},"\u002Fclimate","空调","Spook 添加了把恒温器调高或调低一档的动作，对既制热又制冷的恒温器，两个设定值一起调。","04.enhanced-integrations\u002F06.climate",{"subtitle":364,"offers":365,"counts":366,"repairs":367,"sections":215},"A little warmer, please. 🌡️",[90],{"actions":194},[],{"path":369,"title":370,"description":371,"stem":372,"navigation":15,"meta":373},"\u002Flovelace","仪表盘","当你仪表盘上的卡片用到了不存在的实体、区域、动作、视图、图标、主题或资源时，Spook 会告诉你。","04.enhanced-integrations\u002F07.lovelace",{"subtitle":374,"offers":375,"counts":376,"repairs":378,"sections":215},"There is more than meets the eye. 🤩",[242],{"repairs":377},12,[379,381,383,385,387,391,395,397,399,403,407,411],{"id":299,"title":300,"summary":380},"A card on a dashboard uses an entity that no longer exists, usually because it was renamed, replaced or removed. The card shows an error, or a row that says the entity is not available.",{"id":279,"title":280,"summary":382},"A dashboard uses an area that no longer exists, usually because the area was renamed, merged or removed. Whatever uses it no longer shows what you meant.",{"id":283,"title":284,"summary":384},"A card shows, or a condition checks, an attribute its entity does not have, like brightness on a plain switch. An attribute is an extra detail an entity carries next to its state. The card stays empty or the condition never passes, and you get no error.",{"id":287,"title":288,"summary":386},"A card is set to show or hide on a state its entity is never in, like On for a light that is on or off. That condition never passes, so the card never shows (or never hides).",{"id":388,"title":389,"summary":390},"unknown-actions","Unknown actions","A button or card on a dashboard performs an action that does not exist, usually because a script was renamed or removed, or the integration behind it is gone. Tapping it does nothing, and says nothing either.",{"id":392,"title":393,"summary":394},"unknown-views","Unknown views","A button or card navigates to a view that does not exist. Tapping it opens the first view of that dashboard instead, which looks like the button is broken.",{"id":307,"title":308,"summary":396},"A dashboard uses an icon that Home Assistant does not have, usually because of a typo or a renamed icon. The card, badge or view shows an empty spot where the icon should be.",{"id":335,"title":336,"summary":398},"A card, badge, section or view is only shown to certain users, and one of those users was removed. If it was only shown to removed users, nobody sees it anymore.",{"id":400,"title":401,"summary":402},"unknown-themes","Unknown themes","A card, section or view asks for a theme that does not exist, usually because the theme was renamed or its file removed. It gets the default look instead, without an error.",{"id":404,"title":405,"summary":406},"missing-dashboard-resources","Missing dashboard resources","A dashboard resource points at a file that is not there, usually because a custom card was removed but its resource stayed behind. Every browser tries to load that file, on every page load, and it never arrives.",{"id":408,"title":409,"summary":410},"duplicate-dashboard-resources","Duplicate dashboard resources","The same dashboard resource is listed more than once, usually after updating a custom card. The browser loads both copies, the card trips over itself, and you see a broken card.",{"id":412,"title":413,"summary":414},"public-files-in-the-www-folder","Public files in the www folder","Home Assistant serves everything in the www folder of your configuration at \u002Flocal\u002F, without a login. That is on purpose: browsers load custom cards and dashboard images from it with a plain link, and a plain link cannot carry a login. It also means anybody who can reach your Home Assistant can download what is in there, if they know or can guess the name of the file.",{"path":416,"title":417,"description":418,"stem":419,"navigation":15,"meta":420},"\u002Fgroup","群组","Spook 添加的动作可以在自动化中修改群组的成员，群组里有已经不存在的成员时，它也会告诉你。","04.enhanced-integrations\u002F08.group",{"subtitle":421,"offers":422,"counts":423,"repairs":424,"sections":194},"Never underestimate the power of stupid people in large groups.",[90,242],{"actions":29,"repairs":215},[425],{"id":426,"title":427,"summary":428},"unknown-source-entity","Unknown source entity","A group has a member that no longer exists, usually because the entity was renamed or removed. The group carries on with the members it has left, so it does less than you think.",{"path":430,"title":431,"description":432,"stem":433,"navigation":15,"meta":434},"\u002Fcloud","Home Assistant Link","Spook 为 Home Assistant Link 添加了开关，让你可以从仪表盘或自动化中打开和关闭 Alexa、Google Assistant 和远程访问。","04.enhanced-integrations\u002F09.cloud",{"subtitle":435,"offers":436,"counts":437,"repairs":438,"sections":194},"Automate and control your Home Assistant Link connection.",[192],{"entities":215},[],{"path":440,"title":441,"description":442,"stem":443,"navigation":15,"meta":444},"\u002Fcounter","计数器","Spook 添加了在 Home Assistant 中创建和删除计数器辅助元素的动作，直接在自动化和脚本里完成，不用跑去辅助元素设置。","04.enhanced-integrations\u002F10.counter",{"subtitle":445,"offers":446,"counts":447,"repairs":448,"sections":194},"Keeping count, made on the fly.",[90],{"actions":194},[],{"path":450,"title":451,"description":452,"stem":453,"navigation":15,"meta":454},"\u002Fcover","卷帘","Spook 添加了动作，让 Home Assistant 中的卷帘再开大一步或再关小一步，不用你自己去算新位置。","04.enhanced-integrations\u002F11.cover",{"subtitle":455,"offers":456,"counts":457,"repairs":458,"sections":215},"A little more light, please. 🪟",[90],{"actions":194},[],{"path":460,"title":461,"description":462,"stem":463,"navigation":15,"meta":464},"\u002Fenergy","能源","当 Home Assistant 的能源仪表盘被设置为使用已经不存在的实体时，Spook 会在你的修复里告诉你，你不用自己去找。","04.enhanced-integrations\u002F12.energy",{"subtitle":465,"offers":466,"counts":467,"repairs":468,"sections":194},"Watching the meter so you do not have to.",[242],{"repairs":215},[469],{"id":299,"title":300,"summary":470},"The energy dashboard uses an entity that no longer exists, usually because it was removed or replaced, or did not load. The dashboard does not complain: it leaves that source out, so a missing gas sensor looks like a month where you used no gas.",{"path":472,"title":473,"description":474,"stem":475,"navigation":15,"meta":476},"\u002Fhomeassistant","Home Assistant","Spook 告诉你 Home Assistant 自身里堆积了什么，比如已经不存在的实体的自定义设置、源实体不见了的辅助元素，以及没有任何东西使用的区域、楼层、标签和蓝图。","04.enhanced-integrations\u002F13.homeassistant",{"subtitle":477,"offers":478,"counts":479,"repairs":480,"sections":42},"The tidying up nobody volunteers for.",[242],{"repairs":129},[481,485,489,493,497,499,503,507,511],{"id":482,"title":483,"summary":484},"unknown-area-sensors","Unknown area sensors","An area uses a temperature or humidity sensor that no longer exists. Assist cannot answer \"how warm is it in the kitchen?\" anymore, and area cards lose their reading.",{"id":486,"title":487,"summary":488},"unknown-customized-entities","Unknown customized entities","The customize: section of your configuration names an entity that does not exist. That block of YAML does nothing at all.",{"id":490,"title":491,"summary":492},"unknown-helper-sources","Unknown helper sources","A helper is built on an entity that no longer exists: a threshold on a sensor that is gone, a utility meter on an energy reading that was replaced. Without its source, the helper cannot work.",{"id":494,"title":495,"summary":496},"unknown-min-max-helper-members","Unknown min\u002Fmax helper members","A min\u002Fmax helper combines entities that no longer exist. It carries on with the ones it has left, so the number it shows is based on less than you think.",{"id":307,"title":308,"summary":498},"Something in Home Assistant has an icon that does not exist, usually because of a typo or a renamed icon: an entity, a helper, a zone, an area, a floor, a label or a category. It shows an empty spot where the icon should be.",{"id":500,"title":501,"summary":502},"empty-areas","Empty areas","An area has no devices, no entities, and nothing uses it. It does nothing, except take up room in every area picker.",{"id":504,"title":505,"summary":506},"empty-floors","Empty floors","A floor has no areas, and nothing uses it.",{"id":508,"title":509,"summary":510},"unused-labels","Unused labels","A label is on no entity, device or area, and nothing uses it.",{"id":512,"title":513,"summary":514},"unused-blueprints","Unused blueprints","A blueprint is not used by any automation or script. You imported it to try, decided against it, and it stayed.",{"path":516,"title":517,"description":518,"stem":519,"navigation":15,"meta":520},"\u002Fhomekit","HomeKit Bridge","当 Home Assistant 里的 HomeKit Bridge 包含或排除了已经不存在的实体时，Spook 会直接在你的修复页面上告诉你。","04.enhanced-integrations\u002F14.homekit",{"subtitle":521,"offers":522,"counts":523,"repairs":524,"sections":215},"Lost in translation, between Home Assistant and the Home app.",[242],{"repairs":215},[525],{"id":526,"title":527,"summary":528},"unknown-entities","Unknown entities","A HomeKit bridge includes, or excludes, an entity that no longer exists, usually because it was renamed or removed. An included entity that is gone disappears from the Home app without warning, and an excluded entity that was renamed shows up in it again.",{"path":530,"title":531,"description":532,"stem":533,"navigation":15,"meta":534},"\u002Fhumidifier","加湿器","Spook 添加的动作可以把 Home Assistant 中加湿器的目标湿度调高或调低一档，不用你自己算新的数值。","04.enhanced-integrations\u002F15.humidifier",{"subtitle":535,"offers":536,"counts":537,"repairs":538,"sections":215},"Not too dry, not too damp. 💧",[90],{"actions":194},[],{"path":540,"title":541,"description":542,"stem":543,"navigation":15,"meta":544},"\u002Finput-boolean","输入布尔值","Spook 添加了在 Home Assistant 中创建和删除输入布尔值（开关）辅助元素的动作，直接在自动化和脚本里完成。","04.enhanced-integrations\u002F16.input-boolean",{"subtitle":545,"offers":546,"counts":547,"repairs":548,"sections":194},"To be, or not to be. Created on the fly.",[90],{"actions":194},[],{"path":550,"title":551,"description":552,"stem":553,"navigation":15,"meta":554},"\u002Finput-button","输入按钮","Spook 添加了动作，让你可以在自动化和脚本中创建和删除 Home Assistant 的输入按钮辅助元素，不用跑去辅助元素设置。","04.enhanced-integrations\u002F17.input-button",{"subtitle":555,"offers":556,"counts":557,"repairs":558,"sections":194},"Press here. Made on the fly.",[90],{"actions":194},[],{"path":560,"title":561,"description":562,"stem":563,"navigation":15,"meta":564},"\u002Finput-datetime","输入日期时间值","Spook 添加了动作，让你可以在自动化和脚本中创建和删除 Home Assistant 的日期时间输入辅助元素，不用跑去辅助元素设置。","04.enhanced-integrations\u002F18.input-datetime",{"subtitle":565,"offers":566,"counts":567,"repairs":568,"sections":194},"A date, a time, or both. Made on the fly.",[90],{"actions":194},[],{"path":570,"title":571,"description":572,"stem":573,"navigation":15,"meta":574},"\u002Finput-number","输入数值","Spook 添加了动作，可以创建和删除输入数值辅助元素，让它跳到最小值或最大值，修改它的范围，以及按任意量步进。","04.enhanced-integrations\u002F19.input-number",{"subtitle":575,"offers":576,"counts":577,"repairs":579,"sections":194},"Give me your digits. 🔢",[90],{"actions":578},7,[],{"path":581,"title":582,"description":583,"stem":584,"navigation":15,"meta":585},"\u002Finput-select","输入选择表","Spook 添加了动作，可以创建和删除输入选择表辅助元素，随机选一个选项，以及打乱、排序或反转选项列表。","04.enhanced-integrations\u002F20.input-select",{"subtitle":586,"offers":587,"counts":588,"repairs":589,"sections":194},"Offers a selection of the finest options.",[90],{"actions":53},[],{"path":591,"title":592,"description":593,"stem":594,"navigation":15,"meta":595},"\u002Finput-text","输入文本值","Spook 添加的动作可以在自动化和脚本中创建和删除 Home Assistant 的输入文本值辅助元素，不用跑去辅助元素设置。","04.enhanced-integrations\u002F21.input-text",{"subtitle":596,"offers":597,"counts":598,"repairs":599,"sections":194},"A few words, made on the fly.",[90],{"actions":194},[],{"path":601,"title":602,"description":603,"stem":604,"navigation":15,"meta":605},"\u002Flight","灯光","Spook 添加的动作只调整已经开着的灯，不去动关着的灯，并且让灯光群组里的每盏灯都从自己的亮度出发调整，而不是从群组的平均值出发。","04.enhanced-integrations\u002F22.light",{"subtitle":606,"offers":607,"counts":608,"repairs":609,"sections":215},"Turn it down a bit, would you 💡",[90],{"actions":53},[],{"path":611,"title":612,"description":613,"stem":614,"navigation":15,"meta":615},"\u002Fmedia-player","媒体播放器","Spook 添加的动作可以把媒体播放器的音量调高或调低，每次正好是你给的步长。","04.enhanced-integrations\u002F23.media-player",{"subtitle":616,"offers":617,"counts":618,"repairs":619,"sections":215},"Turn it up, just a little. 🔊",[90],{"actions":194},[],{"path":621,"title":622,"description":623,"stem":624,"navigation":15,"meta":625},"\u002Fnotify","通知","通知组转发到 Home Assistant 没有的通知动作时，Spook 会告诉你，让每个人都能继续收到通知。","04.enhanced-integrations\u002F24.notify",{"subtitle":626,"offers":627,"counts":628,"repairs":629,"sections":194},"A message nobody receives is just a thought.",[242],{"repairs":215},[630],{"id":631,"title":632,"summary":633},"unknown-group-members","Unknown group members","A notify group forwards to a notify action that does not exist anymore, usually because a phone was replaced or an integration removed. Messages sent to the group still reach everyone else, but not that member. You get no error.",{"path":635,"title":636,"description":637,"stem":638,"navigation":15,"meta":639},"\u002Fnumber","数值输入器","Spook 为数值输入器集成添加了动作，可以按任意幅度调高或调低一个数值，或者让它直接跳到最小值或最大值。","04.enhanced-integrations\u002F25.number",{"subtitle":640,"offers":641,"counts":642,"repairs":643,"sections":194},"Elmo likes numbers too!",[90],{"actions":42},[],{"path":645,"title":646,"description":647,"stem":648,"navigation":15,"meta":649},"\u002Fperson","人员","Spook 添加的动作可以随时为人员添加和移除设备追踪器，人员追踪的设备追踪器已经不存在时，它也会告诉你。","04.enhanced-integrations\u002F26.person",{"subtitle":650,"offers":651,"counts":652,"repairs":653,"sections":29},"Now it gets personal 😱",[90,242],{"actions":194,"repairs":215},[654],{"id":655,"title":656,"summary":657},"unknown-device-trackers","Unknown device trackers","A person tracks a device tracker that no longer exists, usually because it was renamed, or the integration providing it was removed. The person keeps working on the trackers that remain. So somebody whose phone tracker disappeared is just located a little less accurately.",{"path":659,"title":660,"description":661,"stem":662,"navigation":15,"meta":663},"\u002Fproximity","接近","当接近配置用到了已经不存在的地点、人员或设备追踪器时，Spook 会告诉你。","04.enhanced-integrations\u002F27.proximity",{"subtitle":664,"offers":665,"counts":666,"repairs":667,"sections":215},"Proximity isn’t everything, but it's close...",[242],{"repairs":29},[668,672,676],{"id":669,"title":670,"summary":671},"unknown-zone","Unknown zone","A proximity configuration measures the distance to a zone that no longer exists, usually because the zone was removed or renamed. With the zone gone, there is nothing left to measure the distance to.",{"id":673,"title":674,"summary":675},"unknown-tracked-devices-or-persons","Unknown tracked devices or persons","A proximity configuration tracks a person or device tracker that no longer exists, usually because it was renamed or removed. That person or device is no longer part of the distances it reports.",{"id":677,"title":678,"summary":679},"unknown-ignored-zones","Unknown ignored zones","A proximity configuration ignores a zone that no longer exists. Not critical: ignoring something that is not there does nothing. Still a good one to clean up.",{"path":681,"title":682,"description":683,"stem":684,"navigation":15,"meta":685},"\u002Frecorder","Recorder","Spook 添加了一个把长期统计数据导入 recorder 的动作，并在统计数据不再属于任何实体时告诉你。","04.enhanced-integrations\u002F28.recorder",{"subtitle":686,"offers":687,"counts":688,"repairs":689,"sections":29},"Records all the spooky things that happen in your home.",[90,242],{"actions":215,"repairs":215},[690],{"id":691,"title":692,"summary":693},"orphaned-long-term-statistics","Orphaned long-term statistics","The recorder keeps long-term statistics for sensors that no longer exist, usually because a sensor was removed and its history was kept. Not harmful, but they take up database space, and keep showing up in pickers and graphs long after the sensor is gone.",{"path":695,"title":696,"description":697,"stem":698,"navigation":15,"meta":699},"\u002Frepairs","修复","Spook 添加了让你自己创建、列出、移除和忽略修复问题的动作，还有统计和通报这些问题的实体。","04.enhanced-integrations\u002F29.repairs",{"subtitle":700,"offers":701,"counts":702,"repairs":703,"sections":29},"Can we fix it? No, we are not Bob the Builder. 👷",[192,90],{"entities":29,"actions":118},[],{"path":705,"title":706,"description":707,"stem":708,"navigation":15,"meta":709},"\u002Fintegration","黎曼和积分","当 Home Assistant 中黎曼和积分辅助元素的源传感器不存在了，Spook 会直接在你的修复页面上告诉你。","04.enhanced-integrations\u002F30.integration",{"subtitle":710,"offers":711,"counts":712,"repairs":713,"sections":215},"The only integration that gives you energy if you provide it power.",[242],{"repairs":215},[714],{"id":426,"title":427,"summary":715},"A Riemann sum integral helper adds up a source sensor that no longer exists, usually because the sensor was renamed, replaced or removed. Without its source, the helper cannot work.",{"path":717,"title":718,"description":719,"stem":720,"navigation":15,"meta":721},"\u002Fscene","场景","Home Assistant 中的场景用到了已经不存在的实体时，Spook 会告诉你，让你在激活之前就知道。","04.enhanced-integrations\u002F31.scene",{"subtitle":722,"offers":723,"counts":724,"repairs":725,"sections":215},"Whatever the scene states, it's not over yet.",[242],{"repairs":215},[726],{"id":299,"title":300,"summary":727},"A scene uses an entity that no longer exists, usually because it was renamed, replaced or removed. Activating the scene can no longer set it.",{"path":729,"title":730,"description":731,"stem":732,"navigation":15,"meta":733},"\u002Fschedule","计划表","Spook 添加了创建和删除计划表辅助元素、修改它们时间段的动作，直接在自动化和脚本里完成。","04.enhanced-integrations\u002F32.schedule",{"subtitle":734,"offers":735,"counts":736,"repairs":737,"sections":194},"A week of time blocks, made, changed and cleaned up on the fly.",[90],{"actions":29},[],{"path":739,"title":740,"description":741,"stem":742,"navigation":15,"meta":743},"\u002Fscript","脚本","当 Home Assistant 里的脚本用到了已经不存在的东西，比如实体、设备或动作时，Spook 会告诉你，让你在它运行之前就知道。","04.enhanced-integrations\u002F33.script",{"subtitle":744,"offers":745,"counts":746,"repairs":747,"sections":215},"Script kiddies. 🍼",[242],{"repairs":182},[748,750,752,754,756,758,760,762,764,766,768,770,772,774],{"id":279,"title":280,"summary":749},"A script targets an area that no longer exists, usually because the area was removed or merged into another. The step that uses it does nothing.",{"id":283,"title":284,"summary":751},"A script waits for, or checks, an attribute its entity does not have, like brightness on a plain switch. An attribute is an extra detail an entity carries next to its state. A wait like that only ends on its timeout, and a check like that never passes. You get no error.",{"id":287,"title":288,"summary":753},"A script waits for, or checks, a state its entity is never in, like On for a light that is on or off. A wait like that only ends on its timeout, and a check like that never passes. You get no error.",{"id":291,"title":292,"summary":755},"A script uses a device that no longer exists, usually because it was removed or replaced. Conditions, waits and actions that use it no longer work.",{"id":295,"title":296,"summary":757},"An action in a script points at an integration entry that no longer exists: one setup of an integration, like your Hue bridge. This usually happens after you removed an integration and added it again: it looks the same, but the action still points at the old one, and fails when it runs.",{"id":299,"title":300,"summary":759},"A script uses an entity that no longer exists, usually because it was renamed, replaced or removed. The step that uses it does nothing.",{"id":303,"title":304,"summary":761},"A script uses an action that does not exist, usually because the integration that provided it was removed. The step fails when it runs.",{"id":307,"title":308,"summary":763},"A script has an icon, or hands one out, that Home Assistant does not have, usually because of a typo or a renamed icon. Whatever gets it shows an empty spot where the icon should be.",{"id":311,"title":312,"summary":765},"A script targets a floor that no longer exists. The step that uses it does nothing.",{"id":315,"title":316,"summary":767},"A script targets a label that no longer exists. The step that uses it does nothing.",{"id":319,"title":320,"summary":769},"A script uses a condition that no integration provides anymore, usually because that integration was removed. The whole script stops working. Home Assistant tells you the script is broken; Spook tells you which condition did it.",{"id":323,"title":324,"summary":771},"A script waits for a trigger that no integration provides anymore, usually because that integration was removed. A script has no triggers of its own, so this is about a Wait for a trigger step. The whole script stops working. Home Assistant tells you the script is broken; Spook tells you which trigger did it.",{"id":331,"title":332,"summary":773},"A script has a template that, the way it is written, can never be true. A template is a small piece of code between {{ }} that works out a value. Its condition always fails, or its wait only ends on a timeout. You get no error.",{"id":335,"title":336,"summary":775},"A script only does something for a certain user, and that user was removed. A check for them never passes again.",{"path":777,"title":778,"description":779,"stem":780,"navigation":15,"meta":781},"\u002Fselect","选择","Spook 为 Home Assistant 的 select 集成添加了一个动作，随机挑一个选项，从全部选项里挑，或者从你指定的几个里挑。","04.enhanced-integrations\u002F34.select",{"subtitle":782,"offers":783,"counts":784,"repairs":785,"sections":194},"Selecting from the selection using a selector.",[90],{"actions":215},[],{"path":787,"title":788,"description":789,"stem":790,"navigation":15,"meta":791},"\u002Fsensor","传感器","Spook 给 Home Assistant 的传感器集成加了一个动作，可以一次为很多传感器设置显示的小数位数。","04.enhanced-integrations\u002F35.sensor",{"subtitle":792,"offers":793,"counts":794,"repairs":795,"sections":194},"How many decimals is too many decimals?",[90],{"actions":215},[],{"path":797,"title":798,"description":799,"stem":800,"navigation":15,"meta":801},"\u002Fswitch-as-x","Switch as X","Switch as X 辅助元素把 Home Assistant 的开关变成灯、卷帘、风扇、锁、警报器或阀门。它背后的开关不见了时，Spook 会告诉你。","04.enhanced-integrations\u002F36.switch-as-x",{"subtitle":802,"offers":803,"counts":804,"repairs":805,"sections":215},"Help a switch with an identity crisis discover its true self.",[242],{"repairs":215},[806],{"id":426,"title":427,"summary":807},"A Switch as X helper uses a switch that no longer exists, usually because the switch was removed or replaced. The helper has nothing left to switch, so it does nothing.",{"path":809,"title":810,"description":811,"stem":812,"navigation":15,"meta":813},"\u002Ftemplate","模板辅助元素","当模板辅助元素或模板实体用到了 Home Assistant 里没有的实体、动作或属性时，Spook 会告诉你。","04.enhanced-integrations\u002F37.template",{"subtitle":814,"offers":815,"counts":816,"repairs":817,"sections":215},"Keep template helpers and template entities free of ghosts. 👻",[242],{"repairs":29},[818,820,822],{"id":299,"title":300,"summary":819},"A template uses an entity that no longer exists, usually because it was renamed, replaced or removed. The template gets nothing back for it, and a trigger on it never fires.",{"id":303,"title":304,"summary":821},"A template helper or template entity runs an action that does not exist, usually because the integration or script that provided it was removed. Like the press of a template button, or the turn_on of a template switch. That action fails when it runs.",{"id":283,"title":284,"summary":823},"A template reads an attribute its entity does not have, like state_attr('light.kitchen', 'brightnes'). It gets nothing back, and you get no error.",{"path":825,"title":826,"description":827,"stem":828,"navigation":15,"meta":829},"\u002Ftimer","计时器","Spook 添加了动作，让你可以在自动化和脚本中创建和删除计时器辅助元素，以及修改计时器运行多久。","04.enhanced-integrations\u002F38.timer",{"subtitle":830,"offers":831,"counts":832,"repairs":833,"sections":194},"Ready, set, go! ⏲",[90],{"actions":29},[],{"path":835,"title":836,"description":837,"stem":838,"navigation":15,"meta":839},"\u002Ftodo","待办事项清单","Spook 添加了一个动作，把待办事项清单中的项目移到顶部、底部或另一个项目之后，就像在界面里拖动它一样。","04.enhanced-integrations\u002F39.todo",{"subtitle":840,"offers":841,"counts":842,"repairs":843,"sections":215},"First things first. ✅",[90],{"actions":215},[],{"path":845,"title":846,"description":847,"stem":848,"navigation":15,"meta":849},"\u002Ftrend","趋势","趋势辅助元素告诉你 Home Assistant 中的某个值是在上升还是下降。Spook 会在它跟踪的实体消失时告诉你。","04.enhanced-integrations\u002F40.trend",{"subtitle":850,"offers":851,"counts":852,"repairs":853,"sections":215},"I don't follow trends, trends follow me. 😎",[242],{"repairs":215},[854],{"id":426,"title":427,"summary":855},"A trend helper follows an entity that no longer exists, usually because it was removed or replaced. The helper has nothing to follow, so it never changes.",{"path":857,"title":858,"description":859,"stem":860,"navigation":15,"meta":861},"\u002Futility-meter","计量表","计量表辅助元素按周期统计你用了多少电、气或水。它计量的传感器不见了，Spook 会告诉你。","04.enhanced-integrations\u002F41.utility-meter",{"subtitle":862,"offers":863,"counts":864,"repairs":865,"sections":215},"Help you to get scared of your utility bills before they arrive.",[242],{"repairs":215},[866],{"id":426,"title":427,"summary":867},"A utility meter meters a sensor that no longer exists, usually because it was removed or replaced. The meter has nothing to count, so it stops counting.",{"path":869,"title":870,"description":871,"stem":872,"navigation":15,"meta":873},"\u002Fvalve","阀门","Spook 添加了动作，让 Home Assistant 中的阀门再开大一步或再关小一步，不用你自己去算新位置。","04.enhanced-integrations\u002F42.valve",{"subtitle":874,"offers":875,"counts":876,"repairs":877,"sections":215},"Just a little more water. 🚰",[90],{"actions":194},[],{"path":879,"title":880,"description":881,"stem":882,"navigation":15,"meta":883},"\u002Fwater-heater","热水器","Spook 添加的动作可以把 Home Assistant 中的热水器调高或调低一档，不超出它报告的范围。","04.enhanced-integrations\u002F43.water-heater",{"subtitle":884,"offers":885,"counts":886,"repairs":887,"sections":215},"A shower too cold, a bath too hot. 🛁",[90],{"actions":194},[],{"path":889,"title":890,"description":891,"stem":892,"navigation":15,"meta":893},"\u002Fzone","地点","Spook 添加了在 Home Assistant 中创建、更新和删除地点的动作，直接在自动化和脚本里完成，包括“家”这个地点。","04.enhanced-integrations\u002F44.zone",{"subtitle":894,"offers":895,"counts":896,"repairs":897,"sections":194},"Time to zone out and relax 📍",[90],{"actions":29},[],{"path":899,"title":900,"description":13,"stem":901,"navigation":15,"meta":902},"\u002Fhelpers\u002F.navigation","Helpers","05.helpers\u002F.navigation",{},{"path":904,"title":905,"description":906,"stem":907,"navigation":908,"meta":909},"\u002Fhelpers","辅助元素","Spook 为 Home Assistant 添加了三个辅助元素。校准修正读数不准的传感器，反转把实体颠倒过来，状态持续时间记住从什么时候开始。","05.helpers\u002F00.helpers",{"title":65},{"subtitle":910,"offers":911,"counts":912,"repairs":913,"sections":71},"Although, some people, cannot be helped. 🤷",[],{},[],{"path":915,"title":916,"description":917,"stem":918,"navigation":15,"meta":919},"\u002Fcalibration","校准","校准辅助元素用偏移量、系数或两者一起，修正读数不准的传感器，给你一个数值正确的新传感器。","05.helpers\u002F01.calibration",{"subtitle":920,"offers":921,"counts":922,"repairs":923,"sections":194},"Nobody is perfect, sensors included. 🌡️",[],{},[],{"path":925,"title":926,"description":927,"stem":928,"navigation":15,"meta":929},"\u002Finverse","反转","反转辅助元素把开关、二元传感器、卷帘或阀门颠倒过来。开变成关，打开变成关闭，每个动作都反着执行。","05.helpers\u002F02.inverse",{"subtitle":930,"offers":931,"counts":932,"repairs":933,"sections":42},"Stranger Things, the upside down 🙃",[],{},[],{"path":935,"title":936,"description":937,"stem":938,"navigation":15,"meta":939},"\u002Ftime-in-state","状态持续时间","状态持续时间辅助元素告诉你一个实体从什么时候起处于当前状态，或者它最后一次进入某个状态是什么时候，并且重启后也记得这个时刻。","05.helpers\u002F03.time-in-state",{"subtitle":940,"offers":941,"counts":942,"repairs":943,"sections":42},"Since when? Spook remembers. ⏱️",[],{},[],{"path":945,"title":946,"description":13,"stem":947,"navigation":15,"meta":948},"\u002Freference\u002F.navigation","Reference","06.reference\u002F.navigation",{},{"path":950,"title":951,"description":952,"stem":953,"navigation":954,"meta":956},"\u002Factions","Spook 提供的 Home Assistant 动作","Spook 为 Home Assistant 添加的每个动作，都在这一页上。每个都有它的 YAML 名称、在你自己的 Home Assistant 中试用它的链接，以及它的文档链接。","06.reference\u002F01.actions",{"title":955},"动作",{"subtitle":957,"offers":958,"counts":959,"repairs":960,"sections":961},"Ready? Set? Action! 🎬",[],{},[],133,{"path":963,"title":964,"description":965,"stem":966,"navigation":967,"meta":969},"\u002Fconditions","Spook 提供的 Home Assistant 条件","Spook 为 Home Assistant 添加的所有条件，都在一个页面上，每个都链接到完整的文档。","06.reference\u002F02.conditions",{"title":968},"条件",{"subtitle":970,"offers":971,"counts":972,"repairs":973,"sections":129},"Asking the questions Home Assistant does not. 🤔",[],{},[],{"path":975,"title":976,"description":977,"stem":978,"navigation":979,"meta":981},"\u002Ftriggers","Spook 提供的 Home Assistant 触发条件","Spook 为 Home Assistant 添加的所有触发条件，都在一个页面上，每个都链接到完整的文档。","06.reference\u002F03.triggers",{"title":980},"触发条件",{"subtitle":982,"offers":983,"counts":984,"repairs":985,"sections":986},"For the moments Home Assistant cannot name. ⏰",[],{},[],23,{"path":988,"title":989,"description":990,"stem":991,"navigation":992,"meta":993},"\u002Fall-repairs","Spook 创建的所有修复","Spook 能在 Home Assistant 中创建的所有修复，都在这一页。找到你的修复页面上显示的那一条，直接看它是什么意思、怎么修。","06.reference\u002F04.all-repairs",{"title":696},{"subtitle":994,"offers":995,"counts":996,"repairs":997,"sections":71},"Who you gonna call? 👻",[],{},[],{"path":999,"title":1000,"description":1001,"stem":1002,"navigation":15,"meta":1003},"\u002Fglossary","术语表","Spook 和 Home Assistant 用到的词，用大白话解释。从动作、实体到修复、触发条件和 YAML。","06.reference\u002F05.glossary",{"subtitle":1004,"offers":1005,"counts":1006,"repairs":1007,"sections":1008},"What does this even mean?",[],{},[],46,{"path":1010,"title":1011,"description":1012,"stem":1013,"navigation":1014,"meta":1015},"\u002Fblueprints","用到 Spook 功能的蓝图","别人做的蓝图，用到了 Spook 给 Home Assistant 加的东西，可以直接导入你自己的系统。知道其他的？告诉我们。","06.reference\u002F06.blueprints",{"title":340},{"subtitle":344,"offers":1016,"counts":1017,"repairs":1018,"sections":71},[],{},[],{"path":1020,"title":1021,"description":13,"stem":1022,"navigation":15,"meta":1023},"\u002Fabout-the-project\u002F.navigation","About the project","07.about-the-project\u002F.navigation",{},{"path":1025,"title":1026,"description":1027,"stem":1028,"navigation":1029,"meta":1031},"\u002Fabout","Spook 是什么？👻","Spook 是 Home Assistant 的一个免费工具箱。它在你碰上问题之前先找出你系统里的问题，还会加上那些你一直想要的动作、触发条件和辅助元素。","07.about-the-project\u002F00.about",{"title":1030},"Spook 是什么？",{"subtitle":1032,"offers":1033,"counts":1034,"repairs":1035,"sections":42},"A scary powerful toolbox for Home Assistant.",[],{},[],{"path":1037,"title":1038,"description":1039,"stem":1040,"navigation":1041,"meta":1043},"\u002Fwhats-new","Spook 更新了什么","Spook for Home Assistant 的最新版本，以及每个版本的改动，直接来自 GitHub 上的发布说明。","07.about-the-project\u002F01.whats-new",{"title":1042},"更新内容",{"subtitle":1044,"offers":1045,"counts":1046,"repairs":1047,"sections":71},"Fresh ghosts, and a few that were laid to rest.",[],{},[],{"path":1049,"title":1050,"description":1051,"stem":1052,"navigation":1053,"meta":1055},"\u002Fbackground-and-history","Spook 的背景与历史 👻","Spook 从哪里来，为什么叫 Spook，它要做什么。你的 Home Assistant 里那个幽灵背后的故事。","07.about-the-project\u002F02.background-and-history",{"title":1054},"背景与历史",{"subtitle":1056,"offers":1057,"counts":1058,"repairs":1059,"sections":42},"Every story has a beginning.",[],{},[],{"path":1061,"title":1062,"description":1063,"stem":1064,"navigation":1065,"meta":1066},"\u002Fmedia","媒体上的 Spook","Spook 想在好莱坞星光大道上拿一颗星。这里列出了提到 Home Assistant 的 Spook 的媒体。","07.about-the-project\u002F03.media",{"title":1062},{"subtitle":1067,"offers":1068,"counts":1069,"repairs":1070,"sections":71},"Spook's road to his star ⭐️ on the Hollywood Walk of Fame.",[],{},[],{"path":1072,"title":1073,"description":1074,"stem":1075,"navigation":1076,"meta":1078},"\u002Fprevious-features","Spook 以前提供的功能","有时功能会从 Spook 中移除。大多数时候，是因为 Home Assistant 本身已经有了这个功能。这一页留给这些退场的功能。","07.about-the-project\u002F04.previous-features",{"title":1077},"以前的功能",{"subtitle":1079,"offers":1080,"counts":1081,"repairs":1082,"sections":71},"Adieu, goodbye, auf Wiederseh'n!",[],{},[],{"path":1084,"title":1085,"description":1086,"stem":1087,"navigation":1088,"meta":1090},"\u002Fdevelopment","开发与贡献","Spook 是一个开源项目，欢迎贡献！下面是你可以为 Spook 做贡献的方式。","07.about-the-project\u002F05.development",{"title":1089},"开发",{"subtitle":1091,"offers":1092,"counts":1093,"repairs":1094,"sections":42},"Be the change. Contribute. Be Spook 👻.",[],{},[],{"path":1096,"title":1097,"description":1098,"stem":1099,"navigation":15,"meta":1100},"\u002Fsecurity","安全","在 Spook 里发现了安全漏洞？这里说明怎么负责任地报告，以及我们怎么处理。","07.about-the-project\u002F06.security",{"subtitle":1101,"offers":1102,"counts":1103,"repairs":1104,"sections":118},"The S in IoT stands for security.",[],{},[],{"path":1106,"title":1107,"description":13,"stem":1108,"navigation":15,"meta":1109},"\u002Fboring-stuff\u002F.navigation","Boring stuff","08.boring-stuff\u002F.navigation",{},{"path":1111,"title":1112,"description":1113,"stem":1114,"navigation":15,"meta":1115},"\u002Fdisclaimers","Disclaimers","The fine print. Spook is not affiliated with or supported by the Home Assistant project, and comes as-is, without any warranty.","08.boring-stuff\u002F01.disclaimers",{"subtitle":1116,"offers":1117,"counts":1118,"repairs":1119,"sections":71},"Some disclaimer stuff you should read.",[],{},[],{"path":1121,"title":1122,"description":1123,"stem":1124,"navigation":15,"meta":1125},"\u002Fcode-of-conduct","Code of conduct","The Spook project has a code of conduct, that applies to all of its spaces.","08.boring-stuff\u002F02.code-of-conduct",{"subtitle":1126,"offers":1127,"counts":1128,"repairs":1129,"sections":578},"But remember, Spook is still your homie.",[],{},[],{"path":1131,"title":1132,"description":1133,"stem":1134,"navigation":1135,"meta":1137},"\u002Flicense","Spook licenses","The Spook integration for Home Assistant is mostly licensed under the MIT License.","08.boring-stuff\u002F03.license",{"title":1136},"License",{"subtitle":1138,"offers":1139,"counts":1140,"repairs":1141,"sections":29},"The license used by Spook",[],{},[],{"path":1143,"title":1144,"description":13,"stem":1145,"navigation":15,"meta":1146},"\u002Fguides\u002F.navigation","Guides","09.guides\u002F.navigation",{},{"path":1148,"title":1149,"description":1150,"stem":1151,"navigation":15,"meta":1152},"\u002Ffix-your-first-repair","修复你的第一条修复","Spook 在你的某个自动化里发现了问题。这份指南一步一步带你从 Home Assistant 里的修复走到一个能正常工作的自动化，不用碰 YAML。","09.guides\u002F01.fix-your-first-repair",{"subtitle":1153,"offers":1154,"counts":1155,"repairs":1156,"sections":578},"From \"Spook has found a ghost\" to a working automation.",[],{},[],{"path":1158,"title":1159,"description":1160,"stem":1161,"navigation":1162,"meta":1164},"\u002Fupdating","更新 Spook","Spook 的新版本怎样到达你的 Home Assistant，版本号是什么意思，以及 Home Assistant 更新让 Spook 出问题时该怎么办。","09.guides\u002F02.updating",{"title":1163},"更新",{"subtitle":1165,"offers":1166,"counts":1167,"repairs":1168,"sections":42},"New ghost, same haunt.",[],{},[],{"path":1170,"title":1171,"description":1172,"stem":1173,"navigation":1174,"meta":1176},"\u002Ftroubleshooting","当有些东西不对劲时","Spook 没有按你预期的那样工作时的简短回答。没出现的修复、错误的修复、找不到的动作，以及怎样获取日志。","09.guides\u002F03.troubleshooting",{"title":1175},"故障排除",{"subtitle":1177,"offers":1178,"counts":1179,"repairs":1180,"sections":129},"Who you gonna call?",[],{},[],{"path":1182,"title":1183,"description":1184,"stem":1185,"navigation":1186,"meta":1188},"\u002Funinstalling","移除 Spook","怎样从 Home Assistant 中移除（卸载）Spook。先检查什么，要做哪些步骤，哪些会跟着走，哪些会留下，哪些会停止工作。","09.guides\u002F04.uninstalling",{"title":1187},"移除",{"subtitle":1189,"offers":1190,"counts":1191,"repairs":1192,"sections":118},"No hard feelings. Ghosts are used to it.",[],{},[],[1194,1196,1201,1206,1211,1213,1218,1223,1228,1230,1235,1240,1245,1250,1255,1260,1265,1270,1275,1280,1285,1287,1292,1299,1305,1325,1330,1335,1340,1357,1363,1368,1373,1378,1384,1398,1404,1409,1414,1419,1424,1429,1434,1439,1444,1449,1455,1460,1466,1474,1480,1485,1491,1497,1502,1521,1526,1531,1537,1545,1550,1555,1561,1567,1572,1577,1582,1584,1589,1594,1599,1604,1606,1611,1616,1621,1626,1631,1636,1638,1643,1648,1653,1658,1663,1668,1673,1675,1680,1685,1690,1692,1697,1702,1707],{"path":11,"stem":14,"meta":1195},{},{"path":18,"stem":21,"meta":1197},{"subtitle":25,"offers":1198,"counts":1199,"repairs":1200,"sections":29},[],{},[],{"path":31,"stem":34,"meta":1202},{"subtitle":38,"offers":1203,"counts":1204,"repairs":1205,"sections":42},[],{},[],{"path":44,"stem":47,"meta":1207},{"subtitle":49,"offers":1208,"counts":1209,"repairs":1210,"sections":53},[],{},[],{"path":55,"stem":57,"meta":1212},{},{"path":60,"stem":63,"meta":1214},{"subtitle":67,"offers":1215,"counts":1216,"repairs":1217,"sections":71},[],{},[],{"path":73,"stem":76,"meta":1219},{"subtitle":78,"offers":1220,"counts":1221,"repairs":1222,"sections":29},[],{},[],{"path":83,"stem":86,"meta":1224},{"subtitle":88,"offers":1225,"counts":1226,"repairs":1227,"sections":29},[90],{"actions":29},[],{"path":94,"stem":96,"meta":1229},{},{"path":99,"stem":102,"meta":1231},{"subtitle":105,"offers":1232,"counts":1233,"repairs":1234,"sections":71},[],{},[],{"path":110,"stem":113,"meta":1236},{"subtitle":115,"offers":1237,"counts":1238,"repairs":1239,"sections":29},[90],{"actions":118},[],{"path":121,"stem":124,"meta":1241},{"subtitle":126,"offers":1242,"counts":1243,"repairs":1244,"sections":29},[90],{"actions":129},[],{"path":132,"stem":135,"meta":1246},{"subtitle":137,"offers":1247,"counts":1248,"repairs":1249,"sections":29},[90],{"actions":118},[],{"path":142,"stem":145,"meta":1251},{"subtitle":147,"offers":1252,"counts":1253,"repairs":1254,"sections":29},[90],{"actions":150},[],{"path":153,"stem":156,"meta":1256},{"subtitle":158,"offers":1257,"counts":1258,"repairs":1259,"sections":29},[90],{"actions":161},[],{"path":164,"stem":167,"meta":1261},{"subtitle":169,"offers":1262,"counts":1263,"repairs":1264,"sections":29},[90],{"actions":29},[],{"path":174,"stem":177,"meta":1266},{"subtitle":179,"offers":1267,"counts":1268,"repairs":1269,"sections":29},[90],{"actions":182},[],{"path":185,"stem":188,"meta":1271},{"subtitle":190,"offers":1272,"counts":1273,"repairs":1274,"sections":29},[192],{"entities":194},[],{"path":197,"stem":200,"meta":1276},{"subtitle":202,"offers":1277,"counts":1278,"repairs":1279,"sections":29},[90],{"actions":194},[],{"path":207,"stem":210,"meta":1281},{"subtitle":212,"offers":1282,"counts":1283,"repairs":1284,"sections":29},[90],{"actions":215},[],{"path":218,"stem":220,"meta":1286},{},{"path":223,"stem":226,"meta":1288},{"subtitle":230,"offers":1289,"counts":1290,"repairs":1291,"sections":71},[],{},[],{"path":235,"stem":238,"meta":1293},{"subtitle":240,"offers":1294,"counts":1295,"repairs":1296,"sections":194},[242],{"repairs":194},[1297,1298],{"id":246,"title":247,"summary":248},{"id":250,"title":251,"summary":252},{"path":254,"stem":257,"meta":1300},{"subtitle":259,"offers":1301,"counts":1302,"repairs":1303,"sections":194},[242],{"repairs":215},[1304],{"id":264,"title":265,"summary":266},{"path":268,"stem":271,"meta":1306},{"subtitle":273,"offers":1307,"counts":1308,"repairs":1309,"sections":194},[90,242],{"actions":194,"repairs":276},[1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324],{"id":279,"title":280,"summary":281},{"id":283,"title":284,"summary":285},{"id":287,"title":288,"summary":289},{"id":291,"title":292,"summary":293},{"id":295,"title":296,"summary":297},{"id":299,"title":300,"summary":301},{"id":303,"title":304,"summary":305},{"id":307,"title":308,"summary":309},{"id":311,"title":312,"summary":313},{"id":315,"title":316,"summary":317},{"id":319,"title":320,"summary":321},{"id":323,"title":324,"summary":325},{"id":327,"title":328,"summary":329},{"id":331,"title":332,"summary":333},{"id":335,"title":336,"summary":337},{"path":339,"stem":342,"meta":1326},{"subtitle":344,"offers":1327,"counts":1328,"repairs":1329,"sections":29},[192,90],{"entities":215,"actions":215},[],{"path":349,"stem":352,"meta":1331},{"subtitle":354,"offers":1332,"counts":1333,"repairs":1334,"sections":215},[90],{"actions":194},[],{"path":359,"stem":362,"meta":1336},{"subtitle":364,"offers":1337,"counts":1338,"repairs":1339,"sections":215},[90],{"actions":194},[],{"path":369,"stem":372,"meta":1341},{"subtitle":374,"offers":1342,"counts":1343,"repairs":1344,"sections":215},[242],{"repairs":377},[1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356],{"id":299,"title":300,"summary":380},{"id":279,"title":280,"summary":382},{"id":283,"title":284,"summary":384},{"id":287,"title":288,"summary":386},{"id":388,"title":389,"summary":390},{"id":392,"title":393,"summary":394},{"id":307,"title":308,"summary":396},{"id":335,"title":336,"summary":398},{"id":400,"title":401,"summary":402},{"id":404,"title":405,"summary":406},{"id":408,"title":409,"summary":410},{"id":412,"title":413,"summary":414},{"path":416,"stem":419,"meta":1358},{"subtitle":421,"offers":1359,"counts":1360,"repairs":1361,"sections":194},[90,242],{"actions":29,"repairs":215},[1362],{"id":426,"title":427,"summary":428},{"path":430,"stem":433,"meta":1364},{"subtitle":435,"offers":1365,"counts":1366,"repairs":1367,"sections":194},[192],{"entities":215},[],{"path":440,"stem":443,"meta":1369},{"subtitle":445,"offers":1370,"counts":1371,"repairs":1372,"sections":194},[90],{"actions":194},[],{"path":450,"stem":453,"meta":1374},{"subtitle":455,"offers":1375,"counts":1376,"repairs":1377,"sections":215},[90],{"actions":194},[],{"path":460,"stem":463,"meta":1379},{"subtitle":465,"offers":1380,"counts":1381,"repairs":1382,"sections":194},[242],{"repairs":215},[1383],{"id":299,"title":300,"summary":470},{"path":472,"stem":475,"meta":1385},{"subtitle":477,"offers":1386,"counts":1387,"repairs":1388,"sections":42},[242],{"repairs":129},[1389,1390,1391,1392,1393,1394,1395,1396,1397],{"id":482,"title":483,"summary":484},{"id":486,"title":487,"summary":488},{"id":490,"title":491,"summary":492},{"id":494,"title":495,"summary":496},{"id":307,"title":308,"summary":498},{"id":500,"title":501,"summary":502},{"id":504,"title":505,"summary":506},{"id":508,"title":509,"summary":510},{"id":512,"title":513,"summary":514},{"path":516,"stem":519,"meta":1399},{"subtitle":521,"offers":1400,"counts":1401,"repairs":1402,"sections":215},[242],{"repairs":215},[1403],{"id":526,"title":527,"summary":528},{"path":530,"stem":533,"meta":1405},{"subtitle":535,"offers":1406,"counts":1407,"repairs":1408,"sections":215},[90],{"actions":194},[],{"path":540,"stem":543,"meta":1410},{"subtitle":545,"offers":1411,"counts":1412,"repairs":1413,"sections":194},[90],{"actions":194},[],{"path":550,"stem":553,"meta":1415},{"subtitle":555,"offers":1416,"counts":1417,"repairs":1418,"sections":194},[90],{"actions":194},[],{"path":560,"stem":563,"meta":1420},{"subtitle":565,"offers":1421,"counts":1422,"repairs":1423,"sections":194},[90],{"actions":194},[],{"path":570,"stem":573,"meta":1425},{"subtitle":575,"offers":1426,"counts":1427,"repairs":1428,"sections":194},[90],{"actions":578},[],{"path":581,"stem":584,"meta":1430},{"subtitle":586,"offers":1431,"counts":1432,"repairs":1433,"sections":194},[90],{"actions":53},[],{"path":591,"stem":594,"meta":1435},{"subtitle":596,"offers":1436,"counts":1437,"repairs":1438,"sections":194},[90],{"actions":194},[],{"path":601,"stem":604,"meta":1440},{"subtitle":606,"offers":1441,"counts":1442,"repairs":1443,"sections":215},[90],{"actions":53},[],{"path":611,"stem":614,"meta":1445},{"subtitle":616,"offers":1446,"counts":1447,"repairs":1448,"sections":215},[90],{"actions":194},[],{"path":621,"stem":624,"meta":1450},{"subtitle":626,"offers":1451,"counts":1452,"repairs":1453,"sections":194},[242],{"repairs":215},[1454],{"id":631,"title":632,"summary":633},{"path":635,"stem":638,"meta":1456},{"subtitle":640,"offers":1457,"counts":1458,"repairs":1459,"sections":194},[90],{"actions":42},[],{"path":645,"stem":648,"meta":1461},{"subtitle":650,"offers":1462,"counts":1463,"repairs":1464,"sections":29},[90,242],{"actions":194,"repairs":215},[1465],{"id":655,"title":656,"summary":657},{"path":659,"stem":662,"meta":1467},{"subtitle":664,"offers":1468,"counts":1469,"repairs":1470,"sections":215},[242],{"repairs":29},[1471,1472,1473],{"id":669,"title":670,"summary":671},{"id":673,"title":674,"summary":675},{"id":677,"title":678,"summary":679},{"path":681,"stem":684,"meta":1475},{"subtitle":686,"offers":1476,"counts":1477,"repairs":1478,"sections":29},[90,242],{"actions":215,"repairs":215},[1479],{"id":691,"title":692,"summary":693},{"path":695,"stem":698,"meta":1481},{"subtitle":700,"offers":1482,"counts":1483,"repairs":1484,"sections":29},[192,90],{"entities":29,"actions":118},[],{"path":705,"stem":708,"meta":1486},{"subtitle":710,"offers":1487,"counts":1488,"repairs":1489,"sections":215},[242],{"repairs":215},[1490],{"id":426,"title":427,"summary":715},{"path":717,"stem":720,"meta":1492},{"subtitle":722,"offers":1493,"counts":1494,"repairs":1495,"sections":215},[242],{"repairs":215},[1496],{"id":299,"title":300,"summary":727},{"path":729,"stem":732,"meta":1498},{"subtitle":734,"offers":1499,"counts":1500,"repairs":1501,"sections":194},[90],{"actions":29},[],{"path":739,"stem":742,"meta":1503},{"subtitle":744,"offers":1504,"counts":1505,"repairs":1506,"sections":215},[242],{"repairs":182},[1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520],{"id":279,"title":280,"summary":749},{"id":283,"title":284,"summary":751},{"id":287,"title":288,"summary":753},{"id":291,"title":292,"summary":755},{"id":295,"title":296,"summary":757},{"id":299,"title":300,"summary":759},{"id":303,"title":304,"summary":761},{"id":307,"title":308,"summary":763},{"id":311,"title":312,"summary":765},{"id":315,"title":316,"summary":767},{"id":319,"title":320,"summary":769},{"id":323,"title":324,"summary":771},{"id":331,"title":332,"summary":773},{"id":335,"title":336,"summary":775},{"path":777,"stem":780,"meta":1522},{"subtitle":782,"offers":1523,"counts":1524,"repairs":1525,"sections":194},[90],{"actions":215},[],{"path":787,"stem":790,"meta":1527},{"subtitle":792,"offers":1528,"counts":1529,"repairs":1530,"sections":194},[90],{"actions":215},[],{"path":797,"stem":800,"meta":1532},{"subtitle":802,"offers":1533,"counts":1534,"repairs":1535,"sections":215},[242],{"repairs":215},[1536],{"id":426,"title":427,"summary":807},{"path":809,"stem":812,"meta":1538},{"subtitle":814,"offers":1539,"counts":1540,"repairs":1541,"sections":215},[242],{"repairs":29},[1542,1543,1544],{"id":299,"title":300,"summary":819},{"id":303,"title":304,"summary":821},{"id":283,"title":284,"summary":823},{"path":825,"stem":828,"meta":1546},{"subtitle":830,"offers":1547,"counts":1548,"repairs":1549,"sections":194},[90],{"actions":29},[],{"path":835,"stem":838,"meta":1551},{"subtitle":840,"offers":1552,"counts":1553,"repairs":1554,"sections":215},[90],{"actions":215},[],{"path":845,"stem":848,"meta":1556},{"subtitle":850,"offers":1557,"counts":1558,"repairs":1559,"sections":215},[242],{"repairs":215},[1560],{"id":426,"title":427,"summary":855},{"path":857,"stem":860,"meta":1562},{"subtitle":862,"offers":1563,"counts":1564,"repairs":1565,"sections":215},[242],{"repairs":215},[1566],{"id":426,"title":427,"summary":867},{"path":869,"stem":872,"meta":1568},{"subtitle":874,"offers":1569,"counts":1570,"repairs":1571,"sections":215},[90],{"actions":194},[],{"path":879,"stem":882,"meta":1573},{"subtitle":884,"offers":1574,"counts":1575,"repairs":1576,"sections":215},[90],{"actions":194},[],{"path":889,"stem":892,"meta":1578},{"subtitle":894,"offers":1579,"counts":1580,"repairs":1581,"sections":194},[90],{"actions":29},[],{"path":899,"stem":901,"meta":1583},{},{"path":904,"stem":907,"meta":1585},{"subtitle":910,"offers":1586,"counts":1587,"repairs":1588,"sections":71},[],{},[],{"path":915,"stem":918,"meta":1590},{"subtitle":920,"offers":1591,"counts":1592,"repairs":1593,"sections":194},[],{},[],{"path":925,"stem":928,"meta":1595},{"subtitle":930,"offers":1596,"counts":1597,"repairs":1598,"sections":42},[],{},[],{"path":935,"stem":938,"meta":1600},{"subtitle":940,"offers":1601,"counts":1602,"repairs":1603,"sections":42},[],{},[],{"path":945,"stem":947,"meta":1605},{},{"path":950,"stem":953,"meta":1607},{"subtitle":957,"offers":1608,"counts":1609,"repairs":1610,"sections":961},[],{},[],{"path":963,"stem":966,"meta":1612},{"subtitle":970,"offers":1613,"counts":1614,"repairs":1615,"sections":129},[],{},[],{"path":975,"stem":978,"meta":1617},{"subtitle":982,"offers":1618,"counts":1619,"repairs":1620,"sections":986},[],{},[],{"path":988,"stem":991,"meta":1622},{"subtitle":994,"offers":1623,"counts":1624,"repairs":1625,"sections":71},[],{},[],{"path":999,"stem":1002,"meta":1627},{"subtitle":1004,"offers":1628,"counts":1629,"repairs":1630,"sections":1008},[],{},[],{"path":1010,"stem":1013,"meta":1632},{"subtitle":344,"offers":1633,"counts":1634,"repairs":1635,"sections":71},[],{},[],{"path":1020,"stem":1022,"meta":1637},{},{"path":1025,"stem":1028,"meta":1639},{"subtitle":1032,"offers":1640,"counts":1641,"repairs":1642,"sections":42},[],{},[],{"path":1037,"stem":1040,"meta":1644},{"subtitle":1044,"offers":1645,"counts":1646,"repairs":1647,"sections":71},[],{},[],{"path":1049,"stem":1052,"meta":1649},{"subtitle":1056,"offers":1650,"counts":1651,"repairs":1652,"sections":42},[],{},[],{"path":1061,"stem":1064,"meta":1654},{"subtitle":1067,"offers":1655,"counts":1656,"repairs":1657,"sections":71},[],{},[],{"path":1072,"stem":1075,"meta":1659},{"subtitle":1079,"offers":1660,"counts":1661,"repairs":1662,"sections":71},[],{},[],{"path":1084,"stem":1087,"meta":1664},{"subtitle":1091,"offers":1665,"counts":1666,"repairs":1667,"sections":42},[],{},[],{"path":1096,"stem":1099,"meta":1669},{"subtitle":1101,"offers":1670,"counts":1671,"repairs":1672,"sections":118},[],{},[],{"path":1106,"stem":1108,"meta":1674},{},{"path":1111,"stem":1114,"meta":1676},{"subtitle":1116,"offers":1677,"counts":1678,"repairs":1679,"sections":71},[],{},[],{"path":1121,"stem":1124,"meta":1681},{"subtitle":1126,"offers":1682,"counts":1683,"repairs":1684,"sections":578},[],{},[],{"path":1131,"stem":1134,"meta":1686},{"subtitle":1138,"offers":1687,"counts":1688,"repairs":1689,"sections":29},[],{},[],{"path":1143,"stem":1145,"meta":1691},{},{"path":1148,"stem":1151,"meta":1693},{"subtitle":1153,"offers":1694,"counts":1695,"repairs":1696,"sections":578},[],{},[],{"path":1158,"stem":1161,"meta":1698},{"subtitle":1165,"offers":1699,"counts":1700,"repairs":1701,"sections":42},[],{},[],{"path":1170,"stem":1173,"meta":1703},{"subtitle":1177,"offers":1704,"counts":1705,"repairs":1706,"sections":129},[],{},[],{"path":1182,"stem":1185,"meta":1708},{"subtitle":1189,"offers":1709,"counts":1710,"repairs":1711,"sections":118},[],{},[],{"id":1713,"title":84,"body":1714,"description":85,"extension":11775,"links":13,"meta":11776,"navigation":15,"path":83,"reference":13,"seo":11781,"stem":86,"__hash__":11782},"docs_zh_hans\u002F02.features\u002F02.other-features.md",{"type":1715,"value":1716,"toc":11732},"minimark",[1717,1721,1724,1727,1730,1735,1738,1746,1752,1779,1784,1795,1930,1934,1937,1944,1948,1965,1969,1976,2068,2072,2075,2083,2090,2094,2129,2132,2138,2147,2732,2735,2746,2753,2757,2760,2763,2766,2770,2797,2804,2812,3028,3032,3035,3038,3042,3072,3079,3086,3313,3317,3320,3335,3339,3358,3365,3484,3488,3491,3494,3497,3501,3534,3541,3780,3784,3787,3790,3794,3812,3819,3968,3972,3975,3978,3981,3985,4015,4022,4245,4249,4252,4255,4259,4277,4284,4381,4385,4388,4391,4394,4398,4430,4437,4669,4673,4676,4679,4683,4712,4719,4893,4897,4900,4903,4907,4941,4948,5160,5164,5167,5170,5174,5198,5205,5328,5332,5335,5338,5342,5376,5383,5604,5608,5611,5614,5618,5641,5648,5862,5866,5869,5876,5879,5883,5906,5913,6064,6068,6071,6074,6078,6157,6164,6170,6911,6915,6918,6921,6925,6943,6950,7084,7088,7091,7097,7105,7109,7141,7148,7527,7531,7534,7537,7540,7544,7575,7582,7590,7894,7897,7900,7908,7912,7950,7957,8357,8361,8364,8367,8379,8383,8416,8423,8429,8670,8673,8676,8679,8682,8686,8723,8730,8975,8979,8982,8985,8989,9027,9034,9301,9304,9307,9310,9313,9317,9340,9347,9652,9654,9671,9674,9677,9680,9683,9687,9710,9717,9903,9907,9910,9915,9925,9929,9947,9954,10066,10069,10072,10075,10079,10104,10111,10118,10289,10293,10296,10299,10303,10331,10338,10449,10453,10456,10459,10463,10486,10493,10665,10669,10672,10675,10679,10708,10715,10725,10907,10911,10914,10920,10924,10960,10967,11197,11200,11203,11209,11212,11216,11253,11260,11468,11472,11475,11483,11487,11516,11523,11728],[1718,1719,1720],"p",{},"Spook 添加的东西并不都属于某一个集成。这个页面放的是其余那些：Home Assistant 没有的触发条件和条件，一个等待条件的动作，以及两个除了失败什么都不做的动作。",[1718,1722,1723],{},"后面这两个是 Spook 起步的地方。它们是 Spook 的概念验证，之所以留下来，是因为它们好玩（也许你真的用得上）。",[1725,1726,955],"h2",{"id":90},[1718,1728,1729],{},"Spook 添加了三个自己的动作。在任何可以添加动作的地方都能找到它们，带有 👻 标记。",[1731,1732,1734],"h3",{"id":1733},"boo","吓一跳！",[1718,1736,1737],{},"失败。每次都失败。",[1718,1739,1740,1741,1745],{},"调用它会吓到 Home Assistant：这个动作会报错“Spooked! 👻”，调用它的自动化或脚本就停在那里。日常生活中没什么用。用来看看某一步出错时你的自动化会怎么做，倒是很方便。比如，检查 ",[1742,1743,1744],"code",{},"continue_on_error","，或者你在失败时发的通知，有没有起作用。",[1718,1747,1748],{},[1749,1750,1751],"strong",{},"使用方法",[1753,1754,1755,1763,1773],"ol",{},[1756,1757,1758,1759,1762],"li",{},"打开自动化或脚本，选择",[1749,1760,1761],{},"添加动作","。",[1756,1764,1765,1766,1769,1770,1762],{},"搜索",[1749,1767,1768],{},"吓一跳","，选择 ",[1749,1771,1772],{},"Spook: 吓一跳！ 👻",[1756,1774,1775,1776,1762],{},"没有什么要填的。选择",[1749,1777,1778],{},"保存",[1780,1781],"screenshot",{"alt":1782,"name":1783},"工具页面上 Spook 的吓一跳！动作。","action-spook-boo",[1718,1785,1786,1787,1794],{},"只想看看它怎么工作？",[1788,1789,1793],"a",{"href":1790,"rel":1791},"https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fdeveloper_call_service\u002F?service=spook.boo",[1792],"nofollow","试试这个动作","会在你的 Home Assistant 中打开它，可以直接运行一次。剧透：它会失败。",[1796,1797,1798,1899],"accordion",{},[1799,1800,1803],"accordion-item",{"icon":1801,"label":1802},"i-mdi-cog-outline","技术细节",[1804,1805,1806,1816],"table",{},[1807,1808,1809],"thead",{},[1810,1811,1812],"tr",{},[1813,1814,1815],"th",{"colspan":194},"动作属性",[1817,1818,1819,1831,1844,1855,1866,1877],"tbody",{},[1810,1820,1821,1828],{},[1822,1823,1824],"td",{},[1825,1826,955],"term",{"to":1827},"action",[1822,1829,1830],{},"吓一跳！ 👻",[1810,1832,1833,1839],{},[1822,1834,1835],{},[1825,1836,1838],{"to":1837},"action name","动作名称",[1822,1840,1841],{},[1742,1842,1843],{},"spook.boo",[1810,1845,1846,1852],{},[1822,1847,1848],{},[1825,1849,1851],{"to":1850},"action targets","动作目标",[1822,1853,1854],{},"否",[1810,1856,1857,1863],{},[1822,1858,1859],{},[1825,1860,1862],{"to":1861},"action response","动作响应",[1822,1864,1865],{},"无响应",[1810,1867,1868,1874],{},[1822,1869,1870],{},[1825,1871,1873],{"to":1872},"influence of spook","Spook 的作用",[1822,1875,1876],{},"新增动作",[1810,1878,1879,1885],{},[1822,1880,1881],{},[1825,1882,1884],{"to":1883},"tools","工具",[1822,1886,1887,1890,1891],{},[1788,1888,1793],{"href":1790,"rel":1889},[1792]," ",[1788,1892,1894],{"href":1790,"rel":1893},[1792],[1895,1896],"img",{"alt":1897,"src":1898},"打开你的 Home Assistant 实例，显示选中了指定动作的动作工具。","https:\u002F\u002Fmy.home-assistant.io\u002Fbadges\u002Fdeveloper_call_service.svg",[1799,1900,1903,1906],{"icon":1901,"label":1902},"i-mdi-code-braces","YAML 动作示例",[1718,1904,1905],{},"这个动作没有字段，所以全部内容就是这些：",[1907,1908,1913],"pre",{"className":1909,"code":1910,"language":1911,"meta":1912,"style":1912},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","action: spook.boo\n","yaml","",[1742,1914,1915],{"__ignoreMap":1912},[1916,1917,1919,1922,1926],"span",{"class":1918,"line":215},"line",[1916,1920,1827],{"class":1921},"swJcz",[1916,1923,1925],{"class":1924},"sMK4o",":",[1916,1927,1929],{"class":1928},"sfazB"," spook.boo\n",[1731,1931,1933],{"id":1932},"random-fail","随机失败",[1718,1935,1936],{},"一半的时候会失败。",[1718,1938,1939,1940,1943],{},"每次调用都抛一次硬币：正面，动作通过，自动化继续；反面，动作失败，自动化停止。和",[1788,1941,1734],{"href":1942},"#boo","是同一个思路，适合用在偶尔失败的东西才是更好的测试时。比如你为一个不总是应答的设备做的重试。",[1718,1945,1946],{},[1749,1947,1751],{},[1753,1949,1950,1954,1961],{},[1756,1951,1758,1952,1762],{},[1749,1953,1761],{},[1756,1955,1765,1956,1769,1958,1762],{},[1749,1957,1933],{},[1749,1959,1960],{},"Spook: 随机失败 👻",[1756,1962,1775,1963,1762],{},[1749,1964,1778],{},[1780,1966],{"alt":1967,"name":1968},"工具页面上 Spook 的随机失败动作。","action-spook-random-fail",[1718,1970,1786,1971,1975],{},[1788,1972,1793],{"href":1973,"rel":1974},"https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fdeveloper_call_service\u002F?service=spook.random_fail",[1792],"会在你的 Home Assistant 中打开它，可以直接运行一次。",[1796,1977,1978,2050],{},[1799,1979,1980],{"icon":1801,"label":1802},[1804,1981,1982,1988],{},[1807,1983,1984],{},[1810,1985,1986],{},[1813,1987,1815],{"colspan":194},[1817,1989,1990,1999,2010,2018,2026,2034],{},[1810,1991,1992,1996],{},[1822,1993,1994],{},[1825,1995,955],{"to":1827},[1822,1997,1998],{},"随机失败 👻",[1810,2000,2001,2005],{},[1822,2002,2003],{},[1825,2004,1838],{"to":1837},[1822,2006,2007],{},[1742,2008,2009],{},"spook.random_fail",[1810,2011,2012,2016],{},[1822,2013,2014],{},[1825,2015,1851],{"to":1850},[1822,2017,1854],{},[1810,2019,2020,2024],{},[1822,2021,2022],{},[1825,2023,1862],{"to":1861},[1822,2025,1865],{},[1810,2027,2028,2032],{},[1822,2029,2030],{},[1825,2031,1873],{"to":1872},[1822,2033,1876],{},[1810,2035,2036,2040],{},[1822,2037,2038],{},[1825,2039,1884],{"to":1883},[1822,2041,2042,1890,2045],{},[1788,2043,1793],{"href":1973,"rel":2044},[1792],[1788,2046,2048],{"href":1973,"rel":2047},[1792],[1895,2049],{"alt":1897,"src":1898},[1799,2051,2052,2054],{"icon":1901,"label":1902},[1718,2053,1905],{},[1907,2055,2057],{"className":1909,"code":2056,"language":1911,"meta":1912,"style":1912},"action: spook.random_fail\n",[1742,2058,2059],{"__ignoreMap":1912},[1916,2060,2061,2063,2065],{"class":1918,"line":215},[1916,2062,1827],{"class":1921},[1916,2064,1925],{"class":1924},[1916,2066,2067],{"class":1928}," spook.random_fail\n",[1731,2069,2071],{"id":2070},"wait-for-a-condition","等待条件",[1718,2073,2074],{},"等到某个条件为真，如果已经为真就立刻继续。",[1718,2076,2077,2078,2082],{},"Home Assistant 可以等待一个模板变为真，也可以等待一个触发条件。但它不能等待一个条件。所以你用条件积木能搭出来的任何东西，都得先改写成一个",[1825,2079,2081],{"to":2080},"template","模板","（一小段算出一个值的代码），才能等待它。这个动作接受的条件，和你在其他任何地方搭建的条件一样。",[1718,2084,2085,2086,2089],{},"它还会先看一眼。等待触发条件总是在等某件事_发生_。如果后门已经关上了，你就会一直等下去，所以大家才会把这种等待包在一个",[1749,2087,2088],{},"如果-就","里。这个动作会在等待之前先检查条件，所以睡前流程碰到已经关上的门，就会继续往下走。",[1718,2091,2092],{},[1749,2093,1751],{},[1753,2095,2096,2101,2108,2114,2125],{},[1756,2097,2098,2099,1762],{},"打开自动化或脚本，在它应该等待的位置选择",[1749,2100,1761],{},[1756,2102,1765,2103,1769,2105,1762],{},[1749,2104,2071],{},[1749,2106,2107],{},"Spook: 等待条件 👻",[1756,2109,2110,2111,2113],{},"在",[1749,2112,968],{},"下添加要等待的条件，方式和在自动化中添加条件一样。",[1756,2115,2116,2117,2120,2121,2124],{},"可以把",[1749,2118,2119],{},"超时","设为放弃之前最多等多久，比如 ",[1742,2122,2123],{},"00:05:00","。留空就一直等下去。",[1756,2126,778,2127,1762],{},[1749,2128,1778],{},[1718,2130,2131],{},"超时到了以后，自动化或脚本会接着执行下一个动作，即使条件仍然为假。想在它放弃时做点别的，或者就此停下？下面的示例展示了怎样分辨是条件到了还是超时到了。",[1718,2133,1786,2134,1975],{},[1788,2135,1793],{"href":2136,"rel":2137},"https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fdeveloper_call_service\u002F?service=spook.wait_for_condition",[1792],[1780,2139,2142],{"alt":2140,"name":2141},"动作工具，选中了等待条件 👻，并填好了一个示例。","action-spook-wait-for-condition",[1718,2143,2144,2146],{},[1749,2145,1793],{},"打开的界面，填好了一个示例。",[1796,2148,2149,2317,2653],{},[1799,2150,2151,2222,2282,2285,2300],{"icon":1801,"label":1802},[1804,2152,2153,2159],{},[1807,2154,2155],{},[1810,2156,2157],{},[1813,2158,1815],{"colspan":194},[1817,2160,2161,2170,2181,2189,2198,2206],{},[1810,2162,2163,2167],{},[1822,2164,2165],{},[1825,2166,955],{"to":1827},[1822,2168,2169],{},"等待条件 👻",[1810,2171,2172,2176],{},[1822,2173,2174],{},[1825,2175,1838],{"to":1837},[1822,2177,2178],{},[1742,2179,2180],{},"spook.wait_for_condition",[1810,2182,2183,2187],{},[1822,2184,2185],{},[1825,2186,1851],{"to":1850},[1822,2188,1854],{},[1810,2190,2191,2195],{},[1822,2192,2193],{},[1825,2194,1862],{"to":1861},[1822,2196,2197],{},"可选响应",[1810,2199,2200,2204],{},[1822,2201,2202],{},[1825,2203,1873],{"to":1872},[1822,2205,1876],{},[1810,2207,2208,2212],{},[1822,2209,2210],{},[1825,2211,1884],{"to":1883},[1822,2213,2214,1890,2217],{},[1788,2215,1793],{"href":2136,"rel":2216},[1792],[1788,2218,2220],{"href":2136,"rel":2219},[1792],[1895,2221],{"alt":1897,"src":1898},[1804,2223,2224,2245],{},[1807,2225,2226,2231],{},[1810,2227,2228],{},[1813,2229,2230],{"colspan":42},"动作数据参数",[1810,2232,2233,2236,2239,2242],{},[1813,2234,2235],{},"属性",[1813,2237,2238],{},"类型",[1813,2240,2241],{},"必填",[1813,2243,2244],{},"默认值 \u002F 示例",[1817,2246,2247,2264],{},[1810,2248,2249,2254,2258,2261],{},[1822,2250,2251],{},[1742,2252,2253],{},"condition",[1822,2255,2256],{},[1825,2257,968],{"to":2253},[1822,2259,2260],{},"是",[1822,2262,2263],{},"任何条件，按普通方式搭建",[1810,2265,2266,2271,2277,2279],{},[1822,2267,2268],{},[1742,2269,2270],{},"timeout",[1822,2272,2273],{},[1825,2274,2276],{"to":2275},"string","字符串",[1822,2278,1854],{},[1822,2280,2281],{},"不填就无限期等待",[1718,2283,2284],{},"它接受一个条件或一个条件列表，列表意味着全部满足，和其他任何地方一样。可视化编辑器发送的也是这种形式，所以两种写法都可以。",[1718,2286,2287,2288,2291,2292,2295,2296,2299],{},"超时到了时，这个动作正常结束，下一个动作照常运行，没有 ",[1742,2289,2290],{},"response_variable"," 也一样。没有 ",[1742,2293,2294],{},"continue_on_timeout"," 选项：它始终和 Home Assistant 自带的等待动作在 ",[1742,2297,2298],{},"continue_on_timeout: true"," 时的行为一样。",[1718,2301,2302,2303,2305,2306,2309,2310,2313,2314,1762],{},"给了 ",[1742,2304,2290],{}," 时，它会返回 ",[1742,2307,2308],{},"completed","：条件满足时为 ",[1742,2311,2312],{},"true","（等待前就已经为真也算），超时到了时为 ",[1742,2315,2316],{},"false",[1799,2318,2319,2322,2387,2390,2528,2531,2638],{"icon":1901,"label":1902},[1718,2320,2321],{},"让流程停住，直到后门关上：",[1907,2323,2325],{"className":1909,"code":2324,"language":1911,"meta":1912,"style":1912},"action: spook.wait_for_condition\ndata:\n  condition:\n    condition: state\n    entity_id: binary_sensor.back_door\n    state: \"off\"\n",[1742,2326,2327,2336,2344,2351,2361,2371],{"__ignoreMap":1912},[1916,2328,2329,2331,2333],{"class":1918,"line":215},[1916,2330,1827],{"class":1921},[1916,2332,1925],{"class":1924},[1916,2334,2335],{"class":1928}," spook.wait_for_condition\n",[1916,2337,2338,2341],{"class":1918,"line":194},[1916,2339,2340],{"class":1921},"data",[1916,2342,2343],{"class":1924},":\n",[1916,2345,2346,2349],{"class":1918,"line":29},[1916,2347,2348],{"class":1921},"  condition",[1916,2350,2343],{"class":1924},[1916,2352,2353,2356,2358],{"class":1918,"line":42},[1916,2354,2355],{"class":1921},"    condition",[1916,2357,1925],{"class":1924},[1916,2359,2360],{"class":1928}," state\n",[1916,2362,2363,2366,2368],{"class":1918,"line":118},[1916,2364,2365],{"class":1921},"    entity_id",[1916,2367,1925],{"class":1924},[1916,2369,2370],{"class":1928}," binary_sensor.back_door\n",[1916,2372,2373,2376,2378,2381,2384],{"class":1918,"line":53},[1916,2374,2375],{"class":1921},"    state",[1916,2377,1925],{"class":1924},[1916,2379,2380],{"class":1924}," \"",[1916,2382,2383],{"class":1928},"off",[1916,2385,2386],{"class":1924},"\"\n",[1718,2388,2389],{},"五分钟后放弃，并为此做点别的：",[1907,2391,2393],{"className":1909,"code":2392,"language":1911,"meta":1912,"style":1912},"- action: spook.wait_for_condition\n  data:\n    timeout: \"00:05:00\"\n    condition:\n      condition: state\n      entity_id: binary_sensor.back_door\n      state: \"off\"\n  response_variable: waited\n- if: \"{{ not waited.completed }}\"\n  then:\n    - action: notify.persistent_notification\n      data:\n        message: The back door is still open.\n",[1742,2394,2395,2407,2414,2427,2433,2442,2451,2464,2474,2490,2497,2510,2517],{"__ignoreMap":1912},[1916,2396,2397,2400,2403,2405],{"class":1918,"line":215},[1916,2398,2399],{"class":1924},"-",[1916,2401,2402],{"class":1921}," action",[1916,2404,1925],{"class":1924},[1916,2406,2335],{"class":1928},[1916,2408,2409,2412],{"class":1918,"line":194},[1916,2410,2411],{"class":1921},"  data",[1916,2413,2343],{"class":1924},[1916,2415,2416,2419,2421,2423,2425],{"class":1918,"line":29},[1916,2417,2418],{"class":1921},"    timeout",[1916,2420,1925],{"class":1924},[1916,2422,2380],{"class":1924},[1916,2424,2123],{"class":1928},[1916,2426,2386],{"class":1924},[1916,2428,2429,2431],{"class":1918,"line":42},[1916,2430,2355],{"class":1921},[1916,2432,2343],{"class":1924},[1916,2434,2435,2438,2440],{"class":1918,"line":118},[1916,2436,2437],{"class":1921},"      condition",[1916,2439,1925],{"class":1924},[1916,2441,2360],{"class":1928},[1916,2443,2444,2447,2449],{"class":1918,"line":53},[1916,2445,2446],{"class":1921},"      entity_id",[1916,2448,1925],{"class":1924},[1916,2450,2370],{"class":1928},[1916,2452,2453,2456,2458,2460,2462],{"class":1918,"line":578},[1916,2454,2455],{"class":1921},"      state",[1916,2457,1925],{"class":1924},[1916,2459,2380],{"class":1924},[1916,2461,2383],{"class":1928},[1916,2463,2386],{"class":1924},[1916,2465,2466,2469,2471],{"class":1918,"line":150},[1916,2467,2468],{"class":1921},"  response_variable",[1916,2470,1925],{"class":1924},[1916,2472,2473],{"class":1928}," waited\n",[1916,2475,2476,2478,2481,2483,2485,2488],{"class":1918,"line":129},[1916,2477,2399],{"class":1924},[1916,2479,2480],{"class":1921}," if",[1916,2482,1925],{"class":1924},[1916,2484,2380],{"class":1924},[1916,2486,2487],{"class":1928},"{{ not waited.completed }}",[1916,2489,2386],{"class":1924},[1916,2491,2492,2495],{"class":1918,"line":161},[1916,2493,2494],{"class":1921},"  then",[1916,2496,2343],{"class":1924},[1916,2498,2500,2503,2505,2507],{"class":1918,"line":2499},11,[1916,2501,2502],{"class":1924},"    -",[1916,2504,2402],{"class":1921},[1916,2506,1925],{"class":1924},[1916,2508,2509],{"class":1928}," notify.persistent_notification\n",[1916,2511,2512,2515],{"class":1918,"line":377},[1916,2513,2514],{"class":1921},"      data",[1916,2516,2343],{"class":1924},[1916,2518,2520,2523,2525],{"class":1918,"line":2519},13,[1916,2521,2522],{"class":1921},"        message",[1916,2524,1925],{"class":1924},[1916,2526,2527],{"class":1928}," The back door is still open.\n",[1718,2529,2530],{},"超时到了就停止流程，用一个针对响应的条件：",[1907,2532,2534],{"className":1909,"code":2533,"language":1911,"meta":1912,"style":1912},"- action: spook.wait_for_condition\n  data:\n    timeout: \"00:05:00\"\n    condition:\n      condition: state\n      entity_id: binary_sensor.back_door\n      state: \"off\"\n  response_variable: waited\n- condition: template\n  value_template: \"{{ waited.completed }}\"\n# Later actions in this sequence only run when the condition was met.\n",[1742,2535,2536,2546,2552,2564,2570,2578,2586,2598,2606,2618,2632],{"__ignoreMap":1912},[1916,2537,2538,2540,2542,2544],{"class":1918,"line":215},[1916,2539,2399],{"class":1924},[1916,2541,2402],{"class":1921},[1916,2543,1925],{"class":1924},[1916,2545,2335],{"class":1928},[1916,2547,2548,2550],{"class":1918,"line":194},[1916,2549,2411],{"class":1921},[1916,2551,2343],{"class":1924},[1916,2553,2554,2556,2558,2560,2562],{"class":1918,"line":29},[1916,2555,2418],{"class":1921},[1916,2557,1925],{"class":1924},[1916,2559,2380],{"class":1924},[1916,2561,2123],{"class":1928},[1916,2563,2386],{"class":1924},[1916,2565,2566,2568],{"class":1918,"line":42},[1916,2567,2355],{"class":1921},[1916,2569,2343],{"class":1924},[1916,2571,2572,2574,2576],{"class":1918,"line":118},[1916,2573,2437],{"class":1921},[1916,2575,1925],{"class":1924},[1916,2577,2360],{"class":1928},[1916,2579,2580,2582,2584],{"class":1918,"line":53},[1916,2581,2446],{"class":1921},[1916,2583,1925],{"class":1924},[1916,2585,2370],{"class":1928},[1916,2587,2588,2590,2592,2594,2596],{"class":1918,"line":578},[1916,2589,2455],{"class":1921},[1916,2591,1925],{"class":1924},[1916,2593,2380],{"class":1924},[1916,2595,2383],{"class":1928},[1916,2597,2386],{"class":1924},[1916,2599,2600,2602,2604],{"class":1918,"line":150},[1916,2601,2468],{"class":1921},[1916,2603,1925],{"class":1924},[1916,2605,2473],{"class":1928},[1916,2607,2608,2610,2613,2615],{"class":1918,"line":129},[1916,2609,2399],{"class":1924},[1916,2611,2612],{"class":1921}," condition",[1916,2614,1925],{"class":1924},[1916,2616,2617],{"class":1928}," template\n",[1916,2619,2620,2623,2625,2627,2630],{"class":1918,"line":161},[1916,2621,2622],{"class":1921},"  value_template",[1916,2624,1925],{"class":1924},[1916,2626,2380],{"class":1924},[1916,2628,2629],{"class":1928},"{{ waited.completed }}",[1916,2631,2386],{"class":1924},[1916,2633,2634],{"class":1918,"line":2499},[1916,2635,2637],{"class":2636},"sHwdD","# Later actions in this sequence only run when the condition was met.\n",[1718,2639,2640,2641,2644,2645,2648,2649,2652],{},"在最顶层，一个为假的条件会停止自动化或脚本。在 ",[1742,2642,2643],{},"if"," 或 ",[1742,2646,2647],{},"repeat"," 里面，它只会停止那个嵌套的流程：父流程中它后面的动作，或者重复的下一轮，仍然可能运行。这和 Home Assistant 自带的等待在 ",[1742,2650,2651],{},"continue_on_timeout: false"," 时不同，后者会停止整个脚本，不管是否嵌套。",[1799,2654,2657],{"icon":2655,"label":2656},"i-mdi-alert-outline","已知限制",[2658,2659,2660,2680,2705,2720],"ul",{},[1756,2661,2662,2663,2666,2667,2644,2669,2671,2672,2675,2676,2679],{},"模板必须仍然是模板，这就排除了你通常会用的写法。脚本或自动化在调用动作之前，会先渲染动作数据中的每个模板。所以 ",[1742,2664,2665],{},"{{ is_state(...) }}"," 到达时，已经是那一刻碰巧算出来的 ",[1742,2668,2312],{},[1742,2670,2316],{},"。常量永远不会变，所以会被拒绝。Spook 只能看到还剩没剩 Jinja，看不到这个值是从哪里来的。直接调用中写死的 ",[1742,2673,2674],{},"value_template: true"," 也会被拒绝：等它到达时，两者已经是一回事了。从 API 或动作工具传来、仍然带着 Jinja 的模板，会像其他条件一样被监视。在脚本里，要等待模板，就用 ",[1742,2677,2678],{},"wait_template","，它就是干这个的。",[1756,2681,2682,2683,2686,2687,2690,2691,2690,2694,2690,2697,2700,2701,2704],{},"询问它所在的这次运行的条件也没法被监视，出于同样的原因会被拒绝：",[1742,2684,2685],{},"trigger","，以及 Spook 自己的 ",[1742,2688,2689],{},"cooldown","、",[1742,2692,2693],{},"quota",[1742,2695,2696],{},"triggered_by_user",[1742,2698,2699],{},"not_triggered_by_user"," 和 ",[1742,2702,2703],{},"triggered_by_automation","。动作调用不是触发条件，所以它们的答案没有意义。",[1756,2706,2707,2708,2711,2712,2715,2716,2719],{},"不管有没有事情发生，条件每 30 秒都会再检查一次，所以等待最多可能晚半分钟结束。这一轮轮询覆盖的是没有状态变化就到来的变化：普通的时间或太阳条件，",[1742,2709,2710],{},"for:"," 时间到了的 ",[1742,2713,2714],{},"state"," 条件，时刻已过的 ",[1742,2717,2718],{},"time"," 条件。在这 30 秒内变为真又变回假的条件，会被完全错过。",[1756,2721,2722,2723,2725,2726,2728,2729,1762],{},"没有 ",[1742,2724,2270],{}," 时，脚本运行多久它就等多久。停止自动化或脚本，等待也随之停止。",[1742,2727,2270],{}," 为零表示现在看一眼、不等待，所以除非条件已经为真，否则它会回答 ",[1742,2730,2731],{},"completed: false",[1725,2733,980],{"id":2734},"triggers",[1718,2736,2737,2738,2741,2742,2745],{},"Spook 把这些触发条件加到了自动化编辑器中，就在 Home Assistant 自带的那些旁边。要添加一个，打开自动化，在",[1749,2739,2740],{},"每当","下选择",[1749,2743,2744],{},"添加触发条件","，然后搜索它的名称。和 Spook 的动作不同，它们在列表中不带 👻：名称就是找到它们的方法。",[1780,2747,2750],{"alt":2748,"name":2749},"Home Assistant 编辑器中的一个自动化，用了 Spook 的 Cron 计划触发条件和冷却时间条件，以及一个普通的灯光动作。","automation-editor",[1718,2751,2752],{},"Spook 的触发条件和条件在编辑器里和其他的一样：这里是一个带冷却时间的 Cron 计划。",[1731,2754,2756],{"id":2755},"automation-turned-off","自动化已关闭",[1718,2758,2759],{},"在某个自动化被关闭时触发。",[1718,2761,2762],{},"关闭的自动化什么都不做，也不会说一声。排查问题时很容易把一个自动化关掉，然后忘了把它打开。这个触发条件会在关闭发生的那一刻告诉你，不管是谁或什么做的：编辑器里的某个人、另一个自动化，还是一次打盹。",[1718,2764,2765],{},"把目标留空，就能听到家里每个自动化的情况。这通常正是你想要的，也省得给所有自动化都打标签。",[1718,2767,2768],{},[1749,2769,1751],{},[1753,2771,2772,2779,2786,2792],{},[1756,2773,2774,2775,2741,2777,1762],{},"打开自动化，在",[1749,2776,2740],{},[1749,2778,2744],{},[1756,2780,1765,2781,2783,2784,1762],{},[1749,2782,2756],{},"，选择",[1749,2785,2756],{},[1756,2787,2110,2788,2791],{},[1749,2789,2790],{},"目标","下选择要监视的自动化，或者留空监视全部。",[1756,2793,2794,2795,1762],{},"添加你想要的动作，比如一条通知，然后选择",[1749,2796,1778],{},[1780,2798,2801],{"alt":2799,"name":2800},"自动化编辑器中选中的自动化已关闭触发条件，监视两个自动化，所在的自动化会发送一条提醒。","trigger-automation-turned-off",[1718,2802,2803],{},"两个关掉了你会想念的自动化，有人关掉其中一个时发一条提醒。",[1718,2805,2806,2807,2811],{},"只想在是某个人做的时候才知道？加上",[1788,2808,2810],{"href":2809},"#triggered-by-a-user","由用户触发","条件。",[1796,2813,2814,2895,3008],{},[1799,2815,2816,2871,2874],{"icon":1801,"label":1802},[1804,2817,2818,2825],{},[1807,2819,2820],{},[1810,2821,2822],{},[1813,2823,2824],{"colspan":194},"触发条件属性",[1817,2826,2827,2833,2843,2862],{},[1810,2828,2829,2831],{},[1822,2830,980],{},[1822,2832,2756],{},[1810,2834,2835,2838],{},[1822,2836,2837],{},"触发条件名称",[1822,2839,2840],{},[1742,2841,2842],{},"spook.automation_turned_off",[1810,2844,2845,2847],{},[1822,2846,2790],{},[1822,2848,269,2849,2690,2853,2690,2857,2861],{},[1825,2850,2852],{"to":2851},"entity","实体",[1825,2854,2856],{"to":2855},"device","设备",[1825,2858,2860],{"to":2859},"area","区域","、楼层和标签。可选：不填时监视每个自动化。",[1810,2863,2864,2868],{},[1822,2865,2866],{},[1825,2867,1873],{"to":1872},[1822,2869,2870],{},"新增触发条件",[1718,2872,2873],{},"这个触发条件没有选项。",[1718,2875,2876,2877,2880,2881,2700,2884,2887,2888,2700,2891,2894],{},"它触发时，",[1742,2878,2879],{},"trigger.entity_id"," 是这个自动化，",[1742,2882,2883],{},"trigger.from_state",[1742,2885,2886],{},"trigger.to_state"," 是它在关闭前后的状态。关闭它的是谁记录在上下文里，所以 ",[1742,2889,2890],{},"spook.triggered_by_user",[1742,2892,2893],{},"spook.not_triggered_by_user"," 能分辨是人还是自动化。",[1799,2896,2898,2901,2915,2918],{"icon":1901,"label":2897},"YAML 触发条件示例",[1718,2899,2900],{},"每个自动化：",[1907,2902,2904],{"className":1909,"code":2903,"language":1911,"meta":1912,"style":1912},"trigger: spook.automation_turned_off\n",[1742,2905,2906],{"__ignoreMap":1912},[1916,2907,2908,2910,2912],{"class":1918,"line":215},[1916,2909,2685],{"class":1921},[1916,2911,1925],{"class":1924},[1916,2913,2914],{"class":1928}," spook.automation_turned_off\n",[1718,2916,2917],{},"只在是某个人做的时候，并附上提醒：",[1907,2919,2921],{"className":1909,"code":2920,"language":1911,"meta":1912,"style":1912},"triggers:\n  - trigger: spook.automation_turned_off\nconditions:\n  - condition: spook.triggered_by_user\nactions:\n  - action: notify.notify\n    data:\n      message: >-\n        {{ state_attr(trigger.entity_id, 'friendly_name') }} was turned off.\n        Remember to turn it back on.\n",[1742,2922,2923,2929,2941,2948,2959,2965,2976,2983,2998,3003],{"__ignoreMap":1912},[1916,2924,2925,2927],{"class":1918,"line":215},[1916,2926,2734],{"class":1921},[1916,2928,2343],{"class":1924},[1916,2930,2931,2934,2937,2939],{"class":1918,"line":194},[1916,2932,2933],{"class":1924},"  -",[1916,2935,2936],{"class":1921}," trigger",[1916,2938,1925],{"class":1924},[1916,2940,2914],{"class":1928},[1916,2942,2943,2946],{"class":1918,"line":29},[1916,2944,2945],{"class":1921},"conditions",[1916,2947,2343],{"class":1924},[1916,2949,2950,2952,2954,2956],{"class":1918,"line":42},[1916,2951,2933],{"class":1924},[1916,2953,2612],{"class":1921},[1916,2955,1925],{"class":1924},[1916,2957,2958],{"class":1928}," spook.triggered_by_user\n",[1916,2960,2961,2963],{"class":1918,"line":118},[1916,2962,90],{"class":1921},[1916,2964,2343],{"class":1924},[1916,2966,2967,2969,2971,2973],{"class":1918,"line":53},[1916,2968,2933],{"class":1924},[1916,2970,2402],{"class":1921},[1916,2972,1925],{"class":1924},[1916,2974,2975],{"class":1928}," notify.notify\n",[1916,2977,2978,2981],{"class":1918,"line":578},[1916,2979,2980],{"class":1921},"    data",[1916,2982,2343],{"class":1924},[1916,2984,2985,2988,2990,2994],{"class":1918,"line":150},[1916,2986,2987],{"class":1921},"      message",[1916,2989,1925],{"class":1924},[1916,2991,2993],{"class":2992},"s7zQu"," >",[1916,2995,2997],{"class":2996},"spNyl","-\n",[1916,2999,3000],{"class":1918,"line":129},[1916,3001,3002],{"class":1928},"        {{ state_attr(trigger.entity_id, 'friendly_name') }} was turned off.\n",[1916,3004,3005],{"class":1918,"line":161},[1916,3006,3007],{"class":1928},"        Remember to turn it back on.\n",[1799,3009,3010],{"icon":2655,"label":2656},[2658,3011,3012,3015,3022,3025],{},[1756,3013,3014],{},"只有关闭自动化才算。重新加载自动化、修改自动化的实体标识符，或者在实体注册表中禁用它，都是把它拿走再放回去（或者不放回去），而不是关闭它，这些都不会触发。",[1756,3016,3017,3018,3021],{},"一开始就是关闭的自动化，比如带 ",[1742,3019,3020],{},"initial_state: false"," 的，从来没被关闭过，也不会触发。",[1756,3023,3024],{},"因为配置不再通过验证而变得不可用的自动化，也没有被关闭。Spook 为坏掉的自动化创建的修复才是处理它的地方。",[1756,3026,3027],{},"在 Home Assistant 停机期间，或者在这个触发条件没有加载时被关闭的自动化，事后不会被报告。",[1731,3029,3031],{"id":3030},"cron-schedule","Cron 计划",[1718,3033,3034],{},"按 crontab 表达式写的计划触发。",[1718,3036,3037],{},"Home Assistant 自己的时间触发条件能覆盖一天中的某个时间，以及时间模式。两者都说不出“每个工作日七点”或“每月最后一个星期五”。crontab 表达式一行就能说出其中任何一个：五个字段，分别是分钟、小时、日、月和星期。这是 Linux 用了几十年的计划格式，所以如果你写过 crontab，语法你已经会了。",[1718,3039,3040],{},[1749,3041,1751],{},[1753,3043,3044,3050,3058,3068],{},[1756,3045,2774,3046,2741,3048,1762],{},[1749,3047,2740],{},[1749,3049,2744],{},[1756,3051,3052,3053,1769,3056,1762],{},"搜索 ",[1749,3054,3055],{},"cron",[1749,3057,3031],{},[1756,3059,2110,3060,3063,3064,3067],{},[1749,3061,3062],{},"计划","下输入表达式，比如 ",[1742,3065,3066],{},"0 7 * * 1-5"," 表示工作日早上七点。",[1756,3069,778,3070,1762],{},[1749,3071,1778],{},[1780,3073,3076],{"alt":3074,"name":3075},"在自动化编辑器中打开的 Spook 的 Cron 计划触发条件，带有说明和计划 30 6 * * 1-5。","automation-cron",[1718,3077,3078],{},"Cron 计划触发条件，设为工作日六点半。",[1718,3080,3081,3082,3085],{},"第一次接触 crontab？五个字段依次是分钟、小时、日、月和星期。",[1742,3083,3084],{},"*"," 表示“任意”。下面的技术细节里有其余内容，包括那条把所有人都绊倒的规则。",[1796,3087,3088,3205,3279],{},[1799,3089,3090,3123,3161,3172,3181,3195],{"icon":1801,"label":1802},[1804,3091,3092,3098],{},[1807,3093,3094],{},[1810,3095,3096],{},[1813,3097,2824],{"colspan":194},[1817,3099,3100,3106,3115],{},[1810,3101,3102,3104],{},[1822,3103,980],{},[1822,3105,3031],{},[1810,3107,3108,3110],{},[1822,3109,2837],{},[1822,3111,3112],{},[1742,3113,3114],{},"spook.cron",[1810,3116,3117,3121],{},[1822,3118,3119],{},[1825,3120,1873],{"to":1872},[1822,3122,2870],{},[1804,3124,3125,3142],{},[1807,3126,3127,3132],{},[1810,3128,3129],{},[1813,3130,3131],{"colspan":42},"触发条件选项",[1810,3133,3134,3136,3138,3140],{},[1813,3135,2235],{},[1813,3137,2238],{},[1813,3139,2241],{},[1813,3141,2244],{},[1817,3143,3144],{},[1810,3145,3146,3151,3155,3157],{},[1822,3147,3148],{},[1742,3149,3150],{},"schedule",[1822,3152,3153],{},[1825,3154,2276],{"to":2275},[1822,3156,2260],{},[1822,3158,3159],{},[1742,3160,3066],{},[1718,3162,3163,3164,3167,3168,3171],{},"五个字段，按通常的顺序：分钟、小时、日、月、星期。范围和步长都可以用，星期的扩展写法也可以，所以 ",[1742,3165,3166],{},"MON#2"," 是每月第二个星期一，",[1742,3169,3170],{},"5L"," 是最后一个星期五。",[1718,3173,3174,3175,3178,3179,1762],{},"有一条 crontab 规则会绊倒人，而且不是我们定的。同时给出日和星期，cron 会用“或”把它们组合起来，而不是“且”。所以 ",[1742,3176,3177],{},"0 7 15 * 1"," 会在每月 15 日七点运行，也会在每个星期一七点运行。如果你只想要其中一个，就把另一个留成 ",[1742,3180,3084],{},[1718,3182,3183,3184,3186,3187,3190,3191,3194],{},"这个“或”只在两个字段都是普通的日期列表时成立。只要其中一个以 ",[1742,3185,3084],{}," 开头，包括 ",[1742,3188,3189],{},"*\u002F2"," 这样的步长，两者就改用“且”组合：",[1742,3192,3193],{},"0 7 15 * *\u002F2"," 是 15 日，但只在这天是星期日、星期二、星期四或星期六时。",[1718,3196,2876,3197,3200,3201,3204],{},[1742,3198,3199],{},"trigger.schedule"," 是这个表达式，",[1742,3202,3203],{},"trigger.now"," 是它触发时的本地时间。",[1799,3206,3207,3210,3244,3247],{"icon":1901,"label":2897},[1718,3208,3209],{},"每个工作日早上七点：",[1907,3211,3213],{"className":1909,"code":3212,"language":1911,"meta":1912,"style":1912},"trigger: spook.cron\noptions:\n  schedule: \"0 7 * * 1-5\"\n",[1742,3214,3215,3224,3231],{"__ignoreMap":1912},[1916,3216,3217,3219,3221],{"class":1918,"line":215},[1916,3218,2685],{"class":1921},[1916,3220,1925],{"class":1924},[1916,3222,3223],{"class":1928}," spook.cron\n",[1916,3225,3226,3229],{"class":1918,"line":194},[1916,3227,3228],{"class":1921},"options",[1916,3230,2343],{"class":1924},[1916,3232,3233,3236,3238,3240,3242],{"class":1918,"line":29},[1916,3234,3235],{"class":1921},"  schedule",[1916,3237,1925],{"class":1924},[1916,3239,2380],{"class":1924},[1916,3241,3066],{"class":1928},[1916,3243,2386],{"class":1924},[1718,3245,3246],{},"每月最后一个星期五，下午三点：",[1907,3248,3250],{"className":1909,"code":3249,"language":1911,"meta":1912,"style":1912},"trigger: spook.cron\noptions:\n  schedule: \"0 15 * * 5L\"\n",[1742,3251,3252,3260,3266],{"__ignoreMap":1912},[1916,3253,3254,3256,3258],{"class":1918,"line":215},[1916,3255,2685],{"class":1921},[1916,3257,1925],{"class":1924},[1916,3259,3223],{"class":1928},[1916,3261,3262,3264],{"class":1918,"line":194},[1916,3263,3228],{"class":1921},[1916,3265,2343],{"class":1924},[1916,3267,3268,3270,3272,3274,3277],{"class":1918,"line":29},[1916,3269,3235],{"class":1921},[1916,3271,1925],{"class":1924},[1916,3273,2380],{"class":1924},[1916,3275,3276],{"class":1928},"0 15 * * 5L",[1916,3278,2386],{"class":1924},[1799,3280,3281],{"icon":2655,"label":2656},[2658,3282,3283,3293,3296,3310],{},[1756,3284,3285,3286,2690,3289,3292],{},"不支持别名。",[1742,3287,3288],{},"@daily",[1742,3290,3291],{},"@hourly"," 之类的都会被拒绝：把五个字段写出来。自动化不会加载，并会说明表达式哪里有问题。",[1756,3294,3295],{},"秒不是一个字段。五个字段，不多不少：有些 cron 实现接受第六个字段表示秒，这里这种写法会被拒绝。最短间隔是一分钟。",[1756,3297,3298,3299,3302,3303,3306,3307,3309],{},"永远不会到来的计划会被拒绝。2 月 30 日（",[1742,3300,3301],{},"0 0 30 2 *","）是最明显的。",[1742,3304,3305],{},"0 0 *\u002F20 * 1L"," 也是：",[1742,3308,3084],{}," 让它变成“且”，而每月的 1 日或 21 日永远不会同时是最后一个星期一。两者都不会加载。",[1756,3311,3312],{},"计划跟随你的 Home Assistant 时区，包括夏令时。",[1731,3314,3316],{"id":3315},"device-discovered","设备已发现",[1718,3318,3319],{},"在 Home Assistant 发现了一个它可以设置的新东西时触发。",[1718,3321,3322,3323,3326,3327,3330,3331,3334],{},"Home Assistant 会自己找到设备和服务：在你的网络上、通过蓝牙、在 USB 端口上，或者由另一个集成通告。它找到的东西会进入",[1749,3324,3325],{},"设置"," > ",[1749,3328,3329],{},"设备与服务","下的",[1749,3332,3333],{},"已发现","列表，在那里等着有人去看。这个触发条件会在有新东西出现时告诉你：室友插上的新电视，或者终于连上网络的智能插座。",[1718,3336,3337],{},[1749,3338,1751],{},[1753,3340,3341,3347,3353],{},[1756,3342,2774,3343,2741,3345,1762],{},[1749,3344,2740],{},[1749,3346,2744],{},[1756,3348,1765,3349,2783,3351,1762],{},[1749,3350,3316],{},[1749,3352,3316],{},[1756,3354,3355,3356,1762],{},"没有什么要填的。添加你想要的动作，比如一条通知，然后选择",[1749,3357,1778],{},[1780,3359,3362],{"alt":3360,"name":3361},"自动化编辑器中选中的设备已发现触发条件，所在的自动化会发送一条通知。","trigger-device-discovered",[1718,3363,3364],{},"Home Assistant 每发现一个新设备，就发一条通知。",[1796,3366,3367,3446,3465],{},[1799,3368,3369,3402,3404],{"icon":1801,"label":1802},[1804,3370,3371,3377],{},[1807,3372,3373],{},[1810,3374,3375],{},[1813,3376,2824],{"colspan":194},[1817,3378,3379,3385,3394],{},[1810,3380,3381,3383],{},[1822,3382,980],{},[1822,3384,3316],{},[1810,3386,3387,3389],{},[1822,3388,2837],{},[1822,3390,3391],{},[1742,3392,3393],{},"spook.device_discovered",[1810,3395,3396,3400],{},[1822,3397,3398],{},[1825,3399,1873],{"to":1872},[1822,3401,2870],{},[1718,3403,2873],{},[1718,3405,2876,3406,3409,3410,3413,3414,3417,3418,2690,3421,2690,3424,2690,3427,2690,3430,3433,3434,3437,3438,3441,3442,3445],{},[1742,3407,3408],{},"trigger.domain"," 是可以设置它的集成，",[1742,3411,3412],{},"trigger.name"," 是它对自己的称呼（如果它说了的话），",[1742,3415,3416],{},"trigger.source"," 是它被发现的方式（",[1742,3419,3420],{},"zeroconf",[1742,3422,3423],{},"dhcp",[1742,3425,3426],{},"bluetooth",[1742,3428,3429],{},"usb",[1742,3431,3432],{},"ssdp"," 等等），",[1742,3435,3436],{},"trigger.unique_id"," 是集成给它的标识符，",[1742,3439,3440],{},"trigger.title_placeholders"," 是集成在列表中显示的关于它的所有信息，",[1742,3443,3444],{},"trigger.flow_id"," 是这次发现本身。",[1799,3447,3448,3451],{"icon":1901,"label":2897},[1718,3449,3450],{},"Home Assistant 找到的任何新东西：",[1907,3452,3454],{"className":1909,"code":3453,"language":1911,"meta":1912,"style":1912},"trigger: spook.device_discovered\n",[1742,3455,3456],{"__ignoreMap":1912},[1916,3457,3458,3460,3462],{"class":1918,"line":215},[1916,3459,2685],{"class":1921},[1916,3461,1925],{"class":1924},[1916,3463,3464],{"class":1928}," spook.device_discovered\n",[1799,3466,3467],{"icon":2655,"label":2656},[2658,3468,3469,3472,3475,3481],{},[1756,3470,3471],{},"被发现了但从没设置的设备，每次重启后都会被重新发现，因为 Home Assistant 不记得它找到过什么。Home Assistant 启动期间出现的东西会被记下，但不会报告，当时不报，之后也不报。直到启动之后才露面的设备，比如只在续租网络地址时才通告自己的设备，会被报告，即使 Home Assistant 在重启前就发现过它。忽略一个你不想要的发现，它就不会再回来，在这里和在 Home Assistant 中都一样。",[1756,3473,3474],{},"只要自动化保持加载，每个设备只报告一次。在这段时间内再次被发现，它就保持安静。这需要集成给设备一个它自己的标识符，几乎所有集成都会这么做。不这么做的集成，每次发现都会报告。",[1756,3476,3477,3478,3480],{},"自动化加载时已经在",[1749,3479,3333],{},"列表中的东西，不会被报告。",[1756,3482,3483],{},"把配置从 YAML 移到界面中不算发现，不会触发这个触发条件。",[1731,3485,3487],{"id":3486},"entity-came-back","实体已恢复",[1718,3489,3490],{},"在一个实体不可用一段时间后又回来时触发。",[1718,3492,3493],{},"Home Assistant 会在某样东西变得不可用的那一刻、以及它回来的那一刻告诉你，但分不清是闪了一下还是真的断了。路由器重启会让家里的每个设备在几秒内经历一次不可用又恢复。基于单纯恢复的自动化会为它们每一个都触发。",[1718,3495,3496],{},"这个触发条件只算真正离开之后的回归。实体离开的时间必须至少和你要求的一样长。所以你会听到冰柜半夜掉线的消息，而不会听到某个集成重新加载的消息。",[1718,3498,3499],{},[1749,3500,1751],{},[1753,3502,3503,3509,3515,3520,3530],{},[1756,3504,2774,3505,2741,3507,1762],{},[1749,3506,2740],{},[1749,3508,2744],{},[1756,3510,1765,3511,2783,3513,1762],{},[1749,3512,3487],{},[1749,3514,3487],{},[1756,3516,2110,3517,3519],{},[1749,3518,2790],{},"下选择要监视的东西：一个实体、一个设备，或者某个区域、楼层中或带某个标签的一切。",[1756,3521,3522,3523,3526,3527,1762],{},"把",[1749,3524,3525],{},"持续时间","设为它必须离开多久，回归才算数，比如 ",[1742,3528,3529],{},"00:15:00",[1756,3531,778,3532,1762],{},[1749,3533,1778],{},[1780,3535,3538],{"alt":3536,"name":3537},"自动化编辑器中选中的实体已恢复触发条件，监视前门传感器离线 15 分钟后回来。","trigger-recovered",[1718,3539,3540],{},"前门传感器，离线至少 15 分钟后回来了。",[1796,3542,3543,3648,3754],{},[1799,3544,3545,3591,3628,3631],{"icon":1801,"label":1802},[1804,3546,3547,3553],{},[1807,3548,3549],{},[1810,3550,3551],{},[1813,3552,2824],{"colspan":194},[1817,3554,3555,3561,3570,3583],{},[1810,3556,3557,3559],{},[1822,3558,980],{},[1822,3560,3487],{},[1810,3562,3563,3565],{},[1822,3564,2837],{},[1822,3566,3567],{},[1742,3568,3569],{},"spook.recovered",[1810,3571,3572,3574],{},[1822,3573,2790],{},[1822,3575,3576,2690,3578,2690,3580,3582],{},[1825,3577,2852],{"to":2851},[1825,3579,2856],{"to":2855},[1825,3581,2860],{"to":2859},"、楼层和标签",[1810,3584,3585,3589],{},[1822,3586,3587],{},[1825,3588,1873],{"to":1872},[1822,3590,2870],{},[1804,3592,3593,3609],{},[1807,3594,3595,3599],{},[1810,3596,3597],{},[1813,3598,3131],{"colspan":42},[1810,3600,3601,3603,3605,3607],{},[1813,3602,2235],{},[1813,3604,2238],{},[1813,3606,2241],{},[1813,3608,2244],{},[1817,3610,3611],{},[1810,3612,3613,3618,3622,3624],{},[1822,3614,3615],{},[1742,3616,3617],{},"for",[1822,3619,3620],{},[1825,3621,2276],{"to":2275},[1822,3623,2260],{},[1822,3625,3626],{},[1742,3627,3529],{},[1718,3629,3630],{},"离开从实体变得不可用时开始，到它进入一个既不是不可用也不是未知的状态时结束。在有读数之前就重新连接的设备，途中会经过未知。这既不会结束离开，也不会让它重新开始。一直停在未知的实体根本没有离开过：它有应答，只是没什么可报告的。",[1718,3632,2876,3633,3635,3636,3639,3640,3643,3644,3647],{},[1742,3634,2879],{}," 是回来的实体，",[1742,3637,3638],{},"trigger.gone_since"," 是它离开的时间，",[1742,3641,3642],{},"trigger.gone_for"," 是它离开了多久，",[1742,3645,3646],{},"trigger.for"," 是你配置的最短时间。",[1799,3649,3650,3653,3703,3706],{"icon":1901,"label":2897},[1718,3651,3652],{},"车库里离开了一刻钟的任何东西：",[1907,3654,3656],{"className":1909,"code":3655,"language":1911,"meta":1912,"style":1912},"trigger: spook.recovered\ntarget:\n  area_id: garage\noptions:\n  for: \"00:15:00\"\n",[1742,3657,3658,3667,3674,3684,3690],{"__ignoreMap":1912},[1916,3659,3660,3662,3664],{"class":1918,"line":215},[1916,3661,2685],{"class":1921},[1916,3663,1925],{"class":1924},[1916,3665,3666],{"class":1928}," spook.recovered\n",[1916,3668,3669,3672],{"class":1918,"line":194},[1916,3670,3671],{"class":1921},"target",[1916,3673,2343],{"class":1924},[1916,3675,3676,3679,3681],{"class":1918,"line":29},[1916,3677,3678],{"class":1921},"  area_id",[1916,3680,1925],{"class":1924},[1916,3682,3683],{"class":1928}," garage\n",[1916,3685,3686,3688],{"class":1918,"line":42},[1916,3687,3228],{"class":1921},[1916,3689,2343],{"class":1924},[1916,3691,3692,3695,3697,3699,3701],{"class":1918,"line":118},[1916,3693,3694],{"class":1921},"  for",[1916,3696,1925],{"class":1924},[1916,3698,2380],{"class":1924},[1916,3700,3529],{"class":1928},[1916,3702,2386],{"class":1924},[1718,3704,3705],{},"一个冰柜，引信更长，因为短暂的断线不值得把人叫醒：",[1907,3707,3709],{"className":1909,"code":3708,"language":1911,"meta":1912,"style":1912},"trigger: spook.recovered\ntarget:\n  entity_id: sensor.freezer_temperature\noptions:\n  for: \"02:00:00\"\n",[1742,3710,3711,3719,3725,3735,3741],{"__ignoreMap":1912},[1916,3712,3713,3715,3717],{"class":1918,"line":215},[1916,3714,2685],{"class":1921},[1916,3716,1925],{"class":1924},[1916,3718,3666],{"class":1928},[1916,3720,3721,3723],{"class":1918,"line":194},[1916,3722,3671],{"class":1921},[1916,3724,2343],{"class":1924},[1916,3726,3727,3730,3732],{"class":1918,"line":29},[1916,3728,3729],{"class":1921},"  entity_id",[1916,3731,1925],{"class":1924},[1916,3733,3734],{"class":1928}," sensor.freezer_temperature\n",[1916,3736,3737,3739],{"class":1918,"line":42},[1916,3738,3228],{"class":1921},[1916,3740,2343],{"class":1924},[1916,3742,3743,3745,3747,3749,3752],{"class":1918,"line":118},[1916,3744,3694],{"class":1921},[1916,3746,1925],{"class":1924},[1916,3748,2380],{"class":1924},[1916,3750,3751],{"class":1928},"02:00:00",[1916,3753,2386],{"class":1924},[1799,3755,3756],{"icon":2655,"label":2656},[2658,3757,3758,3761,3764,3771,3774,3777],{},[1756,3759,3760],{},"Home Assistant 启动完成之前什么都不记录。一个在启动几分钟后才设置好的集成，会在那一刻把它所有实体都从不可用变成有值。如果在启动期间记录，这每一个都会变成一次恢复。",[1756,3762,3763],{},"在触发条件开始监视之前就开始的离开仍然算数，并从实体离开时开始计算。这是从实体本身读取的，所以在设备断线期间重新加载的自动化，仍然会报告设备断了多久。Home Assistant 重启是个例外：什么都留不下来，所以跨越重启的离开从重启时开始计算。",[1756,3765,3766,3767,3770],{},"只有不可用才会开始一次离开。报告了一小时未知的实体从没离开过。",[1742,3768,3769],{},"spook.stale"," 才是针对一个能连上但没什么有用的东西可说的传感器的触发条件。",[1756,3772,3773],{},"持续时间为零会被拒绝。那样它每闪一下都会触发。",[1756,3775,3776],{},"什么都没指定的目标会被拒绝。那样它根本不会监视任何实体。",[1756,3778,3779],{},"展开设备、区域或楼层时，覆盖的是它们的主要实体。配置实体和诊断实体会被排除，和其他所有接受目标的 Home Assistant 触发条件一样。把某个实体作为实体单独写出来，它就总会被监视，不管它属于哪个类别。",[1731,3781,3783],{"id":3782},"device-added","设备已添加",[1718,3785,3786],{},"在 Home Assistant 中添加了一个新设备时触发。",[1718,3788,3789],{},"Home Assistant 只在它的事件总线上通告新设备，别处都不说。家里别人配对的插座，或者自己加入网络的 Zigbee 设备，在有人翻看设备列表之前都不会被注意到。这个触发条件会马上告诉你。",[1718,3791,3792],{},[1749,3793,1751],{},[1753,3795,3796,3802,3808],{},[1756,3797,2774,3798,2741,3800,1762],{},[1749,3799,2740],{},[1749,3801,2744],{},[1756,3803,1765,3804,2783,3806,1762],{},[1749,3805,3783],{},[1749,3807,3783],{},[1756,3809,3355,3810,1762],{},[1749,3811,1778],{},[1780,3813,3816],{"alt":3814,"name":3815},"自动化编辑器中选中的设备已添加触发条件，所在的自动化会发送一条通知。","trigger-device-added",[1718,3817,3818],{},"家里每添加一个设备，就发一条通知。",[1796,3820,3821,3882,3955],{},[1799,3822,3823,3856,3858],{"icon":1801,"label":1802},[1804,3824,3825,3831],{},[1807,3826,3827],{},[1810,3828,3829],{},[1813,3830,2824],{"colspan":194},[1817,3832,3833,3839,3848],{},[1810,3834,3835,3837],{},[1822,3836,980],{},[1822,3838,3783],{},[1810,3840,3841,3843],{},[1822,3842,2837],{},[1822,3844,3845],{},[1742,3846,3847],{},"spook.device_added",[1810,3849,3850,3854],{},[1822,3851,3852],{},[1825,3853,1873],{"to":1872},[1822,3855,2870],{},[1718,3857,2873],{},[1718,3859,2876,3860,3863,3864,3866,3867,2700,3870,3873,3874,3877,3878,3881],{},[1742,3861,3862],{},"trigger.device_id"," 是新设备的标识符，",[1742,3865,3412],{}," 是它的名称，",[1742,3868,3869],{},"trigger.manufacturer",[1742,3871,3872],{},"trigger.model"," 说明它是什么，",[1742,3875,3876],{},"trigger.area_id"," 是它被放进的区域（如果有的话），",[1742,3879,3880],{},"trigger.integration"," 是它所属的集成。属于另一个设备一部分的设备，比如排插的一个插孔，没有它自己的厂商和型号，所以这些对它来说是空的。",[1799,3883,3884,3887,3901,3904],{"icon":1901,"label":2897},[1718,3885,3886],{},"任何新设备：",[1907,3888,3890],{"className":1909,"code":3889,"language":1911,"meta":1912,"style":1912},"trigger: spook.device_added\n",[1742,3891,3892],{"__ignoreMap":1912},[1916,3893,3894,3896,3898],{"class":1918,"line":215},[1916,3895,2685],{"class":1921},[1916,3897,1925],{"class":1924},[1916,3899,3900],{"class":1928}," spook.device_added\n",[1718,3902,3903],{},"只针对加入你的 Zigbee 网络的设备：",[1907,3905,3907],{"className":1909,"code":3906,"language":1911,"meta":1912,"style":1912},"triggers:\n  - trigger: spook.device_added\nconditions:\n  - condition: template\n    value_template: \"{{ trigger.integration == 'zha' }}\"\n",[1742,3908,3909,3915,3925,3931,3941],{"__ignoreMap":1912},[1916,3910,3911,3913],{"class":1918,"line":215},[1916,3912,2734],{"class":1921},[1916,3914,2343],{"class":1924},[1916,3916,3917,3919,3921,3923],{"class":1918,"line":194},[1916,3918,2933],{"class":1924},[1916,3920,2936],{"class":1921},[1916,3922,1925],{"class":1924},[1916,3924,3900],{"class":1928},[1916,3926,3927,3929],{"class":1918,"line":29},[1916,3928,2945],{"class":1921},[1916,3930,2343],{"class":1924},[1916,3932,3933,3935,3937,3939],{"class":1918,"line":42},[1916,3934,2933],{"class":1924},[1916,3936,2612],{"class":1921},[1916,3938,1925],{"class":1924},[1916,3940,2617],{"class":1928},[1916,3942,3943,3946,3948,3950,3953],{"class":1918,"line":118},[1916,3944,3945],{"class":1921},"    value_template",[1916,3947,1925],{"class":1924},[1916,3949,2380],{"class":1924},[1916,3951,3952],{"class":1928},"{{ trigger.integration == 'zha' }}",[1916,3954,2386],{"class":1924},[1799,3956,3957],{"icon":2655,"label":2656},[2658,3958,3959,3962,3965],{},[1756,3960,3961],{},"Home Assistant 启动期间不会触发。那时集成会注册它们原本就有的设备，这些对你家来说都不是新的。",[1756,3963,3964],{},"在 Home Assistant 运行时添加一个集成，可能会一下子带来很多设备，比如一个网桥连同它后面的一切。每一个都是新设备，每一个都会触发这个触发条件。",[1756,3966,3967],{},"在自动化没有加载时，或者在 Home Assistant 停机期间添加的设备，事后不会被报告。",[1731,3969,3971],{"id":3970},"entity-fell-silent","实体已静默",[1718,3973,3974],{},"在一个实体一段时间没有报告任何东西时触发。",[1718,3976,3977],{},"Home Assistant 会告诉你某个实体变得不可用了。但很多东西停下来时并不会变得不可用：一个不再向设备索取新读数的集成，一个掉线的电池设备，一个没人再发布消息的 MQTT 主题。状态看起来很健康，里面却是上周二的读数。",[1718,3979,3980],{},"这个触发条件盯的是沉默，不是某个值。每分钟都报告同样 21.5 的传感器是活着的，不会被打扰。完全停止报告的传感器，会在你设定的时间后触发。把它指向整个区域、楼层或标签，里面的每个实体都会被单独监视，各自在静默时分别触发。",[1718,3982,3983],{},[1749,3984,1751],{},[1753,3986,3987,3993,3999,4003,4011],{},[1756,3988,2774,3989,2741,3991,1762],{},[1749,3990,2740],{},[1749,3992,2744],{},[1756,3994,1765,3995,2783,3997,1762],{},[1749,3996,3971],{},[1749,3998,3971],{},[1756,4000,2110,4001,3519],{},[1749,4002,2790],{},[1756,4004,3522,4005,4007,4008,1762],{},[1749,4006,3525],{},"设为沉默必须持续多久，比如 ",[1742,4009,4010],{},"01:00:00",[1756,4012,778,4013,1762],{},[1749,4014,1778],{},[1780,4016,4019],{"alt":4017,"name":4018},"自动化编辑器中选中的实体已静默触发条件，监视客厅温度一小时没有变化。","trigger-stale",[1718,4020,4021],{},"客厅温度，一小时没有动静。",[1796,4023,4024,4118,4219],{},[1799,4025,4026,4070,4106],{"icon":1801,"label":1802},[1804,4027,4028,4034],{},[1807,4029,4030],{},[1810,4031,4032],{},[1813,4033,2824],{"colspan":194},[1817,4035,4036,4042,4050,4062],{},[1810,4037,4038,4040],{},[1822,4039,980],{},[1822,4041,3971],{},[1810,4043,4044,4046],{},[1822,4045,2837],{},[1822,4047,4048],{},[1742,4049,3769],{},[1810,4051,4052,4054],{},[1822,4053,2790],{},[1822,4055,4056,2690,4058,2690,4060,3582],{},[1825,4057,2852],{"to":2851},[1825,4059,2856],{"to":2855},[1825,4061,2860],{"to":2859},[1810,4063,4064,4068],{},[1822,4065,4066],{},[1825,4067,1873],{"to":1872},[1822,4069,2870],{},[1804,4071,4072,4088],{},[1807,4073,4074,4078],{},[1810,4075,4076],{},[1813,4077,3131],{"colspan":42},[1810,4079,4080,4082,4084,4086],{},[1813,4081,2235],{},[1813,4083,2238],{},[1813,4085,2241],{},[1813,4087,2244],{},[1817,4089,4090],{},[1810,4091,4092,4096,4100,4102],{},[1822,4093,4094],{},[1742,4095,3617],{},[1822,4097,4098],{},[1825,4099,2276],{"to":2275},[1822,4101,2260],{},[1822,4103,4104],{},[1742,4105,4010],{},[1718,4107,2876,4108,4110,4111,4114,4115,4117],{},[1742,4109,2879],{}," 是安静下来的实体，",[1742,4112,4113],{},"trigger.last_reported"," 是它最后一次发声的时间，",[1742,4116,3646],{}," 是你配置的持续时间。",[1799,4119,4120,4123,4170,4173],{"icon":1901,"label":2897},[1718,4121,4122],{},"阁楼里一小时没说话的任何传感器：",[1907,4124,4126],{"className":1909,"code":4125,"language":1911,"meta":1912,"style":1912},"trigger: spook.stale\ntarget:\n  area_id: attic\noptions:\n  for: \"01:00:00\"\n",[1742,4127,4128,4137,4143,4152,4158],{"__ignoreMap":1912},[1916,4129,4130,4132,4134],{"class":1918,"line":215},[1916,4131,2685],{"class":1921},[1916,4133,1925],{"class":1924},[1916,4135,4136],{"class":1928}," spook.stale\n",[1916,4138,4139,4141],{"class":1918,"line":194},[1916,4140,3671],{"class":1921},[1916,4142,2343],{"class":1924},[1916,4144,4145,4147,4149],{"class":1918,"line":29},[1916,4146,3678],{"class":1921},[1916,4148,1925],{"class":1924},[1916,4150,4151],{"class":1928}," attic\n",[1916,4153,4154,4156],{"class":1918,"line":42},[1916,4155,3228],{"class":1921},[1916,4157,2343],{"class":1924},[1916,4159,4160,4162,4164,4166,4168],{"class":1918,"line":118},[1916,4161,3694],{"class":1921},[1916,4163,1925],{"class":1924},[1916,4165,2380],{"class":1924},[1916,4167,4010],{"class":1928},[1916,4169,2386],{"class":1924},[1718,4171,4172],{},"某一个特定的传感器，引信更短：",[1907,4174,4176],{"className":1909,"code":4175,"language":1911,"meta":1912,"style":1912},"trigger: spook.stale\ntarget:\n  entity_id: sensor.greenhouse_temperature\noptions:\n  for: \"00:15:00\"\n",[1742,4177,4178,4186,4192,4201,4207],{"__ignoreMap":1912},[1916,4179,4180,4182,4184],{"class":1918,"line":215},[1916,4181,2685],{"class":1921},[1916,4183,1925],{"class":1924},[1916,4185,4136],{"class":1928},[1916,4187,4188,4190],{"class":1918,"line":194},[1916,4189,3671],{"class":1921},[1916,4191,2343],{"class":1924},[1916,4193,4194,4196,4198],{"class":1918,"line":29},[1916,4195,3729],{"class":1921},[1916,4197,1925],{"class":1924},[1916,4199,4200],{"class":1928}," sensor.greenhouse_temperature\n",[1916,4202,4203,4205],{"class":1918,"line":42},[1916,4204,3228],{"class":1921},[1916,4206,2343],{"class":1924},[1916,4208,4209,4211,4213,4215,4217],{"class":1918,"line":118},[1916,4210,3694],{"class":1921},[1916,4212,1925],{"class":1924},[1916,4214,2380],{"class":1924},[1916,4216,3529],{"class":1928},[1916,4218,2386],{"class":1924},[1799,4220,4221],{"icon":2655,"label":2656},[2658,4222,4223,4226,4229,4232,4235,4242],{},[1756,4224,4225],{},"触发条件开始监视时已经静默的实体不受影响。只有在自动化加载期间开始的沉默才算数。不这样的话，重新加载自动化就会把之前所有安静下来的东西再报告一遍。",[1756,4227,4228],{},"持续时间为零会被拒绝。那会把截止时间放在实体最后一次发声的那一刻，而那总是在过去，所以触发条件会加载，然后什么都不做。",[1756,4230,4231],{},"什么都没指定的目标，出于同样的原因会被拒绝。那样它根本不会监视任何实体。",[1756,4233,4234],{},"重复同一个值也算发声。这个触发条件不会告诉你某个传感器的读数没有变。",[1756,4236,4237,4238,4241],{},"展开设备、区域或楼层时，覆盖的是它们的主要实体。配置实体和诊断实体会被排除，和其他所有接受目标的 Home Assistant 触发条件一样。把某个实体作为实体单独写出来，它就总会被监视，不管它属于哪个类别：即使所在区域会跳过它，",[1742,4239,4240],{},"entity_id: sensor.back_door_battery"," 也有效。",[1756,4243,4244],{},"还没有状态的实体，谈不上沉默，所以在它第一次报告之前会被跳过。",[1731,4246,4248],{"id":4247},"integration-added","集成已添加",[1718,4250,4251],{},"在 Home Assistant 中添加了一个集成时触发。",[1718,4253,4254],{},"每添加一个集成它都会触发，不管是你加的、另一个管理员加的，还是 Home Assistant 自己设置的，比如第一次导入 YAML 中的配置时。家里不止一个人在管理时很方便，或者只是想记录一下改了什么。Home Assistant 启动时已经在的集成不算添加，所以重启时不会有动静。",[1718,4256,4257],{},[1749,4258,1751],{},[1753,4260,4261,4267,4273],{},[1756,4262,2774,4263,2741,4265,1762],{},[1749,4264,2740],{},[1749,4266,2744],{},[1756,4268,1765,4269,2783,4271,1762],{},[1749,4270,4248],{},[1749,4272,4248],{},[1756,4274,3355,4275,1762],{},[1749,4276,1778],{},[1780,4278,4281],{"alt":4279,"name":4280},"自动化编辑器中选中的集成已添加触发条件，所在的自动化会发送一条通知。","trigger-integration-added",[1718,4282,4283],{},"每添加一个集成，就发一条通知。",[1796,4285,4286,4352,4371],{},[1799,4287,4288,4321,4323],{"icon":1801,"label":1802},[1804,4289,4290,4296],{},[1807,4291,4292],{},[1810,4293,4294],{},[1813,4295,2824],{"colspan":194},[1817,4297,4298,4304,4313],{},[1810,4299,4300,4302],{},[1822,4301,980],{},[1822,4303,4248],{},[1810,4305,4306,4308],{},[1822,4307,2837],{},[1822,4309,4310],{},[1742,4311,4312],{},"spook.integration_added",[1810,4314,4315,4319],{},[1822,4316,4317],{},[1825,4318,1873],{"to":1872},[1822,4320,2870],{},[1718,4322,2873],{},[1718,4324,2876,4325,4327,4328,4331,4332,4335,4336,4338,4339,4342,4343,2690,4345,4347,4348,4351],{},[1742,4326,3408],{}," 是这个集成，",[1742,4329,4330],{},"trigger.title"," 是新条目的名称，",[1742,4333,4334],{},"trigger.entry_id"," 是它的标识符，",[1742,4337,3416],{}," 是它的来历：",[1742,4340,4341],{},"user"," 表示有人手动添加，",[1742,4344,3420],{},[1742,4346,3423],{}," 或其他发现方式表示是在网络上找到的，",[1742,4349,4350],{},"import"," 表示来自 YAML。",[1799,4353,4354,4357],{"icon":1901,"label":2897},[1718,4355,4356],{},"任何被添加的集成：",[1907,4358,4360],{"className":1909,"code":4359,"language":1911,"meta":1912,"style":1912},"trigger: spook.integration_added\n",[1742,4361,4362],{"__ignoreMap":1912},[1916,4363,4364,4366,4368],{"class":1918,"line":215},[1916,4365,2685],{"class":1921},[1916,4367,1925],{"class":1924},[1916,4369,4370],{"class":1928}," spook.integration_added\n",[1799,4372,4373],{"icon":2655,"label":2656},[2658,4374,4375,4378],{},[1756,4376,4377],{},"忽略一个已发现的设备，也会存成一个集成条目，这样它就不会再被提供。这样做不会设置任何东西，所以不会触发这个触发条件。",[1756,4379,4380],{},"在自动化没有加载时，或者在 Home Assistant 停机期间添加的集成，事后不会被报告。",[1731,4382,4384],{"id":4383},"integration-failed-to-set-up","集成设置失败",[1718,4386,4387],{},"在一个集成一段时间都没能设置好自己时触发。",[1718,4389,4390],{},"连不上自己硬件的集成会设置失败，而 Home Assistant 会一直重试，两次尝试之间最多等十分钟。所以一个夜里关掉的设备，到早上之前会失败几十次。这就是这个触发条件要等待、而不是每次尝试都触发的原因。把它设为某样东西坏多久之后你才想知道。启动时的普通小毛病，远在这个时间之内就过去了。",[1718,4392,4393],{},"除非你指定了某些集成，否则所有集成都会被监视。每个集成分别报告，而且每段出问题的时期只报告一次：它必须先恢复，才能再次被报告。",[1718,4395,4396],{},[1749,4397,1751],{},[1753,4399,4400,4406,4412,4419,4426],{},[1756,4401,2774,4402,2741,4404,1762],{},[1749,4403,2740],{},[1749,4405,2744],{},[1756,4407,1765,4408,2783,4410,1762],{},[1749,4409,4384],{},[1749,4411,4384],{},[1756,4413,3522,4414,4416,4417,1762],{},[1749,4415,3525],{},"设为它必须坏多久你才会收到消息，比如 ",[1742,4418,3529],{},[1756,4420,4421,4422,4425],{},"可以在",[1749,4423,4424],{},"条目","下选择要监视的那个。留空就监视全部。",[1756,4427,778,4428,1762],{},[1749,4429,1778],{},[1780,4431,4434],{"alt":4432,"name":4433},"自动化编辑器中选中的集成设置失败触发条件，设为 15 分钟。","trigger-integration-failed",[1718,4435,4436],{},"集成过了 15 分钟仍然失败时，发一条通知。",[1796,4438,4439,4565,4646],{},[1799,4440,4441,4474,4531,4546],{"icon":1801,"label":1802},[1804,4442,4443,4449],{},[1807,4444,4445],{},[1810,4446,4447],{},[1813,4448,2824],{"colspan":194},[1817,4450,4451,4457,4466],{},[1810,4452,4453,4455],{},[1822,4454,980],{},[1822,4456,4384],{},[1810,4458,4459,4461],{},[1822,4460,2837],{},[1822,4462,4463],{},[1742,4464,4465],{},"spook.integration_failed",[1810,4467,4468,4472],{},[1822,4469,4470],{},[1825,4471,1873],{"to":1872},[1822,4473,2870],{},[1804,4475,4476,4492],{},[1807,4477,4478,4482],{},[1810,4479,4480],{},[1813,4481,3131],{"colspan":42},[1810,4483,4484,4486,4488,4490],{},[1813,4485,2235],{},[1813,4487,2238],{},[1813,4489,2241],{},[1813,4491,2244],{},[1817,4493,4494,4510],{},[1810,4495,4496,4500,4504,4506],{},[1822,4497,4498],{},[1742,4499,3617],{},[1822,4501,4502],{},[1825,4503,2276],{"to":2275},[1822,4505,2260],{},[1822,4507,4508],{},[1742,4509,3529],{},[1810,4511,4512,4517,4526,4528],{},[1822,4513,4514],{},[1742,4515,4516],{},"entry_id",[1822,4518,4519,4521,4522],{},[1825,4520,2276],{"to":2275}," | ",[1825,4523,4525],{"to":4524},"list","字符串列表",[1822,4527,1854],{},[1822,4529,4530],{},"每个配置条目",[1718,4532,4533,4534,2690,4537,2690,4540,2700,4543,1762],{},"被监视的是配置条目：一个集成每设置一次就有一个，比如每个 Hue 网桥一个。算作失败的状态有 ",[1742,4535,4536],{},"setup_error",[1742,4538,4539],{},"setup_retry",[1742,4541,4542],{},"migration_error",[1742,4544,4545],{},"failed_unload",[1718,4547,2876,4548,4327,4550,4552,4553,4335,4555,4558,4559,4562,4563,4117],{},[1742,4549,3408],{},[1742,4551,4330],{}," 是条目的名称，",[1742,4554,4334],{},[1742,4556,4557],{},"trigger.state"," 是它卡住的状态，",[1742,4560,4561],{},"trigger.reason"," 是 Home Assistant 记录的原因，",[1742,4564,3646],{},[1799,4566,4567,4570,4602,4605],{"icon":1901,"label":2897},[1718,4568,4569],{},"任何已经坏了一刻钟的东西：",[1907,4571,4573],{"className":1909,"code":4572,"language":1911,"meta":1912,"style":1912},"trigger: spook.integration_failed\noptions:\n  for: \"00:15:00\"\n",[1742,4574,4575,4584,4590],{"__ignoreMap":1912},[1916,4576,4577,4579,4581],{"class":1918,"line":215},[1916,4578,2685],{"class":1921},[1916,4580,1925],{"class":1924},[1916,4582,4583],{"class":1928}," spook.integration_failed\n",[1916,4585,4586,4588],{"class":1918,"line":194},[1916,4587,3228],{"class":1921},[1916,4589,2343],{"class":1924},[1916,4591,4592,4594,4596,4598,4600],{"class":1918,"line":29},[1916,4593,3694],{"class":1921},[1916,4595,1925],{"class":1924},[1916,4597,2380],{"class":1924},[1916,4599,3529],{"class":1928},[1916,4601,2386],{"class":1924},[1718,4603,4604],{},"一个你比其他更在意的条目，引信更短：",[1907,4606,4608],{"className":1909,"code":4607,"language":1911,"meta":1912,"style":1912},"trigger: spook.integration_failed\noptions:\n  for: \"00:05:00\"\n  entry_id: 01JQ8XW3M4YPKZ7N2VRTGH6BDC\n",[1742,4609,4610,4618,4624,4636],{"__ignoreMap":1912},[1916,4611,4612,4614,4616],{"class":1918,"line":215},[1916,4613,2685],{"class":1921},[1916,4615,1925],{"class":1924},[1916,4617,4583],{"class":1928},[1916,4619,4620,4622],{"class":1918,"line":194},[1916,4621,3228],{"class":1921},[1916,4623,2343],{"class":1924},[1916,4625,4626,4628,4630,4632,4634],{"class":1918,"line":29},[1916,4627,3694],{"class":1921},[1916,4629,1925],{"class":1924},[1916,4631,2380],{"class":1924},[1916,4633,2123],{"class":1928},[1916,4635,2386],{"class":1924},[1916,4637,4638,4641,4643],{"class":1918,"line":42},[1916,4639,4640],{"class":1921},"  entry_id",[1916,4642,1925],{"class":1924},[1916,4644,4645],{"class":1928}," 01JQ8XW3M4YPKZ7N2VRTGH6BDC\n",[1799,4647,4648],{"icon":2655,"label":2656},[2658,4649,4650,4657,4660,4666],{},[1756,4651,4652,4653,4656],{},"你自己禁用的条目处于 ",[1742,4654,4655],{},"not_loaded","，不算失败。",[1756,4658,4659],{},"持续时间为零会被拒绝。截止时间是现在就会立刻触发，所以零会在每次失败发生的那一刻就报告。",[1756,4661,4662,4663,4665],{},"重新加载自动化，会让那一刻所有坏着的东西重新开始计时。这是故意的。卡在 ",[1742,4664,4536],{}," 的条目不会再通告自己一次，所以等待变化就意味着永远不会知道那些已经坏了的东西。",[1756,4667,4668],{},"每段出问题的时期报告一次。如果你想在有人修好之前一直被提醒，就自己重复这个动作。",[1731,4670,4672],{"id":4671},"position-reached","已到达位置",[1718,4674,4675],{},"在卷帘或阀门到达某个位置，或者越过它时触发。",[1718,4677,4678],{},"Home Assistant 会告诉你卷帘打开了或关上了。中间的一切，比如百叶窗在三分之一处或者阀门开了一半，都是它会报告的位置，却没有对应的触发条件。这个触发条件补上了这个空缺：天窗开到一半时启动风扇，或者百叶窗降到三分之一时打开灯。",[1718,4680,4681],{},[1749,4682,1751],{},[1753,4684,4685,4691,4697,4702,4708],{},[1756,4686,2774,4687,2741,4689,1762],{},[1749,4688,2740],{},[1749,4690,2744],{},[1756,4692,1765,4693,2783,4695,1762],{},[1749,4694,4672],{},[1749,4696,4672],{},[1756,4698,2110,4699,4701],{},[1749,4700,2790],{},"下选择要监视的卷帘或阀门。",[1756,4703,3522,4704,4707],{},[1749,4705,4706],{},"位置","设为你在等的那个位置，从 0%（关闭）到 100%（完全打开）。",[1756,4709,778,4710,1762],{},[1749,4711,1778],{},[1780,4713,4716],{"alt":4714,"name":4715},"自动化编辑器中选中的已到达位置触发条件，监视客厅百叶窗到达 30%。","trigger-position-reached",[1718,4717,4718],{},"百叶窗降到 30% 时，客厅台灯就亮。",[1796,4720,4721,4826,4877],{},[1799,4722,4723,4769,4809,4812],{"icon":1801,"label":1802},[1804,4724,4725,4731],{},[1807,4726,4727],{},[1810,4728,4729],{},[1813,4730,2824],{"colspan":194},[1817,4732,4733,4739,4748,4761],{},[1810,4734,4735,4737],{},[1822,4736,980],{},[1822,4738,4672],{},[1810,4740,4741,4743],{},[1822,4742,2837],{},[1822,4744,4745],{},[1742,4746,4747],{},"spook.position_reached",[1810,4749,4750,4752],{},[1822,4751,2790],{},[1822,4753,4754,4755,2690,4757,2690,4759,3582],{},"卷帘和阀门",[1825,4756,2852],{"to":2851},[1825,4758,2856],{"to":2855},[1825,4760,2860],{"to":2859},[1810,4762,4763,4767],{},[1822,4764,4765],{},[1825,4766,1873],{"to":1872},[1822,4768,2870],{},[1804,4770,4771,4787],{},[1807,4772,4773,4777],{},[1810,4774,4775],{},[1813,4776,3131],{"colspan":42},[1810,4778,4779,4781,4783,4785],{},[1813,4780,2235],{},[1813,4782,2238],{},[1813,4784,2241],{},[1813,4786,2244],{},[1817,4788,4789],{},[1810,4790,4791,4796,4802,4804],{},[1822,4792,4793],{},[1742,4794,4795],{},"position",[1822,4797,4798],{},[1825,4799,4801],{"to":4800},"integer","整数",[1822,4803,2260],{},[1822,4805,4806],{},[1742,4807,4808],{},"30",[1718,4810,4811],{},"当报告的位置到达你要的那个位置时触发，从哪一边过来都行。越过它也算：移动很快的卷帘可能先报告 20，再报告 40，中间的 30 从没报告过。本来就在那里不算到达，在卷帘离开后再回来之前，它不会再次触发。位置是整数百分比，从 0（关闭）到 100（完全打开）。",[1718,4813,2876,4814,4816,4817,4820,4821,2700,4823,4825],{},[1742,4815,2879],{}," 是这个卷帘或阀门，",[1742,4818,4819],{},"trigger.position"," 是你要的位置，",[1742,4822,2883],{},[1742,4824,2886],{}," 是它在之前和之后的状态。",[1799,4827,4828,4831],{"icon":1901,"label":2897},[1718,4829,4830],{},"百叶窗在三分之一处：",[1907,4832,4834],{"className":1909,"code":4833,"language":1911,"meta":1912,"style":1912},"trigger: spook.position_reached\ntarget:\n  entity_id: cover.blinds\noptions:\n  position: 30\n",[1742,4835,4836,4845,4851,4860,4866],{"__ignoreMap":1912},[1916,4837,4838,4840,4842],{"class":1918,"line":215},[1916,4839,2685],{"class":1921},[1916,4841,1925],{"class":1924},[1916,4843,4844],{"class":1928}," spook.position_reached\n",[1916,4846,4847,4849],{"class":1918,"line":194},[1916,4848,3671],{"class":1921},[1916,4850,2343],{"class":1924},[1916,4852,4853,4855,4857],{"class":1918,"line":29},[1916,4854,3729],{"class":1921},[1916,4856,1925],{"class":1924},[1916,4858,4859],{"class":1928}," cover.blinds\n",[1916,4861,4862,4864],{"class":1918,"line":42},[1916,4863,3228],{"class":1921},[1916,4865,2343],{"class":1924},[1916,4867,4868,4871,4873],{"class":1918,"line":118},[1916,4869,4870],{"class":1921},"  position",[1916,4872,1925],{"class":1924},[1916,4874,4876],{"class":4875},"sbssI"," 30\n",[1799,4878,4879],{"icon":2655,"label":2656},[2658,4880,4881,4884,4887,4890],{},[1756,4882,4883],{},"只能开和关的卷帘或阀门不报告位置，永远不会触发。",[1756,4885,4886],{},"从不可用恢复时正好在这个位置，不算：之前没有位置可以比较。这包括 Home Assistant 启动时，卷帘会恢复成重启前的位置。",[1756,4888,4889],{},"在 Home Assistant 停机期间，或者在这个触发条件没有加载时到达的位置，事后不会被报告。",[1756,4891,4892],{},"没有针对卷帘在途中卡住的触发条件。有人要求的位置不在卷帘的状态里，所以故意停下的卷帘看起来是一样的。",[1731,4894,4896],{"id":4895},"repair-issue-created","修复问题已创建",[1718,4898,4899],{},"在出现一个新的修复问题时触发。",[1718,4901,4902],{},"Home Assistant 把修复问题收集在修复页面上，你打开它时就能看到。这个触发条件是为那些你想马上知道的问题准备的：某个集成报告它需要处理，或者 Spook 发现了一个对已经不存在的东西的引用。比如，把它发到你的手机上。",[1718,4904,4905],{},[1749,4906,1751],{},[1753,4908,4909,4915,4921,4931,4937],{},[1756,4910,2774,4911,2741,4913,1762],{},[1749,4912,2740],{},[1749,4914,2744],{},[1756,4916,1765,4917,2783,4919,1762],{},[1749,4918,4896],{},[1749,4920,4896],{},[1756,4922,4421,4923,4926,4927,4930],{},[1749,4924,4925],{},"集成","下输入要监听的集成，比如 ",[1742,4928,4929],{},"hue","。留空就监听全部。",[1756,4932,4421,4933,4936],{},[1749,4934,4935],{},"严重程度","下选择你关心的严重程度。留空就是全部。",[1756,4938,778,4939,1762],{},[1749,4940,1778],{},[1780,4942,4945],{"alt":4943,"name":4944},"自动化编辑器中选中的修复问题已创建触发条件，只限严重和错误级别的修复。","trigger-repair-issue-created",[1718,4946,4947],{},"只看要紧的修复：严重和错误。",[1796,4949,4950,5077],{},[1799,4951,4952,4985,5049,5052],{"icon":1801,"label":1802},[1804,4953,4954,4960],{},[1807,4955,4956],{},[1810,4957,4958],{},[1813,4959,2824],{"colspan":194},[1817,4961,4962,4968,4977],{},[1810,4963,4964,4966],{},[1822,4965,980],{},[1822,4967,4896],{},[1810,4969,4970,4972],{},[1822,4971,2837],{},[1822,4973,4974],{},[1742,4975,4976],{},"spook.repair_issue_created",[1810,4978,4979,4983],{},[1822,4980,4981],{},[1825,4982,1873],{"to":1872},[1822,4984,2870],{},[1804,4986,4987,5003],{},[1807,4988,4989,4993],{},[1810,4990,4991],{},[1813,4992,3131],{"colspan":42},[1810,4994,4995,4997,4999,5001],{},[1813,4996,2235],{},[1813,4998,2238],{},[1813,5000,2241],{},[1813,5002,2244],{},[1817,5004,5005,5023],{},[1810,5006,5007,5012,5018,5020],{},[1822,5008,5009],{},[1742,5010,5011],{},"domain",[1822,5013,5014,4521,5016],{},[1825,5015,2276],{"to":2275},[1825,5017,4525],{"to":4524},[1822,5019,1854],{},[1822,5021,5022],{},"默认是每个集成",[1810,5024,5025,5030,5036,5038],{},[1822,5026,5027],{},[1742,5028,5029],{},"severity",[1822,5031,5032,4521,5034],{},[1825,5033,2276],{"to":2275},[1825,5035,4525],{"to":4524},[1822,5037,1854],{},[1822,5039,5040,2690,5043,2690,5046],{},[1742,5041,5042],{},"critical",[1742,5044,5045],{},"error",[1742,5047,5048],{},"warning",[1718,5050,5051],{},"只有新问题才会触发它。集成重新报告一个已经存在的问题，算作更新，不算创建。所以按计划检查的修复，不会每检查一轮就触发一次。",[1718,5053,2876,5054,5056,5057,5060,5061,2690,5064,2690,5067,2690,5070,2700,5073,5076],{},[1742,5055,3408],{}," 是报告它的集成，",[1742,5058,5059],{},"trigger.issue_id"," 是这个问题，",[1742,5062,5063],{},"trigger.severity",[1742,5065,5066],{},"trigger.is_fixable",[1742,5068,5069],{},"trigger.breaks_in_ha_version",[1742,5071,5072],{},"trigger.learn_more_url",[1742,5074,5075],{},"trigger.translation_key"," 带着注册表知道的其余信息。",[1799,5078,5079,5082,5096,5099],{"icon":1901,"label":2897},[1718,5080,5081],{},"任何问题，一出现就触发：",[1907,5083,5085],{"className":1909,"code":5084,"language":1911,"meta":1912,"style":1912},"trigger: spook.repair_issue_created\n",[1742,5086,5087],{"__ignoreMap":1912},[1916,5088,5089,5091,5093],{"class":1918,"line":215},[1916,5090,2685],{"class":1921},[1916,5092,1925],{"class":1924},[1916,5094,5095],{"class":1928}," spook.repair_issue_created\n",[1718,5097,5098],{},"只要严重的，而且只来自两个集成：",[1907,5100,5102],{"className":1909,"code":5101,"language":1911,"meta":1912,"style":1912},"trigger: spook.repair_issue_created\noptions:\n  domain:\n    - hue\n    - zwave_js\n  severity:\n    - critical\n    - error\n",[1742,5103,5104,5112,5118,5125,5132,5139,5146,5153],{"__ignoreMap":1912},[1916,5105,5106,5108,5110],{"class":1918,"line":215},[1916,5107,2685],{"class":1921},[1916,5109,1925],{"class":1924},[1916,5111,5095],{"class":1928},[1916,5113,5114,5116],{"class":1918,"line":194},[1916,5115,3228],{"class":1921},[1916,5117,2343],{"class":1924},[1916,5119,5120,5123],{"class":1918,"line":29},[1916,5121,5122],{"class":1921},"  domain",[1916,5124,2343],{"class":1924},[1916,5126,5127,5129],{"class":1918,"line":42},[1916,5128,2502],{"class":1924},[1916,5130,5131],{"class":1928}," hue\n",[1916,5133,5134,5136],{"class":1918,"line":118},[1916,5135,2502],{"class":1924},[1916,5137,5138],{"class":1928}," zwave_js\n",[1916,5140,5141,5144],{"class":1918,"line":53},[1916,5142,5143],{"class":1921},"  severity",[1916,5145,2343],{"class":1924},[1916,5147,5148,5150],{"class":1918,"line":578},[1916,5149,2502],{"class":1924},[1916,5151,5152],{"class":1928}," critical\n",[1916,5154,5155,5157],{"class":1918,"line":150},[1916,5156,2502],{"class":1924},[1916,5158,5159],{"class":1928}," error\n",[1731,5161,5163],{"id":5162},"repair-issue-resolved","修复问题已解决",[1718,5165,5166],{},"在一个修复问题消失时触发。",[1718,5168,5169],{},"有东西被修好了，或者原本在抱怨的东西不再抱怨了。适合用来关掉问题出现时你打开的那条通知。",[1718,5171,5172],{},[1749,5173,1751],{},[1753,5175,5176,5182,5188,5194],{},[1756,5177,2774,5178,2741,5180,1762],{},[1749,5179,2740],{},[1749,5181,2744],{},[1756,5183,1765,5184,2783,5186,1762],{},[1749,5185,5163],{},[1749,5187,5163],{},[1756,5189,4421,5190,4926,5192,4930],{},[1749,5191,4925],{},[1742,5193,4929],{},[1756,5195,778,5196,1762],{},[1749,5197,1778],{},[1780,5199,5202],{"alt":5200,"name":5201},"自动化编辑器中选中的修复问题已解决触发条件，旁边是修复问题已创建触发条件。","trigger-repair-issue-removed",[1718,5203,5204],{},"已解决的修复，和报告新修复的放在同一个自动化里。",[1796,5206,5207,5285,5318],{},[1799,5208,5209,5242,5278],{"icon":1801,"label":1802},[1804,5210,5211,5217],{},[1807,5212,5213],{},[1810,5214,5215],{},[1813,5216,2824],{"colspan":194},[1817,5218,5219,5225,5234],{},[1810,5220,5221,5223],{},[1822,5222,980],{},[1822,5224,5163],{},[1810,5226,5227,5229],{},[1822,5228,2837],{},[1822,5230,5231],{},[1742,5232,5233],{},"spook.repair_issue_removed",[1810,5235,5236,5240],{},[1822,5237,5238],{},[1825,5239,1873],{"to":1872},[1822,5241,2870],{},[1804,5243,5244,5260],{},[1807,5245,5246,5250],{},[1810,5247,5248],{},[1813,5249,3131],{"colspan":42},[1810,5251,5252,5254,5256,5258],{},[1813,5253,2235],{},[1813,5255,2238],{},[1813,5257,2241],{},[1813,5259,2244],{},[1817,5261,5262],{},[1810,5263,5264,5268,5274,5276],{},[1822,5265,5266],{},[1742,5267,5011],{},[1822,5269,5270,4521,5272],{},[1825,5271,2276],{"to":2275},[1825,5273,4525],{"to":4524},[1822,5275,1854],{},[1822,5277,5022],{},[1718,5279,2876,5280,2700,5282,5284],{},[1742,5281,3408],{},[1742,5283,5059],{}," 说明是哪个问题。",[1799,5286,5287,5290],{"icon":1901,"label":2897},[1718,5288,5289],{},"来自 Hue 的任何消失的问题：",[1907,5291,5293],{"className":1909,"code":5292,"language":1911,"meta":1912,"style":1912},"trigger: spook.repair_issue_removed\noptions:\n  domain: hue\n",[1742,5294,5295,5304,5310],{"__ignoreMap":1912},[1916,5296,5297,5299,5301],{"class":1918,"line":215},[1916,5298,2685],{"class":1921},[1916,5300,1925],{"class":1924},[1916,5302,5303],{"class":1928}," spook.repair_issue_removed\n",[1916,5305,5306,5308],{"class":1918,"line":194},[1916,5307,3228],{"class":1921},[1916,5309,2343],{"class":1924},[1916,5311,5312,5314,5316],{"class":1918,"line":29},[1916,5313,5122],{"class":1921},[1916,5315,1925],{"class":1924},[1916,5317,5131],{"class":1928},[1799,5319,5320],{"icon":2655,"label":2656},[2658,5321,5322,5325],{},[1756,5323,5324],{},"没有可以筛选的严重程度，触发条件变量里也没有。等 Home Assistant 通告删除时，问题已经不在注册表里了。剩下的只有它属于哪个集成，以及它叫什么。",[1756,5326,5327],{},"忽略一个问题不等于解决它。它还留在注册表里，所以不会为它触发。",[1731,5329,5331],{"id":5330},"target-temperature-reached","已达到目标温度",[1718,5333,5334],{},"在恒温器或热水器的温度达到目标时触发。",[1718,5336,5337],{},"恒温器或热水器知道自己要去哪里，也知道自己在哪里。Home Assistant 会在其中任何一个变化时告诉你，但不会在一个到达另一个时告诉你。而那才是你关心的时刻：浴室暖和了，水热了。",[1718,5339,5340],{},[1749,5341,1751],{},[1753,5343,5344,5350,5357,5362,5372],{},[1756,5345,2774,5346,2741,5348,1762],{},[1749,5347,2740],{},[1749,5349,2744],{},[1756,5351,1765,5352,2783,5355,1762],{},[1749,5353,5354],{},"目标温度",[1749,5356,5331],{},[1756,5358,2110,5359,5361],{},[1749,5360,2790],{},"下选择要监视的恒温器或热水器。",[1756,5363,2116,5364,5367,5368,5371],{},[1749,5365,5366],{},"容差","设为多接近仍然算到达，比如 ",[1742,5369,5370],{},"0.5"," 表示半度。有些恒温器会停在略低于设定值的地方，一直待在那里；这能抓到它们。",[1756,5373,778,5374,1762],{},[1749,5375,1778],{},[1780,5377,5380],{"alt":5378,"name":5379},"自动化编辑器中选中的已达到目标温度触发条件，监视卧室温控器，允许半度误差。","trigger-target-temperature-reached",[1718,5381,5382],{},"卧室温控器，离目标温度不到半度。",[1796,5384,5385,5503,5585],{},[1799,5386,5387,5433,5476,5479,5489,5494],{"icon":1801,"label":1802},[1804,5388,5389,5395],{},[1807,5390,5391],{},[1810,5392,5393],{},[1813,5394,2824],{"colspan":194},[1817,5396,5397,5403,5412,5425],{},[1810,5398,5399,5401],{},[1822,5400,980],{},[1822,5402,5331],{},[1810,5404,5405,5407],{},[1822,5406,2837],{},[1822,5408,5409],{},[1742,5410,5411],{},"spook.target_temperature_reached",[1810,5413,5414,5416],{},[1822,5415,2790],{},[1822,5417,5418,5419,2690,5421,2690,5423,3582],{},"空调和热水器",[1825,5420,2852],{"to":2851},[1825,5422,2856],{"to":2855},[1825,5424,2860],{"to":2859},[1810,5426,5427,5431],{},[1822,5428,5429],{},[1825,5430,1873],{"to":1872},[1822,5432,2870],{},[1804,5434,5435,5451],{},[1807,5436,5437,5441],{},[1810,5438,5439],{},[1813,5440,3131],{"colspan":42},[1810,5442,5443,5445,5447,5449],{},[1813,5444,2235],{},[1813,5446,2238],{},[1813,5448,2241],{},[1813,5450,2244],{},[1817,5452,5453],{},[1810,5454,5455,5460,5466,5468],{},[1822,5456,5457],{},[1742,5458,5459],{},"tolerance",[1822,5461,5462],{},[1825,5463,5465],{"to":5464},"float","浮点数",[1822,5467,1854],{},[1822,5469,5470,5473,5474],{},[1742,5471,5472],{},"0"," \u002F ",[1742,5475,5370],{},[1718,5477,5478],{},"当测得的温度到达目标时触发，从哪一边过来都行。跳过目标也算：按整度报告的传感器，可能从低于目标直接变成高于目标，从没报告过目标本身。到达之后，在温度离开再回来之前，它不会再次触发。",[1718,5480,5481,5482,5485,5486,5488],{},"在 ",[1742,5483,5484],{},"heat_cool"," 模式下制热和制冷到一个区间时，温度在区间内的任何地方都算到达。既能制热又能制冷的恒温器，不管处于什么模式，都会报告一个设定值和一个区间；在 ",[1742,5487,5484],{}," 下算区间，在其他模式下算设定值。",[1718,5490,5491,5493],{},[1742,5492,5459],{}," 用的是设备自己的单位。默认值零表示目标本身。",[1718,5495,2876,5496,5498,5499,2700,5501,4825],{},[1742,5497,2879],{}," 是这个设备，",[1742,5500,2883],{},[1742,5502,2886],{},[1799,5504,5505,5508,5537,5540],{"icon":1901,"label":2897},[1718,5506,5507],{},"浴室暖和了：",[1907,5509,5511],{"className":1909,"code":5510,"language":1911,"meta":1912,"style":1912},"trigger: spook.target_temperature_reached\ntarget:\n  entity_id: climate.bathroom\n",[1742,5512,5513,5522,5528],{"__ignoreMap":1912},[1916,5514,5515,5517,5519],{"class":1918,"line":215},[1916,5516,2685],{"class":1921},[1916,5518,1925],{"class":1924},[1916,5520,5521],{"class":1928}," spook.target_temperature_reached\n",[1916,5523,5524,5526],{"class":1918,"line":194},[1916,5525,3671],{"class":1921},[1916,5527,2343],{"class":1924},[1916,5529,5530,5532,5534],{"class":1918,"line":29},[1916,5531,3729],{"class":1921},[1916,5533,1925],{"class":1924},[1916,5535,5536],{"class":1928}," climate.bathroom\n",[1718,5538,5539],{},"楼上的每个恒温器，差不多就行：",[1907,5541,5543],{"className":1909,"code":5542,"language":1911,"meta":1912,"style":1912},"trigger: spook.target_temperature_reached\ntarget:\n  floor_id: upstairs\noptions:\n  tolerance: 0.5\n",[1742,5544,5545,5553,5559,5569,5575],{"__ignoreMap":1912},[1916,5546,5547,5549,5551],{"class":1918,"line":215},[1916,5548,2685],{"class":1921},[1916,5550,1925],{"class":1924},[1916,5552,5521],{"class":1928},[1916,5554,5555,5557],{"class":1918,"line":194},[1916,5556,3671],{"class":1921},[1916,5558,2343],{"class":1924},[1916,5560,5561,5564,5566],{"class":1918,"line":29},[1916,5562,5563],{"class":1921},"  floor_id",[1916,5565,1925],{"class":1924},[1916,5567,5568],{"class":1928}," upstairs\n",[1916,5570,5571,5573],{"class":1918,"line":42},[1916,5572,3228],{"class":1921},[1916,5574,2343],{"class":1924},[1916,5576,5577,5580,5582],{"class":1918,"line":118},[1916,5578,5579],{"class":1921},"  tolerance",[1916,5581,1925],{"class":1924},[1916,5583,5584],{"class":4875}," 0.5\n",[1799,5586,5587],{"icon":2655,"label":2656},[2658,5588,5589,5592,5595,5598,5601],{},[1756,5590,5591],{},"修改目标不算。把设定值调到房间已有的温度上，不算到达。从那以后，算的是新的目标。",[1756,5593,5594],{},"关着的设备什么都到达不了。房间温度慢慢飘到一台关着的取暖器的设定值上，那只是天气。在房间已经到了那个温度时把它打开，也不算。",[1756,5596,5597],{},"从不可用恢复的设备，之前没有温度可以比较，所以回来时正好在目标上不算。",[1756,5599,5600],{},"不报告当前温度的热水器（很多都不报告），永远没法看到它到达任何东西。",[1756,5602,5603],{},"在 Home Assistant 停机期间，或者在这个触发条件没有加载时达到目标的温度，事后不会被报告。",[1731,5605,5607],{"id":5606},"update-installed","更新已安装",[1718,5609,5610],{},"在更新实体报告了一个不同的已安装版本时触发。",[1718,5612,5613],{},"Home Assistant 会告诉你有可用的更新，但不会告诉你某个更新装上了。这个触发条件会在装上时触发，不管是怎么装上的：有人按了安装，设备夜里自己更新了，或者用厂商的应用更新了。回滚也是一个不同的版本，同样会触发。适合给你的家记一份变更日志，或者在新固件之后检查设备是否还正常工作。",[1718,5615,5616],{},[1749,5617,1751],{},[1753,5619,5620,5626,5632,5637],{},[1756,5621,2774,5622,2741,5624,1762],{},[1749,5623,2740],{},[1749,5625,2744],{},[1756,5627,1765,5628,2783,5630,1762],{},[1749,5629,5607],{},[1749,5631,5607],{},[1756,5633,2110,5634,5636],{},[1749,5635,2790],{},"下选择要监视的更新实体，或者包含更新实体的设备、区域、楼层或标签。",[1756,5638,778,5639,1762],{},[1749,5640,1778],{},[1780,5642,5645],{"alt":5643,"name":5644},"自动化编辑器中选中的更新已安装触发条件，监视一个蓝图的更新。","trigger-update-installed",[1718,5646,5647],{},"门灯蓝图更新时，发一条通知。",[1796,5649,5650,5723,5838],{},[1799,5651,5652,5697,5699,5702],{"icon":1801,"label":1802},[1804,5653,5654,5660],{},[1807,5655,5656],{},[1810,5657,5658],{},[1813,5659,2824],{"colspan":194},[1817,5661,5662,5668,5677,5689],{},[1810,5663,5664,5666],{},[1822,5665,980],{},[1822,5667,5607],{},[1810,5669,5670,5672],{},[1822,5671,2837],{},[1822,5673,5674],{},[1742,5675,5676],{},"spook.update_installed",[1810,5678,5679,5681],{},[1822,5680,2790],{},[1822,5682,1163,5683,2690,5685,2690,5687,3582],{},[1825,5684,2852],{"to":2851},[1825,5686,2856],{"to":2855},[1825,5688,2860],{"to":2859},[1810,5690,5691,5695],{},[1822,5692,5693],{},[1825,5694,1873],{"to":1872},[1822,5696,2870],{},[1718,5698,2873],{},[1718,5700,5701],{},"它只读取已安装的版本。是否正在安装，说明不了什么。很多集成从不报告这一点，而重启进新固件的设备，在能说完成之前就掉线了。实体不可用期间，会记住最后看到的版本，所以安装途中离开、回来时已是新版本的设备，会在它回来时被报告。",[1718,5703,2876,5704,5706,5707,5710,5711,5714,5715,2700,5717,5719,5720,5722],{},[1742,5705,2879],{}," 是这个更新实体，",[1742,5708,5709],{},"trigger.from_version"," 是它原来的版本，",[1742,5712,5713],{},"trigger.to_version"," 是它现在的版本。",[1742,5716,2883],{},[1742,5718,2886],{}," 是实体在变化之前和之后的状态。对于安装途中离开的设备，",[1742,5721,2883],{}," 是它不可用时的状态，这就是版本要单独给出的原因。",[1799,5724,5725,5728,5756,5759],{"icon":1901,"label":2897},[1718,5726,5727],{},"车库里带更新实体的一切：",[1907,5729,5731],{"className":1909,"code":5730,"language":1911,"meta":1912,"style":1912},"trigger: spook.update_installed\ntarget:\n  area_id: garage\n",[1742,5732,5733,5742,5748],{"__ignoreMap":1912},[1916,5734,5735,5737,5739],{"class":1918,"line":215},[1916,5736,2685],{"class":1921},[1916,5738,1925],{"class":1924},[1916,5740,5741],{"class":1928}," spook.update_installed\n",[1916,5743,5744,5746],{"class":1918,"line":194},[1916,5745,3671],{"class":1921},[1916,5747,2343],{"class":1924},[1916,5749,5750,5752,5754],{"class":1918,"line":29},[1916,5751,3678],{"class":1921},[1916,5753,1925],{"class":1924},[1916,5755,3683],{"class":1928},[1718,5757,5758],{},"一个插座，告诉你它更新到了哪个版本：",[1907,5760,5762],{"className":1909,"code":5761,"language":1911,"meta":1912,"style":1912},"triggers:\n  - trigger: spook.update_installed\n    target:\n      entity_id: update.plug_firmware\nactions:\n  - action: notify.notify\n    data:\n      message: >-\n        The plug went from {{ trigger.from_version }}\n        to {{ trigger.to_version }}.\n",[1742,5763,5764,5770,5780,5787,5796,5802,5812,5818,5828,5833],{"__ignoreMap":1912},[1916,5765,5766,5768],{"class":1918,"line":215},[1916,5767,2734],{"class":1921},[1916,5769,2343],{"class":1924},[1916,5771,5772,5774,5776,5778],{"class":1918,"line":194},[1916,5773,2933],{"class":1924},[1916,5775,2936],{"class":1921},[1916,5777,1925],{"class":1924},[1916,5779,5741],{"class":1928},[1916,5781,5782,5785],{"class":1918,"line":29},[1916,5783,5784],{"class":1921},"    target",[1916,5786,2343],{"class":1924},[1916,5788,5789,5791,5793],{"class":1918,"line":42},[1916,5790,2446],{"class":1921},[1916,5792,1925],{"class":1924},[1916,5794,5795],{"class":1928}," update.plug_firmware\n",[1916,5797,5798,5800],{"class":1918,"line":118},[1916,5799,90],{"class":1921},[1916,5801,2343],{"class":1924},[1916,5803,5804,5806,5808,5810],{"class":1918,"line":53},[1916,5805,2933],{"class":1924},[1916,5807,2402],{"class":1921},[1916,5809,1925],{"class":1924},[1916,5811,2975],{"class":1928},[1916,5813,5814,5816],{"class":1918,"line":578},[1916,5815,2980],{"class":1921},[1916,5817,2343],{"class":1924},[1916,5819,5820,5822,5824,5826],{"class":1918,"line":150},[1916,5821,2987],{"class":1921},[1916,5823,1925],{"class":1924},[1916,5825,2993],{"class":2992},[1916,5827,2997],{"class":2996},[1916,5829,5830],{"class":1918,"line":129},[1916,5831,5832],{"class":1928},"        The plug went from {{ trigger.from_version }}\n",[1916,5834,5835],{"class":1918,"line":161},[1916,5836,5837],{"class":1928},"        to {{ trigger.to_version }}.\n",[1799,5839,5840],{"icon":2655,"label":2656},[2658,5841,5842,5845,5848,5851,5854,5857,5859],{},[1756,5843,5844],{},"在 Home Assistant 停机期间变化的版本不会被报告。这包括 Home Assistant 本身：它是通过重启来更新的，所以在触发条件开始监视时，它自己的新版本已经在那里了。",[1756,5846,5847],{},"Home Assistant 启动完成之前什么都不记。集成在设置时会填入它们的版本，有些先从恢复的数据里填，再从设备上填，这些都不算安装。",[1756,5849,5850],{},"第一次报告版本的实体并没有安装它。看到的第一个版本就是起点。",[1756,5852,5853],{},"安装失败不会被报告：版本保持不变，而这个触发条件只看版本。",[1756,5855,5856],{},"只监视更新实体。设备、区域、楼层或标签会被缩小到其中的更新实体。",[1756,5858,3776],{},[1756,5860,5861],{},"和大多数接受目标的触发条件不同，设备、区域或楼层也会覆盖它们的配置实体和诊断实体。更新实体几乎总是其中之一，所以把它们排除在外，就会排除几乎所有更新。隐藏的实体仍然会被排除。",[1731,5863,5865],{"id":5864},"script-started","脚本已启动",[1718,5867,5868],{},"在脚本开始一次运行时触发。",[1718,5870,5871,5872,5875],{},"Home Assistant 确实会通告每次脚本运行，以 ",[1742,5873,5874],{},"script_started"," 事件的形式。要用它，你得知道有这个事件，并手动把它的名称和脚本填进一个事件触发条件。没有选择器，没有区域或标签。它也会通告脚本随即拒绝的运行，比如一个同时只能运行一次的脚本的第二次运行。",[1718,5877,5878],{},"这个触发条件在触发条件列表里，带有目标选择器，而且只为被放行的运行触发。电影之夜脚本运行时启动咖啡机，或者记录是谁启动了警报脚本。",[1718,5880,5881],{},[1749,5882,1751],{},[1753,5884,5885,5891,5897,5902],{},[1756,5886,2774,5887,2741,5889,1762],{},[1749,5888,2740],{},[1749,5890,2744],{},[1756,5892,1765,5893,2783,5895,1762],{},[1749,5894,5865],{},[1749,5896,5865],{},[1756,5898,2110,5899,5901],{},[1749,5900,2790],{},"下选择要监视的脚本，或者留空监视全部。",[1756,5903,778,5904,1762],{},[1749,5905,1778],{},[1780,5907,5910],{"alt":5908,"name":5909},"自动化编辑器中选中的脚本已启动触发条件，监视晚安脚本。","trigger-script-started",[1718,5911,5912],{},"晚安脚本开始，幽灵去睡觉。",[1796,5914,5915,5980,6045],{},[1799,5916,5917,5963,5965],{"icon":1801,"label":1802},[1804,5918,5919,5925],{},[1807,5920,5921],{},[1810,5922,5923],{},[1813,5924,2824],{"colspan":194},[1817,5926,5927,5933,5942,5955],{},[1810,5928,5929,5931],{},[1822,5930,980],{},[1822,5932,5865],{},[1810,5934,5935,5937],{},[1822,5936,2837],{},[1822,5938,5939],{},[1742,5940,5941],{},"spook.script_started",[1810,5943,5944,5946],{},[1822,5945,2790],{},[1822,5947,740,5948,2690,5950,2690,5952,5954],{},[1825,5949,2852],{"to":2851},[1825,5951,2856],{"to":2855},[1825,5953,2860],{"to":2859},"、楼层和标签。可选：不填时监视每个脚本。",[1810,5956,5957,5961],{},[1822,5958,5959],{},[1825,5960,1873],{"to":1872},[1822,5962,2870],{},[1718,5964,2873],{},[1718,5966,2876,5967,5969,5970,2700,5972,5974,5975,2700,5977,5979],{},[1742,5968,2879],{}," 是这个脚本，",[1742,5971,2883],{},[1742,5973,2886],{}," 是它在之前和之后的状态。启动它的是谁记录在上下文里，所以 ",[1742,5976,2890],{},[1742,5978,2893],{}," 可以和它一起用。",[1799,5981,5982,5985,6014,6017],{"icon":1901,"label":2897},[1718,5983,5984],{},"厨房里的每个脚本：",[1907,5986,5988],{"className":1909,"code":5987,"language":1911,"meta":1912,"style":1912},"trigger: spook.script_started\ntarget:\n  area_id: kitchen\n",[1742,5989,5990,5999,6005],{"__ignoreMap":1912},[1916,5991,5992,5994,5996],{"class":1918,"line":215},[1916,5993,2685],{"class":1921},[1916,5995,1925],{"class":1924},[1916,5997,5998],{"class":1928}," spook.script_started\n",[1916,6000,6001,6003],{"class":1918,"line":194},[1916,6002,3671],{"class":1921},[1916,6004,2343],{"class":1924},[1916,6006,6007,6009,6011],{"class":1918,"line":29},[1916,6008,3678],{"class":1921},[1916,6010,1925],{"class":1924},[1916,6012,6013],{"class":1928}," kitchen\n",[1718,6015,6016],{},"一个脚本：",[1907,6018,6020],{"className":1909,"code":6019,"language":1911,"meta":1912,"style":1912},"trigger: spook.script_started\ntarget:\n  entity_id: script.movie_night\n",[1742,6021,6022,6030,6036],{"__ignoreMap":1912},[1916,6023,6024,6026,6028],{"class":1918,"line":215},[1916,6025,2685],{"class":1921},[1916,6027,1925],{"class":1924},[1916,6029,5998],{"class":1928},[1916,6031,6032,6034],{"class":1918,"line":194},[1916,6033,3671],{"class":1921},[1916,6035,2343],{"class":1924},[1916,6037,6038,6040,6042],{"class":1918,"line":29},[1916,6039,3729],{"class":1921},[1916,6041,1925],{"class":1924},[1916,6043,6044],{"class":1928}," script.movie_night\n",[1799,6046,6047],{"icon":2655,"label":2656},[2658,6048,6049,6052,6055,6058,6061],{},[1756,6050,6051],{},"被拒绝的运行不算：脚本已经在运行且只能运行一次，已经达到允许的运行次数，或者会以不允许的方式启动自己。",[1756,6053,6054],{},"排队脚本的一次运行，在加入队列时就算。那是 Home Assistant 放行它的时候；它会在前一次完成后开始。",[1756,6056,6057],{},"重新启动的脚本算：新的运行是一次启动，即使旧的那次因此被停止了。",[1756,6059,6060],{},"没有针对脚本结束的触发条件。Spook 分不清一次运行是结束了，还是被重新加载或 Home Assistant 关机停止了。分不清这些的触发条件，每次重新加载都会触发。",[1756,6062,6063],{},"在 Home Assistant 停机期间，或者在这个触发条件没有加载时启动的脚本，事后不会被报告。",[1731,6065,6067],{"id":6066},"spooks-state-trigger","Spook 的状态触发条件",[1718,6069,6070],{},"在实体状态变化时触发，适用于目标覆盖的一切。",[1718,6072,6073],{},"Home Assistant 的状态触发条件接受实体，一个一个地加。这个触发条件接受一个目标：标签、区域、楼层、设备，或者它们的组合。给每扇外门贴一个标签，一个触发条件就能覆盖所有外门，包括你明年再装的那扇。或者不用目标，按类型挑：家里的每个门传感器，车库的除外。",[1718,6075,6076],{},[1749,6077,1751],{},[1753,6079,6080,6086,6093,6098,6126,6146,6153],{},[1756,6081,2774,6082,2741,6084,1762],{},[1749,6083,2740],{},[1749,6085,2744],{},[1756,6087,1765,6088,1769,6091,1762],{},[1749,6089,6090],{},"状态触发条件",[1749,6092,6067],{},[1756,6094,2110,6095,6097],{},[1749,6096,2790],{},"下选择要监视的东西，比如一个标签、区域或楼层。",[1756,6099,6100,6101,6104,6105,6108,6109,6104,6111,6114,6115,6104,6118,6121,6122,6125],{},"愿意的话再缩小范围：",[1749,6102,6103],{},"域","（比如 ",[1742,6106,6107],{},"binary_sensor","）、",[1749,6110,4925],{},[1742,6112,6113],{},"zha","）和",[1749,6116,6117],{},"设备类别",[1742,6119,6120],{},"door","）。用",[1749,6123,6124],{},"排除","和其他排除字段把东西排除在外，比如车库。",[1756,6127,2110,6128,6131,6132,1762,6135,2690,6138,6141,6142,6145],{},[1749,6129,6130],{},"到","下输入它必须变成的状态，比如 ",[1742,6133,6134],{},"on",[1749,6136,6137],{},"从",[1749,6139,6140],{},"不从","和",[1749,6143,6144],{},"不到","的用法一样。",[1756,6147,2116,6148,6150,6151,1762],{},[1749,6149,3525],{},"设为它必须保持多久，比如 ",[1742,6152,2123],{},[1756,6154,778,6155,1762],{},[1749,6156,1778],{},[1780,6158,6161],{"alt":6159,"name":6160},"自动化编辑器中选中的 Spook 的状态触发条件，设为一楼任意一个变为开启的门二元传感器。","trigger-state-changed",[1718,6162,6163],{},"一楼任何一扇门打开都算，一扇都不用点名。",[1718,6165,6166,6169],{},[1749,6167,6168],{},"行为","决定有多个实体时会怎样：每个实体各自触发，第一个到达的触发，或者等所有实体都到达。下面的技术细节里有每个字段。",[1796,6171,6172,6770,6884],{},[1799,6173,6174,6221,6605,6637,6670,6693,6720,6751],{"icon":1801,"label":1802},[1804,6175,6176,6182],{},[1807,6177,6178],{},[1810,6179,6180],{},[1813,6181,2824],{"colspan":194},[1817,6183,6184,6190,6199,6213],{},[1810,6185,6186,6188],{},[1822,6187,980],{},[1822,6189,6067],{},[1810,6191,6192,6194],{},[1822,6193,2837],{},[1822,6195,6196],{},[1742,6197,6198],{},"spook.state_changed",[1810,6200,6201,6203],{},[1822,6202,2790],{},[1822,6204,6205,6206,2690,6208,2690,6210,6212],{},"任何",[1825,6207,2852],{"to":2851},[1825,6209,2856],{"to":2855},[1825,6211,2860],{"to":2859},"、楼层和标签；可选",[1810,6214,6215,6219],{},[1822,6216,6217],{},[1825,6218,1873],{"to":1872},[1822,6220,2870],{},[1804,6222,6223,6239],{},[1807,6224,6225,6229],{},[1810,6226,6227],{},[1813,6228,3131],{"colspan":42},[1810,6230,6231,6233,6235,6237],{},[1813,6232,2235],{},[1813,6234,2238],{},[1813,6236,2241],{},[1813,6238,2244],{},[1817,6240,6241,6260,6279,6296,6315,6331,6351,6370,6387,6407,6425,6445,6462,6482,6499,6518,6535,6553,6569,6587],{},[1810,6242,6243,6247,6254,6256],{},[1822,6244,6245],{},[1742,6246,5011],{},[1822,6248,6249,1912,6251],{},[1825,6250,2276],{"to":2275},[1825,6252,6253],{"to":4524},"列表",[1822,6255,1854],{},[1822,6257,6258],{},[1742,6259,6107],{},[1810,6261,6262,6267,6273,6275],{},[1822,6263,6264],{},[1742,6265,6266],{},"integration",[1822,6268,6269,1912,6271],{},[1825,6270,2276],{"to":2275},[1825,6272,6253],{"to":4524},[1822,6274,1854],{},[1822,6276,6277],{},[1742,6278,6113],{},[1810,6280,6281,6286,6292,6294],{},[1822,6282,6283],{},[1742,6284,6285],{},"config_entry",[1822,6287,6288,1912,6290],{},[1825,6289,2276],{"to":2275},[1825,6291,6253],{"to":4524},[1822,6293,1854],{},[1822,6295],{},[1810,6297,6298,6303,6309,6311],{},[1822,6299,6300],{},[1742,6301,6302],{},"device_class",[1822,6304,6305,1912,6307],{},[1825,6306,2276],{"to":2275},[1825,6308,6253],{"to":4524},[1822,6310,1854],{},[1822,6312,6313],{},[1742,6314,6120],{},[1810,6316,6317,6322,6324,6326],{},[1822,6318,6319],{},[1742,6320,6321],{},"exclude_target",[1822,6323,2790],{},[1822,6325,1854],{},[1822,6327,6328],{},[1742,6329,6330],{},"area_id: garage",[1810,6332,6333,6338,6344,6346],{},[1822,6334,6335],{},[1742,6336,6337],{},"exclude_domain",[1822,6339,6340,1912,6342],{},[1825,6341,2276],{"to":2275},[1825,6343,6253],{"to":4524},[1822,6345,1854],{},[1822,6347,6348],{},[1742,6349,6350],{},"sensor",[1810,6352,6353,6358,6364,6366],{},[1822,6354,6355],{},[1742,6356,6357],{},"exclude_integration",[1822,6359,6360,1912,6362],{},[1825,6361,2276],{"to":2275},[1825,6363,6253],{"to":4524},[1822,6365,1854],{},[1822,6367,6368],{},[1742,6369,2080],{},[1810,6371,6372,6377,6383,6385],{},[1822,6373,6374],{},[1742,6375,6376],{},"exclude_config_entry",[1822,6378,6379,1912,6381],{},[1825,6380,2276],{"to":2275},[1825,6382,6253],{"to":4524},[1822,6384,1854],{},[1822,6386],{},[1810,6388,6389,6394,6400,6402],{},[1822,6390,6391],{},[1742,6392,6393],{},"exclude_device_class",[1822,6395,6396,1912,6398],{},[1825,6397,2276],{"to":2275},[1825,6399,6253],{"to":4524},[1822,6401,1854],{},[1822,6403,6404],{},[1742,6405,6406],{},"battery",[1810,6408,6409,6414,6418,6420],{},[1822,6410,6411],{},[1742,6412,6413],{},"attribute",[1822,6415,6416],{},[1825,6417,2276],{"to":2275},[1822,6419,1854],{},[1822,6421,6422],{},[1742,6423,6424],{},"brightness",[1810,6426,6427,6432,6438,6440],{},[1822,6428,6429],{},[1742,6430,6431],{},"from",[1822,6433,6434,1912,6436],{},[1825,6435,2276],{"to":2275},[1825,6437,6253],{"to":4524},[1822,6439,1854],{},[1822,6441,6442],{},[1742,6443,6444],{},"\"off\"",[1810,6446,6447,6452,6458,6460],{},[1822,6448,6449],{},[1742,6450,6451],{},"not_from",[1822,6453,6454,1912,6456],{},[1825,6455,2276],{"to":2275},[1825,6457,6253],{"to":4524},[1822,6459,1854],{},[1822,6461],{},[1810,6463,6464,6469,6475,6477],{},[1822,6465,6466],{},[1742,6467,6468],{},"to",[1822,6470,6471,1912,6473],{},[1825,6472,2276],{"to":2275},[1825,6474,6253],{"to":4524},[1822,6476,1854],{},[1822,6478,6479],{},[1742,6480,6481],{},"\"on\"",[1810,6483,6484,6489,6495,6497],{},[1822,6485,6486],{},[1742,6487,6488],{},"not_to",[1822,6490,6491,1912,6493],{},[1825,6492,2276],{"to":2275},[1825,6494,6253],{"to":4524},[1822,6496,1854],{},[1822,6498],{},[1810,6500,6501,6506,6512,6514],{},[1822,6502,6503],{},[1742,6504,6505],{},"ignore_unavailable",[1822,6507,6508],{},[1825,6509,6511],{"to":6510},"boolean","布尔值",[1822,6513,1854],{},[1822,6515,6516],{},[1742,6517,2312],{},[1810,6519,6520,6525,6529,6531],{},[1822,6521,6522],{},[1742,6523,6524],{},"attribute_changes",[1822,6526,6527],{},[1825,6528,6511],{"to":6510},[1822,6530,1854],{},[1822,6532,6533],{},[1742,6534,2316],{},[1810,6536,6537,6542,6546,6548],{},[1822,6538,6539],{},[1742,6540,6541],{},"behavior",[1822,6543,6544],{},[1825,6545,2276],{"to":2275},[1822,6547,1854],{},[1822,6549,6550],{},[1742,6551,6552],{},"each",[1810,6554,6555,6559,6563,6565],{},[1822,6556,6557],{},[1742,6558,3617],{},[1822,6560,6561],{},[1825,6562,2276],{"to":2275},[1822,6564,1854],{},[1822,6566,6567],{},[1742,6568,2123],{},[1810,6570,6571,6576,6580,6582],{},[1822,6572,6573],{},[1742,6574,6575],{},"blip_tolerance",[1822,6577,6578],{},[1825,6579,2276],{"to":2275},[1822,6581,1854],{},[1822,6583,6584],{},[1742,6585,6586],{},"00:00:30",[1810,6588,6589,6594,6598,6600],{},[1822,6590,6591],{},[1742,6592,6593],{},"delay",[1822,6595,6596],{},[1825,6597,2276],{"to":2275},[1822,6599,1854],{},[1822,6601,6602],{},[1742,6603,6604],{},"00:01:00",[1718,6606,6607,6610,6611,6614,6615,6617,6618,6620,6621,6623,6624,6626,6627,6630,6631,6633,6634,6636],{},[1749,6608,6609],{},"哪些实体","。目标覆盖的一切，限定在你列出的域、集成、集成条目和设备类别之内。不写目标的话，这些列表就改为从 Home Assistant 拥有的一切中挑选实体：单单一个 ",[1742,6612,6613],{},"device_class: door"," 就是家里的每扇门。没有目标时，至少需要其中一个列表。用这种方式挑选时，只算主要实体，没有注册表条目的实体只能按域挑选。同一个列表里，匹配任何一项都行；不同列表之间，必须全部满足：来自 ZHA 的门传感器是 ",[1742,6616,6107],{},"、来自 ",[1742,6619,6113],{},"、类别为 ",[1742,6622,6120],{},"。通过设备、区域或楼层，或者贴在它们上面的标签，只算主要实体，和 Home Assistant 的做法一样，所以设备的电池和信号强度传感器不会被算进去。直接贴在实体上的标签指的就是那个实体，所以不管它是什么都算。然后同样的规则反过来用于排除：",[1742,6625,6321],{}," 和那些 ",[1742,6628,6629],{},"exclude_"," 列表。没有 ",[1742,6632,6321],{},"，或者它什么都没指定时，",[1742,6635,6629],{}," 列表适用于目标覆盖的一切。排除一个区域，就会排除里面的一切，诊断实体也一样。目标变化时会跟着变：贴了这个标签的新实体会立刻加入。",[1718,6638,6639,6642,6643,2644,6645,6647,6648,2644,6650,6652,6653,6655,6656,6658,6659,6661,6662,6665,6666,6669],{},[1749,6640,6641],{},"哪些变化","。状态不同，从任何状态到任何状态，除非你用 ",[1742,6644,6431],{},[1742,6646,6451],{},"，以及 ",[1742,6649,6468],{},[1742,6651,6488],{}," 缩小范围。状态不变而属性变化，不算，除非你打开 ",[1742,6654,6524],{},"。有了 ",[1742,6657,6413],{},"，它跟随的是这个属性而不是状态，",[1742,6660,6524],{}," 就没什么可加的了。值按文字比较，所以亮度 ",[1742,6663,6664],{},"255"," 和在编辑器中输入的 ",[1742,6667,6668],{},"\"255\""," 是一回事。",[1718,6671,6672,6673,6675,6676,2644,6678,6680,6681,6683,6684,2700,6686,6688,6689,6692],{},"两边的不可用和未知都会被忽略：路由器重启不会让每扇门都经历一次变化。关掉 ",[1742,6674,6505],{}," 就会在它们上触发。在它们被忽略时还在 ",[1742,6677,6431],{},[1742,6679,6468],{}," 中写它们，会被拒绝，因为那样的触发条件永远不会触发。跟随 ",[1742,6682,6413],{}," 时，",[1742,6685,6431],{},[1742,6687,6468],{}," 是它的值，所以要求一个值为 ",[1742,6690,6691],{},"unknown"," 的属性没有问题。",[1718,6694,6695,6698,6700,6701,6703,6704,6707,6708,6711,6712,2644,6714,6716,6717,6719],{},[1749,6696,6697],{},"多少个。",[1742,6699,6541],{}," 的作用和 Home Assistant 自己的实体触发条件一样。",[1742,6702,6552],{}," 为每个实体各自触发。",[1742,6705,6706],{},"first"," 在目标中第一个实体到达时触发，在它们全都离开之前不会再触发。",[1742,6709,6710],{},"all"," 在最后一个到达的那一刻触发。后两者都是关于到达某个状态的，所以需要 ",[1742,6713,6468],{},[1742,6715,6488],{},"。不可用和未知被忽略时，处于这些状态的实体不参与：一扇没有应答的门不会阻止 ",[1742,6718,6710],{}," 触发。",[1718,6721,6722,6725,6727,6728,6730,6731,2700,6733,6735,6736,6738,6739,6741,6742,6744,6745,6747,6748,6750],{},[1749,6723,6724],{},"什么时候。",[1742,6726,3617],{}," 会等到变化保持了那么久。保持指的是那个值：中途再次变化就会取消，即使变成另一个也能满足 ",[1742,6729,6468],{}," 的值。对于 ",[1742,6732,6706],{},[1742,6734,6710],{},"，必须保持的是目标，而不是某一个实体。",[1742,6737,6575],{}," 允许某个东西在 ",[1742,6740,3617],{}," 计时期间短暂掉到不可用或未知，而不让等待重新开始：在它恢复原样或容差用完之前，都算它还在那里。恢复成别的值，会取消等待。如果时间在这次短暂掉线期间用完，掉线一结束就会触发。",[1742,6743,6593],{}," 会在触发之前等待，不管中间发生什么，就像在你的动作开头加一个延迟。两者都有时，",[1742,6746,6593],{}," 在 ",[1742,6749,3617],{}," 完成后开始。",[1718,6752,2876,6753,6755,6756,2700,6758,6760,6761,2700,6763,6766,6767,6769],{},[1742,6754,2879],{}," 是这个实体，",[1742,6757,2883],{},[1742,6759,2886],{}," 是它在变化之前和之后的状态，",[1742,6762,3646],{},[1742,6764,6765],{},"trigger.delay"," 是你要求的持续时间。有 ",[1742,6768,6593],{}," 时，这些仍然是变化那一刻的状态。",[1799,6771,6772,6775],{"icon":1901,"label":2897},[1718,6773,6774],{},"任何开着超过五分钟的外门，车库除外：",[1907,6776,6778],{"className":1909,"code":6777,"language":1911,"meta":1912,"style":1912},"trigger: spook.state_changed\ntarget:\n  label_id: outside_door\noptions:\n  domain: binary_sensor\n  device_class: door\n  exclude_target:\n    area_id: garage\n  to: \"on\"\n  for: \"00:05:00\"\n  blip_tolerance: \"00:00:30\"\n",[1742,6779,6780,6789,6795,6805,6811,6820,6830,6837,6846,6859,6871],{"__ignoreMap":1912},[1916,6781,6782,6784,6786],{"class":1918,"line":215},[1916,6783,2685],{"class":1921},[1916,6785,1925],{"class":1924},[1916,6787,6788],{"class":1928}," spook.state_changed\n",[1916,6790,6791,6793],{"class":1918,"line":194},[1916,6792,3671],{"class":1921},[1916,6794,2343],{"class":1924},[1916,6796,6797,6800,6802],{"class":1918,"line":29},[1916,6798,6799],{"class":1921},"  label_id",[1916,6801,1925],{"class":1924},[1916,6803,6804],{"class":1928}," outside_door\n",[1916,6806,6807,6809],{"class":1918,"line":42},[1916,6808,3228],{"class":1921},[1916,6810,2343],{"class":1924},[1916,6812,6813,6815,6817],{"class":1918,"line":118},[1916,6814,5122],{"class":1921},[1916,6816,1925],{"class":1924},[1916,6818,6819],{"class":1928}," binary_sensor\n",[1916,6821,6822,6825,6827],{"class":1918,"line":53},[1916,6823,6824],{"class":1921},"  device_class",[1916,6826,1925],{"class":1924},[1916,6828,6829],{"class":1928}," door\n",[1916,6831,6832,6835],{"class":1918,"line":578},[1916,6833,6834],{"class":1921},"  exclude_target",[1916,6836,2343],{"class":1924},[1916,6838,6839,6842,6844],{"class":1918,"line":150},[1916,6840,6841],{"class":1921},"    area_id",[1916,6843,1925],{"class":1924},[1916,6845,3683],{"class":1928},[1916,6847,6848,6851,6853,6855,6857],{"class":1918,"line":129},[1916,6849,6850],{"class":1921},"  to",[1916,6852,1925],{"class":1924},[1916,6854,2380],{"class":1924},[1916,6856,6134],{"class":1928},[1916,6858,2386],{"class":1924},[1916,6860,6861,6863,6865,6867,6869],{"class":1918,"line":161},[1916,6862,3694],{"class":1921},[1916,6864,1925],{"class":1924},[1916,6866,2380],{"class":1924},[1916,6868,2123],{"class":1928},[1916,6870,2386],{"class":1924},[1916,6872,6873,6876,6878,6880,6882],{"class":1918,"line":2499},[1916,6874,6875],{"class":1921},"  blip_tolerance",[1916,6877,1925],{"class":1924},[1916,6879,2380],{"class":1924},[1916,6881,6586],{"class":1928},[1916,6883,2386],{"class":1924},[1799,6885,6886],{"icon":2655,"label":2656},[2658,6887,6888,6896,6902,6905,6908],{},[1756,6889,6890,6891,2644,6893,6895],{},"在 Home Assistant 停机期间，或者在这个触发条件没有加载时发生的变化，事后不会被报告。正在等待 ",[1742,6892,3617],{},[1742,6894,6593],{}," 的东西，在重启或重新加载自动化时会被丢弃，和动作中的延迟一样。",[1756,6897,6898,6899,6901],{},"触发条件加载时已经处于该状态的实体并没有变化，所以在它变化之前，",[1742,6900,3617],{}," 不会开始计时。",[1756,6903,6904],{},"筛选后什么都不剩的筛选条件不会被拒绝。目标以后还可能长出符合的东西。",[1756,6906,6907],{},"不用目标的挑选跟随实体注册表。后来才出现的、没有注册表条目的实体，会在注册表下次变化时按域被挑中，而不是在它第一次写入状态的那一刻。",[1756,6909,6910],{},"按集成、集成条目或设备类别的筛选读取的是实体注册表，因为那里的变化才会让触发条件重新查看。没有唯一 ID 的实体不在注册表里，永远通不过这些筛选。",[1731,6912,6914],{"id":6913},"user-added","用户已添加",[1718,6916,6917],{},"在有人获得 Home Assistant 的登录账户时触发。",[1718,6919,6920],{},"一个能登录你家系统的新人，是你想知道的事。Home Assistant 确实会通告这件事，但只是作为它总线上的一个事件。你不会收到通知。",[1718,6922,6923],{},[1749,6924,1751],{},[1753,6926,6927,6933,6939],{},[1756,6928,2774,6929,2741,6931,1762],{},[1749,6930,2740],{},[1749,6932,2744],{},[1756,6934,1765,6935,2783,6937,1762],{},[1749,6936,6914],{},[1749,6938,6914],{},[1756,6940,3355,6941,1762],{},[1749,6942,1778],{},[1780,6944,6947],{"alt":6945,"name":6946},"自动化编辑器中选中的用户已添加触发条件，所在的自动化会发送一条通知。","trigger-user-added",[1718,6948,6949],{},"每添加一个新用户，就发一条通知。",[1796,6951,6952,7002,7074],{},[1799,6953,6954,6987,6989],{"icon":1801,"label":1802},[1804,6955,6956,6962],{},[1807,6957,6958],{},[1810,6959,6960],{},[1813,6961,2824],{"colspan":194},[1817,6963,6964,6970,6979],{},[1810,6965,6966,6968],{},[1822,6967,980],{},[1822,6969,6914],{},[1810,6971,6972,6974],{},[1822,6973,2837],{},[1822,6975,6976],{},[1742,6977,6978],{},"spook.user_added",[1810,6980,6981,6985],{},[1822,6982,6983],{},[1825,6984,1873],{"to":1872},[1822,6986,2870],{},[1718,6988,2873],{},[1718,6990,2876,6991,6994,6995,6997,6998,7001],{},[1742,6992,6993],{},"trigger.user_id"," 是新用户的标识符，",[1742,6996,3412],{}," 是他们的名字，",[1742,6999,7000],{},"trigger.is_admin"," 表示他们是否被设为管理员。",[1799,7003,7004,7007,7021,7024],{"icon":1901,"label":2897},[1718,7005,7006],{},"任何新用户：",[1907,7008,7010],{"className":1909,"code":7009,"language":1911,"meta":1912,"style":1912},"trigger: spook.user_added\n",[1742,7011,7012],{"__ignoreMap":1912},[1916,7013,7014,7016,7018],{"class":1918,"line":215},[1916,7015,2685],{"class":1921},[1916,7017,1925],{"class":1924},[1916,7019,7020],{"class":1928}," spook.user_added\n",[1718,7022,7023],{},"只针对新的管理员：",[1907,7025,7027],{"className":1909,"code":7026,"language":1911,"meta":1912,"style":1912},"triggers:\n  - trigger: spook.user_added\nconditions:\n  - condition: template\n    value_template: \"{{ trigger.is_admin }}\"\n",[1742,7028,7029,7035,7045,7051,7061],{"__ignoreMap":1912},[1916,7030,7031,7033],{"class":1918,"line":215},[1916,7032,2734],{"class":1921},[1916,7034,2343],{"class":1924},[1916,7036,7037,7039,7041,7043],{"class":1918,"line":194},[1916,7038,2933],{"class":1924},[1916,7040,2936],{"class":1921},[1916,7042,1925],{"class":1924},[1916,7044,7020],{"class":1928},[1916,7046,7047,7049],{"class":1918,"line":29},[1916,7048,2945],{"class":1921},[1916,7050,2343],{"class":1924},[1916,7052,7053,7055,7057,7059],{"class":1918,"line":42},[1916,7054,2933],{"class":1924},[1916,7056,2612],{"class":1921},[1916,7058,1925],{"class":1924},[1916,7060,2617],{"class":1928},[1916,7062,7063,7065,7067,7069,7072],{"class":1918,"line":118},[1916,7064,3945],{"class":1921},[1916,7066,1925],{"class":1924},[1916,7068,2380],{"class":1924},[1916,7070,7071],{"class":1928},"{{ trigger.is_admin }}",[1916,7073,2386],{"class":1924},[1799,7075,7076],{"icon":2655,"label":2656},[2658,7077,7078,7081],{},[1756,7079,7080],{},"Home Assistant 为自己创建的用户不算在内。一个自己行动的集成，比如 Supervisor 或 Home Assistant Link，在设置时会得到一个它自己的用户，没有人能用这样的用户登录。",[1756,7082,7083],{},"在自动化没有加载时，或者在 Home Assistant 停机期间添加的用户，事后不会被报告。",[1731,7085,7087],{"id":7086},"all-of-these-happened","全部发生",[1718,7089,7090],{},"在几个触发条件都在同一个时间窗口内触发过时触发，顺序不限。",[1718,7092,7093,7094,7096],{},"Home Assistant 没有跨时间的“且”。自动化上的触发条件是一个列表，其中任何一个就足以让它启动，而 ",[1742,7095,3617],{}," 只管一个状态保持不变。你没法说“这三件事在过去五分钟里都发生了，顺序随便”。手动做的话，每件事需要一个辅助元素实体，再为每件事配一个自动化去设置它。",[1718,7098,7099,7100,7104],{},"某人的手机到家了，前门也开了，顺序不限，在两分钟之内。那是有人回家，而不是门自己开了。顺序重要的情况，见",[1788,7101,7103],{"href":7102},"#triggers-in-order","按顺序触发","。这里顺序不重要。",[1718,7106,7107],{},[1749,7108,1751],{},[1753,7110,7111,7117,7123,7128,7137],{},[1756,7112,2774,7113,2741,7115,1762],{},[1749,7114,2740],{},[1749,7116,2744],{},[1756,7118,1765,7119,2783,7121,1762],{},[1749,7120,7087],{},[1749,7122,7087],{},[1756,7124,2110,7125,7127],{},[1749,7126,980],{},"下添加两个或更多触发条件，方式和在自动化中添加一样。",[1756,7129,3522,7130,7133,7134,1762],{},[1749,7131,7132],{},"时间窗口","设为它们都必须落在其中的时间段，比如 ",[1742,7135,7136],{},"00:02:00",[1756,7138,778,7139,1762],{},[1749,7140,1778],{},[1780,7142,7145],{"alt":7143,"name":7144},"自动化编辑器中选中的全部发生触发条件，手机到家和前门打开在五分钟内发生。","trigger-all-of",[1718,7146,7147],{},"手机到家，前门打开，两件事相隔不到五分钟。",[1796,7149,7150,7272,7508],{},[1799,7151,7152,7192,7244,7247,7250],{"icon":1801,"label":1802},[1804,7153,7154,7160],{},[1807,7155,7156],{},[1810,7157,7158],{},[1813,7159,2824],{"colspan":194},[1817,7161,7162,7168,7177,7184],{},[1810,7163,7164,7166],{},[1822,7165,980],{},[1822,7167,7087],{},[1810,7169,7170,7172],{},[1822,7171,2837],{},[1822,7173,7174],{},[1742,7175,7176],{},"spook.all_of",[1810,7178,7179,7181],{},[1822,7180,2790],{},[1822,7182,7183],{},"无目标",[1810,7185,7186,7190],{},[1822,7187,7188],{},[1825,7189,1873],{"to":1872},[1822,7191,2870],{},[1804,7193,7194,7210],{},[1807,7195,7196,7200],{},[1810,7197,7198],{},[1813,7199,3131],{"colspan":42},[1810,7201,7202,7204,7206,7208],{},[1813,7203,2235],{},[1813,7205,2238],{},[1813,7207,2241],{},[1813,7209,2244],{},[1817,7211,7212,7227],{},[1810,7213,7214,7218,7222,7224],{},[1822,7215,7216],{},[1742,7217,2734],{},[1822,7219,7220],{},[1825,7221,6253],{"to":4524},[1822,7223,2260],{},[1822,7225,7226],{},"两个或更多触发条件",[1810,7228,7229,7234,7238,7240],{},[1822,7230,7231],{},[1742,7232,7233],{},"within",[1822,7235,7236],{},[1825,7237,2276],{"to":2275},[1822,7239,2260],{},[1822,7241,7242],{},[1742,7243,2123],{},[1718,7245,7246],{},"时间窗口是滑动的。每个触发条件最近一次的触发会被记住，早于时间窗口的都会被忘掉。剩下的一覆盖到全部触发条件，它就立刻触发。某个成员过期，不会把其他成员扔掉：一分钟前发生的两件事，仍然算进稍后由第三件事凑齐的那一组。",[1718,7248,7249],{},"每凑齐一组触发一次。触发之后，每个触发条件都必须重新轮一次，否则任何一个成员的下一次触发，都会一遍又一遍地凑齐同一组。",[1718,7251,2876,7252,7255,7256,7259,7260,7263,7264,2690,7266,2700,7268,7271],{},[1742,7253,7254],{},"trigger.triggers"," 按你配置的顺序保存每个成员自己的数据，",[1742,7257,7258],{},"trigger.span"," 是最早和最晚的触发相隔多久，",[1742,7261,7262],{},"trigger.within"," 是你设的时间窗口。凑齐这一组的那个触发条件也会被提到最上层，所以 ",[1742,7265,2879],{},[1742,7267,2886],{},[1742,7269,7270],{},"trigger.event"," 的含义和其他任何触发条件中一样，询问是谁启动了这次运行的条件也仍然能得到答案。",[1799,7273,7274,7277,7377,7380],{"icon":1901,"label":2897},[1718,7275,7276],{},"有人到家了，门也开了，顺序不限，在两分钟之内。那是有人回家，而不是门自己开了：",[1907,7278,7280],{"className":1909,"code":7279,"language":1911,"meta":1912,"style":1912},"trigger: spook.all_of\noptions:\n  within: \"00:02:00\"\n  triggers:\n    - trigger: state\n      entity_id: device_tracker.phone\n      to: home\n    - trigger: state\n      entity_id: binary_sensor.front_door\n      to: \"on\"\n",[1742,7281,7282,7291,7297,7310,7317,7327,7336,7346,7356,7365],{"__ignoreMap":1912},[1916,7283,7284,7286,7288],{"class":1918,"line":215},[1916,7285,2685],{"class":1921},[1916,7287,1925],{"class":1924},[1916,7289,7290],{"class":1928}," spook.all_of\n",[1916,7292,7293,7295],{"class":1918,"line":194},[1916,7294,3228],{"class":1921},[1916,7296,2343],{"class":1924},[1916,7298,7299,7302,7304,7306,7308],{"class":1918,"line":29},[1916,7300,7301],{"class":1921},"  within",[1916,7303,1925],{"class":1924},[1916,7305,2380],{"class":1924},[1916,7307,7136],{"class":1928},[1916,7309,2386],{"class":1924},[1916,7311,7312,7315],{"class":1918,"line":42},[1916,7313,7314],{"class":1921},"  triggers",[1916,7316,2343],{"class":1924},[1916,7318,7319,7321,7323,7325],{"class":1918,"line":118},[1916,7320,2502],{"class":1924},[1916,7322,2936],{"class":1921},[1916,7324,1925],{"class":1924},[1916,7326,2360],{"class":1928},[1916,7328,7329,7331,7333],{"class":1918,"line":53},[1916,7330,2446],{"class":1921},[1916,7332,1925],{"class":1924},[1916,7334,7335],{"class":1928}," device_tracker.phone\n",[1916,7337,7338,7341,7343],{"class":1918,"line":578},[1916,7339,7340],{"class":1921},"      to",[1916,7342,1925],{"class":1924},[1916,7344,7345],{"class":1928}," home\n",[1916,7347,7348,7350,7352,7354],{"class":1918,"line":150},[1916,7349,2502],{"class":1924},[1916,7351,2936],{"class":1921},[1916,7353,1925],{"class":1924},[1916,7355,2360],{"class":1928},[1916,7357,7358,7360,7362],{"class":1918,"line":129},[1916,7359,2446],{"class":1921},[1916,7361,1925],{"class":1924},[1916,7363,7364],{"class":1928}," binary_sensor.front_door\n",[1916,7366,7367,7369,7371,7373,7375],{"class":1918,"line":161},[1916,7368,7340],{"class":1921},[1916,7370,1925],{"class":1924},[1916,7372,2380],{"class":1924},[1916,7374,6134],{"class":1928},[1916,7376,2386],{"class":1924},[1718,7378,7379],{},"它可以嵌套，所以成员也可以是 Spook 自己的触发条件。这里是两样东西在同一个小时内都安静了下来。那是网桥坏了，而不是传感器坏了：",[1907,7381,7383],{"className":1909,"code":7382,"language":1911,"meta":1912,"style":1912},"trigger: spook.all_of\noptions:\n  within: \"01:00:00\"\n  triggers:\n    - trigger: spook.stale\n      target:\n        entity_id: sensor.kitchen_temperature\n      options:\n        for: \"00:30:00\"\n    - trigger: spook.stale\n      target:\n        entity_id: sensor.hallway_temperature\n      options:\n        for: \"00:30:00\"\n",[1742,7384,7385,7393,7399,7411,7417,7427,7434,7444,7451,7465,7475,7481,7490,7496],{"__ignoreMap":1912},[1916,7386,7387,7389,7391],{"class":1918,"line":215},[1916,7388,2685],{"class":1921},[1916,7390,1925],{"class":1924},[1916,7392,7290],{"class":1928},[1916,7394,7395,7397],{"class":1918,"line":194},[1916,7396,3228],{"class":1921},[1916,7398,2343],{"class":1924},[1916,7400,7401,7403,7405,7407,7409],{"class":1918,"line":29},[1916,7402,7301],{"class":1921},[1916,7404,1925],{"class":1924},[1916,7406,2380],{"class":1924},[1916,7408,4010],{"class":1928},[1916,7410,2386],{"class":1924},[1916,7412,7413,7415],{"class":1918,"line":42},[1916,7414,7314],{"class":1921},[1916,7416,2343],{"class":1924},[1916,7418,7419,7421,7423,7425],{"class":1918,"line":118},[1916,7420,2502],{"class":1924},[1916,7422,2936],{"class":1921},[1916,7424,1925],{"class":1924},[1916,7426,4136],{"class":1928},[1916,7428,7429,7432],{"class":1918,"line":53},[1916,7430,7431],{"class":1921},"      target",[1916,7433,2343],{"class":1924},[1916,7435,7436,7439,7441],{"class":1918,"line":578},[1916,7437,7438],{"class":1921},"        entity_id",[1916,7440,1925],{"class":1924},[1916,7442,7443],{"class":1928}," sensor.kitchen_temperature\n",[1916,7445,7446,7449],{"class":1918,"line":150},[1916,7447,7448],{"class":1921},"      options",[1916,7450,2343],{"class":1924},[1916,7452,7453,7456,7458,7460,7463],{"class":1918,"line":129},[1916,7454,7455],{"class":1921},"        for",[1916,7457,1925],{"class":1924},[1916,7459,2380],{"class":1924},[1916,7461,7462],{"class":1928},"00:30:00",[1916,7464,2386],{"class":1924},[1916,7466,7467,7469,7471,7473],{"class":1918,"line":161},[1916,7468,2502],{"class":1924},[1916,7470,2936],{"class":1921},[1916,7472,1925],{"class":1924},[1916,7474,4136],{"class":1928},[1916,7476,7477,7479],{"class":1918,"line":2499},[1916,7478,7431],{"class":1921},[1916,7480,2343],{"class":1924},[1916,7482,7483,7485,7487],{"class":1918,"line":377},[1916,7484,7438],{"class":1921},[1916,7486,1925],{"class":1924},[1916,7488,7489],{"class":1928}," sensor.hallway_temperature\n",[1916,7491,7492,7494],{"class":1918,"line":2519},[1916,7493,7448],{"class":1921},[1916,7495,2343],{"class":1924},[1916,7497,7498,7500,7502,7504,7506],{"class":1918,"line":182},[1916,7499,7455],{"class":1921},[1916,7501,1925],{"class":1924},[1916,7503,2380],{"class":1924},[1916,7505,7462],{"class":1928},[1916,7507,2386],{"class":1924},[1799,7509,7510],{"icon":2655,"label":2656},[2658,7511,7512,7515,7518,7521,7524],{},[1756,7513,7514],{},"最少两个触发条件。一个触发条件和什么都不组合，就只是那个触发条件，所以会被拒绝。",[1756,7516,7517],{},"必须有时间窗口，为零的会被拒绝。没有时间窗口，这一组最终会永远处于凑齐的状态；时间窗口为零，里面什么都不可能发生。",[1756,7519,7520],{},"一个成员触发两次，会替换它之前的那一次。不算作两个成员。每个触发条件都必须有过它自己的一次。",[1756,7522,7523],{},"如果其中某个触发条件无法挂上，整个触发条件都会拒绝加载，自动化会被标记为不可用。缺了一个成员的组永远凑不齐。",[1756,7525,7526],{},"时间窗口是从 Spook 看到每个触发条件触发时开始算的，而不是从事件内部的任何东西开始算。对于状态变化，两者是同一时刻。对于报告较早发生的事情的触发条件，就不是了。",[1731,7528,7530],{"id":7529},"once-it-settles","稳定后触发",[1718,7532,7533],{},"在一个触发条件停止触发一段时间后触发，所以一连串触发会合成一次到达。",[1718,7535,7536],{},"走廊里的人体传感器报告了二十次有人。功率计越过一个阈值后，会在阈值上来回跳一分钟。你只想在它稳定下来之后听到一次。",[1718,7538,7539],{},"手动做的话，需要一个辅助元素实体，再加第二个自动化把它关回去。这是论坛上被重复造得最多的轮子。这里，每次触发都会让安静期重新开始。等它终于用完时，触发条件为整串触发只触发一次。",[1718,7541,7542],{},[1749,7543,1751],{},[1753,7545,7546,7552,7559,7564,7571],{},[1756,7547,2774,7548,2741,7550,1762],{},[1749,7549,2740],{},[1749,7551,2744],{},[1756,7553,1765,7554,2783,7557,1762],{},[1749,7555,7556],{},"稳定",[1749,7558,7530],{},[1756,7560,2110,7561,7563],{},[1749,7562,980],{},"下添加要等它平息的触发条件（一个或多个），方式和在自动化中添加一样。",[1756,7565,3522,7566,7568,7569,1762],{},[1749,7567,3525],{},"设为它必须安静多久，比如 ",[1742,7570,6586],{},[1756,7572,778,7573,1762],{},[1749,7574,1778],{},[1780,7576,7579],{"alt":7577,"name":7578},"自动化编辑器中选中的稳定后触发，等前门 30 秒没有动静。","trigger-debounce",[1718,7580,7581],{},"前门，30 秒没人碰。",[1718,7583,7584,7585,7589],{},"别和",[1788,7586,7588],{"href":7587},"#watchdog","看门狗","搞混，那个管的是根本没发生的事。",[1796,7591,7592,7724,7875],{},[1799,7593,7594,7633,7684,7687],{"icon":1801,"label":1802},[1804,7595,7596,7602],{},[1807,7597,7598],{},[1810,7599,7600],{},[1813,7601,2824],{"colspan":194},[1817,7603,7604,7610,7619,7625],{},[1810,7605,7606,7608],{},[1822,7607,980],{},[1822,7609,7530],{},[1810,7611,7612,7614],{},[1822,7613,2837],{},[1822,7615,7616],{},[1742,7617,7618],{},"spook.debounce",[1810,7620,7621,7623],{},[1822,7622,2790],{},[1822,7624,7183],{},[1810,7626,7627,7631],{},[1822,7628,7629],{},[1825,7630,1873],{"to":1872},[1822,7632,2870],{},[1804,7634,7635,7651],{},[1807,7636,7637,7641],{},[1810,7638,7639],{},[1813,7640,3131],{"colspan":42},[1810,7642,7643,7645,7647,7649],{},[1813,7644,2235],{},[1813,7646,2238],{},[1813,7648,2241],{},[1813,7650,2244],{},[1817,7652,7653,7668],{},[1810,7654,7655,7659,7663,7665],{},[1822,7656,7657],{},[1742,7658,2734],{},[1822,7660,7661],{},[1825,7662,6253],{"to":4524},[1822,7664,2260],{},[1822,7666,7667],{},"一个或多个触发条件",[1810,7669,7670,7674,7678,7680],{},[1822,7671,7672],{},[1742,7673,3617],{},[1822,7675,7676],{},[1825,7677,2276],{"to":2275},[1822,7679,2260],{},[1822,7681,7682],{},[1742,7683,6586],{},[1718,7685,7686],{},"给它多个触发条件，它们会被放在一起等待平息：任何一个都能开始一串，任何一个都能让它继续，最后全部合成一次报告。",[1718,7688,2876,7689,7692,7693,7695,7696,7698,7699,2700,7701,7703,7704,7707,7708,7711,7712,2690,7715,7718,7719,7721,7722,1762],{},[1742,7690,7691],{},"trigger.count"," 是合并了多少次触发，",[1742,7694,7258],{}," 是这一串从第一次到最后一次触发持续了多久，不包括之后的安静期，",[1742,7697,3646],{}," 是你设的安静期。这一串的最后一次触发会被整个提到最上层：",[1742,7700,2879],{},[1742,7702,2886],{}," 的含义和其他任何触发条件中一样，MQTT 触发条件的 ",[1742,7705,7706],{},"trigger.payload"," 或日历触发条件的 ",[1742,7709,7710],{},"trigger.calendar_event"," 也都在，询问是谁启动了这次运行的条件也仍然能得到答案。仍然属于自动化自己的是 ",[1742,7713,7714],{},"trigger.id",[1742,7716,7717],{},"trigger.platform"," 和描述，而 ",[1742,7720,3646],{}," 总是安静期，不是嵌套的状态触发条件的 ",[1742,7723,3617],{},[1799,7725,7726,7729,7798,7801],{"icon":1901,"label":2897},[1718,7727,7728],{},"走廊里有人，在停止三十秒后报告一次：",[1907,7730,7732],{"className":1909,"code":7731,"language":1911,"meta":1912,"style":1912},"trigger: spook.debounce\noptions:\n  for: \"00:00:30\"\n  triggers:\n    - trigger: state\n      entity_id: binary_sensor.hallway_motion\n      to: \"on\"\n",[1742,7733,7734,7743,7749,7761,7767,7777,7786],{"__ignoreMap":1912},[1916,7735,7736,7738,7740],{"class":1918,"line":215},[1916,7737,2685],{"class":1921},[1916,7739,1925],{"class":1924},[1916,7741,7742],{"class":1928}," spook.debounce\n",[1916,7744,7745,7747],{"class":1918,"line":194},[1916,7746,3228],{"class":1921},[1916,7748,2343],{"class":1924},[1916,7750,7751,7753,7755,7757,7759],{"class":1918,"line":29},[1916,7752,3694],{"class":1921},[1916,7754,1925],{"class":1924},[1916,7756,2380],{"class":1924},[1916,7758,6586],{"class":1928},[1916,7760,2386],{"class":1924},[1916,7762,7763,7765],{"class":1918,"line":42},[1916,7764,7314],{"class":1921},[1916,7766,2343],{"class":1924},[1916,7768,7769,7771,7773,7775],{"class":1918,"line":118},[1916,7770,2502],{"class":1924},[1916,7772,2936],{"class":1921},[1916,7774,1925],{"class":1924},[1916,7776,2360],{"class":1928},[1916,7778,7779,7781,7783],{"class":1918,"line":53},[1916,7780,2446],{"class":1921},[1916,7782,1925],{"class":1924},[1916,7784,7785],{"class":1928}," binary_sensor.hallway_motion\n",[1916,7787,7788,7790,7792,7794,7796],{"class":1918,"line":578},[1916,7789,7340],{"class":1921},[1916,7791,1925],{"class":1924},[1916,7793,2380],{"class":1924},[1916,7795,6134],{"class":1928},[1916,7797,2386],{"class":1924},[1718,7799,7800],{},"有人在前门忙完了，不管他们是怎么离开的：",[1907,7802,7804],{"className":1909,"code":7803,"language":1911,"meta":1912,"style":1912},"trigger: spook.debounce\noptions:\n  for: \"00:01:00\"\n  triggers:\n    - trigger: state\n      entity_id: binary_sensor.front_door\n    - trigger: state\n      entity_id: lock.front_door\n",[1742,7805,7806,7814,7820,7832,7838,7848,7856,7866],{"__ignoreMap":1912},[1916,7807,7808,7810,7812],{"class":1918,"line":215},[1916,7809,2685],{"class":1921},[1916,7811,1925],{"class":1924},[1916,7813,7742],{"class":1928},[1916,7815,7816,7818],{"class":1918,"line":194},[1916,7817,3228],{"class":1921},[1916,7819,2343],{"class":1924},[1916,7821,7822,7824,7826,7828,7830],{"class":1918,"line":29},[1916,7823,3694],{"class":1921},[1916,7825,1925],{"class":1924},[1916,7827,2380],{"class":1924},[1916,7829,6604],{"class":1928},[1916,7831,2386],{"class":1924},[1916,7833,7834,7836],{"class":1918,"line":42},[1916,7835,7314],{"class":1921},[1916,7837,2343],{"class":1924},[1916,7839,7840,7842,7844,7846],{"class":1918,"line":118},[1916,7841,2502],{"class":1924},[1916,7843,2936],{"class":1921},[1916,7845,1925],{"class":1924},[1916,7847,2360],{"class":1928},[1916,7849,7850,7852,7854],{"class":1918,"line":53},[1916,7851,2446],{"class":1921},[1916,7853,1925],{"class":1924},[1916,7855,7364],{"class":1928},[1916,7857,7858,7860,7862,7864],{"class":1918,"line":578},[1916,7859,2502],{"class":1924},[1916,7861,2936],{"class":1921},[1916,7863,1925],{"class":1924},[1916,7865,2360],{"class":1928},[1916,7867,7868,7870,7872],{"class":1918,"line":150},[1916,7869,2446],{"class":1921},[1916,7871,1925],{"class":1924},[1916,7873,7874],{"class":1928}," lock.front_door\n",[1799,7876,7877],{"icon":2655,"label":2656},[2658,7878,7879,7882,7885,7888,7891],{},[1756,7880,7881],{},"从不停止触发的东西永远不会被报告。在你把它指向一个整天每十秒触发一次、安静期却设为一分钟的传感器之前，记住这一点。",[1756,7883,7884],{},"最后一次之前的触发只计数，不保存。一串触发没有上限，保存几百份数据会为没人读的东西耗费内存。你拿到的是最后一次触发，完整的。",[1756,7886,7887],{},"它在结束时触发，从不在开始时触发。它不是用来对一串中的第一次做出反应、忽略其余的。",[1756,7889,7890],{},"安静期为零会被拒绝。那样它会报告发生的第一件事，什么都不合并。",[1756,7892,7893],{},"如果其中某个触发条件无法挂上，整个触发条件都会拒绝加载，自动化会被标记为不可用。一个没在监听的触发条件，没法开始你问的那一串。",[1731,7895,7103],{"id":7896},"triggers-in-order",[1718,7898,7899],{},"在几个触发条件按给定的顺序一个接一个发生时触发。",[1718,7901,7902,7903,7907],{},"Home Assistant 在一件事发生时触发。它不会在一件事发生在另一件事",[7904,7905,7906],"em",{},"之后","时触发，而家里经常是这样：门开了，然后走廊里有人走动；或者警报布防了，然后有扇窗开了。手动做的话，每一步需要一个辅助元素实体，再为每一步配一个自动化去设置它。",[1718,7909,7910],{},[1749,7911,1751],{},[1753,7913,7914,7920,7927,7933,7940,7946],{},[1756,7915,2774,7916,2741,7918,1762],{},[1749,7917,2740],{},[1749,7919,2744],{},[1756,7921,1765,7922,2783,7925,1762],{},[1749,7923,7924],{},"按顺序",[1749,7926,7103],{},[1756,7928,2110,7929,7932],{},[1749,7930,7931],{},"步骤","下按它们必须发生的顺序，添加两个或更多触发条件。",[1756,7934,2116,7935,7937,7938,1762],{},[1749,7936,2119],{},"设为整个顺序最多可以花多久，比如 ",[1742,7939,7136],{},[1756,7941,4421,7942,7945],{},[1749,7943,7944],{},"重置","下添加一个触发条件，用来扔掉正在进行的顺序，比如警报被撤防。",[1756,7947,778,7948,1762],{},[1749,7949,1778],{},[1780,7951,7954],{"alt":7952,"name":7953},"自动化编辑器中选中的按顺序触发，前门打开后两分钟内又关上。","trigger-sequence",[1718,7955,7956],{},"前门打开，然后关上，前后不到两分钟。",[1796,7958,7959,8086,8326],{},[1799,7960,7961,7994,8060,8063,8066],{"icon":1801,"label":1802},[1804,7962,7963,7969],{},[1807,7964,7965],{},[1810,7966,7967],{},[1813,7968,2824],{"colspan":194},[1817,7970,7971,7977,7986],{},[1810,7972,7973,7975],{},[1822,7974,980],{},[1822,7976,7103],{},[1810,7978,7979,7981],{},[1822,7980,2837],{},[1822,7982,7983],{},[1742,7984,7985],{},"spook.sequence",[1810,7987,7988,7992],{},[1822,7989,7990],{},[1825,7991,1873],{"to":1872},[1822,7993,2870],{},[1804,7995,7996,8012],{},[1807,7997,7998,8002],{},[1810,7999,8000],{},[1813,8001,3131],{"colspan":42},[1810,8003,8004,8006,8008,8010],{},[1813,8005,2235],{},[1813,8007,2238],{},[1813,8009,2241],{},[1813,8011,2244],{},[1817,8013,8014,8030,8044],{},[1810,8015,8016,8021,8025,8027],{},[1822,8017,8018],{},[1742,8019,8020],{},"steps",[1822,8022,8023],{},[1825,8024,980],{"to":2685},[1822,8026,2260],{},[1822,8028,8029],{},"两个或更多触发条件，按它们必须发生的顺序",[1810,8031,8032,8036,8040,8042],{},[1822,8033,8034],{},[1742,8035,2270],{},[1822,8037,8038],{},[1825,8039,2276],{"to":2275},[1822,8041,1854],{},[1822,8043,2281],{},[1810,8045,8046,8051,8055,8057],{},[1822,8047,8048],{},[1742,8049,8050],{},"reset",[1822,8052,8053],{},[1825,8054,980],{"to":2685},[1822,8056,1854],{},[1822,8058,8059],{},"不填就没有任何东西会放弃一次进行中的顺序",[1718,8061,8062],{},"只有正在等待的那一步在监听。所以后面的步骤先于前面的步骤触发，不算匹配；同一步触发两次，也不算。最少两步，因为按顺序的一个触发条件就只是一个触发条件。",[1718,8064,8065],{},"最后一步一到，触发条件就触发，然后回去等第一步。",[1718,8067,2876,8068,8071,8072,8075,8076,2690,8078,2700,8080,8082,8083,8085],{},[1742,8069,8070],{},"trigger.steps"," 按顺序保存每一步报告的内容，",[1742,8073,8074],{},"trigger.duration"," 是整个过程花了多久。完成这个顺序的那一步也会被提到最上层，所以 ",[1742,8077,2879],{},[1742,8079,2883],{},[1742,8081,2886],{}," 描述的是让它完成的那件事，",[1742,8084,2890],{}," 之类的条件也能在那里找到背后的人。",[1799,8087,8088,8091,8191,8194],{"icon":1901,"label":2897},[1718,8089,8090],{},"有人从前门进来，并在两分钟内走进了走廊：",[1907,8092,8094],{"className":1909,"code":8093,"language":1911,"meta":1912,"style":1912},"trigger: spook.sequence\noptions:\n  timeout: \"00:02:00\"\n  steps:\n    - trigger: state\n      entity_id: binary_sensor.front_door\n      to: \"on\"\n    - trigger: state\n      entity_id: binary_sensor.hallway_motion\n      to: \"on\"\n",[1742,8095,8096,8105,8111,8124,8131,8141,8149,8161,8171,8179],{"__ignoreMap":1912},[1916,8097,8098,8100,8102],{"class":1918,"line":215},[1916,8099,2685],{"class":1921},[1916,8101,1925],{"class":1924},[1916,8103,8104],{"class":1928}," spook.sequence\n",[1916,8106,8107,8109],{"class":1918,"line":194},[1916,8108,3228],{"class":1921},[1916,8110,2343],{"class":1924},[1916,8112,8113,8116,8118,8120,8122],{"class":1918,"line":29},[1916,8114,8115],{"class":1921},"  timeout",[1916,8117,1925],{"class":1924},[1916,8119,2380],{"class":1924},[1916,8121,7136],{"class":1928},[1916,8123,2386],{"class":1924},[1916,8125,8126,8129],{"class":1918,"line":42},[1916,8127,8128],{"class":1921},"  steps",[1916,8130,2343],{"class":1924},[1916,8132,8133,8135,8137,8139],{"class":1918,"line":118},[1916,8134,2502],{"class":1924},[1916,8136,2936],{"class":1921},[1916,8138,1925],{"class":1924},[1916,8140,2360],{"class":1928},[1916,8142,8143,8145,8147],{"class":1918,"line":53},[1916,8144,2446],{"class":1921},[1916,8146,1925],{"class":1924},[1916,8148,7364],{"class":1928},[1916,8150,8151,8153,8155,8157,8159],{"class":1918,"line":578},[1916,8152,7340],{"class":1921},[1916,8154,1925],{"class":1924},[1916,8156,2380],{"class":1924},[1916,8158,6134],{"class":1928},[1916,8160,2386],{"class":1924},[1916,8162,8163,8165,8167,8169],{"class":1918,"line":150},[1916,8164,2502],{"class":1924},[1916,8166,2936],{"class":1921},[1916,8168,1925],{"class":1924},[1916,8170,2360],{"class":1928},[1916,8172,8173,8175,8177],{"class":1918,"line":129},[1916,8174,2446],{"class":1921},[1916,8176,1925],{"class":1924},[1916,8178,7785],{"class":1928},[1916,8180,8181,8183,8185,8187,8189],{"class":1918,"line":161},[1916,8182,7340],{"class":1921},[1916,8184,1925],{"class":1924},[1916,8186,2380],{"class":1924},[1916,8188,6134],{"class":1928},[1916,8190,2386],{"class":1924},[1718,8192,8193],{},"同样的情况，但中途撤防警报就意味着它不再算数：",[1907,8195,8197],{"className":1909,"code":8196,"language":1911,"meta":1912,"style":1912},"trigger: spook.sequence\noptions:\n  timeout: \"00:02:00\"\n  steps:\n    - trigger: state\n      entity_id: binary_sensor.front_door\n      to: \"on\"\n    - trigger: state\n      entity_id: binary_sensor.hallway_motion\n      to: \"on\"\n  reset:\n    - trigger: state\n      entity_id: alarm_control_panel.home\n      to: disarmed\n",[1742,8198,8199,8207,8213,8225,8231,8241,8249,8261,8271,8279,8291,8298,8308,8317],{"__ignoreMap":1912},[1916,8200,8201,8203,8205],{"class":1918,"line":215},[1916,8202,2685],{"class":1921},[1916,8204,1925],{"class":1924},[1916,8206,8104],{"class":1928},[1916,8208,8209,8211],{"class":1918,"line":194},[1916,8210,3228],{"class":1921},[1916,8212,2343],{"class":1924},[1916,8214,8215,8217,8219,8221,8223],{"class":1918,"line":29},[1916,8216,8115],{"class":1921},[1916,8218,1925],{"class":1924},[1916,8220,2380],{"class":1924},[1916,8222,7136],{"class":1928},[1916,8224,2386],{"class":1924},[1916,8226,8227,8229],{"class":1918,"line":42},[1916,8228,8128],{"class":1921},[1916,8230,2343],{"class":1924},[1916,8232,8233,8235,8237,8239],{"class":1918,"line":118},[1916,8234,2502],{"class":1924},[1916,8236,2936],{"class":1921},[1916,8238,1925],{"class":1924},[1916,8240,2360],{"class":1928},[1916,8242,8243,8245,8247],{"class":1918,"line":53},[1916,8244,2446],{"class":1921},[1916,8246,1925],{"class":1924},[1916,8248,7364],{"class":1928},[1916,8250,8251,8253,8255,8257,8259],{"class":1918,"line":578},[1916,8252,7340],{"class":1921},[1916,8254,1925],{"class":1924},[1916,8256,2380],{"class":1924},[1916,8258,6134],{"class":1928},[1916,8260,2386],{"class":1924},[1916,8262,8263,8265,8267,8269],{"class":1918,"line":150},[1916,8264,2502],{"class":1924},[1916,8266,2936],{"class":1921},[1916,8268,1925],{"class":1924},[1916,8270,2360],{"class":1928},[1916,8272,8273,8275,8277],{"class":1918,"line":129},[1916,8274,2446],{"class":1921},[1916,8276,1925],{"class":1924},[1916,8278,7785],{"class":1928},[1916,8280,8281,8283,8285,8287,8289],{"class":1918,"line":161},[1916,8282,7340],{"class":1921},[1916,8284,1925],{"class":1924},[1916,8286,2380],{"class":1924},[1916,8288,6134],{"class":1928},[1916,8290,2386],{"class":1924},[1916,8292,8293,8296],{"class":1918,"line":2499},[1916,8294,8295],{"class":1921},"  reset",[1916,8297,2343],{"class":1924},[1916,8299,8300,8302,8304,8306],{"class":1918,"line":377},[1916,8301,2502],{"class":1924},[1916,8303,2936],{"class":1921},[1916,8305,1925],{"class":1924},[1916,8307,2360],{"class":1928},[1916,8309,8310,8312,8314],{"class":1918,"line":2519},[1916,8311,2446],{"class":1921},[1916,8313,1925],{"class":1924},[1916,8315,8316],{"class":1928}," alarm_control_panel.home\n",[1916,8318,8319,8321,8323],{"class":1918,"line":182},[1916,8320,7340],{"class":1921},[1916,8322,1925],{"class":1924},[1916,8324,8325],{"class":1928}," disarmed\n",[1799,8327,8328],{"icon":2655,"label":2656},[2658,8329,8330,8333,8338,8341,8348,8351],{},[1756,8331,8332],{},"一步就是一个触发条件。如果一步应该接受两件事中的任何一件，就写成一个能同时匹配两者的触发条件，比如一个写了多个实体的状态触发条件。",[1756,8334,8335,8337],{},[1742,8336,2270],{}," 覆盖的是整次进行，从第一步开始算。没有每一步单独的截止时间。",[1756,8339,8340],{},"Home Assistant 重启时，进行中的顺序会被放弃，和内存中的其他一切一样。重启前完成了一半的顺序，会从第一步重新开始。",[1756,8342,8343,8344,8347],{},"自动化的 ",[1742,8345,8346],{},"trigger_variables"," 到不了这些步骤。Home Assistant 把它们交给触发条件平台，而不是交给这样的触发条件，所以一个自身配置写成引用它们的模板的步骤，没有东西可以渲染。按普通方式写的步骤不受影响。",[1756,8349,8350],{},"Home Assistant 拒绝接受的步骤会让那个自动化被禁用，它接受了但之后没法监听的第一步也一样。这两种情况都会在自动化加载时被发现，都会在日志里说明原因。",[1756,8352,8353,8354,8356],{},"无法挂上的后续步骤就不一样了，因为那时自动化已经在运行。那次进行会卡在原地，只有日志会说明。无法挂上的 ",[1742,8355,8050],{}," 也一样：步骤继续工作，只有日志会说明。",[1731,8358,8360],{"id":8359},"while-a-condition-holds","条件持续成立时",[1718,8362,8363],{},"在一个条件变为真时触发，并在它保持为真期间按间隔一直触发。",[1718,8365,8366],{},"唠叨型的触发条件。车库开着，你想十分钟后再听到一次，再过十分钟又一次，直到有人把它关上。",[1718,8368,8369,8370,2700,8373,8375,8376,8378],{},"Home Assistant 在脚本里已经能做到这一点，用一个包含 ",[1742,8371,8372],{},"while",[1742,8374,6593],{}," 的 ",[1742,8377,2647],{},"。但这样一来，车库开多久，脚本的运行就要开着多久。自动化的模式必须允许这样，重新加载会结束它，而且循环转了一万圈之后 Home Assistant 会把它停掉。作为触发条件，这些都不存在：两次触发之间什么都不用一直开着。",[1718,8380,8381],{},[1749,8382,1751],{},[1753,8384,8385,8391,8398,8403,8412],{},[1756,8386,2774,8387,2741,8389,1762],{},[1749,8388,2740],{},[1749,8390,2744],{},[1756,8392,1765,8393,2783,8396,1762],{},[1749,8394,8395],{},"条件持续成立",[1749,8397,8360],{},[1756,8399,2110,8400,8402],{},[1749,8401,968],{},"下添加要监视的条件，方式和在自动化中添加条件一样。",[1756,8404,3522,8405,8408,8409,1762],{},[1749,8406,8407],{},"间隔","设为条件成立期间它应该多久触发一次，比如 ",[1742,8410,8411],{},"00:10:00",[1756,8413,778,8414,1762],{},[1749,8415,1778],{},[1780,8417,8420],{"alt":8418,"name":8419},"自动化编辑器中选中的条件持续成立时触发条件，前门开着期间每十分钟触发一次。","trigger-while",[1718,8421,8422],{},"前门开着多久，就每十分钟一次。",[1718,8424,8425,8426,8428],{},"它在条件变为真的那一刻触发，间隔从那时开始算。想在第一次提醒之前等一等，就给条件本身加一个",[1749,8427,3525],{},"，就像示例里那样。",[1796,8430,8431,8538,8653],{},[1799,8432,8433,8466,8517,8520],{"icon":1801,"label":1802},[1804,8434,8435,8441],{},[1807,8436,8437],{},[1810,8438,8439],{},[1813,8440,2824],{"colspan":194},[1817,8442,8443,8449,8458],{},[1810,8444,8445,8447],{},[1822,8446,980],{},[1822,8448,8360],{},[1810,8450,8451,8453],{},[1822,8452,2837],{},[1822,8454,8455],{},[1742,8456,8457],{},"spook.while",[1810,8459,8460,8464],{},[1822,8461,8462],{},[1825,8463,1873],{"to":1872},[1822,8465,2870],{},[1804,8467,8468,8484],{},[1807,8469,8470,8474],{},[1810,8471,8472],{},[1813,8473,3131],{"colspan":42},[1810,8475,8476,8478,8480,8482],{},[1813,8477,2235],{},[1813,8479,2238],{},[1813,8481,2241],{},[1813,8483,2244],{},[1817,8485,8486,8500],{},[1810,8487,8488,8492,8496,8498],{},[1822,8489,8490],{},[1742,8491,2253],{},[1822,8493,8494],{},[1825,8495,968],{"to":2253},[1822,8497,2260],{},[1822,8499,2263],{},[1810,8501,8502,8507,8511,8513],{},[1822,8503,8504],{},[1742,8505,8506],{},"every",[1822,8508,8509],{},[1825,8510,2276],{"to":2275},[1822,8512,2260],{},[1822,8514,8515],{},[1742,8516,8411],{},[1718,8518,8519],{},"它在条件到来的那一刻触发，而不是在条件已经成立的时候，所以加载一个条件碰巧为真的自动化，不会让它启动。每次条件重新到来，计数都会从一重新开始。",[1718,8521,2876,8522,8525,8526,8529,8530,8534,8535,8537],{},[1742,8523,8524],{},"trigger.times"," 是这一轮它已经触发了多少次，从一开始，",[1742,8527,8528],{},"trigger.every"," 是间隔。第一次触发还带着让条件变化的那次状态变化，方式和",[1788,8531,8533],{"href":8532},"#condition-turned-true","条件变为真","一样，所以 ",[1742,8536,2890],{}," 能在那里找到造成它的人。之后的触发不带任何人：它们来自一个计时器。",[1799,8539,8540,8543],{"icon":1901,"label":2897},[1718,8541,8542],{},"车库开着而且没人在家时，每十分钟提醒我一次：",[1907,8544,8546],{"className":1909,"code":8545,"language":1911,"meta":1912,"style":1912},"trigger: spook.while\noptions:\n  every: \"00:10:00\"\n  condition:\n    - condition: state\n      entity_id: cover.garage\n      state: open\n      for: \"00:10:00\"\n    - condition: numeric_state\n      entity_id: zone.home\n      below: 1\n",[1742,8547,8548,8557,8563,8576,8582,8592,8601,8610,8623,8634,8643],{"__ignoreMap":1912},[1916,8549,8550,8552,8554],{"class":1918,"line":215},[1916,8551,2685],{"class":1921},[1916,8553,1925],{"class":1924},[1916,8555,8556],{"class":1928}," spook.while\n",[1916,8558,8559,8561],{"class":1918,"line":194},[1916,8560,3228],{"class":1921},[1916,8562,2343],{"class":1924},[1916,8564,8565,8568,8570,8572,8574],{"class":1918,"line":29},[1916,8566,8567],{"class":1921},"  every",[1916,8569,1925],{"class":1924},[1916,8571,2380],{"class":1924},[1916,8573,8411],{"class":1928},[1916,8575,2386],{"class":1924},[1916,8577,8578,8580],{"class":1918,"line":42},[1916,8579,2348],{"class":1921},[1916,8581,2343],{"class":1924},[1916,8583,8584,8586,8588,8590],{"class":1918,"line":118},[1916,8585,2502],{"class":1924},[1916,8587,2612],{"class":1921},[1916,8589,1925],{"class":1924},[1916,8591,2360],{"class":1928},[1916,8593,8594,8596,8598],{"class":1918,"line":53},[1916,8595,2446],{"class":1921},[1916,8597,1925],{"class":1924},[1916,8599,8600],{"class":1928}," cover.garage\n",[1916,8602,8603,8605,8607],{"class":1918,"line":578},[1916,8604,2455],{"class":1921},[1916,8606,1925],{"class":1924},[1916,8608,8609],{"class":1928}," open\n",[1916,8611,8612,8615,8617,8619,8621],{"class":1918,"line":150},[1916,8613,8614],{"class":1921},"      for",[1916,8616,1925],{"class":1924},[1916,8618,2380],{"class":1924},[1916,8620,8411],{"class":1928},[1916,8622,2386],{"class":1924},[1916,8624,8625,8627,8629,8631],{"class":1918,"line":129},[1916,8626,2502],{"class":1924},[1916,8628,2612],{"class":1921},[1916,8630,1925],{"class":1924},[1916,8632,8633],{"class":1928}," numeric_state\n",[1916,8635,8636,8638,8640],{"class":1918,"line":161},[1916,8637,2446],{"class":1921},[1916,8639,1925],{"class":1924},[1916,8641,8642],{"class":1928}," zone.home\n",[1916,8644,8645,8648,8650],{"class":1918,"line":2499},[1916,8646,8647],{"class":1921},"      below",[1916,8649,1925],{"class":1924},[1916,8651,8652],{"class":4875}," 1\n",[1799,8654,8655],{"icon":2655,"label":2656},[2658,8656,8657,8662,8665],{},[1756,8658,8659,8660,8428],{},"第一次触发发生在条件变为真的那一刻，间隔从那时开始算。想在第一次提醒之前等一等，就在条件本身加上 ",[1742,8661,2710],{},[1756,8663,8664],{},"Home Assistant 重启时，进行中的这一轮会被放弃，和内存中的其他一切一样。重启后仍然为真的条件不算新到来，所以在它变为假再变为真一次之前，不会重新开始唠叨。",[1756,8666,8667,8669],{},[1788,8668,8533],{"href":8532},"里说的关于哪些能监视、哪些不能监视的一切，在这里同样适用，包括 30 秒一次的轮询和会被拒绝的那些条件。",[1731,8671,7588],{"id":8672},"watchdog",[1718,8674,8675],{},"在预期要发生的事没有按时发生时触发。",[1718,8677,8678],{},"Home Assistant 的每个触发条件都是因为有事发生才触发的。这个是因为有事没发生才触发的：后门开了，却没人走进走廊；或者洗衣机启动了，却一直没结束。手动做的话，需要一个辅助元素实体、一个计时器，再加两个自动化让它们保持同步。",[1718,8680,8681],{},"启动会开始计时。预期的触发条件在时间用完之前到来，就会取消这次监视，什么都不触发。时间用完才会让它触发。",[1718,8683,8684],{},[1749,8685,1751],{},[1753,8687,8688,8694,8700,8706,8712,8719],{},[1756,8689,2774,8690,2741,8692,1762],{},[1749,8691,2740],{},[1749,8693,2744],{},[1756,8695,1765,8696,2783,8698,1762],{},[1749,8697,7588],{},[1749,8699,7588],{},[1756,8701,2110,8702,8705],{},[1749,8703,8704],{},"启动","下添加开始监视的触发条件，比如后门打开。",[1756,8707,2110,8708,8711],{},[1749,8709,8710],{},"预期","下添加应该随之发生的触发条件，比如走廊里有人。",[1756,8713,3522,8714,8716,8717,1762],{},[1749,8715,7132],{},"设为第二个触发条件有多少时间，比如 ",[1742,8718,7136],{},[1756,8720,778,8721,1762],{},[1749,8722,1778],{},[1780,8724,8727],{"alt":8725,"name":8726},"自动化编辑器中选中的看门狗触发条件，七点开始守着，等厨房灯在一小时内打开。","trigger-watchdog",[1718,8728,8729],{},"七点开始守着：厨房灯一小时都没开就触发。",[1796,8731,8732,8849,8960],{},[1799,8733,8734,8767,8835,8838],{"icon":1801,"label":1802},[1804,8735,8736,8742],{},[1807,8737,8738],{},[1810,8739,8740],{},[1813,8741,2824],{"colspan":194},[1817,8743,8744,8750,8759],{},[1810,8745,8746,8748],{},[1822,8747,980],{},[1822,8749,7588],{},[1810,8751,8752,8754],{},[1822,8753,2837],{},[1822,8755,8756],{},[1742,8757,8758],{},"spook.watchdog",[1810,8760,8761,8765],{},[1822,8762,8763],{},[1825,8764,1873],{"to":1872},[1822,8766,2870],{},[1804,8768,8769,8785],{},[1807,8770,8771,8775],{},[1810,8772,8773],{},[1813,8774,3131],{"colspan":42},[1810,8776,8777,8779,8781,8783],{},[1813,8778,2235],{},[1813,8780,2238],{},[1813,8782,2241],{},[1813,8784,2244],{},[1817,8786,8787,8803,8819],{},[1810,8788,8789,8794,8798,8800],{},[1822,8790,8791],{},[1742,8792,8793],{},"arm",[1822,8795,8796],{},[1825,8797,980],{"to":2685},[1822,8799,2260],{},[1822,8801,8802],{},"开始监视的东西",[1810,8804,8805,8810,8814,8816],{},[1822,8806,8807],{},[1742,8808,8809],{},"expect",[1822,8811,8812],{},[1825,8813,980],{"to":2685},[1822,8815,2260],{},[1822,8817,8818],{},"预期随之发生的东西",[1810,8820,8821,8825,8829,8831],{},[1822,8822,8823],{},[1742,8824,7233],{},[1822,8826,8827],{},[1825,8828,2276],{"to":2275},[1822,8830,2260],{},[1822,8832,8833],{},[1742,8834,7136],{},[1718,8836,8837],{},"已经在等待时再次启动，会让等待重新开始。它不会同时进行第二次：等待从最近一次启动开始算。在没有等待任何东西时，预期的触发条件到来，什么都不会发生。",[1718,8839,2876,8840,8843,8844,8846,8847,1762],{},[1742,8841,8842],{},"trigger.armed_by"," 是启动的触发条件报告的内容，",[1742,8845,7262],{}," 是给它的等待时间。别的什么都不带，也不带用户：看门狗是因为什么都没发生、由计时器触发的。想写出那个人名字的自动化，可以读取 ",[1742,8848,8842],{},[1799,8850,8851,8854],{"icon":1901,"label":2897},[1718,8852,8853],{},"后门开了，两分钟内没人走进走廊：",[1907,8855,8857],{"className":1909,"code":8856,"language":1911,"meta":1912,"style":1912},"trigger: spook.watchdog\noptions:\n  within: \"00:02:00\"\n  arm:\n    - trigger: state\n      entity_id: binary_sensor.back_door\n      to: \"on\"\n  expect:\n    - trigger: state\n      entity_id: binary_sensor.hallway_motion\n      to: \"on\"\n",[1742,8858,8859,8868,8874,8886,8893,8903,8911,8923,8930,8940,8948],{"__ignoreMap":1912},[1916,8860,8861,8863,8865],{"class":1918,"line":215},[1916,8862,2685],{"class":1921},[1916,8864,1925],{"class":1924},[1916,8866,8867],{"class":1928}," spook.watchdog\n",[1916,8869,8870,8872],{"class":1918,"line":194},[1916,8871,3228],{"class":1921},[1916,8873,2343],{"class":1924},[1916,8875,8876,8878,8880,8882,8884],{"class":1918,"line":29},[1916,8877,7301],{"class":1921},[1916,8879,1925],{"class":1924},[1916,8881,2380],{"class":1924},[1916,8883,7136],{"class":1928},[1916,8885,2386],{"class":1924},[1916,8887,8888,8891],{"class":1918,"line":42},[1916,8889,8890],{"class":1921},"  arm",[1916,8892,2343],{"class":1924},[1916,8894,8895,8897,8899,8901],{"class":1918,"line":118},[1916,8896,2502],{"class":1924},[1916,8898,2936],{"class":1921},[1916,8900,1925],{"class":1924},[1916,8902,2360],{"class":1928},[1916,8904,8905,8907,8909],{"class":1918,"line":53},[1916,8906,2446],{"class":1921},[1916,8908,1925],{"class":1924},[1916,8910,2370],{"class":1928},[1916,8912,8913,8915,8917,8919,8921],{"class":1918,"line":578},[1916,8914,7340],{"class":1921},[1916,8916,1925],{"class":1924},[1916,8918,2380],{"class":1924},[1916,8920,6134],{"class":1928},[1916,8922,2386],{"class":1924},[1916,8924,8925,8928],{"class":1918,"line":150},[1916,8926,8927],{"class":1921},"  expect",[1916,8929,2343],{"class":1924},[1916,8931,8932,8934,8936,8938],{"class":1918,"line":129},[1916,8933,2502],{"class":1924},[1916,8935,2936],{"class":1921},[1916,8937,1925],{"class":1924},[1916,8939,2360],{"class":1928},[1916,8941,8942,8944,8946],{"class":1918,"line":161},[1916,8943,2446],{"class":1921},[1916,8945,1925],{"class":1924},[1916,8947,7785],{"class":1928},[1916,8949,8950,8952,8954,8956,8958],{"class":1918,"line":2499},[1916,8951,7340],{"class":1921},[1916,8953,1925],{"class":1924},[1916,8955,2380],{"class":1924},[1916,8957,6134],{"class":1928},[1916,8959,2386],{"class":1924},[1799,8961,8962],{"icon":2655,"label":2656},[2658,8963,8964,8967,8970],{},[1756,8965,8966],{},"Home Assistant 重启时，进行中的监视会被放弃，和内存中的其他一切一样。重启前启动的监视，重启后不会再等待。",[1756,8968,8969],{},"两半中任何一半无法挂上的看门狗会被拒绝，这会让那个自动化被禁用，并在日志里说明原因。只有一半的看门狗，要么永远不会开始，要么总是触发。",[1756,8971,8343,8972,8974],{},[1742,8973,8346],{}," 到不了启动和预期的触发条件，原因和它们到不了顺序中的步骤一样：Home Assistant 把它们交给触发条件平台，而不是交给这样的触发条件。",[1731,8976,8978],{"id":8977},"entity-will-not-settle","实体无法稳定",[1718,8980,8981],{},"在一个实体在一段时间内状态变化次数超过应有的次数时触发。",[1718,8983,8984],{},"开了又关、关了又开的传感器，掉线又回来的设备，正好卡在阈值上的二元传感器。每次变化单独看都没问题，而 Home Assistant 没法说“这个五分钟内变了五次，它有问题”。这个触发条件可以，通常远在你自己发现那块不靠谱的电池或那个 Wi-Fi 死角之前。",[1718,8986,8987],{},[1749,8988,1751],{},[1753,8990,8991,8997,9003,9007,9016,9023],{},[1756,8992,2774,8993,2741,8995,1762],{},[1749,8994,2740],{},[1749,8996,2744],{},[1756,8998,1765,8999,2783,9001,1762],{},[1749,9000,7556],{},[1749,9002,8978],{},[1756,9004,2110,9005,3519],{},[1749,9006,2790],{},[1756,9008,3522,9009,9012,9013,1762],{},[1749,9010,9011],{},"变化次数","设为多少次变化算太多，比如 ",[1742,9014,9015],{},"5",[1756,9017,3522,9018,9020,9021,1762],{},[1749,9019,7132],{},"设为这些变化必须落在其中的时间段，比如 ",[1742,9022,2123],{},[1756,9024,778,9025,1762],{},[1749,9026,1778],{},[1780,9028,9031],{"alt":9029,"name":9030},"自动化编辑器中选中的实体无法稳定触发条件，监视前门传感器五分钟内变化五次。","trigger-flapping",[1718,9032,9033],{},"前门传感器五分钟内变了五次。",[1796,9035,9036,9163,9282],{},[1799,9037,9038,9083,9135,9142,9145,9148],{"icon":1801,"label":1802},[1804,9039,9040,9046],{},[1807,9041,9042],{},[1810,9043,9044],{},[1813,9045,2824],{"colspan":194},[1817,9047,9048,9054,9063,9075],{},[1810,9049,9050,9052],{},[1822,9051,980],{},[1822,9053,8978],{},[1810,9055,9056,9058],{},[1822,9057,2837],{},[1822,9059,9060],{},[1742,9061,9062],{},"spook.flapping",[1810,9064,9065,9067],{},[1822,9066,2790],{},[1822,9068,9069,2690,9071,2690,9073,3582],{},[1825,9070,2852],{"to":2851},[1825,9072,2856],{"to":2855},[1825,9074,2860],{"to":2859},[1810,9076,9077,9081],{},[1822,9078,9079],{},[1825,9080,1873],{"to":1872},[1822,9082,2870],{},[1804,9084,9085,9101],{},[1807,9086,9087,9091],{},[1810,9088,9089],{},[1813,9090,3131],{"colspan":42},[1810,9092,9093,9095,9097,9099],{},[1813,9094,2235],{},[1813,9096,2238],{},[1813,9098,2241],{},[1813,9100,2244],{},[1817,9102,9103,9119],{},[1810,9104,9105,9110,9114,9116],{},[1822,9106,9107],{},[1742,9108,9109],{},"changes",[1822,9111,9112],{},[1825,9113,4801],{"to":4800},[1822,9115,2260],{},[1822,9117,9118],{},"2 到 1000 之间",[1810,9120,9121,9125,9129,9131],{},[1822,9122,9123],{},[1742,9124,7233],{},[1822,9126,9127],{},[1825,9128,2276],{"to":2275},[1822,9130,2260],{},[1822,9132,9133],{},[1742,9134,2123],{},[1718,9136,9137,9138,9141],{},"只有状态变化才算，写入不算。一遍又一遍报告同一个值的实体不算不稳定，属性变化也不算。变成 ",[1742,9139,9140],{},"unavailable"," 再回来算：这正是这个触发条件要管的。实体出现或消失不算。",[1718,9143,9144],{},"时间窗口是滑动的，所以它总是针对最近的那些变化。不是每五分钟重新计一次数。",[1718,9146,9147],{},"每一轮只报告一次。一旦它说了某个实体无法稳定，在那个实体真正稳定下来之前，它都保持安静。稳定下来，指的是最近的那几次变化不再落在时间窗口之内。下次它再开始乱跳，会再次被报告。一次变化之后，如果最近几次仍然落在时间窗口之内，那就是同一轮在继续，不管离上一次过了多久。",[1718,9149,2876,9150,6755,9152,2700,9154,9156,9157,2700,9160,9162],{},[1742,9151,2879],{},[1742,9153,2883],{},[1742,9155,2886],{}," 是让它越线的那次变化，",[1742,9158,9159],{},"trigger.changes",[1742,9161,7262],{}," 是你要求的值。",[1799,9164,9165,9168,9224,9227],{"icon":1901,"label":2897},[1718,9166,9167],{},"告诉我哪个门传感器拿不定主意：",[1907,9169,9171],{"className":1909,"code":9170,"language":1911,"meta":1912,"style":1912},"trigger: spook.flapping\ntarget:\n  entity_id: binary_sensor.back_door\noptions:\n  changes: 5\n  within: \"00:05:00\"\n",[1742,9172,9173,9182,9188,9196,9202,9212],{"__ignoreMap":1912},[1916,9174,9175,9177,9179],{"class":1918,"line":215},[1916,9176,2685],{"class":1921},[1916,9178,1925],{"class":1924},[1916,9180,9181],{"class":1928}," spook.flapping\n",[1916,9183,9184,9186],{"class":1918,"line":194},[1916,9185,3671],{"class":1921},[1916,9187,2343],{"class":1924},[1916,9189,9190,9192,9194],{"class":1918,"line":29},[1916,9191,3729],{"class":1921},[1916,9193,1925],{"class":1924},[1916,9195,2370],{"class":1928},[1916,9197,9198,9200],{"class":1918,"line":42},[1916,9199,3228],{"class":1921},[1916,9201,2343],{"class":1924},[1916,9203,9204,9207,9209],{"class":1918,"line":118},[1916,9205,9206],{"class":1921},"  changes",[1916,9208,1925],{"class":1924},[1916,9210,9211],{"class":4875}," 5\n",[1916,9213,9214,9216,9218,9220,9222],{"class":1918,"line":53},[1916,9215,7301],{"class":1921},[1916,9217,1925],{"class":1924},[1916,9219,2380],{"class":1924},[1916,9221,2123],{"class":1928},[1916,9223,2386],{"class":1924},[1718,9225,9226],{},"或者监视带某个标签的一切，哪个开始不老实就告诉我：",[1907,9228,9230],{"className":1909,"code":9229,"language":1911,"meta":1912,"style":1912},"trigger: spook.flapping\ntarget:\n  label_id: battery_powered\noptions:\n  changes: 10\n  within: \"00:15:00\"\n",[1742,9231,9232,9240,9246,9255,9261,9270],{"__ignoreMap":1912},[1916,9233,9234,9236,9238],{"class":1918,"line":215},[1916,9235,2685],{"class":1921},[1916,9237,1925],{"class":1924},[1916,9239,9181],{"class":1928},[1916,9241,9242,9244],{"class":1918,"line":194},[1916,9243,3671],{"class":1921},[1916,9245,2343],{"class":1924},[1916,9247,9248,9250,9252],{"class":1918,"line":29},[1916,9249,6799],{"class":1921},[1916,9251,1925],{"class":1924},[1916,9253,9254],{"class":1928}," battery_powered\n",[1916,9256,9257,9259],{"class":1918,"line":42},[1916,9258,3228],{"class":1921},[1916,9260,2343],{"class":1924},[1916,9262,9263,9265,9267],{"class":1918,"line":118},[1916,9264,9206],{"class":1921},[1916,9266,1925],{"class":1924},[1916,9268,9269],{"class":4875}," 10\n",[1916,9271,9272,9274,9276,9278,9280],{"class":1918,"line":53},[1916,9273,7301],{"class":1921},[1916,9275,1925],{"class":1924},[1916,9277,2380],{"class":1924},[1916,9279,3529],{"class":1928},[1916,9281,2386],{"class":1924},[1799,9283,9284],{"icon":2655,"label":2656},[2658,9285,9286,9289,9292],{},[1756,9287,9288],{},"计数从自动化加载时开始。之前的变化不知道，所以一个整个下午都在乱跳的实体，会在它下次变化足够多时才被报告，而不是立刻。",[1756,9290,9291],{},"每个实体单独计数。十个实体各变两次，不等于一个实体变了二十次。这也意味着，一个目标里全是各自只跳一点点的实体时，不会被报告。",[1756,9293,9294,9295,9297,9298,9300],{},"每个实体只记住最近 ",[1742,9296,9109],{}," 个时刻，不多记，所以大目标的开销也很小。这也是 ",[1742,9299,9109],{}," 最多到一千的原因。Home Assistant 重启或实体离开目标时，这些会被完全忘掉。",[1731,9302,8533],{"id":9303},"condition-turned-true",[1718,9305,9306],{},"在一个条件从假变为真时触发。",[1718,9308,9309],{},"Home Assistant 有模板变为真的触发条件，也有状态到来的触发条件，但没有一个接受条件积木。所以任何比单个状态更复杂的东西，都得改写成模板。比如“后门开着，而且外面低于 5 度”。有了这个触发条件，你就像搭条件一样搭它，在它变为真的那一刻自动化就会运行。",[1718,9311,9312],{},"只有转变才算。自动化加载时已经为真的条件不是变化，所以不会为它触发，和模板触发条件一样。变回假也不算转变。",[1718,9314,9315],{},[1749,9316,1751],{},[1753,9318,9319,9325,9331,9336],{},[1756,9320,2774,9321,2741,9323,1762],{},[1749,9322,2740],{},[1749,9324,2744],{},[1756,9326,1765,9327,2783,9329,1762],{},[1749,9328,8533],{},[1749,9330,8533],{},[1756,9332,2110,9333,9335],{},[1749,9334,968],{},"下添加要监视的条件，方式和在自动化中添加条件一样。添加多个时，它们必须全部为真。",[1756,9337,778,9338,1762],{},[1749,9339,1778],{},[1780,9341,9344],{"alt":9342,"name":9343},"自动化编辑器中选中的条件变为真触发条件，条件是客厅温度高于 25 度。","trigger-condition-met",[1718,9345,9346],{},"客厅温度超过 25 °C，百叶窗就放下来。",[1796,9348,9349,9465,9572],{},[1799,9350,9351,9384,9418,9420,9437],{"icon":1801,"label":1802},[1804,9352,9353,9359],{},[1807,9354,9355],{},[1810,9356,9357],{},[1813,9358,2824],{"colspan":194},[1817,9360,9361,9367,9376],{},[1810,9362,9363,9365],{},[1822,9364,980],{},[1822,9366,8533],{},[1810,9368,9369,9371],{},[1822,9370,2837],{},[1822,9372,9373],{},[1742,9374,9375],{},"spook.condition_met",[1810,9377,9378,9382],{},[1822,9379,9380],{},[1825,9381,1873],{"to":1872},[1822,9383,2870],{},[1804,9385,9386,9402],{},[1807,9387,9388,9392],{},[1810,9389,9390],{},[1813,9391,3131],{"colspan":42},[1810,9393,9394,9396,9398,9400],{},[1813,9395,2235],{},[1813,9397,2238],{},[1813,9399,2241],{},[1813,9401,2244],{},[1817,9403,9404],{},[1810,9405,9406,9410,9414,9416],{},[1822,9407,9408],{},[1742,9409,2253],{},[1822,9411,9412],{},[1825,9413,968],{"to":2253},[1822,9415,2260],{},[1822,9417,2263],{},[1718,9419,2284],{},[1718,9421,9422,9423,9425,9426,2700,9428,9430,9431,9433,9434,9436],{},"当它能分辨是哪次变化让条件转变时，",[1742,9424,2879],{}," 是那个实体，",[1742,9427,2883],{},[1742,9429,2886],{}," 是它变化前后的状态，和模板触发条件交出的是同样三样东西。用户也是靠这个传过来的：自动化会开始一个新的上下文，所以 ",[1742,9432,2890],{}," 之类的条件是从 ",[1742,9435,2886],{}," 上读出那个人的。",[1718,9438,9439,9440,9442,9443,8375,9446,2690,9448,2700,9451,9454,9455,2690,9458,2644,9461,9464],{},"只有当条件的每个部分都会通告自己的转变时，它才能分辨，也就是没有 ",[1742,9441,2710],{},"、没有 ",[1742,9444,9445],{},"value_template",[1742,9447,2714],{},[1742,9449,9450],{},"numeric_state",[1742,9452,9453],{},"zone"," 条件，以及由它们组成的任何 ",[1742,9456,9457],{},"and",[1742,9459,9460],{},"or",[1742,9462,9463],{},"not","。其他情况下，这三样都是空的。没有状态变化就转变的部分，只会在下一次无关的变化时才被发现，而写出那次变化，就写错了。",[1799,9466,9467,9470],{"icon":1901,"label":2897},[1718,9468,9469],{},"外面冷的时候后门开着：",[1907,9471,9473],{"className":1909,"code":9472,"language":1911,"meta":1912,"style":1912},"trigger: spook.condition_met\noptions:\n  condition:\n    condition: and\n    conditions:\n      - condition: state\n        entity_id: binary_sensor.back_door\n        state: \"on\"\n      - condition: numeric_state\n        entity_id: sensor.outside_temperature\n        below: 5\n",[1742,9474,9475,9484,9490,9496,9505,9512,9523,9531,9544,9554,9563],{"__ignoreMap":1912},[1916,9476,9477,9479,9481],{"class":1918,"line":215},[1916,9478,2685],{"class":1921},[1916,9480,1925],{"class":1924},[1916,9482,9483],{"class":1928}," spook.condition_met\n",[1916,9485,9486,9488],{"class":1918,"line":194},[1916,9487,3228],{"class":1921},[1916,9489,2343],{"class":1924},[1916,9491,9492,9494],{"class":1918,"line":29},[1916,9493,2348],{"class":1921},[1916,9495,2343],{"class":1924},[1916,9497,9498,9500,9502],{"class":1918,"line":42},[1916,9499,2355],{"class":1921},[1916,9501,1925],{"class":1924},[1916,9503,9504],{"class":1928}," and\n",[1916,9506,9507,9510],{"class":1918,"line":118},[1916,9508,9509],{"class":1921},"    conditions",[1916,9511,2343],{"class":1924},[1916,9513,9514,9517,9519,9521],{"class":1918,"line":53},[1916,9515,9516],{"class":1924},"      -",[1916,9518,2612],{"class":1921},[1916,9520,1925],{"class":1924},[1916,9522,2360],{"class":1928},[1916,9524,9525,9527,9529],{"class":1918,"line":578},[1916,9526,7438],{"class":1921},[1916,9528,1925],{"class":1924},[1916,9530,2370],{"class":1928},[1916,9532,9533,9536,9538,9540,9542],{"class":1918,"line":150},[1916,9534,9535],{"class":1921},"        state",[1916,9537,1925],{"class":1924},[1916,9539,2380],{"class":1924},[1916,9541,6134],{"class":1928},[1916,9543,2386],{"class":1924},[1916,9545,9546,9548,9550,9552],{"class":1918,"line":129},[1916,9547,9516],{"class":1924},[1916,9549,2612],{"class":1921},[1916,9551,1925],{"class":1924},[1916,9553,8633],{"class":1928},[1916,9555,9556,9558,9560],{"class":1918,"line":161},[1916,9557,7438],{"class":1921},[1916,9559,1925],{"class":1924},[1916,9561,9562],{"class":1928}," sensor.outside_temperature\n",[1916,9564,9565,9568,9570],{"class":1918,"line":2499},[1916,9566,9567],{"class":1921},"        below",[1916,9569,1925],{"class":1924},[1916,9571,9211],{"class":4875},[1799,9573,9574],{"icon":2655,"label":2656},[2658,9575,9576,9601,9612,9615,9631,9649],{},[1756,9577,9578,9579,2690,9581,2700,9583,9585,9586,8375,9589,9454,9591,2690,9593,2644,9595,9597,9598,9600],{},"写了实体的条件，在其中一个实体变化的那一刻就会被注意到。这包括 ",[1742,9580,2714],{},[1742,9582,9450],{},[1742,9584,9453],{}," 条件，指向 ",[1742,9587,9588],{},"input_datetime",[1742,9590,2718],{},[1742,9592,9457],{},[1742,9594,9460],{},[1742,9596,9463],{},"。写了实体的 ",[1742,9599,9450],{}," 阈值也算，所以因为阈值变了、而不是测量值变了而转变的条件，同样会很快被注意到。Home Assistant 在报告条件依赖什么时会漏掉那个实体，所以 Spook 会单独把它找出来。模板条件写的东西都没法从配置里读出来，普通的时间或太阳条件则没有什么可写的，所以这些每 30 秒重新问一次。",[1756,9602,9603,9604,8375,9606,9608,9609,9611],{},"不是每次转变都以状态变化的形式到来。带 ",[1742,9605,2710],{},[1742,9607,2714],{}," 条件在时间用完时变为真，",[1742,9610,2718],{}," 条件在时钟走过那一刻时变为真。两者都不会改变任何实体。这些由 30 秒一次的轮询发现，所以最多晚半分钟。",[1756,9613,9614],{},"在这 30 秒内变为真又变回假的条件，会被完全错过。如果你监视的东西会闪烁，就用那个会闪烁的东西来触发。",[1756,9616,9617,9618,2686,9620,2690,9622,2690,9624,2690,9626,2700,9628,9630],{},"询问它所在的这次运行的条件没法被监视，所以 ",[1742,9619,2685],{},[1742,9621,2689],{},[1742,9623,2693],{},[1742,9625,2696],{},[1742,9627,2699],{},[1742,9629,2703],{}," 都会被拒绝。在这里决定是否触发的时候，什么都还没触发，所以它们的答案没有意义。",[1756,9632,9633,9634,2690,9636,2690,9639,2644,9641,9644,9645,9648],{},"用到 ",[1742,9635,2685],{},[1742,9637,9638],{},"this",[1742,9640,2647],{},[1742,9642,9643],{},"wait"," 的模板也一样。Home Assistant 把这些交给正在运行的自动化或脚本，而这里没有可以从中拿到它们的运行，所以这样的条件会被拒绝。只是提到这个词的模板没问题：",[1742,9646,9647],{},"sensor.trigger_count"," 是一个实体，不是触发条件。",[1756,9650,9651],{},"根本搭不起来的条件会让那个自动化被禁用，并在日志里说明原因。",[1725,9653,968],{"id":2945},[1718,9655,9656,9657,9660,9661,9664,9665,9667,9668,9670],{},"Spook 把这些条件加到了自动化编辑器中，就在 Home Assistant 自带的那些旁边。在",[1749,9658,9659],{},"且如果","下用",[1749,9662,9663],{},"添加条件","添加，或者在你的动作里、",[1749,9666,2088],{},"或",[1749,9669,778],{},"中添加，然后搜索它的名称。和触发条件一样，它们在列表中不带 👻。",[1731,9672,2810],{"id":9673},"triggered-by-a-user",[1718,9675,9676],{},"在是某个人启动了这次运行时通过。",[1718,9678,9679],{},"同一个自动化常常有两份工作：对人做出反应，以及对其他一切做出反应。有人打开的走廊灯应该一直开着。人体传感器打开的那盏，两分钟后就可以关掉。这个条件能把两者分开。",[1718,9681,9682],{},"它能看到的是触发条件背后的人。有人拨了开关、在应用里点了什么，或者从 API 调用了一个动作，都会把他们的用户账户留在随后的变化上，所以对它做出反应的自动化能找到他们。计划、太阳，或者自己行动的集成，背后没有人。",[1718,9684,9685],{},[1749,9686,1751],{},[1753,9688,9689,9695,9701,9706],{},[1756,9690,2774,9691,2741,9693,1762],{},[1749,9692,9659],{},[1749,9694,9663],{},[1756,9696,1765,9697,2783,9699,1762],{},[1749,9698,2810],{},[1749,9700,2810],{},[1756,9702,4421,9703,9705],{},[1749,9704,646],{},"下选择必须是谁。留空就是任何人都通过。",[1756,9707,778,9708,1762],{},[1749,9709,1778],{},[1780,9711,9714],{"alt":9712,"name":9713},"自动化编辑器中选中的由用户触发条件，在自动化已关闭触发条件之后。","condition-triggered-by-user",[1718,9715,9716],{},"只在有人关掉自动化时。",[1796,9718,9719,9803,9865],{},[1799,9720,9721,9758,9795,9798],{"icon":1801,"label":1802},[1804,9722,9723,9730],{},[1807,9724,9725],{},[1810,9726,9727],{},[1813,9728,9729],{"colspan":194},"条件属性",[1817,9731,9732,9740,9749],{},[1810,9733,9734,9738],{},[1822,9735,9736],{},[1825,9737,968],{"to":2253},[1822,9739,2810],{},[1810,9741,9742,9745],{},[1822,9743,9744],{},"条件名称",[1822,9746,9747],{},[1742,9748,2890],{},[1810,9750,9751,9755],{},[1822,9752,9753],{},[1825,9754,1873],{"to":1872},[1822,9756,9757],{},"新增条件",[1804,9759,9760,9777],{},[1807,9761,9762,9767],{},[1810,9763,9764],{},[1813,9765,9766],{"colspan":42},"条件选项",[1810,9768,9769,9771,9773,9775],{},[1813,9770,2235],{},[1813,9772,2238],{},[1813,9774,2241],{},[1813,9776,2244],{},[1817,9778,9779],{},[1810,9780,9781,9786,9790,9792],{},[1822,9782,9783],{},[1742,9784,9785],{},"person",[1822,9787,9788],{},[1825,9789,4525],{"to":4524},[1822,9791,1854],{},[1822,9793,9794],{},"默认是任何用户",[1718,9796,9797],{},"用户账户跟着那个人做的事之后的状态变化或事件一起走。当让模板变为真的变化是他们造成的时，模板触发条件也会继承它。",[1718,9799,2722,9800,9802],{},[1742,9801,9785],{}," 时，任何人都能让条件通过。写上一个或多个人员来缩小范围，Spook 会和他们各自关联的用户账户比对。",[1799,9804,9806,9809,9822,9825],{"icon":1901,"label":9805},"YAML 条件示例",[1718,9807,9808],{},"任何人：",[1907,9810,9812],{"className":1909,"code":9811,"language":1911,"meta":1912,"style":1912},"condition: spook.triggered_by_user\n",[1742,9813,9814],{"__ignoreMap":1912},[1916,9815,9816,9818,9820],{"class":1918,"line":215},[1916,9817,2253],{"class":1921},[1916,9819,1925],{"class":1924},[1916,9821,2958],{"class":1928},[1718,9823,9824],{},"只在特定的人做的时候才通过：",[1907,9826,9828],{"className":1909,"code":9827,"language":1911,"meta":1912,"style":1912},"condition: spook.triggered_by_user\noptions:\n  person:\n    - person.frenck\n    - person.joe\n",[1742,9829,9830,9838,9844,9851,9858],{"__ignoreMap":1912},[1916,9831,9832,9834,9836],{"class":1918,"line":215},[1916,9833,2253],{"class":1921},[1916,9835,1925],{"class":1924},[1916,9837,2958],{"class":1928},[1916,9839,9840,9842],{"class":1918,"line":194},[1916,9841,3228],{"class":1921},[1916,9843,2343],{"class":1924},[1916,9845,9846,9849],{"class":1918,"line":29},[1916,9847,9848],{"class":1921},"  person",[1916,9850,2343],{"class":1924},[1916,9852,9853,9855],{"class":1918,"line":42},[1916,9854,2502],{"class":1924},[1916,9856,9857],{"class":1928}," person.frenck\n",[1916,9859,9860,9862],{"class":1918,"line":118},[1916,9861,2502],{"class":1924},[1916,9863,9864],{"class":1928}," person.joe\n",[1799,9866,9867],{"icon":2655,"label":2656},[2658,9868,9869,9872,9878,9897,9900],{},[1756,9870,9871],{},"人员需要关联一个用户账户。在人员页面上，关联账户是可选的。没有账户的人员没有可比对的东西，所以写上他们就意味着这个条件永远不会通过。",[1756,9873,9874,9877],{},[1749,9875,9876],{},"强制运行不会被算到任何人头上","。Home Assistant 会把调用者的账户交给自动化，但运行本身会开始一个新的上下文，只是指向调用者的上下文。没有东西会顺着这个指向追回去，所以这个条件找不到任何人。",[1756,9879,9880,9883,9886,9887,9890,9891,2644,9893,9896],{},[1749,9881,9882],{},"而且按下“运行动作”反正会跳过你的条件。",[1742,9884,9885],{},"automation.trigger"," 默认是 ",[1742,9888,9889],{},"skip_condition: true","，所以触发条件和动作之间的条件根本不会被求值，动作直接运行。Home Assistant 对每个条件都这样，不只是这两个。如果你想让强制运行被识别为不是任何人做的，条件就必须放在动作里面，放在 ",[1742,9892,2643],{},[1742,9894,9895],{},"choose"," 中，在那里它会被求值。",[1756,9898,9899],{},"用户从哪里来，取决于触发条件。状态触发条件、事件触发条件和模板触发条件都会带上它，只要它们背后的变化是某个人造成的。时间触发条件或太阳触发条件不会，因为没有可以继承的变化，背后也没有人。",[1756,9901,9902],{},"长期访问令牌算作创建它的那个人。用它发出的 API 调用，看起来和那个用户一模一样。",[1731,9904,9906],{"id":9905},"not-triggered-by-a-user","非用户触发",[1718,9908,9909],{},"在没有人启动这次运行时通过。",[1718,9911,9912,9914],{},[1788,9913,2810],{"href":2809},"的另一半。任何 Spook 没法算到某个人头上的东西，它都会通过：计划、太阳、自己行动的集成，或者用“运行”按钮强制的运行。两分钟后关灯，但只在是人体传感器打开它的时候，不是有人打开它的时候。",[1718,9916,9917,9918,9920,9921,9924],{},"“没有人启动这次运行”和“不是这个人”不是同一个问题。这就是这个条件没有选项的原因。要排除某一个人，就把带上那个人的",[1788,9919,2810],{"href":2809},"放进 Home Assistant 自己的",[1749,9922,9923],{},"非","条件里。这样不是那个人的任何人都能通过，背后根本没有人时也能通过，这才是“不是 Frenck”的意思。",[1718,9926,9927],{},[1749,9928,1751],{},[1753,9930,9931,9937,9943],{},[1756,9932,2774,9933,2741,9935,1762],{},[1749,9934,9659],{},[1749,9936,9663],{},[1756,9938,1765,9939,2783,9941,1762],{},[1749,9940,9906],{},[1749,9942,9906],{},[1756,9944,1775,9945,1762],{},[1749,9946,1778],{},[1780,9948,9951],{"alt":9949,"name":9950},"自动化编辑器中选中的非用户触发条件，前面是客厅台灯的状态触发条件。","condition-not-triggered-by-user",[1718,9952,9953],{},"客厅台灯关了，而且不是人关的。",[1796,9955,9956,9998],{},[1799,9957,9958,9992],{"icon":1801,"label":1802},[1804,9959,9960,9966],{},[1807,9961,9962],{},[1810,9963,9964],{},[1813,9965,9729],{"colspan":194},[1817,9967,9968,9976,9984],{},[1810,9969,9970,9974],{},[1822,9971,9972],{},[1825,9973,968],{"to":2253},[1822,9975,9906],{},[1810,9977,9978,9980],{},[1822,9979,9744],{},[1822,9981,9982],{},[1742,9983,2893],{},[1810,9985,9986,9990],{},[1822,9987,9988],{},[1825,9989,1873],{"to":1872},[1822,9991,9757],{},[1718,9993,9994,9995,9997],{},"这个条件没有选项。",[1788,9996,2810],{"href":2809},"里说的关于用户从哪里来、什么时候没有用户的一切，在这里反过来同样适用。",[1799,9999,10000,10003,10017,10020],{"icon":1901,"label":9805},[1718,10001,10002],{},"背后没有人：",[1907,10004,10006],{"className":1909,"code":10005,"language":1911,"meta":1912,"style":1912},"condition: spook.not_triggered_by_user\n",[1742,10007,10008],{"__ignoreMap":1912},[1916,10009,10010,10012,10014],{"class":1918,"line":215},[1916,10011,2253],{"class":1921},[1916,10013,1925],{"class":1924},[1916,10015,10016],{"class":1928}," spook.not_triggered_by_user\n",[1718,10018,10019],{},"除了 Frenck 之外的任何人，或者根本没有人：",[1907,10021,10023],{"className":1909,"code":10022,"language":1911,"meta":1912,"style":1912},"condition: not\nconditions:\n  - condition: spook.triggered_by_user\n    options:\n      person: person.frenck\n",[1742,10024,10025,10034,10040,10050,10057],{"__ignoreMap":1912},[1916,10026,10027,10029,10031],{"class":1918,"line":215},[1916,10028,2253],{"class":1921},[1916,10030,1925],{"class":1924},[1916,10032,10033],{"class":1928}," not\n",[1916,10035,10036,10038],{"class":1918,"line":194},[1916,10037,2945],{"class":1921},[1916,10039,2343],{"class":1924},[1916,10041,10042,10044,10046,10048],{"class":1918,"line":29},[1916,10043,2933],{"class":1924},[1916,10045,2612],{"class":1921},[1916,10047,1925],{"class":1924},[1916,10049,2958],{"class":1928},[1916,10051,10052,10055],{"class":1918,"line":42},[1916,10053,10054],{"class":1921},"    options",[1916,10056,2343],{"class":1924},[1916,10058,10059,10062,10064],{"class":1918,"line":118},[1916,10060,10061],{"class":1921},"      person",[1916,10063,1925],{"class":1924},[1916,10065,9857],{"class":1928},[1731,10067,10068],{"id":2689},"冷却时间",[1718,10070,10071],{},"在这个自动化或脚本在给定时间内没有运行过时通过。",[1718,10073,10074],{},"一个内置的冷却时间，让自动化不会比你想要的更频繁地触发。门铃播报不该因为快递员不耐烦就响五次，“洗衣机洗好了”的消息也不该每次电源一抖就重复一遍。从没运行过的自动化会通过。",[1718,10076,10077],{},[1749,10078,1751],{},[1753,10080,10081,10087,10093,10100],{},[1756,10082,2774,10083,2741,10085,1762],{},[1749,10084,9659],{},[1749,10086,9663],{},[1756,10088,1765,10089,2783,10091,1762],{},[1749,10090,10068],{},[1749,10092,10068],{},[1756,10094,3522,10095,10097,10098,1762],{},[1749,10096,3525],{},"设为距上次运行必须过去多久，比如 ",[1742,10099,2123],{},[1756,10101,778,10102,1762],{},[1749,10103,1778],{},[1780,10105,10108],{"alt":10106,"name":10107},"自动化编辑器中选中的冷却时间条件，设为一小时，在 Cron 计划触发条件之后。","condition-cooldown",[1718,10109,10110],{},"最多一小时一次。",[1718,10112,10113,10114,1762],{},"想限制一天内的运行次数，而不是把它们隔开？那是",[1788,10115,10117],{"href":10116},"#run-allowance-left","剩余运行配额",[1796,10119,10120,10251],{},[1799,10121,10122,10157,10192,10195],{"icon":1801,"label":1802},[1804,10123,10124,10130],{},[1807,10125,10126],{},[1810,10127,10128],{},[1813,10129,9729],{"colspan":194},[1817,10131,10132,10140,10149],{},[1810,10133,10134,10138],{},[1822,10135,10136],{},[1825,10137,968],{"to":2253},[1822,10139,10068],{},[1810,10141,10142,10144],{},[1822,10143,9744],{},[1822,10145,10146],{},[1742,10147,10148],{},"spook.cooldown",[1810,10150,10151,10155],{},[1822,10152,10153],{},[1825,10154,1873],{"to":1872},[1822,10156,9757],{},[1804,10158,10159,10175],{},[1807,10160,10161,10165],{},[1810,10162,10163],{},[1813,10164,9766],{"colspan":42},[1810,10166,10167,10169,10171,10173],{},[1813,10168,2235],{},[1813,10170,2238],{},[1813,10172,2241],{},[1813,10174,2244],{},[1817,10176,10177],{},[1810,10178,10179,10184,10186,10188],{},[1822,10180,10181],{},[1742,10182,10183],{},"duration",[1822,10185,3525],{},[1822,10187,2260],{},[1822,10189,10190],{},[1742,10191,2123],{},[1718,10193,10194],{},"它取代了被复制粘贴最多的那个模板条件：",[1907,10196,10200],{"className":10197,"code":10198,"language":10199,"meta":1912,"style":1912},"language-jinja shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{{ now() - this.attributes.last_triggered >= timedelta(minutes=5) }}\n","jinja",[1742,10201,10202],{"__ignoreMap":1912},[1916,10203,10204,10208,10211,10214,10217,10220,10223,10225,10228,10231,10234,10237,10240,10243,10245,10248],{"class":1918,"line":215},[1916,10205,10207],{"class":10206},"sTEyZ","{{ now",[1916,10209,10210],{"class":1924},"()",[1916,10212,10213],{"class":1924}," -",[1916,10215,10216],{"class":10206}," this",[1916,10218,10219],{"class":1924},".",[1916,10221,10222],{"class":10206},"attributes",[1916,10224,10219],{"class":1924},[1916,10226,10227],{"class":10206},"last_triggered ",[1916,10229,10230],{"class":1924},">=",[1916,10232,10233],{"class":10206}," timedelta",[1916,10235,10236],{"class":1924},"(",[1916,10238,10239],{"class":10206},"minutes",[1916,10241,10242],{"class":1924},"=",[1916,10244,9015],{"class":10206},[1916,10246,10247],{"class":1924},")",[1916,10249,10250],{"class":10206}," }}\n",[1799,10252,10253,10256],{"icon":1901,"label":9805},[1718,10254,10255],{},"五分钟内别再来：",[1907,10257,10259],{"className":1909,"code":10258,"language":1911,"meta":1912,"style":1912},"condition: spook.cooldown\noptions:\n  duration: \"00:05:00\"\n",[1742,10260,10261,10270,10276],{"__ignoreMap":1912},[1916,10262,10263,10265,10267],{"class":1918,"line":215},[1916,10264,2253],{"class":1921},[1916,10266,1925],{"class":1924},[1916,10268,10269],{"class":1928}," spook.cooldown\n",[1916,10271,10272,10274],{"class":1918,"line":194},[1916,10273,3228],{"class":1921},[1916,10275,2343],{"class":1924},[1916,10277,10278,10281,10283,10285,10287],{"class":1918,"line":29},[1916,10279,10280],{"class":1921},"  duration",[1916,10282,1925],{"class":1924},[1916,10284,2380],{"class":1924},[1916,10286,2123],{"class":1928},[1916,10288,2386],{"class":1924},[1731,10290,10292],{"id":10291},"chance","概率",[1718,10294,10295],{},"按设定的百分比通过，每次检查时随机决定。",[1718,10297,10298],{},"图个变化。时不时换一个灯光场景，或者一句不会每天都说同样话的“欢迎回家”。",[1718,10300,10301],{},[1749,10302,1751],{},[1753,10304,10305,10311,10317,10327],{},[1756,10306,2774,10307,2741,10309,1762],{},[1749,10308,9659],{},[1749,10310,9663],{},[1756,10312,1765,10313,2783,10315,1762],{},[1749,10314,10292],{},[1749,10316,10292],{},[1756,10318,3522,10319,10322,10323,10326],{},[1749,10320,10321],{},"百分比","设为它应该多常通过，比如 ",[1742,10324,10325],{},"20"," 表示五次中有一次。",[1756,10328,778,10329,1762],{},[1749,10330,1778],{},[1780,10332,10335],{"alt":10333,"name":10334},"自动化编辑器中选中的概率条件，设为 20%，在日落触发条件之后。","condition-chance",[1718,10336,10337],{},"五次日落里有一次，幽灵会变得吓人。",[1796,10339,10340,10414],{},[1799,10341,10342,10377],{"icon":1801,"label":1802},[1804,10343,10344,10350],{},[1807,10345,10346],{},[1810,10347,10348],{},[1813,10349,9729],{"colspan":194},[1817,10351,10352,10360,10369],{},[1810,10353,10354,10358],{},[1822,10355,10356],{},[1825,10357,968],{"to":2253},[1822,10359,10292],{},[1810,10361,10362,10364],{},[1822,10363,9744],{},[1822,10365,10366],{},[1742,10367,10368],{},"spook.chance",[1810,10370,10371,10375],{},[1822,10372,10373],{},[1825,10374,1873],{"to":1872},[1822,10376,9757],{},[1804,10378,10379,10395],{},[1807,10380,10381,10385],{},[1810,10382,10383],{},[1813,10384,9766],{"colspan":42},[1810,10386,10387,10389,10391,10393],{},[1813,10388,2235],{},[1813,10390,2238],{},[1813,10392,2241],{},[1813,10394,2244],{},[1817,10396,10397],{},[1810,10398,10399,10404,10408,10410],{},[1822,10400,10401],{},[1742,10402,10403],{},"percentage",[1822,10405,10406],{},[1825,10407,5465],{"to":5464},[1822,10409,2260],{},[1822,10411,10412],{},[1742,10413,10325],{},[1799,10415,10416,10419],{"icon":1901,"label":9805},[1718,10417,10418],{},"五次中有一次：",[1907,10420,10422],{"className":1909,"code":10421,"language":1911,"meta":1912,"style":1912},"condition: spook.chance\noptions:\n  percentage: 20\n",[1742,10423,10424,10433,10439],{"__ignoreMap":1912},[1916,10425,10426,10428,10430],{"class":1918,"line":215},[1916,10427,2253],{"class":1921},[1916,10429,1925],{"class":1924},[1916,10431,10432],{"class":1928}," spook.chance\n",[1916,10434,10435,10437],{"class":1918,"line":194},[1916,10436,3228],{"class":1921},[1916,10438,2343],{"class":1924},[1916,10440,10441,10444,10446],{"class":1918,"line":29},[1916,10442,10443],{"class":1921},"  percentage",[1916,10445,1925],{"class":1924},[1916,10447,10448],{"class":4875}," 20\n",[1731,10450,10452],{"id":10451},"triggered-by-an-automation","由自动化触发",[1718,10454,10455],{},"在是另一个自动化启动了这次运行时通过。",[1718,10457,10458],{},"晚安自动化关掉的灯，和有人关掉的灯不是一回事。有了这个条件，一个自动化能分辨它在反应的东西是不是另一个自动化造成的，然后不去管它，或者只在这时才做某件事。",[1718,10460,10461],{},[1749,10462,1751],{},[1753,10464,10465,10471,10477,10482],{},[1756,10466,2774,10467,2741,10469,1762],{},[1749,10468,9659],{},[1749,10470,9663],{},[1756,10472,1765,10473,2783,10475,1762],{},[1749,10474,10452],{},[1749,10476,10452],{},[1756,10478,4421,10479,10481],{},[1749,10480,269],{},"下选择哪些自动化算数。留空就是任何自动化都通过。",[1756,10483,778,10484,1762],{},[1749,10485,1778],{},[1780,10487,10490],{"alt":10488,"name":10489},"自动化编辑器中选中的由自动化触发条件，设为走廊的日落自动化。","condition-triggered-by-automation",[1718,10491,10492],{},"只在日落自动化打开走廊灯时。",[1796,10494,10495,10579,10641],{},[1799,10496,10497,10532,10568,10571,10574],{"icon":1801,"label":1802},[1804,10498,10499,10505],{},[1807,10500,10501],{},[1810,10502,10503],{},[1813,10504,9729],{"colspan":194},[1817,10506,10507,10515,10524],{},[1810,10508,10509,10513],{},[1822,10510,10511],{},[1825,10512,968],{"to":2253},[1822,10514,10452],{},[1810,10516,10517,10519],{},[1822,10518,9744],{},[1822,10520,10521],{},[1742,10522,10523],{},"spook.triggered_by_automation",[1810,10525,10526,10530],{},[1822,10527,10528],{},[1825,10529,1873],{"to":1872},[1822,10531,9757],{},[1804,10533,10534,10550],{},[1807,10535,10536,10540],{},[1810,10537,10538],{},[1813,10539,9766],{"colspan":42},[1810,10541,10542,10544,10546,10548],{},[1813,10543,2235],{},[1813,10545,2238],{},[1813,10547,2241],{},[1813,10549,2244],{},[1817,10551,10552],{},[1810,10553,10554,10559,10563,10565],{},[1822,10555,10556],{},[1742,10557,10558],{},"automation",[1822,10560,10561],{},[1825,10562,4525],{"to":4524},[1822,10564,1854],{},[1822,10566,10567],{},"默认是任何自动化",[1718,10569,10570],{},"Home Assistant 给每次自动化运行一个它自己的上下文，这次运行写下的一切都会带着它。所以一个对另一个自动化造成的变化做出反应的自动化，能查出是谁做的；中间夹着一个脚本时也照样有效，因为脚本在自动化的上下文中运行，不会创建它自己的上下文。",[1718,10572,10573],{},"Home Assistant 不会把上下文反查回它所属的自动化。所以 Spook 会监听自动化的自我通告，并记住最近几百次运行的对应关系。这绰绰有余：被询问的那次运行，就发生在不到一秒之前。",[1718,10575,2722,10576,10578],{},[1742,10577,10558],{}," 时，任何自动化都能让条件通过。写上一个或多个来缩小范围。",[1799,10580,10581,10584,10598,10601],{"icon":1901,"label":9805},[1718,10582,10583],{},"任何自动化：",[1907,10585,10587],{"className":1909,"code":10586,"language":1911,"meta":1912,"style":1912},"condition: spook.triggered_by_automation\n",[1742,10588,10589],{"__ignoreMap":1912},[1916,10590,10591,10593,10595],{"class":1918,"line":215},[1916,10592,2253],{"class":1921},[1916,10594,1925],{"class":1924},[1916,10596,10597],{"class":1928}," spook.triggered_by_automation\n",[1718,10599,10600],{},"只在特定的自动化做的时候才通过：",[1907,10602,10604],{"className":1909,"code":10603,"language":1911,"meta":1912,"style":1912},"condition: spook.triggered_by_automation\noptions:\n  automation:\n    - automation.goodnight\n    - automation.leaving_home\n",[1742,10605,10606,10614,10620,10627,10634],{"__ignoreMap":1912},[1916,10607,10608,10610,10612],{"class":1918,"line":215},[1916,10609,2253],{"class":1921},[1916,10611,1925],{"class":1924},[1916,10613,10597],{"class":1928},[1916,10615,10616,10618],{"class":1918,"line":194},[1916,10617,3228],{"class":1921},[1916,10619,2343],{"class":1924},[1916,10621,10622,10625],{"class":1918,"line":29},[1916,10623,10624],{"class":1921},"  automation",[1916,10626,2343],{"class":1924},[1916,10628,10629,10631],{"class":1918,"line":42},[1916,10630,2502],{"class":1924},[1916,10632,10633],{"class":1928}," automation.goodnight\n",[1916,10635,10636,10638],{"class":1918,"line":118},[1916,10637,2502],{"class":1924},[1916,10639,10640],{"class":1928}," automation.leaving_home\n",[1799,10642,10643],{"icon":2655,"label":2656},[2658,10644,10645,10653,10656,10659,10662],{},[1756,10646,10647,10648,2644,10650,10652],{},"发出询问的自动化自己不算。把它放在你的动作里的 ",[1742,10649,2643],{},[1742,10651,9895],{}," 中，离它最近的就是这次运行自己的上下文，所以如果不跳过它，计划或人启动的运行也会通过。它会越过自己，报告启动这次运行的东西。",[1756,10654,10655],{},"只识别自动化。独自运行、没有被自动化启动的脚本不是自动化，它不会为此通过。",[1756,10657,10658],{},"另一个自动化运行时，Spook 必须正在运行。它在你的自动化加载期间记住对应关系，所以重启之前的运行就不再知道了。",[1756,10660,10661],{},"它写出的是启动这条链的自动化，而不是链上的最后一环。如果你的晚安自动化调用了一个脚本，由那个脚本关灯，它报告的是那个自动化。",[1756,10663,10664],{},"只记住最近几百次自动化运行。对于在被询问的运行之后马上检查的条件，你不会察觉到这一点，但它是个限制。",[1731,10666,10668],{"id":10667},"repair-issue-outstanding","存在未解决的修复问题",[1718,10670,10671],{},"在有未解决的修复问题时通过。",[1718,10673,10674],{},"用来把某件事压着，直到家里一切正常：某个集成在抱怨时不运行每晚的任务，或者只要有问题就每天唠叨一次。",[1718,10676,10677],{},[1749,10678,1751],{},[1753,10680,10681,10687,10693,10704],{},[1756,10682,2774,10683,2741,10685,1762],{},[1749,10684,9659],{},[1749,10686,9663],{},[1756,10688,1765,10689,2783,10691,1762],{},[1749,10690,10668],{},[1749,10692,10668],{},[1756,10694,4421,10695,10697,10698,10700,10701,10703],{},[1749,10696,4925],{},"下输入要查看的集成，比如 ",[1742,10699,4929],{},"，在",[1749,10702,4935],{},"下选择算数的严重程度。两个都留空，任何未解决的问题都能让它通过。",[1756,10705,778,10706,1762],{},[1749,10707,1778],{},[1780,10709,10712],{"alt":10710,"name":10711},"自动化编辑器中选中的存在未解决的修复问题条件，只限严重和错误级别的修复。","condition-repair-issue-present",[1718,10713,10714],{},"九点，只在修复里有严重的问题等着时。",[1718,10716,10717,10718,10721,10722,10724],{},"只想在",[7904,10719,10720],{},"什么问题都没有","时运行？把它放进 Home Assistant 自己的",[1749,10723,9923],{},"条件里。",[1796,10726,10727,10823,10894],{},[1799,10728,10729,10762,10820],{"icon":1801,"label":1802},[1804,10730,10731,10737],{},[1807,10732,10733],{},[1810,10734,10735],{},[1813,10736,9729],{"colspan":194},[1817,10738,10739,10745,10754],{},[1810,10740,10741,10743],{},[1822,10742,968],{},[1822,10744,10668],{},[1810,10746,10747,10749],{},[1822,10748,9744],{},[1822,10750,10751],{},[1742,10752,10753],{},"spook.repair_issue_present",[1810,10755,10756,10760],{},[1822,10757,10758],{},[1825,10759,1873],{"to":1872},[1822,10761,9757],{},[1804,10763,10764,10780],{},[1807,10765,10766,10770],{},[1810,10767,10768],{},[1813,10769,9766],{"colspan":42},[1810,10771,10772,10774,10776,10778],{},[1813,10773,2235],{},[1813,10775,2238],{},[1813,10777,2241],{},[1813,10779,2244],{},[1817,10781,10782,10798],{},[1810,10783,10784,10788,10794,10796],{},[1822,10785,10786],{},[1742,10787,5011],{},[1822,10789,10790,4521,10792],{},[1825,10791,2276],{"to":2275},[1825,10793,4525],{"to":4524},[1822,10795,1854],{},[1822,10797,5022],{},[1810,10799,10800,10804,10810,10812],{},[1822,10801,10802],{},[1742,10803,5029],{},[1822,10805,10806,4521,10808],{},[1825,10807,2276],{"to":2275},[1825,10809,4525],{"to":4524},[1822,10811,1854],{},[1822,10813,10814,2690,10816,2690,10818],{},[1742,10815,5042],{},[1742,10817,5045],{},[1742,10819,5048],{},[1718,10821,10822],{},"写上集成、严重程度，或者两者都写，写上的部分必须全部匹配同一个问题。",[1799,10824,10825,10828,10842,10845],{"icon":1901,"label":9805},[1718,10826,10827],{},"任何未解决的问题：",[1907,10829,10831],{"className":1909,"code":10830,"language":1911,"meta":1912,"style":1912},"condition: spook.repair_issue_present\n",[1742,10832,10833],{"__ignoreMap":1912},[1916,10834,10835,10837,10839],{"class":1918,"line":215},[1916,10836,2253],{"class":1921},[1916,10838,1925],{"class":1924},[1916,10840,10841],{"class":1928}," spook.repair_issue_present\n",[1718,10843,10844],{},"只在这几个中的某一个出了严重问题时：",[1907,10846,10848],{"className":1909,"code":10847,"language":1911,"meta":1912,"style":1912},"condition: spook.repair_issue_present\noptions:\n  domain:\n    - hue\n    - zwave_js\n  severity:\n    - critical\n",[1742,10849,10850,10858,10864,10870,10876,10882,10888],{"__ignoreMap":1912},[1916,10851,10852,10854,10856],{"class":1918,"line":215},[1916,10853,2253],{"class":1921},[1916,10855,1925],{"class":1924},[1916,10857,10841],{"class":1928},[1916,10859,10860,10862],{"class":1918,"line":194},[1916,10861,3228],{"class":1921},[1916,10863,2343],{"class":1924},[1916,10865,10866,10868],{"class":1918,"line":29},[1916,10867,5122],{"class":1921},[1916,10869,2343],{"class":1924},[1916,10871,10872,10874],{"class":1918,"line":42},[1916,10873,2502],{"class":1924},[1916,10875,5131],{"class":1928},[1916,10877,10878,10880],{"class":1918,"line":118},[1916,10879,2502],{"class":1924},[1916,10881,5138],{"class":1928},[1916,10883,10884,10886],{"class":1918,"line":53},[1916,10885,5143],{"class":1921},[1916,10887,2343],{"class":1924},[1916,10889,10890,10892],{"class":1918,"line":578},[1916,10891,2502],{"class":1924},[1916,10893,5152],{"class":1928},[1799,10895,10896],{"icon":2655,"label":2656},[2658,10897,10898,10901,10904],{},[1756,10899,10900],{},"有人忽略了的问题不算。忽略一个问题是告诉 Home Assistant 别再提它，这个条件也尊重这一点。",[1756,10902,10903],{},"等待确认的问题也不算。Home Assistant 会在重启后保留问题，好记住哪些被忽略了，但在集成再次报告之前，会把它们标记为等待确认。把这些算进去，每次启动时都会因为那些早已修好的东西而通过。",[1756,10905,10906],{},"没有记录严重程度的问题，没法回答关于严重程度的问题，所以写上严重程度就会把它排除。",[1731,10908,10910],{"id":10909},"temperature-at-its-target","温度已达到目标",[1718,10912,10913],{},"在恒温器或热水器的温度达到目标时通过。",[1718,10915,10916,10919],{},[1788,10917,5331],{"href":10918},"#target-temperature-reached","回答一次的问题，在你想问的任何时候都能问：浴室暖和了吗，水热了吗。只在浴室暖和了之后才在那里播放早晨的歌单，或者只在热水器到了温度时才发“洗澡水好了”的消息。它读取设备的方式和那个触发条件一样。",[1718,10921,10922],{},[1749,10923,1751],{},[1753,10925,10926,10932,10938,10943,10949,10956],{},[1756,10927,2774,10928,2741,10930,1762],{},[1749,10929,9659],{},[1749,10931,9663],{},[1756,10933,1765,10934,2783,10936,1762],{},[1749,10935,2790],{},[1749,10937,10910],{},[1756,10939,2110,10940,10942],{},[1749,10941,2790],{},"下选择要询问的恒温器或热水器。",[1756,10944,10945,10946,10948],{},"有多个时，用",[1749,10947,6168],{},"说明是一个就够了，还是必须全部到达。",[1756,10950,2116,10951,5367,10953,10955],{},[1749,10952,5366],{},[1742,10954,5370],{}," 表示半度。",[1756,10957,778,10958,1762],{},[1749,10959,1778],{},[1780,10961,10964],{"alt":10962,"name":10963},"自动化编辑器中选中的温度已达到目标条件，检查热水器，允许两度误差。","condition-is-at-target-temperature",[1718,10965,10966],{},"七点，只在热水器离目标温度不到两度时。",[1796,10968,10969,11088,11175],{},[1799,10970,10971,11016,11073],{"icon":1801,"label":1802},[1804,10972,10973,10979],{},[1807,10974,10975],{},[1810,10976,10977],{},[1813,10978,9729],{"colspan":194},[1817,10980,10981,10987,10996,11008],{},[1810,10982,10983,10985],{},[1822,10984,968],{},[1822,10986,10910],{},[1810,10988,10989,10991],{},[1822,10990,9744],{},[1822,10992,10993],{},[1742,10994,10995],{},"spook.is_at_target_temperature",[1810,10997,10998,11000],{},[1822,10999,2790],{},[1822,11001,5418,11002,2690,11004,2690,11006,3582],{},[1825,11003,2852],{"to":2851},[1825,11005,2856],{"to":2855},[1825,11007,2860],{"to":2859},[1810,11009,11010,11014],{},[1822,11011,11012],{},[1825,11013,1873],{"to":1872},[1822,11015,9757],{},[1804,11017,11018,11034],{},[1807,11019,11020,11024],{},[1810,11021,11022],{},[1813,11023,9766],{"colspan":42},[1810,11025,11026,11028,11030,11032],{},[1813,11027,2235],{},[1813,11029,2238],{},[1813,11031,2241],{},[1813,11033,2244],{},[1817,11035,11036,11055],{},[1810,11037,11038,11042,11046,11048],{},[1822,11039,11040],{},[1742,11041,6541],{},[1822,11043,11044],{},[1825,11045,2276],{"to":2275},[1822,11047,1854],{},[1822,11049,11050,5473,11053],{},[1742,11051,11052],{},"any",[1742,11054,6710],{},[1810,11056,11057,11061,11065,11067],{},[1822,11058,11059],{},[1742,11060,5459],{},[1822,11062,11063],{},[1825,11064,5465],{"to":5464},[1822,11066,1854],{},[1822,11068,11069,5473,11071],{},[1742,11070,5472],{},[1742,11072,5370],{},[1718,11074,11075,11076,11078,11079,11081,11082,11084,11085,11087],{},"有多个设备时，",[1742,11077,11052],{}," 在其中一个到达时通过，",[1742,11080,6710],{}," 在每一个都到达时通过。在 ",[1742,11083,5484],{}," 下的区间，温度在区间内的任何地方都算，",[1742,11086,5459],{}," 是多接近仍然算到达，用的是设备自己的单位。",[1799,11089,11090,11093,11121,11124],{"icon":1901,"label":9805},[1718,11091,11092],{},"只在浴室暖和了的时候：",[1907,11094,11096],{"className":1909,"code":11095,"language":1911,"meta":1912,"style":1912},"condition: spook.is_at_target_temperature\ntarget:\n  entity_id: climate.bathroom\n",[1742,11097,11098,11107,11113],{"__ignoreMap":1912},[1916,11099,11100,11102,11104],{"class":1918,"line":215},[1916,11101,2253],{"class":1921},[1916,11103,1925],{"class":1924},[1916,11105,11106],{"class":1928}," spook.is_at_target_temperature\n",[1916,11108,11109,11111],{"class":1918,"line":194},[1916,11110,3671],{"class":1921},[1916,11112,2343],{"class":1924},[1916,11114,11115,11117,11119],{"class":1918,"line":29},[1916,11116,3729],{"class":1921},[1916,11118,1925],{"class":1924},[1916,11120,5536],{"class":1928},[1718,11122,11123],{},"楼上的每个房间，差不多就行：",[1907,11125,11127],{"className":1909,"code":11126,"language":1911,"meta":1912,"style":1912},"condition: spook.is_at_target_temperature\ntarget:\n  floor_id: upstairs\noptions:\n  behavior: all\n  tolerance: 0.5\n",[1742,11128,11129,11137,11143,11151,11157,11167],{"__ignoreMap":1912},[1916,11130,11131,11133,11135],{"class":1918,"line":215},[1916,11132,2253],{"class":1921},[1916,11134,1925],{"class":1924},[1916,11136,11106],{"class":1928},[1916,11138,11139,11141],{"class":1918,"line":194},[1916,11140,3671],{"class":1921},[1916,11142,2343],{"class":1924},[1916,11144,11145,11147,11149],{"class":1918,"line":29},[1916,11146,5563],{"class":1921},[1916,11148,1925],{"class":1924},[1916,11150,5568],{"class":1928},[1916,11152,11153,11155],{"class":1918,"line":42},[1916,11154,3228],{"class":1921},[1916,11156,2343],{"class":1924},[1916,11158,11159,11162,11164],{"class":1918,"line":118},[1916,11160,11161],{"class":1921},"  behavior",[1916,11163,1925],{"class":1924},[1916,11165,11166],{"class":1928}," all\n",[1916,11168,11169,11171,11173],{"class":1918,"line":53},[1916,11170,5579],{"class":1921},[1916,11172,1925],{"class":1924},[1916,11174,5584],{"class":4875},[1799,11176,11177],{"icon":2655,"label":2656},[2658,11178,11179,11182,11188,11191],{},[1756,11180,11181],{},"关着的设备不算达到目标：它没在朝目标努力。",[1756,11183,11184,11185,11187],{},"不可用的设备会被排除，和 Home Assistant 自己的条件一样。没有剩下可询问的设备时，它不通过，",[1742,11186,6710],{}," 也一样：恒温器不可用的浴室，不能算已知是暖和的。",[1756,11189,11190],{},"不报告当前温度的热水器（很多都不报告），永远不算达到目标。",[1756,11192,11193,11194,11196],{},"还没有 ",[1742,11195,3617],{}," 选项。Home Assistant 自己的实体条件有。要在重启后也正确，它需要记录器里的历史，而这还没做。",[1731,11198,10117],{"id":11199},"run-allowance-left",[1718,11201,11202],{},"在这个自动化还有剩余运行次数时通过。",[1718,11204,6141,11205,11208],{},[1788,11206,10068],{"href":11207},"#cooldown","相对应：那个把运行隔开，这个限制运行有多少次。适合用在偶尔一次没问题、但一天五十次就不行的事情上，比如关于一扇老是被打开的门的通知。",[1718,11210,11211],{},"时间窗口是滚动的。一天限五次，意味着任意二十四小时内不超过五次运行，而不是两个午夜之间五次，所以随着最早的那次运行滑出时间窗口，配额会一点一点地回来。",[1718,11213,11214],{},[1749,11215,1751],{},[1753,11217,11218,11224,11231,11239,11249],{},[1756,11219,2774,11220,2741,11222,1762],{},[1749,11221,9659],{},[1749,11223,9663],{},[1756,11225,1765,11226,2783,11229,1762],{},[1749,11227,11228],{},"运行配额",[1749,11230,10117],{},[1756,11232,3522,11233,11236,11237,1762],{},[1749,11234,11235],{},"上限","设为允许的运行次数，比如 ",[1742,11238,9015],{},[1756,11240,3522,11241,11244,11245,11248],{},[1749,11242,11243],{},"时间段","设为计数的时间窗口，比如 ",[1742,11246,11247],{},"24:00:00"," 表示一天。",[1756,11250,778,11251,1762],{},[1749,11252,1778],{},[1780,11254,11257],{"alt":11255,"name":11256},"自动化编辑器中选中的剩余运行配额条件，设为每小时三次。","condition-quota",[1718,11258,11259],{},"不管门铃响多少次，每小时最多三次。",[1796,11261,11262,11356,11446],{},[1799,11263,11264,11299,11353],{"icon":1801,"label":1802},[1804,11265,11266,11272],{},[1807,11267,11268],{},[1810,11269,11270],{},[1813,11271,9729],{"colspan":194},[1817,11273,11274,11282,11291],{},[1810,11275,11276,11280],{},[1822,11277,11278],{},[1825,11279,968],{"to":2253},[1822,11281,10117],{},[1810,11283,11284,11286],{},[1822,11285,9744],{},[1822,11287,11288],{},[1742,11289,11290],{},"spook.quota",[1810,11292,11293,11297],{},[1822,11294,11295],{},[1825,11296,1873],{"to":1872},[1822,11298,9757],{},[1804,11300,11301,11317],{},[1807,11302,11303,11307],{},[1810,11304,11305],{},[1813,11306,9766],{"colspan":42},[1810,11308,11309,11311,11313,11315],{},[1813,11310,2235],{},[1813,11312,2238],{},[1813,11314,2241],{},[1813,11316,2244],{},[1817,11318,11319,11336],{},[1810,11320,11321,11326,11330,11332],{},[1822,11322,11323],{},[1742,11324,11325],{},"limit",[1822,11327,11328],{},[1825,11329,4801],{"to":4800},[1822,11331,2260],{},[1822,11333,11334],{},[1742,11335,9015],{},[1810,11337,11338,11343,11347,11349],{},[1822,11339,11340],{},[1742,11341,11342],{},"period",[1822,11344,11345],{},[1825,11346,2276],{"to":2275},[1822,11348,2260],{},[1822,11350,11351],{},[1742,11352,11247],{},[1718,11354,11355],{},"只计算真正运行了的次数。条件拒绝了这次运行的自动化，Home Assistant 不会通告，所以被别的东西拦下的尝试不花配额。",[1799,11357,11358,11361,11403,11406],{"icon":1901,"label":9805},[1718,11359,11360],{},"任意二十四小时内最多运行五次：",[1907,11362,11364],{"className":1909,"code":11363,"language":1911,"meta":1912,"style":1912},"condition: spook.quota\noptions:\n  limit: 5\n  period: \"24:00:00\"\n",[1742,11365,11366,11375,11381,11390],{"__ignoreMap":1912},[1916,11367,11368,11370,11372],{"class":1918,"line":215},[1916,11369,2253],{"class":1921},[1916,11371,1925],{"class":1924},[1916,11373,11374],{"class":1928}," spook.quota\n",[1916,11376,11377,11379],{"class":1918,"line":194},[1916,11378,3228],{"class":1921},[1916,11380,2343],{"class":1924},[1916,11382,11383,11386,11388],{"class":1918,"line":29},[1916,11384,11385],{"class":1921},"  limit",[1916,11387,1925],{"class":1924},[1916,11389,9211],{"class":4875},[1916,11391,11392,11395,11397,11399,11401],{"class":1918,"line":42},[1916,11393,11394],{"class":1921},"  period",[1916,11396,1925],{"class":1924},[1916,11398,2380],{"class":1924},[1916,11400,11247],{"class":1928},[1916,11402,2386],{"class":1924},[1718,11404,11405],{},"一小时两次，不能更多：",[1907,11407,11409],{"className":1909,"code":11408,"language":1911,"meta":1912,"style":1912},"condition: spook.quota\noptions:\n  limit: 2\n  period: \"01:00:00\"\n",[1742,11410,11411,11419,11425,11434],{"__ignoreMap":1912},[1916,11412,11413,11415,11417],{"class":1918,"line":215},[1916,11414,2253],{"class":1921},[1916,11416,1925],{"class":1924},[1916,11418,11374],{"class":1928},[1916,11420,11421,11423],{"class":1918,"line":194},[1916,11422,3228],{"class":1921},[1916,11424,2343],{"class":1924},[1916,11426,11427,11429,11431],{"class":1918,"line":29},[1916,11428,11385],{"class":1921},[1916,11430,1925],{"class":1924},[1916,11432,11433],{"class":4875}," 2\n",[1916,11435,11436,11438,11440,11442,11444],{"class":1918,"line":42},[1916,11437,11394],{"class":1921},[1916,11439,1925],{"class":1924},[1916,11441,2380],{"class":1924},[1916,11443,4010],{"class":1928},[1916,11445,2386],{"class":1924},[1799,11447,11448],{"icon":2655,"label":2656},[2658,11449,11450,11453,11456,11459,11462,11465],{},[1756,11451,11452],{},"重启后计数重新开始。Spook 只在运行期间记住运行次数，所以重启会交还满额的配额。",[1756,11454,11455],{},"上限不能超过 64。Spook 为每个自动化保存最近 64 次运行，更大的上限需要的比这更多。",[1756,11457,11458],{},"时间段不能超过 366 天。反正重启会清空计数，所以超过一年的配额不会可靠。",[1756,11460,11461],{},"只适用于自动化。脚本是故意排除的：Home Assistant 在决定是否允许之前就会通告脚本运行，所以一次因为已经在运行而被拒绝的调用，会为一次根本没发生的运行花掉配额。在自动化之外的任何地方检查的条件，没有可以计数的对象，会通过。",[1756,11463,11464],{},"只跟踪最近运行过的 256 个自动化。超出之后，最久没用的那个会被忘掉，这会交还它的配额。一般的家庭不会到这个数，但它是个限制。",[1756,11466,11467],{},"发出询问的这次运行不算在自己头上。放在动作里的条件，是在运行已经开始之后检查的，所以如果不这样，上限为一会拒绝每一次运行。",[1731,11469,11471],{"id":11470},"entity-is-available","实体可用",[1718,11473,11474],{},"在一个实体可以对话时通过。",[1718,11476,11477,11478,11480,11481,1762],{},"一个不总是通电的音箱，一个时有时无的智能插座：在让它们做任何事之前，你想知道它们在不在。任何状态都算，包括 ",[1742,11479,2383],{},"，除了不可用和未知。没有这个条件的话，就得在一个列出这两种状态的状态条件外面套一个",[1749,11482,9923],{},[1718,11484,11485],{},[1749,11486,1751],{},[1753,11488,11489,11495,11502,11507,11512],{},[1756,11490,2774,11491,2741,11493,1762],{},[1749,11492,9659],{},[1749,11494,9663],{},[1756,11496,1765,11497,2783,11500,1762],{},[1749,11498,11499],{},"可用",[1749,11501,11471],{},[1756,11503,2110,11504,11506],{},[1749,11505,2790],{},"下选择要询问的实体，或者一个设备、区域、楼层或标签。",[1756,11508,10945,11509,11511],{},[1749,11510,6168],{},"说明是一个就够了，还是必须全部在。",[1756,11513,778,11514,1762],{},[1749,11515,1778],{},[1780,11517,11520],{"alt":11518,"name":11519},"自动化编辑器中选中的实体可用条件，检查厨房音箱。","condition-is-available",[1718,11521,11522],{},"只在厨房音箱在线、能听见的时候。",[1796,11524,11525,11619,11698],{},[1799,11526,11527,11572,11610],{"icon":1801,"label":1802},[1804,11528,11529,11535],{},[1807,11530,11531],{},[1810,11532,11533],{},[1813,11534,9729],{"colspan":194},[1817,11536,11537,11543,11552,11564],{},[1810,11538,11539,11541],{},[1822,11540,968],{},[1822,11542,11471],{},[1810,11544,11545,11547],{},[1822,11546,9744],{},[1822,11548,11549],{},[1742,11550,11551],{},"spook.is_available",[1810,11553,11554,11556],{},[1822,11555,2790],{},[1822,11557,6205,11558,2690,11560,2690,11562,3582],{},[1825,11559,2852],{"to":2851},[1825,11561,2856],{"to":2855},[1825,11563,2860],{"to":2859},[1810,11565,11566,11570],{},[1822,11567,11568],{},[1825,11569,1873],{"to":1872},[1822,11571,9757],{},[1804,11573,11574,11590],{},[1807,11575,11576,11580],{},[1810,11577,11578],{},[1813,11579,9766],{"colspan":42},[1810,11581,11582,11584,11586,11588],{},[1813,11583,2235],{},[1813,11585,2238],{},[1813,11587,2241],{},[1813,11589,2244],{},[1817,11591,11592],{},[1810,11593,11594,11598,11602,11604],{},[1822,11595,11596],{},[1742,11597,6541],{},[1822,11599,11600],{},[1825,11601,2276],{"to":2275},[1822,11603,1854],{},[1822,11605,11606,5473,11608],{},[1742,11607,11052],{},[1742,11609,6710],{},[1718,11611,11612,11613,11615,11616,11618],{},"有多个实体时，",[1742,11614,11052],{}," 在其中一个在时通过，",[1742,11617,6710],{}," 在每一个都在时通过。",[1799,11620,11621,11624,11653,11656],{"icon":1901,"label":9805},[1718,11622,11623],{},"只在浴室音箱连着网络时：",[1907,11625,11627],{"className":1909,"code":11626,"language":1911,"meta":1912,"style":1912},"condition: spook.is_available\ntarget:\n  entity_id: media_player.bathroom\n",[1742,11628,11629,11638,11644],{"__ignoreMap":1912},[1916,11630,11631,11633,11635],{"class":1918,"line":215},[1916,11632,2253],{"class":1921},[1916,11634,1925],{"class":1924},[1916,11636,11637],{"class":1928}," spook.is_available\n",[1916,11639,11640,11642],{"class":1918,"line":194},[1916,11641,3671],{"class":1921},[1916,11643,2343],{"class":1924},[1916,11645,11646,11648,11650],{"class":1918,"line":29},[1916,11647,3729],{"class":1921},[1916,11649,1925],{"class":1924},[1916,11651,11652],{"class":1928}," media_player.bathroom\n",[1718,11654,11655],{},"客厅里的一切都在：",[1907,11657,11659],{"className":1909,"code":11658,"language":1911,"meta":1912,"style":1912},"condition: spook.is_available\ntarget:\n  area_id: living_room\noptions:\n  behavior: all\n",[1742,11660,11661,11669,11675,11684,11690],{"__ignoreMap":1912},[1916,11662,11663,11665,11667],{"class":1918,"line":215},[1916,11664,2253],{"class":1921},[1916,11666,1925],{"class":1924},[1916,11668,11637],{"class":1928},[1916,11670,11671,11673],{"class":1918,"line":194},[1916,11672,3671],{"class":1921},[1916,11674,2343],{"class":1924},[1916,11676,11677,11679,11681],{"class":1918,"line":29},[1916,11678,3678],{"class":1921},[1916,11680,1925],{"class":1924},[1916,11682,11683],{"class":1928}," living_room\n",[1916,11685,11686,11688],{"class":1918,"line":42},[1916,11687,3228],{"class":1921},[1916,11689,2343],{"class":1924},[1916,11691,11692,11694,11696],{"class":1918,"line":118},[1916,11693,11161],{"class":1921},[1916,11695,1925],{"class":1924},[1916,11697,11166],{"class":1928},[1799,11699,11700],{"icon":2655,"label":2656},[2658,11701,11702,11705,11708,11714],{},[1756,11703,11704],{},"直接写出、但根本不存在的实体，不算可用。",[1756,11706,11707],{},"只是随着设备、区域、楼层或标签一起带进来的已禁用实体会被排除：它不应该让整个房间永远凑不齐。已启用但没有状态（因为它的集成没有加载）的实体，不算可用。",[1756,11709,11710,11711,11713],{},"没有剩下可询问的东西时，它不通过，",[1742,11712,6710],{}," 也一样。",[1756,11715,2722,11716,11718,11719,11721,11722,1762,11724,11727],{},[1742,11717,3617],{}," 选项。要对一个离开了一段时间的实体做出反应，用 Home Assistant 自己的状态触发条件就行：到 ",[1742,11720,9140],{},"，加一个 ",[1742,11723,3617],{},[1788,11725,3487],{"href":11726},"#entity-came-back","会在它经过这样的离开后回来时触发。",[11729,11730,11731],"style",{},"html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":1912,"searchDepth":194,"depth":194,"links":11733},[11734,11739,11764],{"id":90,"depth":194,"text":955,"children":11735},[11736,11737,11738],{"id":1733,"depth":29,"text":1734},{"id":1932,"depth":29,"text":1933},{"id":2070,"depth":29,"text":2071},{"id":2734,"depth":194,"text":980,"children":11740},[11741,11742,11743,11744,11745,11746,11747,11748,11749,11750,11751,11752,11753,11754,11755,11756,11757,11758,11759,11760,11761,11762,11763],{"id":2755,"depth":29,"text":2756},{"id":3030,"depth":29,"text":3031},{"id":3315,"depth":29,"text":3316},{"id":3486,"depth":29,"text":3487},{"id":3782,"depth":29,"text":3783},{"id":3970,"depth":29,"text":3971},{"id":4247,"depth":29,"text":4248},{"id":4383,"depth":29,"text":4384},{"id":4671,"depth":29,"text":4672},{"id":4895,"depth":29,"text":4896},{"id":5162,"depth":29,"text":5163},{"id":5330,"depth":29,"text":5331},{"id":5606,"depth":29,"text":5607},{"id":5864,"depth":29,"text":5865},{"id":6066,"depth":29,"text":6067},{"id":6913,"depth":29,"text":6914},{"id":7086,"depth":29,"text":7087},{"id":7529,"depth":29,"text":7530},{"id":7896,"depth":29,"text":7103},{"id":8359,"depth":29,"text":8360},{"id":8672,"depth":29,"text":7588},{"id":8977,"depth":29,"text":8978},{"id":9303,"depth":29,"text":8533},{"id":2945,"depth":194,"text":968,"children":11765},[11766,11767,11768,11769,11770,11771,11772,11773,11774],{"id":9673,"depth":29,"text":2810},{"id":9905,"depth":29,"text":9906},{"id":2689,"depth":29,"text":10068},{"id":10291,"depth":29,"text":10292},{"id":10451,"depth":29,"text":10452},{"id":10667,"depth":29,"text":10668},{"id":10909,"depth":29,"text":10910},{"id":11199,"depth":29,"text":10117},{"id":11470,"depth":29,"text":11471},"md",{"subtitle":11777,"offers":11778,"counts":11779,"repairs":11780,"sections":29},"没用的、好玩的，还有意外好用的，都在这里。🤡",[90],{"actions":29},[],{"title":84,"description":85},"hVPZ6jpHXgNQX1x3R9mu0hfNUQZQy9iUj2OYt5U0BJM",1795717151409,"88e67443-85a8-4de6-b8fb-10c47bf925d8"]