{"id":790,"date":"2021-01-08T19:17:13","date_gmt":"2021-01-08T11:17:13","guid":{"rendered":"https:\/\/xg1990.com\/blog\/?p=790"},"modified":"2021-01-08T19:17:15","modified_gmt":"2021-01-08T11:17:15","slug":"%e5%bc%80%e5%90%af%e6%99%ba%e8%83%bd%e5%ae%b6%e5%b1%852-home-assistant-os-%e5%9f%ba%e6%9c%ac%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/xg1990.com\/blog\/archives\/790","title":{"rendered":"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e"},"content":{"rendered":"\n<p><a href=\"https:\/\/xg1990.com\/blog\/archives\/778\" target=\"_blank\" rel=\"noreferrer noopener\">Home Assistant OS \u5b89\u88c5\u5e76\u521d\u59cb\u5316<\/a>\u597d\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u8fdb\u884c\u4e00\u4e9b\u57fa\u672c\u914d\u7f6e<\/p>\n\n\n\n<h2>\u57fa\u672c\u6982\u5ff5<\/h2>\n\n\n\n<p>HA OS\u7684\u5927\u90e8\u5206\u91cd\u8981\u6982\u5ff5\u90fd\u53ef\u4ee5\u5728\u914d\u7f6e\u9875\u9762\uff08configuration\uff09\u770b\u5230\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png\" alt=\"\" class=\"wp-image-792\" width=\"387\" height=\"304\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png 766w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6-300x236.png 300w\" sizes=\"(max-width: 387px) 100vw, 387px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u7b2c1\u7ec4\u6982\u5ff5\u67094\u4e2a\uff0c\u5206\u522b\u662f\uff1a<\/p>\n\n\n\n<ul><li><strong>Integrations<\/strong>\uff1a\u5b9a\u4e49\u4e86\u4e0e\u4e09\u65b9\u5e73\u53f0\u7684\u63a5\u5165\u534f\u8bae\uff08\u4f8b\u5982\u5c0f\u7c73\u5e73\u53f0\u3001iOS\u5e73\u53f0\u3001Dyson\u4ea7\u54c1\u3001netgear\u4ea7\u54c1\u7b49\u7b49\uff09<\/li><li><strong>Devices<\/strong>\uff1a\u5b9a\u4e49\u4e86\u63a5\u5165HA OS\u7684\u6240\u6709\u8bbe\u5907\uff08\u4f8b\u5982\u624b\u673a\u3001\u98ce\u6247\u3001\u706f\u6ce1\u3001\u5438\u5c18\u5668\u3001\u4f20\u611f\u5668\u3001\u6253\u5370\u673a\u2026\u2026\uff09<\/li><li><strong>Entities<\/strong>\uff1a\u5b9a\u4e49\u4e86\u7cfb\u7edf\u4e2d\u5177\u4f53\u7684\u4e00\u4e2a\u4e00\u4e2a\u5c5e\u6027\uff08\u4f8b\u5982\u624b\u673a\u7684\u7535\u91cf\u3001\u6253\u5370\u673a\u5269\u4f59\u58a8\u6c34\u91cf\u3001\u624b\u673a\u5269\u4f59\u7535\u91cf\u3001\u7a7a\u6c14\u6e7f\u5ea6\uff09\uff0c\u8fd9\u4e9b\u5c5e\u6027\u53ef\u80fd\u662f\u901a\u8fc7\u67d0\u4e00\u4e2a\u8bbe\u5907\uff08Device\uff09\u63d0\u4f9b\u7684\uff0c\u4e5f\u53ef\u80fd\u662f\u901a\u8fc7\u67d0\u4e2a\u96c6\u6210\uff08Integrations\uff09 \u76f4\u63a5\u63d0\u4f9b\u7684<\/li><li><strong>Areas<\/strong>\uff1a\u7528\u6765\u5b9a\u4e49\u5bb6\u5ead\u7a7a\u95f4\uff08\u6bd4\u5982\u5367\u5ba4\u3001\u53a8\u623f\u3001\u5ba2\u5385\u2026\u2026\uff09\u672c\u8d28\u4e0a\u5c31\u662f\u8bbe\u5907\uff08Devices\uff09\u548c\u5b9e\u4f53\uff08Entities\uff09\u7684\u4e00\u4e2a\u5206\u7ec4\u529f\u80fd\uff08\u6216\u8005\u53eb\u6587\u4ef6\u5939\uff09<\/li><\/ul>\n\n\n\n<p>\u7b2c2\u7ec4\u6982\u5ff5\u6709\u4e5f4\u4e2a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-7.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-7.png\" alt=\"\" class=\"wp-image-794\" width=\"369\" height=\"276\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-7.png 824w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-7-300x224.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-7-768x574.png 768w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u5206\u5225\u662f<\/p>\n\n\n\n<ul><li><strong>Blueprints \u84dd\u56fe<\/strong>\uff1a\u672c\u8d28\u4e0a\u5c31\u662f\u9884\u5236\u597d\u7684\u81ea\u52a8\u5316\uff08Automations\uff09\u7684\u6a21\u7248\uff0c\u7528\u6765\u5feb\u901f\u521b\u5efa\u81ea\u52a8\u5316\u6d41\u7a0b\uff08Automations\uff09<\/li><li><strong>Automations \u81ea\u52a8\u5316\u6d41\u7a0b<\/strong>\uff1a\u8fd9\u662fHA OS\u4e2d\u6784\u5efa\u667a\u80fd\u5bb6\u5c45\u6700\u6700\u6700\u91cd\u8981\u7684\u6a21\u5757\uff0c\u5b83\u53ef\u4ee5\u5b9a\u4e49\u4e00\u7cfb\u5217\u7684\u81ea\u52a8\u5316\u8bbe\u5907\u64cd\u4f5c\uff0c\u5e76\u5173\u8054\u76f8\u5173\u7684\u89e6\u53d1\u6761\u4ef6\u4e0e\u6267\u884c\u6761\u4ef6\uff0c\u6765\u5b9e\u73b0\u5bb6\u4e2d\u8bbe\u5907\u7684\u81ea\u52a8\u8fd0\u884c\u3002\u4f8b\u5982\uff1a\u5982\u679c\u68c0\u6d4b\u5230\u4eba\u7ecf\u8fc7\u5c31\u5f00\u706f\uff0c\u6216\u8005\u5b9a\u65f6\u542f\u52a8\u626b\u5730\u673a\u5668\u4eba\u2026\u2026<\/li><li><strong>Scenes \u573a\u666f<\/strong>\uff1a\u573a\u666f\u7528\u4e8e\u6279\u91cf\u6267\u884c\u8bbe\u5907\u72b6\u6001\u7684\u6539\u53d8\uff0c\u4f8b\u5982\u6211\u4eec\u53ef\u4ee5\u8bbe\u5b9a\u4e00\u4e2a<strong>\u7535\u5f71\u573a\u666f<\/strong>\uff1a\u81ea\u52a8\u5173\u95ed\u7a97\u5e18\u548c\u706f\uff0c\u5e76\u6253\u5f00\u6295\u5f71\u4eea\u3002\u6216\u8005<strong>\u7761\u7720\u573a\u666f<\/strong>\uff1a\u4e00\u8d77\u5173\u6389\u6240\u6709\u7684\u706f\u3002\u4e00\u4e2a\u573a\u666f\u7531\u591a\u4e2a\u8bbe\u5907\u53ca\u5176\u5bf9\u5e94\u7684\u72b6\u6001\u6765\u5b9a\u4e49\u3002<\/li><li><strong>Scripts \u811a\u672c<\/strong>\uff1a\u7c7b\u4f3c\u573a\u666f\uff0c\u811a\u672c\u7528\u4e8e\u6309\u987a\u5e8f\u6267\u884c\u591a\u4e2a\u6307\u4ee4\uff0c\u6bd4\u5982\uff1a\u5148\u62c9\u5f00\u7a97\u5e18\uff0c\u518d\u7b4910\u5206\u949f\uff0c\u518d\u54cd\u8d77\u95f9\u949f\u2026\u2026<\/li><\/ul>\n\n\n\n<p>\u7b2c3\u7ec4\u6982\u5ff5\u662f<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-8.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-8.png\" alt=\"\" class=\"wp-image-795\" width=\"493\" height=\"278\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-8.png 816w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-8-300x169.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-8-768x433.png 768w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u8fd9\u662fHA OS\u4e2d\u5173\u4e8e\u4eba\u7684\u6982\u5ff5\uff0cHA OS\u53ef\u4ee5\u8ffd\u8e2a\u5bb6\u4e2d\u6bcf\u4e2a\u4eba\uff08People\uff09\u7684\u884c\u8e2a\uff1a\u4f8b\u5982\u4f55\u65f6\u79bb\u5bb6\u3001\u4f55\u65f6\u5230\u5bb6\uff0c\u5728\u5bb6\u91cc\u7684\u54ea\u4e2a\u4f4d\u7f6e\uff08Zones\uff09\u3002\u540c\u65f6\u8fd8\u53ef\u4ee5\u7ba1\u7406\u7cfb\u7edf\u4e2d\u7684\u7528\u6237\u6743\u9650\uff08Users\uff09\u4e0e\u767b\u5f55\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>HA OS\u8ffd\u8e2a\u4eba\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u4fbf\u4e8e\u89e6\u53d1\u4eba\u7684\u4f4d\u7f6e\u76f8\u5173\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\uff0c\u4f8b\u5982\uff1a\u5f53\u6709\u4eba\u5230\u5bb6\u65f6\uff0c\u6253\u5f00\u5ba2\u5385\u7684\u706f\uff1b\u6216\u8005\u5982\u679c\u6240\u6709\u4eba\u90fd\u4e0d\u5728\u5bb6\u65f6\uff0c\u5f00\u542f\u8b66\u62a5\u5668\u3002<\/p>\n\n\n\n<h2>\u914d\u7f6e\u6587\u4ef6\u7f16\u8f91\u5668<\/h2>\n\n\n\n<p>\u5c3d\u7ba1HA OS\u63d0\u4f9b\u4e86\u53ef\u89c6\u5316\u754c\u9762\u914d\u7f6e\u4ee5\u4e0a\u6240\u6709\u7684\u4fe1\u606f\uff0c\u4f46\u529f\u80fd\u975e\u5e38\u6709\u9650\uff0c\u8bb8\u591a\u7ec6\u8282\u4e0a\u7684\u8c03\u6574\u90fd\u65e0\u6cd5\u8fbe\u6210\u3002\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5b89\u88c5\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\u76f4\u63a5\u7f16\u8f91YAML\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9.png\"><img loading=\"lazy\" width=\"1024\" height=\"819\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9-1024x819.png\" alt=\"\" class=\"wp-image-797\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9-1024x819.png 1024w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9-300x240.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9-768x614.png 768w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9-1536x1228.png 1536w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-9.png 2026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u9996\u5148\u5728\u5de6\u4fa7\u5bfc\u822a\u680f\u9009\u62e9 <strong>Supervisor<\/strong> \u7136\u540e\u5728\u53f3\u4fa7\u754c\u9762\u9009\u62e9 <strong>Add on Store<\/strong>\uff0c\u7136\u540e\u9009\u62e9 <strong>File Editor<\/strong>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10.png\"><img loading=\"lazy\" width=\"1024\" height=\"574\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-1024x574.png\" alt=\"\" class=\"wp-image-798\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-1024x574.png 1024w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-300x168.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-768x430.png 768w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-1536x861.png 1536w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-10-2048x1148.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u7136\u540e\u70b9\u51fb\u5b89\u88c5\u6309\u94ae\u5b89\u88c5\u5373\u53ef\uff0c\u6b64\u65f6\u53ef\u4ee5\u5728\u5de6\u4fa7\u5bfc\u822a\u680f\u770b\u5230 <strong>File Editor<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11-1024x504.png\" alt=\"\" class=\"wp-image-799\" width=\"699\" height=\"344\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11-1024x504.png 1024w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11-300x148.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11-768x378.png 768w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11-1536x755.png 1536w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-11.png 1692w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230\u6240\u6709\u7684\u7cfb\u7edf\u914d\u7f6e\u76f8\u5173\u7684\u6587\u4ef6\uff0c\u5b98\u7f51\u4e2d\u7684\u4f7f\u7528\u8bf4\u660e\u5927\u591a\u901a\u8fc7 YAML \u6587\u4ef6\u6765\u914d\u7f6e\uff0c\u4f8b\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-12.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-12.png\" alt=\"\" class=\"wp-image-800\" width=\"468\" height=\"398\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-12.png 922w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-12-300x255.png 300w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-12-768x653.png 768w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2>\u914d\u7f6e\u6837\u4f8b1 &#8211; \u8fde\u63a5 Dyson\u5e73\u53f0<\/h2>\n\n\n\n<p>\u5bb6\u91cc\u6709\u4e00\u4e2a Dyson \u7a7a\u6c14\u51c0\u5316\u5668\uff0c\u4e00\u822c\u901a\u8fc7 Dyson \u624b\u673a App\u63a7\u5236\u3002\u63a5\u5165HomeAssistant \u4ee5\u540e\uff0c\u53ef\u4ee5\u88ab\u4efb\u4f55\u81ea\u52a8\u5316\u811a\u672c\u63a7\u5236\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u65b9\u6cd5\u5728\u5b98\u7f51\u6709\u8bf4\u660e\uff1ahttps:\/\/www.home-assistant.io\/integrations\/dyson\/<\/p>\n\n\n\n<p>\u5177\u4f53\u800c\u8a00\u5c31\u662f\u5728 <strong>\/config\/configuration.yaml <\/strong>\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"yaml\" class=\"language-yaml\">dyson:\n  username: YOUR_DYSON_USERNAME\n  password: YOUR_DYSON_PASSWORD\n  language: YOUR_DYSON_ACCOUNT_LANGUAGE\uff08US, FR, NL, GB, AU \u4e4b\u4e00\uff09<\/code><\/pre>\n\n\n\n<p>\u7cfb\u7edf\u4f1a\u81ea\u52a8\u68c0\u6d4bDyson\u8d26\u53f7\u4e2d\u7684\u6240\u6709\u8bbe\u5907\uff0c\u5e76\u5728\u7cfb\u7edf\u4e2d\u6dfb\u52a0 Dyson \u98ce\u6247\u3001Dyson \u98ce\u6247\u4e2d\u7684\u7a7a\u6c14\u8d28\u91cf\u4f20\u611f\u5668\u3001\u6e29\u5ea6\u4f20\u611f\u5668\u3001\u6e7f\u5ea6\u4f20\u611f\u5668\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-13.png\"><img loading=\"lazy\" src=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-13.png\" alt=\"\" class=\"wp-image-801\" width=\"310\" height=\"418\" srcset=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-13.png 558w, https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-13-223x300.png 223w\" sizes=\"(max-width: 310px) 100vw, 310px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2>\u914d\u7f6e\u6837\u4f8b2 &#8211; \u81ea\u52a8\u542f\u52a8\u7a7a\u6c14\u51c0\u5316\u5668<\/h2>\n\n\n\n<p>\u5c3d\u7ba1Dyson\u7684\u7a7a\u6c14\u51c0\u5316\u5668\u6709\u81ea\u52a8\u6a21\u5f0f\uff0c\u4f46\u662f\u542f\u52a8\u89c4\u5219\u65e0\u6cd5\u81ea\u5b9a\u4e49\u3002\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528HomeAssistant\u5e73\u53f0\u7684\u81ea\u52a8\u5316\u6a21\u5757\uff08Automations\uff09\u6765\u5b9a\u4e49\u5f00\u542f\u548c\u5173\u95ed\u7a7a\u6c14\u51c0\u5316\u5668\u7684\u89c4\u5219\u3002<\/p>\n\n\n\n<p>\u6211\u5728 \/config\/automations.yaml \u4e2d\u6dfb\u52a0\u4e86\u5982\u4e0b\u5b9a\u4e49\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"yaml\" class=\"language-yaml line-numbers\">- id: '1609373251074'\n  alias: CleanDust #\u8fd9\u4e2a\u81ea\u52a8\u5316\u811a\u672c\u7684\u540d\u5b57\n  description: ''\n  trigger: # \u89e6\u53d1\u6761\u4ef6\uff1adust\u4f20\u611f\u5668\u6307\u6570\u53d1\u751f\u53d8\u5316\n  - platform: state\n    entity_id: sensor.bedroom_dust\n  condition: []\n  action: #\u6267\u884c\u64cd\u4f5c\n  - choose: \n    - conditions: # \u5148\u5224\u65ad\u6761\u4ef6\n      - condition: state \n        entity_id: sensor.bedroom_dust  # \u5982\u679cdust\u4f20\u611f\u5668\u6307\u6570\u8d85\u8fc73\n        state: \n        - '3'\n        - '4'\n        - '5'\n        - '6'\n        - '7'\n        - '8'\n        - '9'\n        - '10'\n      sequence: #\u90a3\u4e48\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\n      - service: fan.set_speed #\u5c06\u7a7a\u6c14\u51c0\u5316\u5668\u98ce\u901f\u8bbe\u4e3a7\n        data:\n          speed: 7\n        entity_id: fan.bedroom\n    default: # \u5426\u5219\u5173\u95ed\u7a7a\u6c14\u51c0\u5316\u5668\n    - service: fan.turn_off\n      data: {}\n      entity_id: fan.bedroom\n  mode: single <\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\u7684\u5185\u5bb9\u662f\uff0c\u6bcf\u5f53\u7070\u5c18\u4f20\u611f\u5668\u6307\u6570\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u5982\u679c\u7070\u5c18\u6307\u6570\u5927\u4e8e3\uff0c\u5c31\u5c06\u7a7a\u6c14\u51c0\u5316\u5668\u98ce\u901f\u8bbe\u4e3a7\u6863\uff0c\u5426\u5219\u5173\u95ed\u7a7a\u6c14\u51c0\u5316\u3002<\/p>\n\n\n\n<p>\u66f4\u8be6\u7ec6\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\u521b\u5efa\u8bed\u6cd5\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u624b\u518c https:\/\/www.home-assistant.io\/docs\/automation\/basics\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Home Assistant OS \u5b89\u88c5\u5e76\u521d\u59cb\u5316\u597d\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u8fdb\u884c\u4e00\u4e9b\u57fa\u672c\u914d\u7f6e \u57fa\u672c\u6982\u5ff5 HA OS\u7684\u5927\u90e8&hellip;&nbsp;<a href=\"https:\/\/xg1990.com\/blog\/archives\/790\" class=\"\" rel=\"bookmark\">\u9605\u8bfb\u66f4\u591a &raquo;<span class=\"screen-reader-text\">\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[1],"tags":[50,47,45],"translation":{"provider":"WPGlobus","version":"3.0.1","language":"zh","enabled_languages":["zh","en"],"languages":{"zh":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.4.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xg1990.com\/blog\/archives\/790\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xg1990.com\/blog\/archives\/790\" \/>\n<meta property=\"og:site_name\" content=\"xg1990\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-08T11:17:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-08T11:17:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"xg1990\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xg1990.com\/blog\/#website\",\"url\":\"https:\/\/xg1990.com\/blog\/\",\"name\":\"xg1990\",\"description\":\"\u5730\u7406\u5708\u7684\u7801\u519c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xg1990.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/790#primaryimage\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png\",\"contentUrl\":\"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png\",\"width\":766,\"height\":602},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/790#webpage\",\"url\":\"https:\/\/xg1990.com\/blog\/archives\/790\",\"name\":\"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990\",\"isPartOf\":{\"@id\":\"https:\/\/xg1990.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/790#primaryimage\"},\"datePublished\":\"2021-01-08T11:17:13+00:00\",\"dateModified\":\"2021-01-08T11:17:15+00:00\",\"author\":{\"@id\":\"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f\"},\"breadcrumb\":{\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/790#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xg1990.com\/blog\/archives\/790\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/790#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xg1990.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f\",\"name\":\"xg1990\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/xg1990.com\/blog\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g\",\"caption\":\"xg1990\"},\"url\":\"https:\/\/xg1990.com\/blog\/archives\/author\/xg1990\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xg1990.com\/blog\/archives\/790","og_locale":"zh_CN","og_type":"article","og_title":"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990","og_url":"https:\/\/xg1990.com\/blog\/archives\/790","og_site_name":"xg1990","article_published_time":"2021-01-08T11:17:13+00:00","article_modified_time":"2021-01-08T11:17:15+00:00","og_image":[{"url":"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png"}],"twitter_misc":{"\u4f5c\u8005":"xg1990","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/xg1990.com\/blog\/#website","url":"https:\/\/xg1990.com\/blog\/","name":"xg1990","description":"\u5730\u7406\u5708\u7684\u7801\u519c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xg1990.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"ImageObject","@id":"https:\/\/xg1990.com\/blog\/archives\/790#primaryimage","inLanguage":"zh-CN","url":"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png","contentUrl":"https:\/\/xg1990.com\/blog\/wp-content\/uploads\/2021\/01\/image-6.png","width":766,"height":602},{"@type":"WebPage","@id":"https:\/\/xg1990.com\/blog\/archives\/790#webpage","url":"https:\/\/xg1990.com\/blog\/archives\/790","name":"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e - xg1990","isPartOf":{"@id":"https:\/\/xg1990.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xg1990.com\/blog\/archives\/790#primaryimage"},"datePublished":"2021-01-08T11:17:13+00:00","dateModified":"2021-01-08T11:17:15+00:00","author":{"@id":"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f"},"breadcrumb":{"@id":"https:\/\/xg1990.com\/blog\/archives\/790#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xg1990.com\/blog\/archives\/790"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/xg1990.com\/blog\/archives\/790#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xg1990.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5f00\u542f\u667a\u80fd\u5bb6\u5c452\u2014\u2014Home Assistant OS \u57fa\u672c\u914d\u7f6e"}]},{"@type":"Person","@id":"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f","name":"xg1990","image":{"@type":"ImageObject","@id":"https:\/\/xg1990.com\/blog\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g","caption":"xg1990"},"url":"https:\/\/xg1990.com\/blog\/archives\/author\/xg1990"}]}},"_links":{"self":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/790"}],"collection":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/comments?post=790"}],"version-history":[{"count":6,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":805,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/790\/revisions\/805"}],"wp:attachment":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/media?parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/categories?post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/tags?post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}