[{"data":1,"prerenderedAt":2610,"buildId":2611},["ShallowReactive",2],{"$frh4y29kg23n2":3,"docs-items-zh-Hans":9,"spook-counts":1193,"zh-Hans:\u002Fscript":1712,"zh-Hans:modified:04.enhanced-integrations\u002F33.script":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":740,"body":1714,"description":741,"extension":2583,"links":13,"meta":2584,"navigation":15,"path":739,"reference":13,"seo":2608,"stem":742,"__hash__":2609},"docs_zh_hans\u002F04.enhanced-integrations\u002F33.script.md",{"type":1715,"value":1716,"toc":2564},"minimark",[1717,1733,1739,1747,1750,1757,1764,1772,1776,1779,1785,1792,1822,1825,1832,1837,1873,1876,1890,1895,2051,2054,2057,2063,2068,2085,2088,2096,2101,2114,2117,2120,2128,2166,2169,2172,2177,2187,2190,2193,2198,2216,2245,2248,2251,2256,2287,2290,2293,2298,2325,2328,2331,2336,2354,2357,2364,2369,2383,2386,2398,2413,2515,2518,2521,2526],[1718,1719,1720,1724,1725,1728,1729,1732],"p",{},[1721,1722,473],"term",{"to":1723},"home assistant"," 里的脚本是一串你随时可以启动的动作：从仪表盘按钮、语音命令，或者作为",[1721,1726,269],{"to":1727},"automation","里的一个",[1721,1730,955],{"to":1731},"performing actions","启动。和自动化不同，脚本没有自己的触发条件。把“电影之夜”的步骤写一次，就能在任何地方用。",[1718,1734,1735,1736,1738],{},"这让坏掉的脚本很隐蔽。在有人启动它之前，它什么也不做，直到那时你才发现它的某个步骤指向了一个已经不在的东西。Spook 会提前检查你的脚本，发现问题时就创建一条",[1721,1737,696],{"to":242},"。",[1740,1741,1744],"screenshot",{"alt":1742,"name":1743},"Spook 为一个脚本创建的修复。","repair-script-unknown-entities",[1718,1745,1746],{},"Spook 发现一个脚本用到了不存在的实体。",[1748,1749,696],"h2",{"id":242},[1718,1751,1752,1753,1756],{},"Spook 会检查你的脚本里有没有已经不可能正常工作的东西，并在",[1721,1754,1755],{"to":242},"修复页面","里告诉你。每条修复都会写明是哪个脚本，以及它哪里出了问题。",[1718,1758,1759,1760,1763],{},"修复它总是同样的步骤：在修复里选择脚本的名称，修改修复指出的那一项，然后保存。你保存后 Spook 会再检查一次，并自己把修复撤掉。第一次接触？跟着",[1761,1762,1149],"a",{"href":1148},"来。",[1718,1765,1766,1767,1771],{},"只在已禁用步骤（",[1768,1769,1770],"code",{},"enabled: false","）里出现的实体、设备、区域、楼层或标签不会被检查。已禁用的步骤什么也不做，通常是故意先放着的。同时也出现在会运行的步骤里的东西，仍然会被报告。",[1773,1774,1775],"h3",{"id":279},"引用了未知的区域",[1718,1777,1778],{},"一个脚本以一个已经不存在的区域为目标，通常是因为这个区域被删除了，或者被合并到了另一个区域。用到它的那个步骤什么也不做。",[1740,1780,1782],{"alt":1742,"name":1781},"repair-script-unknown-areas",[1718,1783,1784],{},"Spook 发现一个脚本用到了不存在的区域。",[1718,1786,1787,1791],{},[1788,1789,1790],"strong",{},"怎么修复","：从修复里打开这个脚本，在用到缺失区域的步骤里，选择一个存在的区域。或者删除这个步骤。问题解决后，修复会自己消失。",[1793,1794,1795],"accordion",{},[1796,1797,1800,1803],"accordion-item",{"icon":1798,"label":1799},"i-mdi-magnify","Spook 怎么检查",[1718,1801,1802],{},"Spook 查看你的脚本在动作里作为目标的每个区域。当那个区域不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个区域。",[1718,1804,1805,1806,1809,1810,1813,1814,1817,1818,1821],{},"和",[1761,1807,269],{"href":1808},"\u002Fautomation#unknown-referenced-areas","一样，模板也会被读取，查看 ",[1768,1811,1812],{},"area_entities"," 和 ",[1768,1815,1816],{},"area_devices","：区域 ID，或者区域的名称或别名，不分大小写。实体或设备 ID 也会被报告，因为这些函数只接受区域；",[1768,1819,1820],{},"area_entities(area_id('light.kitchen'))"," 得到的才是那盏灯所在区域里的东西。只检查在模板里直接写出来的值，不检查以脚本自己赋予含义的名称（作为变量或字段）调用的查找。",[1773,1823,1824],{"id":283},"引用了未知的属性",[1718,1826,1827,1828,1831],{},"一个脚本等待或检查一个它的实体没有的属性，比如普通开关上的 ",[1768,1829,1830],{},"brightness","。属性是实体在状态之外附带的额外信息。这样的等待只会在超时时结束，这样的检查永远不会成立。你收不到任何错误。",[1718,1833,1834,1836],{},[1788,1835,1790],{},"：从修复里打开这个脚本，改用实体有的属性。当 Spook 几乎能确定你想用的是哪个时，修复会说出来。问题解决后，修复会自己消失。",[1793,1838,1839],{},[1796,1840,1841,1852,1855,1870],{"icon":1798,"label":1799},[1718,1842,1843,1844,1847,1848,1851],{},"Spook 查看你的脚本用到的属性：状态和数值状态触发条件与条件的 ",[1768,1845,1846],{},"attribute","、Spook 自己的状态触发条件跟随的属性，以及模板里写到的属性，比如 ",[1768,1849,1850],{},"state_attr('light.kitchen', 'brightness')","。当一个脚本用到了它的实体没有的属性时，Spook 会创建一条修复。修复会写明是哪个脚本、哪个属性和哪个实体；当 Spook 几乎能确定时，还会写明最可能想用的那个。",[1718,1853,1854],{},"等待一个从不出现的属性的触发条件能正常加载，但永远不会触发。你收不到任何错误。",[1718,1856,1857,1858,1861,1862,1865,1866,1869],{},"很多属性只是有时候才出现：关着的媒体播放器会去掉它自己的大部分属性，集成也会添加一些时有时无的属性。所以只有当 Spook 在哪里都找不到一个属性时，才会报告它：现在实体上没有，Home Assistant 里这类实体也不提供，recorder 记住的这个实体曾经有过的属性里也没有。对于 recorder 不记录的实体，只检查和真实属性只有大小写不同的属性，比如 ",[1768,1859,1860],{},"Brightness","。只在运行时才算出来的属性或实体，比如来自变量的，不会被检查。当脚本给 ",[1768,1863,1864],{},"states"," 或 ",[1768,1867,1868],{},"state_attr"," 这个名称赋予了自己的含义（作为变量、字段或响应变量）时，用到它们的模板也不会被检查。",[1718,1871,1872],{},"Spook 不会在 Home Assistant 刚启动、recorder 正忙的时候检查，而是在十分钟之后。在那之后，每当脚本重新加载完成，有脚本被添加或删除，实体注册表发生变化，有集成加载或它的配置发生变化时，以及每天一次，它都会再检查一次。实体上新出现的属性，会在下一次检查时被发现。",[1773,1874,1875],{"id":287},"引用了未知的状态",[1718,1877,1878,1879,1865,1882,1885,1886,1889],{},"一个脚本等待或检查一个它的实体永远不会处于的状态，比如一盏只有 ",[1768,1880,1881],{},"on",[1768,1883,1884],{},"off"," 的灯却用了 ",[1768,1887,1888],{},"On","。这样的等待只会在超时时结束，这样的检查永远不会成立。你收不到任何错误。",[1718,1891,1892,1894],{},[1788,1893,1790],{},"：从修复里打开这个脚本，改用实体能处于的状态。在编辑器里从列表中选择状态，而不是手动输入，就能避免这种情况。当 Spook 几乎能确定你想用的是哪个时，修复会说出来。问题解决后，修复会自己消失。",[1793,1896,1897],{},[1796,1898,1899,1941,1944,1947,1953,2029,2048],{"icon":1798,"label":1799},[1718,1900,1901,1902,1905,1906,1905,1909,1813,1912,1915,1916,1919,1920,1923,1924,1905,1927,1865,1930,1933,1934,1865,1936,1885,1938,1940],{},"Spook 查看你的脚本等待和检查的状态：状态触发条件的 ",[1768,1903,1904],{},"to","、",[1768,1907,1908],{},"from",[1768,1910,1911],{},"not_to",[1768,1913,1914],{},"not_from","，状态条件的 ",[1768,1917,1918],{},"state","，Spook 自己的状态触发条件的相同选项，以及模板里的 ",[1768,1921,1922],{},"is_state('light.kitchen', 'on')"," 和与文本比较的状态，比如 ",[1768,1925,1926],{},"states('light.kitchen') == 'on'",[1768,1928,1929],{},"states.light.kitchen.state != 'off'",[1768,1931,1932],{},"states('light.kitchen') in ['on', 'off']","。当一个脚本用到了它的实体永远不会处于的状态时，比如一盏只有 ",[1768,1935,1881],{},[1768,1937,1884],{},[1768,1939,1888],{},"，Spook 会创建一条修复。修复会写明是哪个脚本、哪个状态和哪个实体；当 Spook 几乎能确定时，还会写明最可能想用的那个。",[1718,1942,1943],{},"等待一个永远不会来的状态的触发条件能正常加载，但永远不会触发。你收不到任何错误。",[1718,1945,1946],{},"只检查状态是固定集合的实体：Home Assistant 自己为这类实体列出的那些状态（比如灯、卷帘、锁、警报面板或媒体播放器），或者实体当前提供的选项，比如选择实体、下拉选项辅助元素，或者有固定值列表的传感器。普通传感器、数字或文本的值可以是任何东西，所以它们不会被检查；人员和设备追踪器也不会，因为它们的状态是地点名称。实体曾经处于过的所有状态也都算数：现在的，以及 recorder 记住的任何状态。状态由集成之外的东西设置的实体，比如通过 REST 调用或 Python 脚本设置的，也不会被检查。",[1718,1948,1949,1950,1952],{},"对某些类型的实体，Home Assistant 自己会确保状态属于那个集合：灯、开关、二元传感器、卷帘、锁、阀门、空调实体等等。对它们来说，和真实状态只有大小写不同的状态，比如 ",[1768,1951,1888],{},"，总是会被报告；集合之外的其他状态，在 Spook 从 recorder 拿到这个实体的完整历史时也会被报告。对其余实体来说，这个集合只是常见的状态，而不是所有可能的状态：用模板做的媒体播放器可以处于它想要的任何状态，选择实体、下拉选项辅助元素或有固定值列表的传感器在运行时也可能有新的选项。对这些实体，只有和真实状态只有大小写不同的状态才会被报告，而且只在 Spook 拿到这个实体的完整历史时。用自己的方式算出状态的实体也一样。",[1718,1954,1955,1956,1958,1959,1962,1963,1966,1967,1970,1971,1973,1974,1977,1978,1865,1981,1984,1985,1905,1987,1905,1989,1813,1991,1993,1994,1996,1997,1999,2000,2002,2003,2006,2007,2009,2010,2012,2013,2015,2016,2018,2019,2012,2022,2024,2025,2028],{},"有了 ",[1768,1957,1846],{}," 时，状态触发条件或条件等待的就是这个属性的某个值，这些值也会被检查，放在同一条问题里：比如恒温器的 ",[1768,1960,1961],{},"hvac_action"," 用了 ",[1768,1964,1965],{},"Heating","，而它的值是 ",[1768,1968,1969],{},"heating","。只检查值是固定集合的属性：Home Assistant 自己为这类实体列出的那些（恒温器或加湿器的动作、传感器的设备类别、媒体播放器的重复模式等等），或者实体在另一个属性里提供了可选值的那些，比如恒温器的风扇模式、预设模式和摆动模式，灯的效果，或者媒体播放器的音源。对这些属性，集成交给 Home Assistant 什么，Home Assistant 就写什么，所以只有和真实值只在写法上不同的值才会被报告，而且只在 Spook 拿到这个实体的完整历史时。写法上的不同，指的是大小写，或者 YAML 把本意是文本的东西读成了别的：不加引号的 ",[1768,1972,1884],{}," 是布尔值 false，",[1768,1975,1976],{},"2"," 是一个数字，而属性里存的是文本 ",[1768,1979,1980],{},"\"off\"",[1768,1982,1983],{},"\"2\"","。这样的值会按 YAML 读到的样子显示，本意的文本放在引号里。Spook 自己的状态触发条件在跟随属性时也用同样的方式检查，只有一点不同：它会把属性里存的任何东西转成文本，再和它的 ",[1768,1986,1904],{},[1768,1988,1908],{},[1768,1990,1911],{},[1768,1992,1914],{}," 的文本做比较。所以在那里，大小写不同的值算是笔误，比如 ",[1768,1995,1969],{}," 写成了 ",[1768,1998,1965],{},"；YAML 读成布尔值或数字、而其文本属性从来不会有的值也算笔误：不加引号的 ",[1768,2001,1884],{}," 会变成文本 ",[1768,2004,2005],{},"False","，而预设模式 ",[1768,2008,1884],{}," 永远不会是这个。",[1768,2011,1976],{}," 会变成 ",[1768,2014,1976],{},"，和风扇模式 ",[1768,2017,1983],{}," 的文本一样，所以那个没问题。",[1768,2020,2021],{},"1.0",[1768,2023,2021],{},"，它不会因为对应 ",[1768,2026,2027],{},"\"1\""," 而被报告：一个数字永远不会被当成另一个数字的笔误。实体从来没有过的属性不在这里检查：那是未知属性，脚本会为它单独得到一条问题。",[1718,2030,2031,2032,2035,2036,2039,2040,1905,2042,1865,2045,2047],{},"只在运行时才算出来的状态或实体，比如来自变量或模板的，不会被检查。在模板里，只读取没有其他东西参与的比较：一旦中间有了 ",[1768,2033,2034],{},"| lower"," 这样的过滤器、",[1768,2037,2038],{},"~"," 或类似的东西，被比较的就不再是状态本身了。当脚本给 ",[1768,2041,1864],{},[1768,2043,2044],{},"is_state",[1768,2046,1868],{}," 这个名称赋予了自己的含义（作为变量、字段或响应变量）时，模板也不会因为它们被读取。",[1718,2049,2050],{},"Spook 检查的时机和未知属性一样：Home Assistant 启动十分钟后，之后每当脚本重新加载完成，有脚本被添加或删除，实体注册表发生变化，有集成加载或它的配置发生变化时，以及每天一次。",[1773,2052,2053],{"id":291},"引用了未知的设备",[1718,2055,2056],{},"一个脚本用到了一个已经不存在的设备，通常是因为它被删除或替换了。用到它的条件、等待和动作都不再起作用。",[1740,2058,2060],{"alt":1742,"name":2059},"repair-script-unknown-devices",[1718,2061,2062],{},"Spook 发现一个脚本用到了不存在的设备。",[1718,2064,2065,2067],{},[1788,2066,1790],{},"：从修复里打开这个脚本，在用到缺失设备的步骤里，选择替代它的设备。或者删除这个步骤。问题解决后，修复会自己消失。",[1793,2069,2070],{},[1796,2071,2072,2075],{"icon":1798,"label":1799},[1718,2073,2074],{},"Spook 查看你的脚本用到的每个设备。当那个设备不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个设备。",[1718,2076,1805,2077,2080,2081,2084],{},[1761,2078,269],{"href":2079},"\u002Fautomation#unknown-referenced-devices","一样，只考虑形状像设备 ID 的值：三十二个十六进制字符，也就是 Home Assistant 发放的那种。某个集成接受的 ",[1768,2082,2083],{},"device_id"," 如果指的是它自己的硬件，比如 RFLink 的协议地址，就不会被检查。",[1773,2086,2087],{"id":295},"引用了未知的集成条目",[1718,2089,2090,2091,2095],{},"脚本里的一个动作指向一个已经不存在的",[1721,2092,2094],{"to":2093},"integration entry","集成条目","：一个集成的一次设置，比如你的 Hue 网桥。这通常发生在你删除了一个集成又重新添加之后：它看起来一样，但动作仍然指向旧的那个，运行时就会失败。",[1718,2097,2098,2100],{},[1788,2099,1790],{},"：从修复里打开这个脚本，在它写明的动作里重新选择集成条目。问题解决后，修复会自己消失。",[1793,2102,2103],{},[1796,2104,2105,2108,2111],{"icon":1798,"label":1799},[1718,2106,2107],{},"Spook 查看你的脚本交给动作的集成条目。很多集成的动作会问要用它的哪个集成条目，比如 Nord Pool 的电价或 Mealie 的菜谱。当一个脚本交给动作的集成条目不存在时，Spook 会创建一条修复。交出的集成条目属于另一个集成、而不是动作要求的那个时也一样，这种情况发生在从另一个集成的动作里复制步骤时。修复会写明是哪个脚本，以及哪些集成条目无处可去。",[1718,2109,2110],{},"Home Assistant 只在步骤运行时才拒绝这些，所以偶尔才运行一次的脚本恰好就在那时失败。这通常发生在一个集成被删除又重新添加之后：这会给它一个新的集成条目和新的 ID，而每个动作还拿着旧的那个。",[1718,2112,2113],{},"Spook 只查看动作自己声明接受集成条目的字段，绝不因为字段的名称就去查看它。只有当前存在的动作才会声明它们接受什么，所以没有加载的集成的动作不会被检查。存在但当前没有加载的集成条目，因为它被禁用了或者设置失败了，也不会被报告：那是集成的状态，不是脚本里的错误。在运行时从模板或变量算出来的集成条目不会被检查，已禁用的步骤也不会。",[1773,2115,2116],{"id":299},"引用了未知的实体",[1718,2118,2119],{},"一个脚本用到了一个已经不存在的实体，通常是因为它被改名、替换或删除了。用到它的那个步骤什么也不做。",[1718,2121,2122,2124,2125,2127],{},[1788,2123,1790],{},"：从修复里打开这个脚本，在用到缺失实体的步骤里，选择正确的实体。或者删除这个步骤。",[1761,2126,1149],{"href":1148},"这篇指南会以自动化为例带你完成这一项，脚本的做法一样。问题解决后，修复会自己消失。",[1793,2129,2130],{},[1796,2131,2132,2145],{"icon":1798,"label":1799},[1718,2133,2134,2135,2139,2140,2144],{},"Spook 查看你的脚本用到的每个",[1721,2136,2138],{"to":2137},"entity","实体","。当一个",[1721,2141,2143],{"to":2142},"entity id","实体标识符","不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个实体标识符。",[1718,2146,2147,2148,2150,2151,2154,2155,2157,2158,2161,2162,2165],{},"写在 ",[1768,2149,1864],{}," 后面的实体，比如 ",[1768,2152,2153],{},"states.light.kitchen.state","，在那个 ",[1768,2156,1864],{}," 不是 Home Assistant 的时不会被检查：也就是模板用宏或 ",[1768,2159,2160],{},"{% set %}"," 定义了自己的一个，或者脚本给这个名称赋予了自己的含义（作为变量、字段或响应变量）。作为过滤器使用时，比如 ",[1768,2163,2164],{},"'light.kitchen' | states","，它仍然是 Home Assistant 的，仍然会被检查。用引号括起来的实体标识符，无论在哪里、交给什么，都会被检查。",[1773,2167,2168],{"id":303},"引用了未知的动作",[1718,2170,2171],{},"一个脚本用到了一个不存在的动作，通常是因为提供它的集成被删除了。这个步骤会在运行时失败。",[1718,2173,2174,2176],{},[1788,2175,1790],{},"：从修复里打开这个脚本，替换或删除这个步骤。或者把这个动作来自的集成找回来。问题解决后，修复会自己消失。",[1793,2178,2179],{},[1796,2180,2181,2184],{"icon":1798,"label":1799},[1718,2182,2183],{},"Spook 查看你的脚本用到的每个动作。当那个动作不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个动作。",[1718,2185,2186],{},"你禁用了的集成的动作不会被报告：故意关掉不等于消失了。你重新启用这个集成后，它们会照常被检查。",[1773,2188,2189],{"id":307},"未知图标",[1718,2191,2192],{},"一个脚本有一个 Home Assistant 没有的图标，或者把这样的图标交给了别的东西，通常是因为拼错了或者图标改了名。拿到它的东西在本该显示图标的地方会是一块空白。",[1718,2194,2195,2197],{},[1788,2196,1790],{},"：从修复里打开这个脚本，选择一个存在的图标。当 Spook 几乎能确定你想用的是哪个时，修复会说出来。问题解决后，修复会自己消失。",[1793,2199,2200],{},[1796,2201,2202,2213],{"icon":1798,"label":1799},[1718,2203,2204,2205,2208,2209,2212],{},"Spook 查看每个脚本的图标，以及它的动作交出去的图标。只查看声明接受图标的动作，比如 ",[1768,2206,2207],{},"group.set","，以及 Spook 用来创建区域、标签或辅助元素的动作。不在 Home Assistant 自带的 Material Design Icons 里的 ",[1768,2210,2211],{},"mdi:"," 图标会画成一块空白，不报任何错误。Spook 会创建一条修复，写明是哪个脚本和哪些图标；当它几乎能确定时，还会给出你最可能想用的那个图标。",[1718,2214,2215],{},"这通常是因为拼错了、图标被改名或删除了，或者从 Material Design Icons 网站上挑了一个比 Home Assistant 自带版本更新的图标。",[1793,2217,2218],{},[1796,2219,2222],{"icon":2220,"label":2221},"i-mdi-alert-outline","已知限制",[2223,2224,2225,2236,2239,2242],"ul",{},[2226,2227,2228,2229,2231,2232,2235],"li",{},"只检查以 ",[1768,2230,2211],{}," 开头的图标。旧的 ",[1768,2233,2234],{},"hass:"," 前缀，以及你添加的图标集里的图标，比如来自 Marketplace 的，不会被检查。",[2226,2237,2238],{},"模板形式的图标不会被检查。不运行它，就无法知道它最终是什么。",[2226,2240,2241],{},"关闭了的动作不会被检查：它们永远不会运行。",[2226,2243,2244],{},"图标列表是从 Home Assistant 安装的前端里读取的。从开发版本运行的前端不在考虑范围内；如果前端里没有这个列表，就什么都不检查。",[1773,2246,2247],{"id":311},"引用了未知的楼层",[1718,2249,2250],{},"一个脚本以一个已经不存在的楼层为目标。用到它的那个步骤什么也不做。",[1718,2252,2253,2255],{},[1788,2254,1790],{},"：从修复里打开这个脚本，在用到缺失楼层的步骤里，选择一个存在的楼层。或者删除这个步骤。问题解决后，修复会自己消失。",[1793,2257,2258],{},[1796,2259,2260,2268],{"icon":1798,"label":1799},[1718,2261,2262,2263,2267],{},"Spook 查看你的脚本在动作里作为目标的每个",[1721,2264,2266],{"to":2265},"floor","楼层","。当那个楼层不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个楼层。",[1718,2269,1805,2270,1809,2273,1813,2276,2279,2280,2283,2284,1738],{},[1761,2271,269],{"href":2272},"\u002Fautomation#unknown-referenced-floors",[1768,2274,2275],{},"floor_areas",[1768,2277,2278],{},"floor_entities","：楼层 ID，或者楼层的名称或别名，不分大小写。Home Assistant 会先把这个值当作区域来试：某个楼层上的区域的名称或别名，会被当作楼层 ID，结果什么也找不到。所以如果某个楼层上有一个叫 Attic 的区域，即使也有一个叫 Attic 的楼层，",[1768,2281,2282],{},"floor_areas('Attic')"," 也什么都找不到，Spook 会报告它。改用楼层的 ID，比如 ",[1768,2285,2286],{},"floor_areas('attic')",[1773,2288,2289],{"id":315},"引用了未知的标签",[1718,2291,2292],{},"一个脚本以一个已经不存在的标签为目标。用到它的那个步骤什么也不做。",[1718,2294,2295,2297],{},[1788,2296,1790],{},"：从修复里打开这个脚本，在用到缺失标签的步骤里，选择一个存在的标签。或者删除这个步骤。问题解决后，修复会自己消失。",[1793,2299,2300],{},[1796,2301,2302,2310],{"icon":1798,"label":1799},[1718,2303,2304,2305,2309],{},"Spook 查看你的脚本作为目标的每个",[1721,2306,2308],{"to":2307},"label","标签","。当那个标签不存在时，它就创建一条修复，写明是哪个脚本，缺的是哪个标签。",[1718,2311,1805,2312,1809,2315,1905,2318,1813,2321,2324],{},[1761,2313,269],{"href":2314},"\u002Fautomation#unknown-referenced-labels",[1768,2316,2317],{},"label_areas",[1768,2319,2320],{},"label_devices",[1768,2322,2323],{},"label_entities","：标签 ID，或者标签的名称，不分大小写。",[1773,2326,2327],{"id":319},"引用了未知的条件",[1718,2329,2330],{},"一个脚本用到了一个已经没有任何集成提供的条件，通常是因为那个集成被删除了。整个脚本都会停止工作。Home Assistant 会告诉你脚本坏了；Spook 会告诉你是哪个条件导致的。",[1718,2332,2333,2335],{},[1788,2334,1790],{},"：从修复里打开这个脚本，删除这个条件。或者把它来自的集成找回来。问题解决后，修复会自己消失。",[1793,2337,2338],{},[1796,2339,2340,2348,2351],{"icon":1798,"label":1799},[1718,2341,2342,2343,2347],{},"Spook 查看你的脚本用到的条件。条件由",[1721,2344,2346],{"to":2345},"integration","集成","提供，所以没有任何已安装集成能提供的条件就无法求值。这样的脚本会验证失败，变成不可用。这就是为什么 Spook 也会检查不可用的脚本：坏掉的正是它们。",[1718,2349,2350],{},"Home Assistant 确实会注意到，但它只会为这个脚本创建一条笼统的问题。Spook 会写明具体是哪些条件，让你知道要修什么。",[1718,2352,2353],{},"这通常意味着提供这个条件的集成被删除了。",[1773,2355,2356],{"id":323},"引用了未知的触发条件",[1718,2358,2359,2360,2363],{},"一个脚本在等待一个已经没有任何集成提供的触发条件，通常是因为那个集成被删除了。脚本没有自己的触发条件，所以这说的是",[1788,2361,2362],{},"等待某个触发条件","步骤。整个脚本都会停止工作。Home Assistant 会告诉你脚本坏了；Spook 会告诉你是哪个触发条件导致的。",[1718,2365,2366,2368],{},[1788,2367,1790],{},"：从修复里打开这个脚本，从等待里删除这个触发条件，或者删除整个等待。或者把它来自的集成找回来。问题解决后，修复会自己消失。",[1793,2370,2371],{},[1796,2372,2373,2380],{"icon":1798,"label":1799},[1718,2374,2375,2376,2379],{},"Spook 查看你的脚本里包含的触发条件配置，比如 ",[1768,2377,2378],{},"wait_for_trigger"," 步骤等待的那些。当一个脚本等待的触发条件没有任何已安装集成能提供时，整个脚本都会跟着倒下：它会验证失败，变成不可用。",[1718,2381,2382],{},"Home Assistant 会为这个脚本创建一条笼统的问题，但不会说是哪个触发条件导致的。Spook 会写明这个触发条件。",[1773,2384,2385],{"id":331},"永远无法通过的模板",[1718,2387,2388,2389,2393,2394,2397],{},"一个脚本里有一个",[1721,2390,2392],{"to":2391},"template","模板","，按它的写法，永远不可能为真。模板是写在 ",[1768,2395,2396],{},"{{ }}"," 之间的一小段代码，用来算出一个值。它的条件总是不成立，或者它的等待只会在超时时结束。你收不到任何错误。",[1718,2399,2400,2402,2403,2405,2406,2409,2410,2412],{},[1788,2401,1790],{},"：从修复里打开这个脚本，改正这个模板。常见原因：模板外面加了引号、缺了 ",[1768,2404,2396],{},"、模板周围粘贴了别的东西，或者在需要 ",[1768,2407,2408],{},"true"," 的地方模板给出的是 ",[1768,2411,1881],{},"。问题解决后，修复会自己消失。",[1793,2414,2415],{},[1796,2416,2417,2462,2488,2512],{"icon":1798,"label":1799},[1718,2418,2419,2420,2423,2424,2427,2428,2431,2432,2434,2435,1905,2438,1905,2441,2444,2445,1865,2448,2451,2452,1905,2455,1865,2458,2461],{},"Spook 在你的脚本里查找那些因为写法问题，永远不可能渲染出 Home Assistant 让它们通过所需结果的模板：模板条件的 ",[1768,2421,2422],{},"value_template","、简写的模板条件（",[1768,2425,2426],{},"condition: \"{{ ... }}\"","）、",[1768,2429,2430],{},"wait_template","，以及 ",[1768,2433,2378],{}," 里的模板触发条件。序列里的任何位置都算：",[1768,2436,2437],{},"if",[1768,2439,2440],{},"choose",[1768,2442,2443],{},"repeat"," 的 ",[1768,2446,2447],{},"while",[1768,2449,2450],{},"until","、条件步骤，以及嵌套在 ",[1768,2453,2454],{},"and",[1768,2456,2457],{},"or",[1768,2459,2460],{},"not"," 里的。当一个模板永远无法通过时，Spook 会创建一条修复，写明是哪个脚本，以及哪些模板永远无法通过。",[1718,2463,2464,2465,2467,2468,2470,2471,1905,2473,1865,2476,2479,2480,2482,2483,1865,2485,2487],{},"模板条件只有在渲染出 ",[1768,2466,2408],{},"（不分大小写）时才成立。",[1768,2469,2430],{}," 先像条件一样检查一次。之后，当它的模板再次渲染出被视为真的东西时，比如 ",[1768,2472,1881],{},[1768,2474,2475],{},"yes",[1768,2477,2478],{},"1","，等待就结束。完全没有 Jinja、或者只由固定文本组成的模板，永远不会再次渲染，所以只有 ",[1768,2481,2408],{}," 才能结束它。模板触发条件在它的模板从不被视为真的东西变成被视为真的东西时触发，所以只会渲染出 ",[1768,2484,1881],{},[1768,2486,2475],{}," 的模板永远不会触发。",[1718,2489,2490,2491,2494,2495,2497,2498,2501,2502,1905,2504,2506,2507,2511],{},"这里能发现的情况和自动化一样：",[1768,2492,2493],{},">-"," 块里模板外面加了引号、完全没有 ",[1768,2496,2396],{},"、模板字段里粘贴了 YAML、Jinja 里有一个 YAML 的 ",[1768,2499,2500],{},"#"," 注释，以及只能渲染出 ",[1768,2503,1881],{},[1768,2505,1884],{}," 或另一个固定文本的条件。",[1761,2508,2510],{"href":2509},"\u002Fautomation#templates-that-can-never-pass","自动化部分","解释了每一种，以及哪些不会被检查。",[1718,2513,2514],{},"这样的条件能正常加载，但永远不会成立，这样的等待只会在超时时结束。你收不到任何错误。只读取模板的文本。任何取决于状态、变量或运行时刻的东西都不做判断。加载失败的脚本不会被检查：那种情况 Home Assistant 自己会报告。每当脚本重新加载时，Spook 都会再检查一次，在编辑器里保存脚本就会触发重新加载。",[1773,2516,2517],{"id":335},"已移除的用户",[1718,2519,2520],{},"一个脚本只为某个用户做某件事，而那个用户已经被移除了。针对这个用户的检查再也不会成立。",[1718,2522,2523,2525],{},[1788,2524,1790],{},"：从修复里打开这个脚本，改用一个存在的用户。或者删除这个检查。问题解决后，修复会自己消失。",[1793,2527,2528],{},[1796,2529,2530,2555,2558],{"icon":1798,"label":1799},[1718,2531,2532,2533,2536,2537,2540,2541,2431,2544,2546,2547,2550,2551,2554],{},"Spook 查看你的脚本按 ID 写到的用户，方式和",[1761,2534,269],{"href":2535},"\u002Fautomation#removed-users","一样：模板里与文本比较的用户 ID，比如表示启动脚本的用户的 ",[1768,2538,2539],{},"context.user_id == '…'","，或者 ",[1768,2542,2543],{},"state_attr('person.frenck', 'user_id') == '…'",[1768,2545,2378],{}," 里事件触发条件在它的 ",[1768,2548,2549],{},"context"," 中等待的 ",[1768,2552,2553],{},"user_id","。当一个脚本写到的用户已经不存在时，Spook 会创建一条修复，写明是哪个脚本，以及它找不到的用户 ID。",[1718,2556,2557],{},"Home Assistant 给每个用户一个随机 ID，而且同一个 ID 绝不会发两次，所以没有任何用户拥有的 ID，属于一个已经被移除的用户。和这个 ID 比较的模板永远不会匹配，而 Home Assistant 不会告诉你。",[1718,2559,2560,2561,2563],{},"不检查的东西和自动化一样。给 ",[1768,2562,2549],{}," 赋予了自己含义（作为变量或字段）的脚本也不会被读取。",{"title":2565,"searchDepth":194,"depth":194,"links":2566},"",[2567],{"id":242,"depth":194,"text":696,"children":2568},[2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582],{"id":279,"depth":29,"text":1775},{"id":283,"depth":29,"text":1824},{"id":287,"depth":29,"text":1875},{"id":291,"depth":29,"text":2053},{"id":295,"depth":29,"text":2087},{"id":299,"depth":29,"text":2116},{"id":303,"depth":29,"text":2168},{"id":307,"depth":29,"text":2189},{"id":311,"depth":29,"text":2247},{"id":315,"depth":29,"text":2289},{"id":319,"depth":29,"text":2327},{"id":323,"depth":29,"text":2356},{"id":331,"depth":29,"text":2385},{"id":335,"depth":29,"text":2517},"md",{"subtitle":2585,"offers":2586,"counts":2587,"repairs":2588,"sections":215},"脚本小子。🍼",[242],{"repairs":182},[2589,2590,2592,2594,2595,2597,2598,2599,2600,2601,2602,2603,2605,2607],{"id":279,"title":1775,"summary":1778},{"id":283,"title":1824,"summary":2591},"一个脚本等待或检查一个它的实体没有的属性，比如普通开关上的 brightness。属性是实体在状态之外附带的额外信息。这样的等待只会在超时时结束，这样的检查永远不会成立。你收不到任何错误。",{"id":287,"title":1875,"summary":2593},"一个脚本等待或检查一个它的实体永远不会处于的状态，比如一盏只有 on 或 off 的灯却用了 On。这样的等待只会在超时时结束，这样的检查永远不会成立。你收不到任何错误。",{"id":291,"title":2053,"summary":2056},{"id":295,"title":2087,"summary":2596},"脚本里的一个动作指向一个已经不存在的集成条目：一个集成的一次设置，比如你的 Hue 网桥。这通常发生在你删除了一个集成又重新添加之后：它看起来一样，但动作仍然指向旧的那个，运行时就会失败。",{"id":299,"title":2116,"summary":2119},{"id":303,"title":2168,"summary":2171},{"id":307,"title":2189,"summary":2192},{"id":311,"title":2247,"summary":2250},{"id":315,"title":2289,"summary":2292},{"id":319,"title":2327,"summary":2330},{"id":323,"title":2356,"summary":2604},"一个脚本在等待一个已经没有任何集成提供的触发条件，通常是因为那个集成被删除了。脚本没有自己的触发条件，所以这说的是等待某个触发条件步骤。整个脚本都会停止工作。Home Assistant 会告诉你脚本坏了；Spook 会告诉你是哪个触发条件导致的。",{"id":331,"title":2385,"summary":2606},"一个脚本里有一个模板，按它的写法，永远不可能为真。模板是写在 {{ }} 之间的一小段代码，用来算出一个值。它的条件总是不成立，或者它的等待只会在超时时结束。你收不到任何错误。",{"id":335,"title":2517,"summary":2520},{"title":740,"description":741},"kgMh7pN5-YQaXcu5fXxklq0XFN0yuncVvihII7GLznc",1795717151866,"88e67443-85a8-4de6-b8fb-10c47bf925d8"]