[{"data":1,"prerenderedAt":3599,"buildId":3600},["ShallowReactive",2],{"$frh4y29kg23n2":3,"docs-items-zh-Hans":9,"spook-counts":1193,"zh-Hans:\u002Fautomation":1712,"zh-Hans:modified:04.enhanced-integrations\u002F03.automation":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":269,"body":1714,"description":270,"extension":3572,"links":13,"meta":3573,"navigation":15,"path":268,"reference":13,"seo":3597,"stem":271,"__hash__":3598},"docs_zh_hans\u002F04.enhanced-integrations\u002F03.automation.md",{"type":1715,"value":1716,"toc":3549},"minimark",[1717,1731,1734,1742,1745,1748,1753,1756,1759,1762,1771,1774,1777,1783,1826,1833,1843,2227,2230,2233,2240,2243,2246,2250,2282,2288,2297,2523,2525,2532,2538,2541,2548,2551,2554,2561,2567,2602,2605,2612,2617,2653,2656,2670,2675,2831,2834,2837,2843,2848,2865,2868,2876,2881,2894,2897,2900,2904,2912,2950,2953,2956,2961,2971,2974,2977,2982,3000,3025,3028,3031,3036,3065,3068,3071,3076,3100,3103,3106,3111,3127,3130,3133,3138,3148,3151,3154,3159,3249,3252,3264,3279,3456,3459,3462,3467,3545],[1718,1719,1720,1721,1725,1726,1730],"p",{},"自动化是 ",[1722,1723,473],"term",{"to":1724},"home assistant"," 的心脏：它把你所有的",[1722,1727,1729],{"to":1728},"integration","集成","粘在一起，让你的家变得智能。",[1718,1732,1733],{},"停止工作的自动化通常一声不吭。Spook 会告诉你：自动化用到了已经不存在的东西时，它会创建一条修复。它还添加了两个动作，用于自动化应该暂时关闭或暂时启用的时候。",[1735,1736,1739],"screenshot",{"alt":1737,"name":1738},"Spook 创建的一条修复，列出了一个自动化用到的、已经不存在的实体。","repair-unknown-entities",[1718,1740,1741],{},"Spook 发现一个自动化用到了不存在的实体。",[1743,1744,955],"h2",{"id":90},[1718,1746,1747],{},"Spook 为自动化添加了两个动作。在任何可以添加动作的地方都能找到它们，带有 👻 标记。",[1749,1750,1752],"h3",{"id":1751},"snooze","打盹",[1718,1754,1755],{},"把一个自动化关闭一段时间，时间到了再把它打开。",[1718,1757,1758],{},"想让一个自动化停一个小时，你会把它关掉。然后它就一直关着，直到有人发现。常见的变通办法是一个辅助元素实体，再加第二个自动化把第一个重新打开。",[1718,1760,1761],{},"打盹用一个动作就做到了。它在 Home Assistant 重启后依然有效，因为 Spook 会保存这个自动化该回来的时间。",[1718,1763,1764,1765,1770],{},"反过来，让一个自动化暂时保持启用，就用",[1766,1767,1769],"a",{"href":1768},"#turn-on-for","定时启用","。",[1718,1772,1773],{},"你自己把自动化重新打开，打盹就取消了。",[1718,1775,1776],{},"自动化可以让自己打盹：一种简单的说法，意思是“接下来一个小时别再来了”。打盹会阻止自动化再次启动。它不会停止发出请求的这一次运行，所以后面的步骤照样执行。",[1718,1778,1779],{},[1780,1781,1782],"strong",{},"使用方法",[1784,1785,1786,1793,1802,1809,1821],"ol",{},[1787,1788,1789,1790,1770],"li",{},"打开要执行打盹的自动化或脚本，选择",[1780,1791,1792],{},"添加动作",[1787,1794,1795,1796,1798,1799,1770],{},"搜索",[1780,1797,1752],{},"，选择",[1780,1800,1801],{},"自动化: 打盹 👻",[1787,1803,1804,1805,1808],{},"在",[1780,1806,1807],{},"目标","下选择要打盹的对象：一个自动化、几个，或者某个区域里的所有自动化。",[1787,1810,1811,1812,1815,1816,1820],{},"把",[1780,1813,1814],{},"持续时间","设为它应该关闭多久，比如 ",[1817,1818,1819],"code",{},"01:00:00"," 表示一小时。",[1787,1822,778,1823,1770],{},[1780,1824,1825],{},"保存",[1735,1827,1830],{"alt":1828,"name":1829},"添加动作对话框，搜索打盹，自动化: 打盹 👻 被框了出来。","action-snooze",[1718,1831,1832],{},"第 2 步：搜索打盹，选择带 👻 的那个动作。",[1718,1834,1835,1836,1842],{},"只想看看它怎么工作？",[1766,1837,1841],{"href":1838,"rel":1839},"https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fdeveloper_call_service\u002F?service=automation.snooze",[1840],"nofollow","试试这个动作","会在你的 Home Assistant 中打开它，可以直接运行一次。",[1844,1845,1846,1994,2211],"accordion",{},[1847,1848,1851,1949],"accordion-item",{"icon":1849,"label":1850},"i-mdi-cog-outline","技术细节",[1852,1853,1854,1864],"table",{},[1855,1856,1857],"thead",{},[1858,1859,1860],"tr",{},[1861,1862,1863],"th",{"colspan":194},"动作属性",[1865,1866,1867,1877,1890,1905,1916,1927],"tbody",{},[1858,1868,1869,1875],{},[1870,1871,1872],"td",{},[1722,1873,955],{"to":1874},"action",[1870,1876,1801],{},[1858,1878,1879,1885],{},[1870,1880,1881],{},[1722,1882,1884],{"to":1883},"action name","动作名称",[1870,1886,1887],{},[1817,1888,1889],{},"automation.snooze",[1858,1891,1892,1898],{},[1870,1893,1894],{},[1722,1895,1897],{"to":1896},"action targets","动作目标",[1870,1899,1900,1901,1904],{},"是，",[1817,1902,1903],{},"automation"," 实体",[1858,1906,1907,1913],{},[1870,1908,1909],{},[1722,1910,1912],{"to":1911},"action response","动作响应",[1870,1914,1915],{},"无响应",[1858,1917,1918,1924],{},[1870,1919,1920],{},[1722,1921,1923],{"to":1922},"influence of spook","Spook 的作用",[1870,1925,1926],{},"新增动作",[1858,1928,1929,1935],{},[1870,1930,1931],{},[1722,1932,1934],{"to":1933},"tools","工具",[1870,1936,1937,1940,1941],{},[1766,1938,1841],{"href":1838,"rel":1939},[1840]," ",[1766,1942,1944],{"href":1838,"rel":1943},[1840],[1945,1946],"img",{"alt":1947,"src":1948},"打开你的 Home Assistant 实例，显示选中了指定动作的动作工具。","https:\u002F\u002Fmy.home-assistant.io\u002Fbadges\u002Fdeveloper_call_service.svg",[1852,1950,1951,1972],{},[1855,1952,1953,1958],{},[1858,1954,1955],{},[1861,1956,1957],{"colspan":42},"动作数据参数",[1858,1959,1960,1963,1966,1969],{},[1861,1961,1962],{},"属性",[1861,1964,1965],{},"类型",[1861,1967,1968],{},"必填",[1861,1970,1971],{},"默认值 \u002F 示例",[1865,1973,1974],{},[1858,1975,1976,1981,1987,1990],{},[1870,1977,1978],{},[1817,1979,1980],{},"duration",[1870,1982,1983],{},[1722,1984,1986],{"to":1985},"string","字符串",[1870,1988,1989],{},"是",[1870,1991,1992],{},[1817,1993,1819],{},[1847,1995,1998,2001,2065,2068,2116,2119],{"icon":1996,"label":1997},"i-mdi-code-braces","YAML 动作示例",[1718,1999,2000],{},"让门铃安静一小时：",[2002,2003,2008],"pre",{"className":2004,"code":2005,"language":2006,"meta":2007,"style":2007},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","action: automation.snooze\ntarget:\n  entity_id: automation.doorbell_announce\ndata:\n  duration: \"01:00:00\"\n","yaml","",[1817,2009,2010,2025,2033,2043,2050],{"__ignoreMap":2007},[2011,2012,2014,2017,2021],"span",{"class":2013,"line":215},"line",[2011,2015,1874],{"class":2016},"swJcz",[2011,2018,2020],{"class":2019},"sMK4o",":",[2011,2022,2024],{"class":2023},"sfazB"," automation.snooze\n",[2011,2026,2027,2030],{"class":2013,"line":194},[2011,2028,2029],{"class":2016},"target",[2011,2031,2032],{"class":2019},":\n",[2011,2034,2035,2038,2040],{"class":2013,"line":29},[2011,2036,2037],{"class":2016},"  entity_id",[2011,2039,2020],{"class":2019},[2011,2041,2042],{"class":2023}," automation.doorbell_announce\n",[2011,2044,2045,2048],{"class":2013,"line":42},[2011,2046,2047],{"class":2016},"data",[2011,2049,2032],{"class":2019},[2011,2051,2052,2055,2057,2060,2062],{"class":2013,"line":118},[2011,2053,2054],{"class":2016},"  duration",[2011,2056,2020],{"class":2019},[2011,2058,2059],{"class":2019}," \"",[2011,2061,1819],{"class":2023},[2011,2063,2064],{"class":2019},"\"\n",[1718,2066,2067],{},"卧室里的所有自动化，一直到早上：",[2002,2069,2071],{"className":2004,"code":2070,"language":2006,"meta":2007,"style":2007},"action: automation.snooze\ntarget:\n  area_id: bedroom\ndata:\n  duration: \"08:00:00\"\n",[1817,2072,2073,2081,2087,2097,2103],{"__ignoreMap":2007},[2011,2074,2075,2077,2079],{"class":2013,"line":215},[2011,2076,1874],{"class":2016},[2011,2078,2020],{"class":2019},[2011,2080,2024],{"class":2023},[2011,2082,2083,2085],{"class":2013,"line":194},[2011,2084,2029],{"class":2016},[2011,2086,2032],{"class":2019},[2011,2088,2089,2092,2094],{"class":2013,"line":29},[2011,2090,2091],{"class":2016},"  area_id",[2011,2093,2020],{"class":2019},[2011,2095,2096],{"class":2023}," bedroom\n",[2011,2098,2099,2101],{"class":2013,"line":42},[2011,2100,2047],{"class":2016},[2011,2102,2032],{"class":2019},[2011,2104,2105,2107,2109,2111,2114],{"class":2013,"line":118},[2011,2106,2054],{"class":2016},[2011,2108,2020],{"class":2019},[2011,2110,2059],{"class":2019},[2011,2112,2113],{"class":2023},"08:00:00",[2011,2115,2064],{"class":2019},[1718,2117,2118],{},"告诉我泳池热好了，然后十二个小时内别再管它：",[2002,2120,2122],{"className":2004,"code":2121,"language":2006,"meta":2007,"style":2007},"actions:\n  - action: notify.mobile_app_phone\n    data:\n      message: \"The pool is {{ states('sensor.pool_temperature') }} degrees\"\n  - action: automation.snooze\n    target:\n      entity_id: automation.pool_temperature_notification\n    data:\n      duration: \"12:00:00\"\n",[1817,2123,2124,2130,2143,2150,2164,2174,2181,2191,2197],{"__ignoreMap":2007},[2011,2125,2126,2128],{"class":2013,"line":215},[2011,2127,90],{"class":2016},[2011,2129,2032],{"class":2019},[2011,2131,2132,2135,2138,2140],{"class":2013,"line":194},[2011,2133,2134],{"class":2019},"  -",[2011,2136,2137],{"class":2016}," action",[2011,2139,2020],{"class":2019},[2011,2141,2142],{"class":2023}," notify.mobile_app_phone\n",[2011,2144,2145,2148],{"class":2013,"line":29},[2011,2146,2147],{"class":2016},"    data",[2011,2149,2032],{"class":2019},[2011,2151,2152,2155,2157,2159,2162],{"class":2013,"line":42},[2011,2153,2154],{"class":2016},"      message",[2011,2156,2020],{"class":2019},[2011,2158,2059],{"class":2019},[2011,2160,2161],{"class":2023},"The pool is {{ states('sensor.pool_temperature') }} degrees",[2011,2163,2064],{"class":2019},[2011,2165,2166,2168,2170,2172],{"class":2013,"line":118},[2011,2167,2134],{"class":2019},[2011,2169,2137],{"class":2016},[2011,2171,2020],{"class":2019},[2011,2173,2024],{"class":2023},[2011,2175,2176,2179],{"class":2013,"line":53},[2011,2177,2178],{"class":2016},"    target",[2011,2180,2032],{"class":2019},[2011,2182,2183,2186,2188],{"class":2013,"line":578},[2011,2184,2185],{"class":2016},"      entity_id",[2011,2187,2020],{"class":2019},[2011,2189,2190],{"class":2023}," automation.pool_temperature_notification\n",[2011,2192,2193,2195],{"class":2013,"line":150},[2011,2194,2147],{"class":2016},[2011,2196,2032],{"class":2019},[2011,2198,2199,2202,2204,2206,2209],{"class":2013,"line":129},[2011,2200,2201],{"class":2016},"      duration",[2011,2203,2020],{"class":2019},[2011,2205,2059],{"class":2019},[2011,2207,2208],{"class":2023},"12:00:00",[2011,2210,2064],{"class":2019},[1847,2212,2215],{"icon":2213,"label":2214},"i-mdi-alert-outline","已知限制",[2216,2217,2218,2221,2224],"ul",{},[1787,2219,2220],{},"已经关闭的自动化不受影响，Spook 会在日志里说明。叫醒它会打开一个你关掉的东西。",[1787,2222,2223],{},"让已经在打盹的自动化再打盹，会改变它醒来的时间。不会开始第二次打盹。",[1787,2225,2226],{},"自动化在打盹期间是关闭的，所以任何读取它状态的东西看到的就是关闭。在开和关之间没有第三种状态。",[1749,2228,1769],{"id":2229},"turn-on-for",[1718,2231,2232],{},"把一个自动化打开一段时间，时间到了再把它关掉。",[1718,2234,2235,2236,2239],{},"和",[1766,2237,1752],{"href":2238},"#snooze","反过来。打开的自动化会一直开着，所以“就今晚”需要有人记得。就像你十二月打开、到三月才又想起来的访客模式。",[1718,2241,2242],{},"定时启用用一个动作就做到了。它在 Home Assistant 重启后同样有效，因为 Spook 会保存这个自动化该关回去的时间。",[1718,2244,2245],{},"你自己把自动化关掉，就会取消这次定时，就像打开自动化会取消打盹一样。",[1718,2247,2248],{},[1780,2249,1782],{},[1784,2251,2252,2257,2264,2269,2278],{},[1787,2253,2254,2255,1770],{},"打开要做这件事的自动化或脚本，选择",[1780,2256,1792],{},[1787,2258,1795,2259,1798,2261,1770],{},[1780,2260,1769],{},[1780,2262,2263],{},"自动化: 定时启用 👻",[1787,2265,1804,2266,2268],{},[1780,2267,1807],{},"下选择要打开的自动化。",[1787,2270,1811,2271,2273,2274,2277],{},[1780,2272,1814],{},"设为它们应该开多久，比如 ",[1817,2275,2276],{},"48:00:00"," 表示一个周末。",[1787,2279,778,2280,1770],{},[1780,2281,1825],{},[1718,2283,1835,2284,1842],{},[1766,2285,1841],{"href":2286,"rel":2287},"https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fdeveloper_call_service\u002F?service=automation.turn_on_for",[1840],[1735,2289,2292],{"alt":2290,"name":2291},"动作工具，选中了定时启用 👻，并填好了一个示例。","action-automation-turn-on-for",[1718,2293,2294,2296],{},[1780,2295,1841],{},"打开的界面，填好了一个示例。",[1844,2298,2299,2408,2510],{},[1847,2300,2301,2372],{"icon":1849,"label":1850},[1852,2302,2303,2309],{},[1855,2304,2305],{},[1858,2306,2307],{},[1861,2308,1863],{"colspan":194},[1865,2310,2311,2319,2330,2340,2348,2356],{},[1858,2312,2313,2317],{},[1870,2314,2315],{},[1722,2316,955],{"to":1874},[1870,2318,2263],{},[1858,2320,2321,2325],{},[1870,2322,2323],{},[1722,2324,1884],{"to":1883},[1870,2326,2327],{},[1817,2328,2329],{},"automation.turn_on_for",[1858,2331,2332,2336],{},[1870,2333,2334],{},[1722,2335,1897],{"to":1896},[1870,2337,1900,2338,1904],{},[1817,2339,1903],{},[1858,2341,2342,2346],{},[1870,2343,2344],{},[1722,2345,1912],{"to":1911},[1870,2347,1915],{},[1858,2349,2350,2354],{},[1870,2351,2352],{},[1722,2353,1923],{"to":1922},[1870,2355,1926],{},[1858,2357,2358,2362],{},[1870,2359,2360],{},[1722,2361,1934],{"to":1933},[1870,2363,2364,1940,2367],{},[1766,2365,1841],{"href":2286,"rel":2366},[1840],[1766,2368,2370],{"href":2286,"rel":2369},[1840],[1945,2371],{"alt":1947,"src":1948},[1852,2373,2374,2390],{},[1855,2375,2376,2380],{},[1858,2377,2378],{},[1861,2379,1957],{"colspan":42},[1858,2381,2382,2384,2386,2388],{},[1861,2383,1962],{},[1861,2385,1965],{},[1861,2387,1968],{},[1861,2389,1971],{},[1865,2391,2392],{},[1858,2393,2394,2398,2402,2404],{},[1870,2395,2396],{},[1817,2397,1980],{},[1870,2399,2400],{},[1722,2401,1986],{"to":1985},[1870,2403,1989],{},[1870,2405,2406],{},[1817,2407,1819],{},[1847,2409,2410,2413,2460,2463],{"icon":1996,"label":1997},[1718,2411,2412],{},"访客模式，开一个周末：",[2002,2414,2416],{"className":2004,"code":2415,"language":2006,"meta":2007,"style":2007},"action: automation.turn_on_for\ntarget:\n  entity_id: automation.guest_mode\ndata:\n  duration: \"48:00:00\"\n",[1817,2417,2418,2427,2433,2442,2448],{"__ignoreMap":2007},[2011,2419,2420,2422,2424],{"class":2013,"line":215},[2011,2421,1874],{"class":2016},[2011,2423,2020],{"class":2019},[2011,2425,2426],{"class":2023}," automation.turn_on_for\n",[2011,2428,2429,2431],{"class":2013,"line":194},[2011,2430,2029],{"class":2016},[2011,2432,2032],{"class":2019},[2011,2434,2435,2437,2439],{"class":2013,"line":29},[2011,2436,2037],{"class":2016},[2011,2438,2020],{"class":2019},[2011,2440,2441],{"class":2023}," automation.guest_mode\n",[2011,2443,2444,2446],{"class":2013,"line":42},[2011,2445,2047],{"class":2016},[2011,2447,2032],{"class":2019},[2011,2449,2450,2452,2454,2456,2458],{"class":2013,"line":118},[2011,2451,2054],{"class":2016},[2011,2453,2020],{"class":2019},[2011,2455,2059],{"class":2019},[2011,2457,2276],{"class":2023},[2011,2459,2064],{"class":2019},[1718,2461,2462],{},"派对灯光，开到派对结束：",[2002,2464,2466],{"className":2004,"code":2465,"language":2006,"meta":2007,"style":2007},"action: automation.turn_on_for\ntarget:\n  entity_id: automation.disco_floor\ndata:\n  duration: \"04:00:00\"\n",[1817,2467,2468,2476,2482,2491,2497],{"__ignoreMap":2007},[2011,2469,2470,2472,2474],{"class":2013,"line":215},[2011,2471,1874],{"class":2016},[2011,2473,2020],{"class":2019},[2011,2475,2426],{"class":2023},[2011,2477,2478,2480],{"class":2013,"line":194},[2011,2479,2029],{"class":2016},[2011,2481,2032],{"class":2019},[2011,2483,2484,2486,2488],{"class":2013,"line":29},[2011,2485,2037],{"class":2016},[2011,2487,2020],{"class":2019},[2011,2489,2490],{"class":2023}," automation.disco_floor\n",[2011,2492,2493,2495],{"class":2013,"line":42},[2011,2494,2047],{"class":2016},[2011,2496,2032],{"class":2019},[2011,2498,2499,2501,2503,2505,2508],{"class":2013,"line":118},[2011,2500,2054],{"class":2016},[2011,2502,2020],{"class":2019},[2011,2504,2059],{"class":2019},[2011,2506,2507],{"class":2023},"04:00:00",[2011,2509,2064],{"class":2019},[1847,2511,2512],{"icon":2213,"label":2214},[2216,2513,2514,2517,2520],{},[1787,2515,2516],{},"已经打开的自动化不受影响，Spook 会在日志里说明。之后再把它关掉，会关掉一个你打开的东西。",[1787,2518,2519],{},"对已经在定时启用中的自动化再次请求，会改变它关闭的时间。不会开始第二次定时。",[1787,2521,2522],{},"自动化在定时期间是打开的，所以任何读取它状态的东西看到的就是打开。在开和关之间没有第三种状态。",[1743,2524,696],{"id":242},[1718,2526,2527,2528,2531],{},"Spook 会检查你的自动化里有没有已经没法工作的东西，并在",[1722,2529,2530],{"to":242},"修复页面","告诉你。每条修复都写明是哪个自动化，出了什么问题。",[1718,2533,2534,2535,2537],{},"修复的方法总是一样的：在修复中选择自动化的名称，修改修复指出的地方，然后保存。你保存时 Spook 会再检查一遍，并自动移除这条修复。第一次接触？跟着",[1766,2536,1149],{"href":1148},"走一遍。",[1718,2539,2540],{},"已关闭的自动化不会被检查。关闭的自动化什么都不做，所以里面的东西暂时还不会出错。它往往正是因为里面有东西坏了才被关掉的。一旦你把它重新打开，Spook 就会再检查它，并报告发现的问题。",[1718,2542,2543,2544,2547],{},"只在已禁用的步骤、触发条件或条件（",[1817,2545,2546],{},"enabled: false","）中提到的实体、设备、区域、楼层或标签也是一样。已禁用的步骤同样什么都不做，而且通常是故意搁置的。正在运行的步骤中也提到的东西，仍然会被报告。",[1749,2549,2550],{"id":279},"引用了未知的区域",[1718,2552,2553],{},"自动化以一个已经不存在的区域为目标，通常是因为这个区域被删除了或者合并到了另一个区域。用到它的步骤什么都不做。",[1735,2555,2558],{"alt":2556,"name":2557},"Spook 为一个自动化创建的修复。","repair-automation-unknown-areas",[1718,2559,2560],{},"Spook 发现一个自动化用到了不存在的区域。",[1718,2562,2563,2566],{},[1780,2564,2565],{},"怎么修复","：从修复中打开这个自动化，在用到缺失区域的那一步中选择一个存在的区域。或者删掉这一步。问题解决后，修复会自己消失。",[1844,2568,2569],{},[1847,2570,2573,2576,2599],{"icon":2571,"label":2572},"i-mdi-magnify","Spook 怎么检查",[1718,2574,2575],{},"Spook 会查看你的自动化在动作中作为目标的每个区域。这个区域不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个区域。",[1718,2577,2578,2579,2582,2583,2586,2587,2590,2591,2594,2595,2598],{},"模板也会读取，看其中的 ",[1817,2580,2581],{},"area_entities"," 和 ",[1817,2584,2585],{},"area_devices","，不管是作为函数调用还是作为过滤器。给它们一个不存在的区域，它们会返回一个空列表，而且不报错。所以区域一改名，一个以 ",[1817,2588,2589],{},"{{ area_entities('Living room') }}"," 为目标的动作就什么都不做了。Spook 查找这个值的方式和 Home Assistant 一样：区域 ID，或者区域的名称或别名，不分大小写。实体或设备 ID 也会被报告。这些函数只接受区域，所以 ",[1817,2592,2593],{},"area_entities('light.kitchen')"," 永远找不到任何东西；",[1817,2596,2597],{},"area_entities(area_id('light.kitchen'))"," 返回的是那盏灯所在区域里的东西。",[1718,2600,2601],{},"只检查模板中直接写出的值。运行时才算出来的值，比如来自变量或拼接而成的，不会被检查；以自动化自己赋予含义的名称（比如变量）调用的查找函数，也不会被检查。",[1749,2603,2604],{"id":283},"引用了未知的属性",[1718,2606,2607,2608,2611],{},"自动化等待或检查一个它的实体没有的属性，比如普通开关上的 ",[1817,2609,2610],{},"brightness","。属性是实体在状态之外附带的额外信息。这样的触发条件永远不会触发，你也不会收到任何错误。",[1718,2613,2614,2616],{},[1780,2615,2565],{},"：从修复中打开这个自动化，用一个实体确实有的属性。Spook 几乎能确定你本来想写什么时，修复会说出来。问题解决后，修复会自己消失。",[1844,2618,2619],{},[1847,2620,2621,2632,2635,2650],{"icon":2571,"label":2572},[1718,2622,2623,2624,2627,2628,2631],{},"Spook 会查看你的自动化用到的属性：状态和数值状态触发条件及条件中的 ",[1817,2625,2626],{},"attribute","，Spook 自己的状态触发条件跟随的属性，以及模板中写到的属性，比如 ",[1817,2629,2630],{},"state_attr('light.kitchen', 'brightness')","。自动化用到它的实体没有的属性时，Spook 会创建一条修复。修复会写明是哪个自动化、哪个属性、哪个实体，Spook 几乎能确定时，还会写出最可能的本意。",[1718,2633,2634],{},"等待一个永远不会出现的属性的触发条件，加载没问题，但永远不会触发。你不会收到任何错误。",[1718,2636,2637,2638,2641,2642,2645,2646,2649],{},"很多属性只是有时才出现：关着的媒体播放器会丢掉它自己的大部分属性，集成也会加上它们自己的、时有时无的属性。所以只有 Spook 在哪里都找不到某个属性时，才会报告它：实体此刻没有，Home Assistant 中这类实体也不提供，记录器记得的这个实体曾有过的属性里也没有。记录器不记录的实体，只检查那些和真实属性仅大小写不同的属性，比如 ",[1817,2639,2640],{},"Brightness","。只在运行时才算出来的属性或实体，比如来自变量的，不会被检查。当自动化给 ",[1817,2643,2644],{},"states"," 或 ",[1817,2647,2648],{},"state_attr"," 这个名称赋予了自己的含义，比如作为变量、字段或响应变量时，用到它们的模板也不会被检查。",[1718,2651,2652],{},"Spook 不会在 Home Assistant 刚启动、记录器正忙的时候检查，而是在十分钟之后。之后，在自动化重新加载完成后、有自动化被添加或删除时、实体注册表变化时、有集成加载或它的配置变化时，以及每天一次，它都会再检查一遍。实体上新出现的属性，会在下一次检查时被识别。",[1749,2654,2655],{"id":287},"引用了未知的状态",[1718,2657,2658,2659,2645,2662,2665,2666,2669],{},"自动化等待一个它的实体永远不会处于的状态，比如一盏只会是 ",[1817,2660,2661],{},"on",[1817,2663,2664],{},"off"," 的灯的 ",[1817,2667,2668],{},"On","。这样的触发条件永远不会触发，你也不会收到任何错误。",[1718,2671,2672,2674],{},[1780,2673,2565],{},"：从修复中打开这个自动化，用一个实体可能处于的状态。在编辑器中从列表里选择状态，而不是手动输入，就能避免这个问题。Spook 几乎能确定你本来想写什么时，修复会说出来。问题解决后，修复会自己消失。",[1844,2676,2677],{},[1847,2678,2679,2721,2724,2727,2733,2809,2828],{"icon":2571,"label":2572},[1718,2680,2681,2682,2685,2686,2685,2689,2582,2692,2695,2696,2699,2700,2703,2704,2685,2707,2645,2710,2713,2714,2645,2716,2665,2718,2720],{},"Spook 会查看你的自动化等待和检查的状态：状态触发条件的 ",[1817,2683,2684],{},"to","、",[1817,2687,2688],{},"from",[1817,2690,2691],{},"not_to",[1817,2693,2694],{},"not_from","，状态条件的 ",[1817,2697,2698],{},"state","，Spook 自己的状态触发条件的同样选项，以及模板中的 ",[1817,2701,2702],{},"is_state('light.kitchen', 'on')"," 和与文字比较的状态，比如 ",[1817,2705,2706],{},"states('light.kitchen') == 'on'",[1817,2708,2709],{},"states.light.kitchen.state != 'off'",[1817,2711,2712],{},"states('light.kitchen') in ['on', 'off']","。自动化用到一个它的实体永远不会处于的状态时，比如一盏只会是 ",[1817,2715,2661],{},[1817,2717,2664],{},[1817,2719,2668],{},"，Spook 会创建一条修复。修复会写明是哪个自动化、哪个状态、哪个实体，Spook 几乎能确定时，还会写出最可能的本意。",[1718,2722,2723],{},"等待一个永远不会到来的状态的触发条件，加载没问题，但永远不会触发。你不会收到任何错误。",[1718,2725,2726],{},"只检查状态是固定集合的实体：Home Assistant 自己为这类实体列出了状态的（比如灯、卷帘、锁、警戒面板或媒体播放器），或者实体此刻提供了选项的，比如选择器、下拉列表辅助元素，或者有固定取值列表的传感器。普通传感器、数字或文本可以是任何值，所以不会被检查；人员和设备追踪器的状态是地点名称，也不会被检查。实体曾经处于的一切状态也算：此刻的，以及记录器记得的。状态由集成之外设置的实体，比如通过 REST 调用或 Python 脚本设置的，也不会被检查。",[1718,2728,2729,2730,2732],{},"对于某些类型的实体，Home Assistant 自己会确保状态是集合中的一个：灯、开关、二元传感器、卷帘、锁、阀门、空调实体等等。对这些实体，和真实状态仅大小写不同的状态，比如 ",[1817,2731,2668],{},"，总是会被报告；而集合之外的其他状态，在 Spook 从记录器拿到了这个实体的全部历史时也会被报告。对于其余的实体，集合只是通常的状态，而不是所有可能的状态：用模板做的媒体播放器想处于什么状态都可以，选择器、下拉列表辅助元素或有固定取值列表的传感器在运行时也可能获得新选项。这些实体只在 Spook 拿到了全部历史时，才会报告和真实状态仅大小写不同的状态。用自己的方式算出状态的实体也是一样。",[1718,2734,2735,2736,2738,2739,2742,2743,2746,2747,2750,2751,2753,2754,2757,2758,2645,2761,2764,2765,2685,2767,2685,2769,2582,2771,2773,2774,2776,2777,2779,2780,2782,2783,2786,2787,2789,2790,2792,2793,2795,2796,2798,2799,2792,2802,2804,2805,2808],{},"有了 ",[1817,2737,2626],{},"，状态触发条件或条件等待的就是这个属性的值，这些值也会被检查，放在同一个问题里：比如恒温器的 ",[1817,2740,2741],{},"hvac_action"," 写成了 ",[1817,2744,2745],{},"Heating","，而它实际是 ",[1817,2748,2749],{},"heating","。只检查取值是固定集合的属性：Home Assistant 自己为这类实体列出了取值的（恒温器或加湿器的运行动作、传感器的设备类别、媒体播放器的重复模式等等），或者实体在另一个属性里提供了取值的，比如恒温器的风扇模式、预设模式和摆动模式，灯的效果，或者媒体播放器的音源。对于这些属性，集成给什么 Home Assistant 就写什么，所以只有和真实值仅写法不同的值才会被报告，而且只在 Spook 拿到了这个实体的全部历史时。写法不同指的是大小写，或者 YAML 把本来想写成文字的东西读成了别的：不加引号的 ",[1817,2752,2664],{}," 是布尔值 false，",[1817,2755,2756],{},"2"," 是数字，而属性里存的是文字 ",[1817,2759,2760],{},"\"off\"",[1817,2762,2763],{},"\"2\"","。这样的值会按 YAML 读到的样子显示，本来想写的文字加上引号。Spook 自己的状态触发条件在跟随属性时也按同样方式检查，只有一点不同：它会把属性里的任何值都转成文字，再和它的 ",[1817,2766,2684],{},[1817,2768,2688],{},[1817,2770,2691],{},[1817,2772,2694],{}," 的文字比较。所以在那里，大小写不同的值是笔误，比如把 ",[1817,2775,2749],{}," 写成 ",[1817,2778,2745],{},"；YAML 读成布尔值或数字、而属性从来不会有那个文字的值，也是笔误：不加引号的 ",[1817,2781,2664],{}," 会变成文字 ",[1817,2784,2785],{},"False","，而预设模式 ",[1817,2788,2664],{}," 永远不会是这个。",[1817,2791,2756],{}," 会变成 ",[1817,2794,2756],{},"，和风扇模式 ",[1817,2797,2763],{}," 的文字一样，所以那个没问题。",[1817,2800,2801],{},"1.0",[1817,2803,2801],{},"，对照 ",[1817,2806,2807],{},"\"1\""," 时不会被报告：一个数字永远不会被当作另一个数字的笔误。实体从来没有过的属性在这里不检查：那是未知属性，自动化会为它单独得到一个问题。",[1718,2810,2811,2812,2815,2816,2819,2820,2685,2822,2645,2825,2827],{},"只在运行时才算出来的状态或实体，比如来自变量或模板的，不会被检查。在模板中，只读取没有其他东西参与的比较：一旦中间有 ",[1817,2813,2814],{},"| lower"," 这样的过滤器、",[1817,2817,2818],{},"~"," 或类似的东西，被比较的就不再是状态本身了。当自动化给 ",[1817,2821,2644],{},[1817,2823,2824],{},"is_state",[1817,2826,2648],{}," 这个名称赋予了自己的含义，比如作为变量、字段或响应变量时，模板也不会因为它们而被读取。",[1718,2829,2830],{},"Spook 检查的时机和未知属性一样：Home Assistant 启动十分钟后，之后在自动化重新加载完成后、有自动化被添加或删除时、实体注册表变化时、有集成加载或它的配置变化时，以及每天一次。",[1749,2832,2833],{"id":291},"引用了未知的设备",[1718,2835,2836],{},"自动化用到了一个已经不存在的设备，通常是因为它被删除或替换了。用到它的触发条件、条件和动作都不再起作用。",[1735,2838,2840],{"alt":2556,"name":2839},"repair-automation-unknown-devices",[1718,2841,2842],{},"Spook 发现一个自动化用到了不存在的设备。",[1718,2844,2845,2847],{},[1780,2846,2565],{},"：从修复中打开这个自动化，在用到缺失设备的那一步中选择替代它的设备。或者删掉这一步。问题解决后，修复会自己消失。",[1844,2849,2850],{},[1847,2851,2852,2855],{"icon":2571,"label":2572},[1718,2853,2854],{},"Spook 会查看你的自动化用到的每个设备。这个设备不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个设备。",[1718,2856,2857,2858,2861,2862,2864],{},"只考虑形状像设备 ID 的值。这些 ID 是 Home Assistant 自己分配的，总是 32 个十六进制字符。集成可以随意用一个叫 ",[1817,2859,2860],{},"device_id"," 的字段表示它们自己的硬件，有些也确实这么做：RFLink 的 ",[1817,2863,2860],{}," 是一个协议地址。这些不是 Home Assistant 知道的设备，以后也不会是，所以 Spook 不去管它们。真正被删除的设备仍然会留下一个形状正确的 ID，所以 Spook 不会漏掉它们。",[1749,2866,2867],{"id":295},"引用了未知的集成条目",[1718,2869,2870,2871,2875],{},"自动化中的某个动作指向一个已经不存在的",[1722,2872,2874],{"to":2873},"integration entry","集成条目","：集成的一次设置，比如你的 Hue 网桥。这通常发生在你删除了一个集成又重新添加之后：看起来一样，但动作还指向旧的那个，运行时就会失败。",[1718,2877,2878,2880],{},[1780,2879,2565],{},"：从修复中打开这个自动化，在它写明的动作中重新选择集成条目。问题解决后，修复会自己消失。",[1844,2882,2883],{},[1847,2884,2885,2888,2891],{"icon":2571,"label":2572},[1718,2886,2887],{},"Spook 会查看你的自动化交给动作的集成条目。很多集成的动作会问要用它的哪个集成条目，比如 Nord Pool 的电价或 Mealie 的菜谱。自动化给它一个不存在的集成条目时，Spook 会创建一条修复。给的集成条目属于另一个集成、而不是动作要求的那个时，也是一样，这种情况发生在从另一个集成的动作复制步骤时。修复会写明是哪个自动化，以及哪些集成条目指向了不存在的地方。",[1718,2889,2890],{},"Home Assistant 只在步骤运行时才拒绝这些，所以偶尔才运行一次的自动化恰恰就在那时失败。这通常发生在一个集成被删除又重新添加之后：这样它会得到一个新的集成条目，有一个新的 ID，而每个动作还留着旧的那个。",[1718,2892,2893],{},"Spook 只查看动作自己声明接受集成条目的字段，从不因为字段的名称就去查看它。只有此刻存在的动作才会声明它们接受什么，所以未加载的集成的动作不会被检查。存在但此刻未加载的集成条目，因为被禁用或设置失败，也不会被报告：那是集成的状态，不是自动化的错误。运行时才算出来的集成条目，比如来自模板或变量的，不会被检查，已禁用的步骤也不会。",[1749,2895,2896],{"id":299},"引用了未知的实体",[1718,2898,2899],{},"自动化用到了一个已经不存在的实体，通常是因为它被重命名、替换或删除了。用到它的步骤什么都不做。",[1735,2901,2902],{"alt":1737,"name":1738},[1718,2903,1741],{},[1718,2905,2906,2908,2909,2911],{},[1780,2907,2565],{},"：从修复中打开这个自动化，在用到缺失实体的那一步中选择正确的实体。或者删掉这一步。指南",[1766,2910,1149],{"href":1148},"会带你一步步处理这一条。问题解决后，修复会自己消失。",[1844,2913,2914],{},[1847,2915,2916,2929],{"icon":2571,"label":2572},[1718,2917,2918,2919,2923,2924,2928],{},"Spook 会查看你的自动化用到的每个",[1722,2920,2922],{"to":2921},"entity","实体","。某个",[1722,2925,2927],{"to":2926},"entity id","实体标识符","不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个实体标识符。",[1718,2930,2931,2932,2934,2935,2938,2939,2941,2942,2945,2946,2949],{},"写在 ",[1817,2933,2644],{}," 后面的实体，比如 ",[1817,2936,2937],{},"states.light.kitchen.state","，如果这个 ",[1817,2940,2644],{}," 不是 Home Assistant 的，就不会被检查：模板用宏或 ",[1817,2943,2944],{},"{% set %}"," 定义了自己的版本，或者自动化给这个名称赋予了自己的含义，比如作为变量、字段或响应变量。作为过滤器使用时，比如 ",[1817,2947,2948],{},"'light.kitchen' | states","，它仍然是 Home Assistant 的，仍然会被检查。加了引号的实体标识符，不管在哪里、交给什么，都会被检查。",[1749,2951,2952],{"id":303},"引用了未知的动作",[1718,2954,2955],{},"自动化用到了一个不存在的动作，通常是因为提供它的集成被删除了。这一步运行时会失败。",[1718,2957,2958,2960],{},[1780,2959,2565],{},"：从修复中打开这个自动化，替换或删掉这一步。或者把这个动作所属的集成装回来。问题解决后，修复会自己消失。",[1844,2962,2963],{},[1847,2964,2965,2968],{"icon":2571,"label":2572},[1718,2966,2967],{},"Spook 会查看你的自动化用到的每个动作。这个动作不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个动作。",[1718,2969,2970],{},"你禁用的集成的动作不会被报告：故意关掉不等于不见了。你重新启用这个集成后，它们会照常被检查。",[1749,2972,2973],{"id":307},"未知的图标",[1718,2975,2976],{},"自动化给出了一个 Home Assistant 没有的图标，通常是因为打错了字，或者图标改了名。它设置的东西在图标的位置上会显示一块空白。",[1718,2978,2979,2981],{},[1780,2980,2565],{},"：从修复中打开这个自动化，选一个存在的图标。Spook 几乎能确定你本来想写什么时，修复会说出来。问题解决后，修复会自己消失。",[1844,2983,2984],{},[1847,2985,2986,2997],{"icon":2571,"label":2572},[1718,2987,2988,2989,2992,2993,2996],{},"Spook 会查看你的自动化中的动作给出的图标。只查看声明接受图标的动作，比如 ",[1817,2990,2991],{},"group.set","，以及 Spook 创建区域、标签或辅助元素的动作。这些动作收到一个不在 Home Assistant 自带的 Material Design Icons 中的 ",[1817,2994,2995],{},"mdi:"," 图标时，它设置的东西会在图标的位置上画出一块空白。Spook 会创建一条修复，写明是哪个自动化和哪些图标，并在几乎能确定时建议你最可能想用的图标。",[1718,2998,2999],{},"这通常发生在打错字、图标被改名或删除，或者从 Material Design Icons 网站上选了一个比 Home Assistant 自带版本更新的图标时。",[1844,3001,3002],{},[1847,3003,3004],{"icon":2213,"label":2214},[2216,3005,3006,3016,3019,3022],{},[1787,3007,3008,3009,3011,3012,3015],{},"只检查以 ",[1817,3010,2995],{}," 开头的图标。较旧的 ",[1817,3013,3014],{},"hass:"," 前缀，以及你添加的图标集（比如来自 Marketplace 的那些）中的图标，不受影响。",[1787,3017,3018],{},"本身是模板的图标不会被检查。不运行它就没法知道它最后是什么。",[1787,3020,3021],{},"已关闭的动作不会被检查：它们从不运行。",[1787,3023,3024],{},"图标列表是从 Home Assistant 安装的前端读取的。从开发版本运行的前端不在考虑范围内，没有这份列表的前端意味着什么都不检查。",[1749,3026,3027],{"id":311},"引用了未知的楼层",[1718,3029,3030],{},"自动化以一个已经不存在的楼层为目标。用到它的步骤什么都不做。",[1718,3032,3033,3035],{},[1780,3034,2565],{},"：从修复中打开这个自动化，在用到缺失楼层的那一步中选择一个存在的楼层。或者删掉这一步。问题解决后，修复会自己消失。",[1844,3037,3038],{},[1847,3039,3040,3048],{"icon":2571,"label":2572},[1718,3041,3042,3043,3047],{},"Spook 会查看你的自动化在动作中作为目标的每个",[1722,3044,3046],{"to":3045},"floor","楼层","。这个楼层不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个楼层。",[1718,3049,2578,3050,2582,3053,3056,3057,3060,3061,3064],{},[1817,3051,3052],{},"floor_areas",[1817,3054,3055],{},"floor_entities","，不管是作为函数调用还是作为过滤器，方式和区域一样：楼层 ID，或者楼层的名称或别名，不分大小写。不过 Home Assistant 会先把这个值当作区域来试。如果它是某个位于楼层上的区域的名称或别名，就会被当作楼层 ID，结果什么都找不到。所以如果一个叫 Attic 的区域在某个楼层上，",[1817,3058,3059],{},"floor_areas('Attic')"," 什么都找不到，即使有一个叫 Attic 的楼层也是如此，Spook 会报告它。改用楼层的 ID，比如 ",[1817,3062,3063],{},"floor_areas('attic')","。实体或设备 ID 也永远找不到楼层。",[1749,3066,3067],{"id":315},"引用了未知的标签",[1718,3069,3070],{},"自动化以一个已经不存在的标签为目标。用到它的步骤什么都不做。",[1718,3072,3073,3075],{},[1780,3074,2565],{},"：从修复中打开这个自动化，在用到缺失标签的那一步中选择一个存在的标签。或者删掉这一步。问题解决后，修复会自己消失。",[1844,3077,3078],{},[1847,3079,3080,3088],{"icon":2571,"label":2572},[1718,3081,3082,3083,3087],{},"Spook 会查看你的自动化作为目标的每个",[1722,3084,3086],{"to":3085},"label","标签","。这个标签不存在时，它会创建一条修复，写明是哪个自动化，缺的是哪个标签。",[1718,3089,2578,3090,2685,3093,2582,3096,3099],{},[1817,3091,3092],{},"label_areas",[1817,3094,3095],{},"label_devices",[1817,3097,3098],{},"label_entities","，不管是作为函数调用还是作为过滤器，方式和区域一样：标签 ID，或者标签的名称，不分大小写。标签没有别名。",[1749,3101,3102],{"id":319},"引用了未知的条件",[1718,3104,3105],{},"自动化用到了一个已经没有任何集成提供的条件，通常是因为那个集成被删除了。整个自动化都停止工作。Home Assistant 会告诉你这个自动化坏了；Spook 会告诉你是哪个条件弄坏的。",[1718,3107,3108,3110],{},[1780,3109,2565],{},"：从修复中打开这个自动化，删掉这个条件。或者把它所属的集成装回来。问题解决后，修复会自己消失。",[1844,3112,3113],{},[1847,3114,3115,3121,3124],{"icon":2571,"label":2572},[1718,3116,3117,3118,3120],{},"Spook 会查看你的自动化用到的条件。条件由",[1722,3119,1729],{"to":1728},"提供，所以没有任何已安装集成能提供的条件，就没法求值。这样的自动化会验证失败，变成不可用。这就是 Spook 也检查不可用的自动化的原因：它们正是坏掉的那些。",[1718,3122,3123],{},"Home Assistant 确实会注意到，但它创建的是一个关于这个自动化的笼统问题。Spook 会写明具体是哪些条件，让你知道该修什么。",[1718,3125,3126],{},"这通常意味着提供这个条件的集成被删除了。",[1749,3128,3129],{"id":323},"引用了未知的触发条件",[1718,3131,3132],{},"自动化用到了一个已经没有任何集成提供的触发条件，通常是因为那个集成被删除了。整个自动化都停止工作。Home Assistant 会告诉你这个自动化坏了；Spook 会告诉你是哪个触发条件弄坏的。",[1718,3134,3135,3137],{},[1780,3136,2565],{},"：从修复中打开这个自动化，删掉这个触发条件。或者把它所属的集成装回来。问题解决后，修复会自己消失。",[1844,3139,3140],{},[1847,3141,3142,3145],{"icon":2571,"label":2572},[1718,3143,3144],{},"Spook 会查看你的自动化用到的触发条件。和条件一样，触发条件也来自集成。没有任何已安装集成能提供某个触发条件时，整个自动化都会跟着倒下：它会验证失败，变成不可用。",[1718,3146,3147],{},"Home Assistant 确实会注意到，并创建一个关于这个自动化的笼统问题，但不会说是哪个触发条件造成的。Spook 会写明是哪个触发条件。",[1749,3149,3150],{"id":327},"引用了未知的触发条件标识符",[1718,3152,3153],{},"自动化检查是哪个触发条件启动了它，用的触发条件标识符却是它所有触发条件都没有的。这个检查永远不会通过，所以它后面的东西永远不会运行。这通常发生在某个触发条件被改名或删除，或者标识符打错了字时。",[1718,3155,3156,3158],{},[1780,3157,2565],{},"：从修复中打开这个自动化，让两边一致：在检查中使用它某个触发条件的标识符，或者给触发条件设置检查要求的标识符。注意大小写。问题解决后，修复会自己消失。",[1844,3160,3161],{},[1847,3162,3163,3204,3207,3221,3224,3246],{"icon":2571,"label":2572},[1718,3164,3165,3166,3169,3170,2685,3173,2685,3176,3179,3180,2685,3183,2645,3186,3189,3190,3193,3194,2685,3197,2645,3200,3203],{},"Spook 会查看你的自动化检查的触发条件标识符：每个触发条件型条件的 ",[1817,3167,3168],{},"id","，不管是在自动化顶层，还是在它的动作中的任何地方（比如在 ",[1817,3171,3172],{},"choose",[1817,3174,3175],{},"if",[1817,3177,3178],{},"repeat","、条件步骤中，或者嵌套在 ",[1817,3181,3182],{},"and",[1817,3184,3185],{},"or",[1817,3187,3188],{},"not"," 中），以及模板中与文字比较的 ",[1817,3191,3192],{},"trigger.id","，比如 ",[1817,3195,3196],{},"trigger.id == 'arrived'",[1817,3198,3199],{},"trigger.id != 'left'",[1817,3201,3202],{},"trigger.id in ['arrived', 'left']","。自动化检查的标识符是它自己所有触发条件都没有的时，Spook 会创建一条修复。修复会写明是哪个自动化，以及它检查的、没有任何触发条件拥有的那些触发条件标识符。",[1718,3205,3206],{},"要求一个没有任何触发条件给出的标识符的触发条件型条件，加载没问题，但永远不会通过。它把守的东西永远不会运行，你也不会收到任何错误。这通常发生在某个触发条件被改名或删除，或者标识符打错了字时：触发条件标识符区分大小写。",[1718,3208,3209,3210,3213,3214,3217,3218,3220],{},"没有自己标识符的触发条件，按它在触发条件列表中的位置计算，从 ",[1817,3211,3212],{},"0"," 开始，所以只要自动化有第二个触发条件，检查 ",[1817,3215,3216],{},"1"," 就没问题。你禁用的触发条件（",[1817,3219,2546],{},"）仍然算数：它们的标识符不是未知的，只是被搁置了。",[1718,3222,3223],{},"有些东西不检查，这样 Spook 就不用去猜：",[2216,3225,3226,3233,3243],{},[1787,3227,3228,3229,3232],{},"只在运行时才算出来的标识符，比如来自变量或模板的。在模板中，只读取没有其他东西参与的比较，而 ",[1817,3230,3231],{},"wait.trigger.id"," 是让某次等待结束的触发条件，不是启动自动化的那个。",[1787,3234,3235,3236,3239,3240,3242],{},"给 ",[1817,3237,3238],{},"trigger"," 赋予了自己含义的自动化，比如作为变量或响应变量，以及用 ",[1817,3241,2944],{}," 或类似方式做同样事情的模板。",[1787,3244,3245],{},"加载失败的自动化。Home Assistant 自己会报告它。",[1718,3247,3248],{},"基于蓝图的自动化，会在填好输入后检查，和 Home Assistant 运行它的方式一样。每当自动化重新加载时，Spook 都会再检查一遍，在编辑器里保存一个自动化就会重新加载。",[1749,3250,3251],{"id":331},"永远无法通过的模板",[1718,3253,3254,3255,3259,3260,3263],{},"自动化里有一个",[1722,3256,3258],{"to":3257},"template","模板","，按它的写法，永远不可能为真。模板是写在 ",[1817,3261,3262],{},"{{ }}"," 之间、用来算出一个值的一小段代码。它的条件总是失败，它的触发条件永远不会触发，或者它的等待只会因超时而结束。你不会收到任何错误。",[1718,3265,3266,3268,3269,3271,3272,3274,3275,3278],{},[1780,3267,2565],{},"：从修复中打开这个自动化，改正这个模板。常见原因：模板外面加了引号，少了 ",[1817,3270,3262],{},"，模板周围粘贴了别的东西，或者模板给出的是 ",[1817,3273,2661],{},"，而需要的是 ",[1817,3276,3277],{},"true","。问题解决后，修复会自己消失。",[1844,3280,3281],{},[1847,3282,3283,3323,3353,3356,3419,3422,3428,3454],{"icon":2571,"label":2572},[1718,3284,3285,3286,3289,3290,3293,3294,3297,3298,2685,3300,2685,3302,3304,3305,2645,3308,3311,3312,2685,3314,2645,3316,3318,3319,3322],{},"Spook 会在你的自动化中查找因为写法问题、永远不可能渲染出 Home Assistant 要求的结果从而无法通过的模板：模板条件和模板触发条件的 ",[1817,3287,3288],{},"value_template","，简写模板条件（",[1817,3291,3292],{},"conditions: \"{{ ... }}\"","），以及 ",[1817,3295,3296],{},"wait_template","。不管它们在哪里：在自动化顶层，还是在它的动作中的任何地方（",[1817,3299,3175],{},[1817,3301,3172],{},[1817,3303,3178],{}," 的 ",[1817,3306,3307],{},"while",[1817,3309,3310],{},"until","、条件步骤、嵌套在 ",[1817,3313,3182],{},[1817,3315,3185],{},[1817,3317,3188],{}," 中、",[1817,3320,3321],{},"wait_for_trigger","）。某个模板永远无法通过时，Spook 会创建一条修复，写明是哪个自动化，以及哪些模板永远无法通过。",[1718,3324,3325,3326,3328,3329,2685,3331,2685,3333,2685,3336,2685,3339,3341,3342,2645,3344,3346,3347,3349,3350,3352],{},"怎样算通过，每种都不一样。模板条件只有在渲染出 ",[1817,3327,3277],{},"（不分大小写）时才通过。模板触发条件在它的模板变成读起来为真的东西时触发：",[1817,3330,3277],{},[1817,3332,2661],{},[1817,3334,3335],{},"yes",[1817,3337,3338],{},"enable",[1817,3340,3216],{}," 或其他非零数字。它必须先看到读起来不为真的东西，所以一个只会渲染出 ",[1817,3343,2661],{},[1817,3345,3335],{}," 的触发条件永远不会触发。",[1817,3348,3296],{}," 先像条件一样检查。之后，它在模板再次渲染出读起来为真的东西时结束。没有任何 Jinja，或者只由固定文字组成的模板，永远不会再次渲染，所以只有 ",[1817,3351,3277],{}," 能让它结束。",[1718,3354,3355],{},"它能抓到的这些写法，都在论坛上见过：",[2216,3357,3358,3373,3386,3397,3404],{},[1787,3359,3360,3361,3364,3365,3368,3369,3372],{},"在块里给模板加了引号。用 ",[1817,3362,3363],{},"value_template: >-"," 后面跟着 ",[1817,3366,3367],{},"\"{{ is_state('light.hall', 'on') }}\"","，引号是文字，所以结果是 ",[1817,3370,3371],{},"\"True\"","，连引号一起。",[1787,3374,3375,3376,1770,3378,3381,3382,3385],{},"根本没有 ",[1817,3377,3262],{},[1817,3379,3380],{},"value_template: \"is_state('light.hall', 'on')\""," 不是模板，它就是这段文字。少一个 ",[1817,3383,3384],{},"{{"," 也一样。",[1787,3387,3388,3389,3392,3393,3396],{},"把 YAML 粘贴进了编辑器的模板字段，比如 ",[1817,3390,3391],{},"- condition: template"," 后面跟着它的 ",[1817,3394,3395],{},"value_template:","。这些全是模板周围的文字，最后都进了结果。",[1787,3398,3399,3400,3403],{},"Jinja 里有一个 YAML 的 ",[1817,3401,3402],{},"#"," 注释。Jinja 不认识 YAML 注释：它会把它们打印出来。",[1787,3405,3406,3407,3409,3410,2685,3412,3414,3415,3418],{},"一个除了 ",[1817,3408,3277],{}," 之外，只能渲染出 ",[1817,3411,2661],{},[1817,3413,2664],{}," 或其他固定文字的条件，比如 ",[1817,3416,3417],{},"{{ 'on' if is_state('light.hall', 'on') else 'off' }}","。用在触发条件上没问题，用在条件上永远无法通过。",[1718,3420,3421],{},"这样的模板条件、触发条件或等待，加载没问题，但永远不会通过。条件为假，等待只会因超时而结束，触发条件永远不会触发。你不会收到任何错误。",[1718,3423,3424,3425,3427],{},"只读取模板的文字。只有单凭文字就能下定论时，Spook 才会创建这个问题：文字总是结果的一部分，而且永远不可能是 ",[1817,3426,3277],{}," 的一部分；结果总是以某个任何为真的东西都不会用来开头的东西开头；或者模板可能给出的每个结果，不管走哪条分支，都会失败。凡是取决于状态、变量或运行时刻的东西，都不做判断。有些情况是故意不报告的：",[2216,3429,3430,3438,3445,3452],{},[1787,3431,3432,3433,2645,3435,3437],{},"没有任何 Jinja、但读起来为真的模板触发条件，比如 ",[1817,3434,3277],{},[1817,3436,2661],{},"。它永远不变，所以也永远不会触发，但这不是这条修复要管的。",[1787,3439,3440,3441,3444],{},"触发条件中模板后面的注释，比如 ",[1817,3442,3443],{},"{{ is_state('light.hall', 'on') }} # hall","。Home Assistant 像 Python 一样读取触发条件的结果，Python 会跳过这个注释，所以它能工作。",[1787,3446,3447,3448,3451],{},"只在 ",[1817,3449,3450],{},"{% if %}"," 或循环的某些分支中打印的文字。",[1787,3453,3245],{},[1718,3455,3248],{},[1749,3457,3458],{"id":335},"已移除的用户",[1718,3460,3461],{},"自动化只对某个用户做出反应，而这个用户已经被移除了。等待这个用户的触发条件再也不会触发。",[1718,3463,3464,3466],{},[1780,3465,2565],{},"：从修复中打开这个自动化，选一个存在的用户。或者删掉这个检查。问题解决后，修复会自己消失。",[1844,3468,3469],{},[1847,3470,3471,3502,3505,3507,3542],{"icon":2571,"label":2572},[1718,3472,3473,3474,3477,3478,3481,3482,3484,3485,2685,3488,2645,3491,3494,3495,2645,3498,3501],{},"Spook 会查看你的自动化按 ID 写明的用户：事件触发条件在它的 ",[1817,3475,3476],{},"context"," 中等待的 ",[1817,3479,3480],{},"user_id","，在 ",[1817,3483,3321],{}," 中也一样，以及模板中与文字比较的用户 ID。也就是某件事背后的用户，比如 ",[1817,3486,3487],{},"trigger.to_state.context.user_id == '…'",[1817,3489,3490],{},"trigger.event.context.user_id in ['…', '…']",[1817,3492,3493],{},"context.user_id != '…'","，以及某个人员的用户，比如 ",[1817,3496,3497],{},"state_attr('person.frenck', 'user_id') == '…'",[1817,3499,3500],{},"is_state_attr('person.frenck', 'user_id', '…')","。自动化写明了一个已经不存在的用户时，Spook 会创建一条修复，写明是哪个自动化，以及它找不到的那些用户 ID。",[1718,3503,3504],{},"Home Assistant 给每个用户一个随机 ID，而且同一个 ID 从不发两次，所以一个没有任何用户拥有的 ID，属于一个已经被移除的用户。等待这个用户的触发条件永远不会为他们触发，和这个 ID 比较的模板也永远不会匹配。Home Assistant 不会告诉你。",[1718,3506,3223],{},[2216,3508,3509,3512,3525,3531,3539],{},[1787,3510,3511],{},"形状不像用户 ID 的东西。按名称写的用户从来就没匹配过任何人，也不是一个被移除的用户。",[1787,3513,3514,3515,3518,3519,3521,3522,3524],{},"事件触发条件的 ",[1817,3516,3517],{},"event_data"," 中的 ",[1817,3520,3480],{},"，或者模板中事件的数据里的同名字段。事件所说的 ",[1817,3523,3480],{}," 是什么，由触发它的一方决定，比如 Telegram 命令中的 Telegram 用户。",[1787,3526,3527,3528,3530],{},"人员之外的任何东西上名为 ",[1817,3529,3480],{}," 的属性。",[1787,3532,3533,3534,2685,3536,3538],{},"有其他东西参与的比较，比如过滤器，以及给 ",[1817,3535,3238],{},[1817,3537,3476],{}," 或类似名称赋予了自己含义的模板或自动化。",[1787,3540,3541],{},"已禁用的步骤或触发条件，以及已关闭或加载失败的自动化。",[1718,3543,3544],{},"每当有用户被添加或移除，以及每当自动化重新加载时，Spook 都会再检查一遍，在编辑器里保存一个自动化就会重新加载。",[3546,3547,3548],"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);}",{"title":2007,"searchDepth":194,"depth":194,"links":3550},[3551,3555],{"id":90,"depth":194,"text":955,"children":3552},[3553,3554],{"id":1751,"depth":29,"text":1752},{"id":2229,"depth":29,"text":1769},{"id":242,"depth":194,"text":696,"children":3556},[3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571],{"id":279,"depth":29,"text":2550},{"id":283,"depth":29,"text":2604},{"id":287,"depth":29,"text":2655},{"id":291,"depth":29,"text":2833},{"id":295,"depth":29,"text":2867},{"id":299,"depth":29,"text":2896},{"id":303,"depth":29,"text":2952},{"id":307,"depth":29,"text":2973},{"id":311,"depth":29,"text":3027},{"id":315,"depth":29,"text":3067},{"id":319,"depth":29,"text":3102},{"id":323,"depth":29,"text":3129},{"id":327,"depth":29,"text":3150},{"id":331,"depth":29,"text":3251},{"id":335,"depth":29,"text":3458},"md",{"subtitle":3574,"offers":3575,"counts":3576,"repairs":3577,"sections":194},"Home Assistant 那颗跳动的（机械）心脏。",[90,242],{"actions":194,"repairs":276},[3578,3579,3581,3583,3584,3586,3587,3588,3589,3590,3591,3592,3593,3594,3596],{"id":279,"title":2550,"summary":2553},{"id":283,"title":2604,"summary":3580},"自动化等待或检查一个它的实体没有的属性，比如普通开关上的 brightness。属性是实体在状态之外附带的额外信息。这样的触发条件永远不会触发，你也不会收到任何错误。",{"id":287,"title":2655,"summary":3582},"自动化等待一个它的实体永远不会处于的状态，比如一盏只会是 on 或 off 的灯的 On。这样的触发条件永远不会触发，你也不会收到任何错误。",{"id":291,"title":2833,"summary":2836},{"id":295,"title":2867,"summary":3585},"自动化中的某个动作指向一个已经不存在的集成条目：集成的一次设置，比如你的 Hue 网桥。这通常发生在你删除了一个集成又重新添加之后：看起来一样，但动作还指向旧的那个，运行时就会失败。",{"id":299,"title":2896,"summary":2899},{"id":303,"title":2952,"summary":2955},{"id":307,"title":2973,"summary":2976},{"id":311,"title":3027,"summary":3030},{"id":315,"title":3067,"summary":3070},{"id":319,"title":3102,"summary":3105},{"id":323,"title":3129,"summary":3132},{"id":327,"title":3150,"summary":3153},{"id":331,"title":3251,"summary":3595},"自动化里有一个模板，按它的写法，永远不可能为真。模板是写在 {{ }} 之间、用来算出一个值的一小段代码。它的条件总是失败，它的触发条件永远不会触发，或者它的等待只会因超时而结束。你不会收到任何错误。",{"id":335,"title":3458,"summary":3461},{"title":269,"description":270},"KqdKYV7uPqnaWR3dCrERsphbYYHr7oHI_4_3pExm_4k",1795717149423,"88e67443-85a8-4de6-b8fb-10c47bf925d8"]