{"id":11223,"date":"2026-03-29T12:58:20","date_gmt":"2026-03-29T10:58:20","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=11223"},"modified":"2026-03-29T14:46:59","modified_gmt":"2026-03-29T12:46:59","slug":"je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant","title":{"rendered":"\u6211\u76d1\u63a7\u6211\u7684\u516c\u5171IP\u5728\u5bb6\u5ead\u52a9\u7406\u7684\u58f0\u8a89"},"content":{"rendered":"<p>\u6211\u82b1\u4e86\u5f88\u591a\u65f6\u95f4\u76d1\u63a7\uff0c\u4fdd\u62a4\u548c\u7406\u89e3\u5bb6\u5ead\u7f51\u7edc\u4e0a\u53d1\u751f\u7684\u4e8b\u60c5\u3002 \u5728\u4e92\u8054\u7f51\u76d2\u5b50\uff0c\u65e0\u610f\u4e2d\u66b4\u9732\u7684\u8bbe\u5907\u4ee5\u53ca\u4e92\u8054\u7f51\u7684\u6c38\u4e45\u626b\u63cf\u4e4b\u95f4\uff0c\u6211\u66fe\u7ecf\u60f3\u8fc7\u4e00\u4ef6\u7b80\u5355\u7684\u4e8b\u60c5\uff1a <strong>\u6211\u7684\u516c\u5171IP\u5728\u4e92\u8054\u7f51\u4e0a\u88ab\u79f0\u4e3a\u300e\u5608\u6742\u300f\u8fd8\u662f\u53ef\u7591\uff1f<\/strong><\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u6076\u610f\u5de5\u5177\u4f7f\u7528\u6211\u7684\u7f51\u7edc\uff08pc\u3001NAS\u3001\u8def\u7531\u5668\u3001HA\u2026\uff09?<\/p>\n<p>\u6211\u5c31\u662f\u8fd9\u4e48\u8ba4\u8bc6\u7684 <a href=\"https:\/\/viz.greynoise.io\/\" target=\"_blank\" rel=\"noopener\">Greynoise \u7684<\/a>, \u8fd9\u662f\u4e00\u9879\u975e\u5e38\u6709\u8da3\u7684\u670d\u52a1\uff0c\u53ef\u4ee5\u4e86\u89e3IP\u5730\u5740\u662f\u5426\u662f\u4e92\u8054\u7f51\u300e\u566a\u97f3\u300f\u7684\u4e00\u90e8\u5206\uff0c\u5373\u662f\u5426\u5728\u626b\u63cf\uff0c\u6295\u7968\u6216\u6076\u610f\u6d41\u91cf\u6d3b\u52a8\u4e2d\u89c2\u5bdf\u5230\u5b83\u3002<\/p>\n<p>Greynoise\u6b63\u786e\u5730\u63cf\u8ff0\u4e86\u5b83\u7684\u65b9\u6cd5\uff0c\u4ee5\u9650\u5b9a\u4e92\u8054\u7f51\u7684\u80cc\u666f\u566a\u58f0\uff0c\u5e76\u5c06\u89c2\u5bdf\u5230\u7684IP\u4e0a\u4e0b\u6587\u5316\u3002<\/p>\n<p>\u548c\u6211\u4e00\u6837\uff0c\u7ecf\u8fc7\u51e0\u6b21\u6d4b\u8bd5\u540e\uff0c\u6211\u60f3\uff1a \u597d\uff0c\u76f4\u63a5\u5728\u5bb6\u5ead\u52a9\u7406\u4e2d\u62e5\u6709\u8fd9\u4e2a\u4ecd\u7136\u5f88\u65b9\u4fbf\u3002<\/p>\n<p>\u6700\u521d\uff0c\u6211\u4ee5\u4e3a\u6211\u4f1a\u7528\u4e00\u4e2a\u7ecf\u5178\u7684HTTP\u8bf7\u6c42\u505a\u4e00\u4e9b\u975e\u5e38\u7b80\u5355\u7684\u4e8b\u60c5\u3002 \u5728\u7eb8\u4e0a\uff0c\u8fd9\u4f3c\u4e4e\u5fae\u4e0d\u8db3\u9053\u3002 \u5728\u5b9e\u8df5\u4e2d\uff0c\u6700\u660e\u663e\u7684\u65b9\u6cd5\u5e76\u4e0d\u50cf\u6211\u6240\u5e0c\u671b\u7684\u90a3\u6837\u5bf9\u6211\u6709\u6548\u3002 \u6240\u4ee5\u6211\u6539\u53d8\u4e86\u6211\u7684\u65b9\u6cd5\uff0c\u6700\u540e\u5207\u6362\u5230\u547d\u4ee4\u884c\u4f20\u611f\u5668\u3002 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4e00\u6b65\u4e00\u6b65\u5730\u544a\u8bc9\u4f60\uff0c\u56e0\u4e3a\u6211\u5b9e\u9645\u4e0a\u662f\u5728\u5bb6\u91cc\u8bbe\u7f6e\u7684\uff0c\u7528Lovelace\u5361\u8fdb\u884c\u6700\u540e\u7684\u5c55\u793a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11230\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124.png\" alt=\"\" width=\"459\" height=\"179\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124.png 459w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124-300x117.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6af5be2e0241c\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">\u5207\u6362 \u5668<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6af5be2e0241c\"  aria-label=\"\u5207\u6362 \u5668\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%8E%AF_Mon_objectif\" >\u6211 \u7684 \u76ee\u6807<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%A7%A0_GreyNoise_cest_quoi\" >\u4ec0\u4e48\u662fGreyNoise\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%86%93_Les_outils_gratuits_GreyNoise\" >\u514d\u8d39\u5de5\u5177 GreyNoise<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%A7%AA_Mon_premier_essai_dans_Home_Assistant\" >\u6211\u7684\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u5728\u5bb6\u5ead\u52a9\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%E2%8C%A8%EF%B8%8F_Pourquoi_je_suis_parti_sur_command_line\" >\u4e3a\u4ec0\u4e48\u6211\u79bb\u5f00\u547d\u4ee4\u884c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%E2%9A%99%EF%B8%8F_Configuration_dans_Home_Assistant\" >\u4e3b\u9875 \u52a9\u7406 \u2699 configuration in Home Assistant<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%A7%BE_Ce_que_le_capteur_me_remonte\" >\u300aWhat the Sensor Gets Me Back\u300b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%93%8A_Mes_cartes_Lovelace\" >\u6211 \u7684 Lovelace Cards<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%8D%84_Carte_Mushroom\" >\u5730\u56fe \u8611\u83c7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%A7%AA_Cartes_fictives\" >\u5047\u5361<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%8E%A8_Carte_Button_Card\" >\u6309\u94ae\u5361<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%93%9D_Carte_Markdown_recapitulative\" >Markdown \u5730\u56fe \u6458\u8981<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%A7%A9_Ce_que_jai_retenu_de_cette_integration\" >\u6211\u4ece\u8fd9\u6b21\u6574\u5408\u4e2d\u5b66\u5230\u4e86\u4ec0\u4e48<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%E2%9C%85_Conclusion\" >\u300a \u2705 \u7ed3\u8bba<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.sigalou-domotique.fr\/zh\/je-surveille-la-reputation-de-mon-ip-publique-dans-home-assistant\/#%F0%9F%94%97_Pour_aller_plus_loin\" >\u8d70\u5f97\u66f4\u8fdc\uff1a<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%8E%AF_Mon_objectif\"><\/span>\u6211 \u7684 \u76ee\u6807<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6211\u7684\u76ee\u6807\u5f88\u7b80\u5355\uff1a \u5728 Home Assistant \u4e2d\u96c6\u6210\u4e00\u4e2a\u80fd\u591f\u67e5\u8be2 GreyNoise \u7684\u4f20\u611f\u5668\uff0c\u4ee5\u67e5\u627e\u6211\u7684\u516c\u5171 IP \u7684\u72b6\u6001\uff0c\u7136\u540e\u5728\u6e05\u6670\u53ef\u8bfb\u7684\u4eea\u8868\u677f\u4e2d\u663e\u793a\u7ed3\u679c\u3002<\/p>\n<p>\u6211\u4eec\u7684\u60f3\u6cd5\u4e0d\u662f\u5c06\u5bb6\u5ead\u52a9\u7406\u53d8\u6210\u4e00\u4e2a\u5148\u8fdb\u7684\u7f51\u7edc\u5b89\u5168\u4e2d\u5fc3\uff0c\u800c\u662f\u6dfb\u52a0\u4e00\u4e2a\u5c0f\u7684\u4e0a\u4e0b\u6587\u6307\u6807\u3002<\/p>\n<p>\u5feb\u901f\u6d4f\u89c8\u4e00\u4e0b\u662f\u8ba9\u6211\u77e5\u9053\u6211\u7684IP\u662f\u5426\u88ab\u89c6\u4e3a\u826f\u6027\u7684\uff0c\u672a\u77e5\u7684\uff0c\u6216\u8005\u53ef\u80fd\u4e0e\u66f4\u53ef\u7591\u7684\u6d3b\u52a8\u6709\u5173\u3002<\/p>\n<p>Greynoise\u901a\u8fc7\u5176\u516c\u5171\u9a8c\u8bc1\u7aef\u70b9\u7cbe\u786e\u5730\u5217\u51fa\u4e86\u6b64\u7c7b\u4fe1\u606f\u3002<\/p>\n<p>\u6211\u4e5f\u60f3\u8981\u4e00\u4e2a\u521d\u5b66\u8005\u53ef\u4ee5\u7406\u89e3\u7684\u4e1c\u897f\uff1a \u4f20\u611f\u5668\uff0c\u4e00\u4e9b\u6709\u7528\u7684\u5c5e\u6027\uff0c\u548c\u6f02\u4eae\u7684\u5361\u7247\uff0c\u4f7f\u6240\u6709\u8fd9\u4e9b\u53ef\u8bfb\uff0c\u800c\u4e0d\u5fc5\u6253\u5f00\u7ec8\u7aef\uff0c\u663e\u7136\u4e0d\u9700\u8981\u8ba2\u9605\u4efb\u4f55\u4e1c\u897f\uff0c\u4e5f\u6ca1\u6709\u6ce8\u518c\u6211\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%A7%A0_GreyNoise_cest_quoi\"><\/span>\u4ec0\u4e48\u662fGreyNoise\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5f53\u4f60\u7b2c\u4e00\u6b21\u53d1\u73b0GreyNoise\u65f6\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u77e5\u9053\u5b83\u5230\u5e95\u662f\u4e3a\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u5728\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u7248\u672c\u4e2d\uff0cGreyNoise\u4e0d\u65ad\u89c2\u5bdf\u4e92\u8054\u7f51\u7684\u80cc\u666f\u566a\u97f3\uff1a \u81ea\u52a8\u626b\u63cf\uff0cIP\u5730\u5740\u8c03\u67e5\uff0c\u91cd\u590d\u767b\u5f55\u5c1d\u8bd5\uff0c\u6240\u6709\u8fd9\u4e9b\u884c\u4e3a\u4e0d\u4e00\u5b9a\u662f\u8089\u773c\u53ef\u89c1\u7684\uff0c\u4f46\u5728\u5168\u7403\u7f51\u7edc\u4e2d\u6c38\u4e45\u5b58\u5728\u3002<\/p>\n<p>Greynoise\u5c06\u5176\u670d\u52a1\u4f5c\u4e3a\u533a\u5206\u5b9e\u8d28\u6027\u6d3b\u52a8\u548c\u771f\u6b63\u91cd\u8981\u6d41\u91cf\u7684\u4e00\u79cd\u624b\u6bb5\u3002<\/p>\n<p>Greynoise\u7684\u5174\u8da3\u5728\u4e8e\u5b83\u4f7fIP\u5730\u5740\u4e0a\u4e0b\u6587\u5316\u6210\u4e3a\u53ef\u80fd\u3002 \u57fa\u672c\u4e0a\uff0c\u53ef\u4ee5\u77e5\u9053\u8fd9\u4e2aIP\u662f\u5426\u53c2\u4e0e\u8fd9\u79cd\u4e92\u8054\u7f51\u566a\u97f3\uff0c\u662f\u5426\u88ab\u8ba4\u4e3a\u662f\u5408\u6cd5\u7684\uff0c\u6216\u8005\u4ed6\u4eec\u7684\u7cfb\u7edf\u662f\u5426\u6839\u672c\u4e0d\u77e5\u9053\u3002 \u4ed6\u4eec\u7684\u516c\u5171\u9a8c\u8bc1\u670d\u52a1\u4ee5JSON\u7684\u5f62\u5f0f\u8fd4\u56de\u6b64\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u5f53\u6211\u660e\u767d\u8fd9\u4e00\u70b9\u65f6\uff0c\u6211\u53d1\u73b0\u8fd9\u4e2a\u60f3\u6cd5\u5bf9\u623f\u5b50\u6765\u8bf4\u662f\u975e\u5e38\u597d\u7684\u3002 \u6211\u4eec\u7ecf\u5e38\u6709\u4e00\u4e2a\u4e92\u8054\u7f51\u76d2\u5b50\uff0c\u6709\u65f6\u662f\u7aef\u53e3\u91cd\u5b9a\u5411\uff0cVPN\uff0c\u8fdc\u7a0b\u8bbf\u95ee\u8bbe\u5907\uff0c\u6211\u4eec\u5e76\u4e0d\u603b\u662f\u77e5\u9053\u6211\u4eec\u7684IP\u662f\u5982\u4f55\u4ece\u5916\u90e8\u300e\u67e5\u770b\u300f\u7684\u3002<\/p>\n<p>\u6ca1\u6709\u4e00\u4e2a\u5b8c\u6574\u7684\u5b89\u5168\u5de5\u5177\uff0cGreyNoise\u7ed9\u51fa\u4e86\u4e00\u4e2a\u6709\u8da3\u7684\u7ebf\u7d22\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%86%93_Les_outils_gratuits_GreyNoise\"><\/span>\u514d\u8d39\u5de5\u5177 GreyNoise<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11240\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-134347.png\" alt=\"\" width=\"751\" height=\"152\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-134347.png 751w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-134347-300x61.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-134347-600x121.png 600w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p>\u6211\u559c\u6b22\u7684\u662f\uff0c\u4f60\u5df2\u7ecf\u53ef\u4ee5\u514d\u8d39\u6d4b\u8bd5\u4e1c\u897f\u4e86\uff0c\u800c\u4e0d\u9700\u8981\u9a6c\u4e0a\u8fdb\u5165\u590d\u6742\u7684\u96c6\u6210\u3002<\/p>\n<p>\u7b2c\u4e00\u4e2a\u5b9e\u7528\u5de5\u5177\u662f\u4ed6\u4eec\u7684\u5728\u7ebf\u9a8c\u8bc1\u9875\u9762\u3002 \u8be5\u9875\u9762\u88ab\u6253\u5f00\uff0c\u5b83\u76f4\u63a5\u6307\u793aGreyNoise\u5982\u4f55\u67e5\u770b\u7528\u4e8e\u5bfc\u822a\u7684\u516c\u5171IP\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/check.labs.greynoise.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/check.labs.greynoise.io\/<\/a><\/li>\n<\/ul>\n<p>\u505a\u7b2c\u4e00\u6b21\u5feb\u901f\u6d4b\u8bd5\u662f\u975e\u5e38\u65b9\u4fbf\u7684\uff0c\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u4e1c\u897f\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u975e\u5e38\u6709\u8da3\u7684\u4e00\u70b9\u662f\uff0c\u6709\u4e00\u4e2a\u7b80\u5355\u7684API\u6765\u67e5\u8be2\u3002 \u8fd9\u6b63\u662f\u6211\u60f3\u5728\u5bb6\u5ead\u52a9\u7406\u4e2d\u4f7f\u7528\u7684API\u3002 \u5728\u547d\u4ee4\u884c\uff0c\u8fd9\u76f8\u5f53\u4e8e\u53d1\u51fa\u5982\u4e0b\u8bf7\u6c42\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">Curl-s-H \"\u63a5\u53d7\uff1a \u7533\u8bf7\/JSON\" https:\/\/check.labs.greynoise.io\/api\/v1\/check<\/pre>\n<p>\u5c31\u6211\u800c\u8a00\uff0c\u7b54\u6848\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\">\"IP\"\uff1a \"82.65.xxx.xxx\"\uff0c\"\u72b6\u6001\"\uff1a \"Not_found\"\uff0c\"\u5206\u7c7b\"\uff1a \u7a7a\uff0c\"noise\"\uff1a False\uff0c\"common _business _services\"\uff1a False, \"trust _level\" \uff1a null, \"error\" \uff1a \"IP \u627e\u4e0d\u5230\" }<\/pre>\n<p>\u8fd9\u79cd\u683c\u5f0f\u5f88\u597d\u5730\u5bf9\u5e94\u4e86GreyNoise\u516c\u5171\u670d\u52a1\u7684\u8bb0\u5f55\u64cd\u4f5c\uff0c\u7279\u522b\u662f\u8fd4\u56deIP\uff0c\u72b6\u6001\uff0c\u5206\u7c7b\uff0c\u6307\u6807\u3002 <code>\u566a\u97f3 \u566a\u97f3<\/code>, \u6307\u6807 <code>common_business_services<\/code>, \u4fe1\u5fc3\u6c34\u5e73\u548c\u53ef\u80fd\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<p>\u7b80\u5355\u5730\u8bf4\uff1a \u6211\u7684IP\u4e0d\u4e3aGreyNoise\u6240\u77e5\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u8fd9\u76f8\u5f53\u4ee4\u4eba\u653e\u5fc3\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%A7%AA_Mon_premier_essai_dans_Home_Assistant\"><\/span>\u6211\u7684\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u5728\u5bb6\u5ead\u52a9\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4ece\u5728\u6211\u770b\u6765\u6700\u300e\u5e72\u51c0\u300f\u7684\u89e3\u51b3\u65b9\u6848\u5f00\u59cb\uff1a \u5728 Home Assistant \u4e2d\u4f7f\u7528 REST \u4f20\u611f\u5668\u3002<\/p>\n<p>\u539f\u5219\u4e0a\uff0c\u8fd9\u662f\u5408\u4e4e\u903b\u8f91\u7684\u3002 \u6211\u6709\u4e00\u4e2aHTTP URL\u8fd4\u56deJSON\uff0c\u6240\u4ee5\u6211\u8ba4\u4e3aREST\u4f20\u611f\u5668\u53ef\u4ee5\u505a\u5f97\u5f88\u597d\u3002 Home Assistant REST \u6587\u6863\u5141\u8bb8\u7cbe\u786e\u5730\u5b9a\u4e49\u4e00\u4e2a HTTP \u8d44\u6e90\uff0c\u7528 JSON \u8bfb\u53d6 JSON\u3002 <code>\u503c_template<\/code> \u5e76\u68c0\u7d22\u5b57\u6bb5\u4f5c\u4e3a\u5c5e\u6027 <code>json_ \u5c5e\u6027<\/code>.<\/p>\n<p>\u6211\u60f3\u6211\u4f1a\u76f4\u63a5\u68c0\u7d22\u72b6\u6001\u548c\u5c5e\u6027\uff0c\u5982IP\uff0c\u5206\u7c7b\u6216\u4fe1\u4efb\u7ea7\u522b\u3002<\/p>\n<p>\u9664\u4e86\u5728\u6211\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6ca1\u6709\u6b63\u5e38\u5de5\u4f5c\u3002 \u4f20\u611f\u5668\u4ecd\u7136\u5904\u4e8e\u65e0\u6cd5\u4f7f\u7528\u7684\u72b6\u6001\u3002 \u800c\u4e0d\u662f\u6d6a\u8d39\u65f6\u95f4\u5728\u4e00\u4e2a\u6ca1\u6709\u7ed9\u6211\u7684\u5b89\u88c5\u4e00\u4e2a\u7a33\u5b9a\u7684\u7ed3\u679c\u7684\u65b9\u6cd5\u4e0a\uff0c\u6211\u51b3\u5b9a\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u8001\u5b9e\u8bf4\uff0c\u8fd9\u5c31\u662f\u5bb6\u5ead\u81ea\u52a8\u5316\u4e2d\u7ecf\u5e38\u53d1\u751f\u7684\u60c5\u51b5\uff1a \u6211\u4eec\u5e26\u7740\u4e00\u4e2a\u60f3\u6cd5\u79bb\u5f00\uff0c\u7136\u540e\u6839\u636e\u73b0\u5b9e\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E2%8C%A8%EF%B8%8F_Pourquoi_je_suis_parti_sur_command_line\"><\/span>\u4e3a\u4ec0\u4e48\u6211\u79bb\u5f00\u547d\u4ee4\u884c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6211\u7ec8\u4e8e\u9009\u62e9\u4e86\u4f9d\u9760\u547d\u4ee4\u884c\u4f20\u611f\u5668\u3002 \u5b83\u4e0d\u4e00\u5b9a\u662f\u7eb8\u4e0a\u6700\u300e\u4f18\u96c5\u300f\u7684\u65b9\u6cd5\uff0c\u4f46\u5728\u6211\u770b\u6765\uff0c\u5b83\u66f4\u53ef\u9760\u3002<\/p>\n<p>\u539f\u5219\u5f88\u7b80\u5355\uff1a Home Assistant \u6267\u884c\u547d\u4ee4 <code>\u5377\u66f2 \u5377 \u5f0f<\/code>, \u68c0\u7d22 JSON \u54cd\u5e94\uff0c\u7136\u540e\u63d0\u53d6\u4e3b\u72b6\u6001\u548c\u51e0\u4e2a\u5c5e\u6027\u3002 \u6574\u5408 \u6574\u5408 <code>_line \u547d\u4ee4<\/code> Home Assistant \u652f\u6301 shell \u547d\u4ee4\uff0ca <code>\u503c_template<\/code> JSON\u5c5e\u6027\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u6211\u4ece\u4e00\u4e2a\u5df2\u7ecf\u5728\u7ec8\u7aef\u5de5\u4f5c\u7684\u6d4b\u8bd5\u5f00\u59cb\uff0c\u7136\u540e\u6211\u7b80\u5355\u5730\u5c06\u5176\u8f6c\u6362\u4e3a\u5bb6\u5ead\u52a9\u7406\u3002<\/p>\n<p>\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u8fd9\u901a\u5e38\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u7b56\u7565\uff1a \u5f53\u67d0\u4e9b\u4e1c\u897f\u5df2\u7ecf\u624b\u5de5\u5de5\u4f5c\u65f6\uff0c\u66f4\u5bb9\u6613\u5f04\u6e05\u695a\u5bb6\u5ead\u52a9\u7406\u4e2d\u53d1\u751f\u4e86\u4ec0\u4e48\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E2%9A%99%EF%B8%8F_Configuration_dans_Home_Assistant\"><\/span>\u4e3b\u9875 \u52a9\u7406 \u2699 configuration in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u6211\u7684\u6863\u6848\u91cc <code>\u914d\u7f6e.yaml<\/code>, \u9996\u5148\uff0c\u6211\u9996\u5148\u4e3a\u6211\u7684\u547d\u4ee4\u884c\u4f20\u611f\u5668\u6dfb\u52a0\u4e86\u4e00\u4e2a\u4e13\u7528\u6587\u4ef6\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">Command_line \uff1a \u5305\u542b\u547d\u4ee4 _line.yaml<\/pre>\n<p>\u7136\u540e\uff0c\u5728 <code>command_line.yaml<\/code>, \u6211\u6dfb\u52a0\u4e86\u8fd9\u4e2a\u4f20\u611f\u5668\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u4f20\u611f\u5668\uff1a \u59d3\u540d\uff1a \"Greynoise IP Check\" \u552f\u4e00 _id\uff1a Greynoise _ip _check \u56fe\u6807\uff1a MDI:shield-search \u547d\u4ee4\uff1a \"Curl-s-H\" \u63a5\u53d7\uff1a application\/json\" https:\/\/check.labs.greynoise.io\/api\/v1\/check' command_timeout\uff1a 20 scan_interval \uff1a 100800 value_template\uff1a \"{value _json['status']}}\" json _ \u5c5e\u6027\uff1a IP - \u5206\u7c7b - \u566a\u58f0 - common_business_services - trust_level - \u9519\u8bef<\/pre>\n<p>\u6211\u5c06\u975e\u5e38\u7b80\u5355\u5730\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u6307\u6325 \u90e8<\/strong> : \u8fd9\u662f\u7531Home Assistant\u6267\u884c\u7684\u547d\u4ee4\u3002<\/li>\n<li><strong>_timeout \u547d\u4ee4<\/strong> : \u5728\u653e\u5f03\u4e4b\u524d\uff0c\u6211\u5141\u8bb8\u957f\u8fbe20\u79d2\u3002<\/li>\n<li><strong>\u626b\u63cf _ interval<\/strong> : \u8fd9\u662f\u6267\u884c\u7684\u9891\u7387\uff0c\u5728\u51e0\u79d2\u949f\u5185\u3002 \u5728\u8fd9\u91cc\uff0c\u6211\u9009\u62e9\u4e86100800\u79d2\uff0c\u6240\u4ee5\u6bcf28\u5c0f\u65f6\u3002<\/li>\n<li><strong>\u503c_template<\/strong> : \u8fd9\u6062\u590d\u4e86\u4f20\u611f\u5668\u7684\u4e3b\u8981\u503c\uff0c\u8fd9\u91cc\u662f\u573a <code>\u5730\u4f4d \u72b6\u51b5<\/code> JSON\u3002<\/li>\n<li><strong>json_ \u5c5e\u6027<\/strong> : \u8fd9\u5141\u8bb8\u5c06\u5176\u4ed6\u6709\u7528\u7684\u5b57\u6bb5\u5b58\u50a8\u4e3a\u4f20\u611f\u5668\u5c5e\u6027\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4ec0\u4e48\u662f28\u5c0f\u65f6\uff1f \u4ec5\u4ec5\u56e0\u4e3a\u6211\u4e0d\u9700\u8981\u6bcf\u5c0f\u65f6\u91c7\u8bbfGreyNoise\u3002 \u6211\u60f3\u907f\u514d24\u5c0f\u65f6\uff0c\u56e0\u4e3a\u5f88\u591a\u4f20\u611f\u5668\u90fd\u572824\u4e0a\uff0c\u6240\u4ee5\u4eca\u5929\u5c06\u662f28\u5c0f\u65f6\u3002 \u8fd9\u4e0d\u662f\u6211\u4e0d\u65ad\u53d8\u5316\u7684\u4e1c\u897f\uff0c\u6240\u4ee5\u6211\u66f4\u559c\u6b22\u95f4\u9694\u6267\u884c\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%A7%BE_Ce_que_le_capteur_me_remonte\"><\/span>\u300aWhat the Sensor Gets Me Back\u300b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11248\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-143144.png\" alt=\"\" width=\"708\" height=\"242\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-143144.png 708w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-143144-300x103.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-143144-600x205.png 600w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>\u4e00\u65e6\u4f20\u611f\u5668\u8fd0\u884c\uff0c\u6211\u6062\u590d\u4e00\u4e2a\u4e3b\u72b6\u6001\u548c\u51e0\u4e2a\u5c5e\u6027\u3002<\/p>\n<p>\u4e3b\u8981\u72b6\u6001\u662f\u5b57\u6bb5 <code>\u5730\u4f4d \u72b6\u51b5<\/code>. \u4f8b\u5982\uff0c\u5728\u5bb6\u91cc\uff0c\u6211\u5f97\u5230 <code>Not_found \u7684<\/code>. \u6b63\u662f\u8fd9\u4e2a\u503c\u6210\u4e3a\u5bb6\u5ead\u52a9\u7406\u4e2d\u7684\u4f20\u611f\u5668\u72b6\u6001\u3002 \u516c\u5171\u7aef\u70b9 GreyNoise \u5728\u5176 JSON \u54cd\u5e94\u4e2d\u8fd4\u56de\u6b64\u72b6\u6001\u57df\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u6709\u51e0\u4e2a\u6709\u7528\u7684\u5c5e\u6027\uff1a<\/p>\n<ul>\n<li><strong>IP \u7684 IP<\/strong> : \u68c0\u6d4b\u5230\u7684\u516c\u5171 IP \u5730\u5740\u3002<\/li>\n<li><strong>\u5206\u7c7b \u5206\u7c7b<\/strong> : \u5206\u7c7b\uff0c\u5982\u679c\u6709\u7684\u8bdd\u3002<\/li>\n<li><strong>\u566a\u97f3 \u566a\u97f3<\/strong> : \u8868\u793a IP \u662f\u5426\u88ab\u89c6\u4e3a\u4e92\u8054\u7f51\u566a\u58f0\u7684\u4e00\u90e8\u5206\u3002<\/li>\n<li><strong>common_business_services<\/strong> : \u8868\u793a IP \u662f\u5426\u4e0e\u5df2\u77e5\u7684\u4f01\u4e1a\u670d\u52a1\u76f8\u5173\u8054\u3002<\/li>\n<li><strong>_ \u7ea7 \u4fe1\u4efb<\/strong> : \u53ef\u7528\u65f6\u589e\u52a0\u4e00\u4e2a\u6307\u6807\u3002<\/li>\n<li><strong>\u9519\u8bef @ info<\/strong> : \u4fe1\u606f\u4fe1\u606f\uff0c\u4f8b\u5982\"ip not found\"\u3002<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%93%8A_Mes_cartes_Lovelace\"><\/span>\u6211 \u7684 Lovelace Cards<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e00\u65e6\u4f20\u611f\u5668\u88ab\u521b\u5efa\uff0c\u6211\u7279\u522b\u5e0c\u671b\u5728\u4eea\u8868\u677f\u4e0a\u6709\u4e00\u4e2a\u6f02\u4eae\u7684\u663e\u793a\u3002 \u6240\u4ee5\u6211\u505a\u4e86\u4e00\u4e2a\u5c0f\u7684\u4e13\u7528\u9875\u9762\uff0c\u4e0a\u9762\u6709\u51e0\u5f20\u5361\u7247\u6765\u6d4b\u8bd5\u6e32\u67d3\u3002<\/p>\n<p>\u6211\u7528\u7684\u662f\u8611\u83c7\uff0c\u6309\u94ae\u5361\u548cMarkdown\u5361\u3002 \u8fd9\u8ba9\u6211\u6bd4\u8f83\u4e86\u66f4\"\u6e05\u9192\"\u7684\u98ce\u683c\uff0c\u66f4\"\u89c6\u89c9\"\u7684\u98ce\u683c\uff0c\u4ee5\u53ca\u66f4\"\u4fe1\u606f\u5316\"\u7684\u98ce\u683c\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%8D%84_Carte_Mushroom\"><\/span>\u5730\u56fe \u8611\u83c7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11227\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-130555.png\" alt=\"\" width=\"457\" height=\"115\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-130555.png 457w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-130555-300x75.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/p>\n<p>\u6211\u5236\u4f5c\u7684\u7b2c\u4e00\u5f20\u5361\u7247\u662f\u57fa\u4e8e\u5b9e\u9645\u4f20\u611f\u5668\u7684\u8611\u83c7\u5361\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u7c7b\u578b \uff1a custom:mushroom-template-card \u5b9e\u4f53\uff1a Sensor.greynoise_ip_check \u4e3b\u6761\u76ee\uff1a &gt; {% \u8bbe\u7f6e c = state_attr(entity, 'classification') %} {% \u5982\u679c c =='\u6076\u610f' %Greynoise\uff1a \u6076\u610f\u6d3b\u52a8 {% Elif c ==\u300e\u53ef\u7591\u300f %Greynoise\uff1a \u53ef\u7591\u6d3b\u52a8 {% Elif c == \u826f\u6027 %Greynoise\uff1a \u5408\u6cd5\u670d\u52a1 {% Elif\u5728['not _found', 'unknown', 'unavailable']\u4e2d\u58f0\u660e(entity)in ['not _found', 'unknown', 'unavailable'] %Greynoise\uff1a \u65e0\u5df2\u77e5\u6d3b\u52a8 {% \u5176\u4ed6 \u5176\u5b83 %Greynoise\uff1a {{State(entity)} { \u56fd\u5bb6(entity)} {% Endif \u7684 %} \u6b21\u8981\uff1a &gt; {% ip = state_attr(entity, 'ip')\u6216 'IP unknown' %} {% \u8bbe\u7f6e classif = state_attr(entity, 'classification')\u6216 'none' %} {% \u8bbe\u7f6e\u566a\u58f0 = state_attr(entity, 'noise') %} {% \u8bbe\u7f6e cbs = state_attr(entity, 'common_business_services') %IP\uff1a {{{ IP }} \u2022 \u5206\u7c7b\uff1a {classif } \u2022 \u566a\u58f0\uff1a {{\u566a\u58f0}} \u2022 \u5df2\u77e5\u670d\u52a1\uff1a {{CBS }} \u56fe\u6807\uff1a &gt; {% \u8bbe\u7f6e c = state_attr(entity, 'classification') %} {% \u5982\u679c c =='\u6076\u610f' %MDI:shield-alert {% Elif c ==\u300e\u53ef\u7591\u300f %MDI:shield-search {% Elif c == \u826f\u6027 %MDI:shield-check {% \u5176\u4ed6 \u5176\u5b83 %MDI:shield-check-outline {% Endif \u7684 %icon_color \uff1a &gt; {% \u8bbe\u7f6e c = state_attr(entity, 'classification') %} {% \u5982\u679c c =='\u6076\u610f' %\u7ea2\u8272 {% Elif c ==\u300e\u53ef\u7591\u300f %\u6a59\u8272 {% Elif c == \u826f\u6027 %} Teal {% \u5176\u4ed6 \u5176\u5b83 %\u7eff\u8272 {% Endif \u7684 %\u591a\u884c _ \u6b21\u8981 \uff1a true fill_container \uff1a \u771f\u6b63\u7684tap_action \uff1a \u884c\u52a8\uff1a \u66f4\u591a \u4fe1\u606f<\/pre>\n<p>\u6211\u771f\u7684\u5f88\u559c\u6b22\u8fd9\u5f20\u5361\u7247\uff0c\u56e0\u4e3a\u5b83\u5f88\u5bb9\u6613\u9605\u8bfb\u3002 \u4e4d\u4e00\u770b\uff0c\u6211\u770b\u5230\u4e86\u4e00\u4e2a\u6e05\u6670\u7684\u4fe1\u606f\uff0c\u4e00\u4e2a\u5408\u9002\u7684\u56fe\u6807\u548c\u4e00\u81f4\u7684\u989c\u8272\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%A7%AA_Cartes_fictives\"><\/span>\u5047\u5361<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11230\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124.png\" alt=\"\" width=\"459\" height=\"179\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124.png 459w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131124-300x117.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/p>\n<p>\u4e3a\u4e86\u5728\u89c6\u89c9\u4e0a\u6bd4\u8f83\u72b6\u6001\uff0c\u6211\u8fd8\u521b\u5efa\u4e86\u4e00\u4e9b\u7eaf\u7cb9\u865a\u6784\u7684\u5730\u56fe\u3002 \u8fd9\u4f7f\u5f97\u53ef\u4ee5\u5728\u4e0d\u7b49\u5f85\u5b83\u4eec\u5b9e\u9645\u53d1\u751f\u7684\u60c5\u51b5\u4e0b\u770b\u5230\u4e0d\u540c\u7684\u6848\u4f8b\u4f1a\u662f\u4ec0\u4e48\u6837\u5b50\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u7c7b\u578b \uff1a \u5782\u76f4\u5806\u6808\u5361\uff1a \u7c7b\u578b\uff1a \u81ea\u5b9a\u4e49\uff1amushroom-template-card \uff1a Fictif - \u4e3b\u8981\u4e3a\u6b21\u8981\uff1a Pi\uff1a 45.67.89.10 \u566a\u58f0 \u566a\u58f0\uff1a True\" \u56fe\u6807\uff1a MDI:shield-alert icon_color\uff1a \u7ea2\u8272\u591a\u884c _ \u6b21\u7ea7\uff1a True - \u7c7b\u578b \uff1a \u81ea\u5b9a\u4e49\uff1amushroom-template-card \uff1a Fictif - \u826f\u6027\u6b21\u8981\uff1a Pi\uff1a 1.1.1.1 \u2022 \u826f\u6027 \u2022 \u566a\u58f0\uff1a false\" \u56fe\u6807 \uff1a MDI:shield-check icon_color \uff1a Teal multiline _secondary \uff1a True - \u7c7b\u578b \uff1a \u81ea\u5b9a\u4e49\uff1amushroom-template-card \uff1a Fictif - \u672a\u627e\u5230\u6b21\u8981\u7684\uff1a Pi\uff1a 82.65.100.200 \u2022 Not_found \u2022\u566a\u58f0\uff1a false\" \u56fe\u6807 \uff1a MDI:shield-check-outline icon_color\uff1a \u7eff\u8272\u591a\u7ebf _ \u4e2d\u5b66\uff1a \u771f\u5b9e \u7684<\/pre>\n<p>\u8fd9\u5f88\u611a\u8822\uff0c\u4f46\u5f53\u4f60\u6784\u5efa\u4e00\u4e2a\u63a5\u53e3\u65f6\u975e\u5e38\u6709\u7528\uff1a \u4f60\u53ef\u4ee5\u5728\u62e5\u6709\u771f\u5b9e\u6848\u4f8b\u4e4b\u524d\u9009\u62e9\u8fd9\u79cd\u98ce\u683c\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%8E%A8_Carte_Button_Card\"><\/span>\u6309\u94ae\u5361<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11233\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131446.png\" alt=\"\" width=\"468\" height=\"101\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131446.png 468w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131446-300x65.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/p>\n<p>\u7136\u540e\u6211\u60f3\u8981\u4e00\u4e9b\u66f4\u76f4\u89c2\u7684\u4e1c\u897f\uff0c\u51e0\u4e4e\u50cf\u4e00\u5f20\u8b66\u793a\u5361\u3002 \u6211\u7528\u4e86Button Card\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u7c7b\u578b \uff1a custom:button-card \u5b9e\u4f53\uff1a Sensor.greynoise_ip_check \u540d\u79f0\uff1a | [[const c = entity?.attributes.classification; \u5982\u679c\uff08c === '\u6076\u610f'\uff09\u8fd4\u56de 'GreyNoise - \u6076\u610f\u6d3b\u52a8'; \u5982\u679c\uff08c ===\"\u53ef\u7591\"\uff09\u8fd4\u56de\"GreyNoise -\u53ef\u7591\u6d3b\u52a8\"\uff1b \u5982\u679c(c === 'benign')\u8fd4\u56de 'GreyNoise - \u5408\u6cd5\u670d\u52a1'\uff1b \u8fd4\u56de\"GreyNoise - \u6ca1\u6709\u5df2\u77e5\u6d3b\u52a8\"\uff1b ]] \u56fe\u6807\uff1a | [[const c = entity?.attributes.classification; \u5982\u679c(c === 'malicious')\u8fd4\u56de 'mdi:shield-alert'\uff1b \u5982\u679c(c ==='suspicious')\u8fd4\u56de 'mdi:shield-search'\uff1b \u5982\u679c(c === 'benign')\u8fd4\u56de 'mdi:shield-check'\uff1b \u8fd4\u56de 'mdi:shield-check-outline'\uff1b ]]] show _state \uff1a \u771f\u5b9e state_display \uff1a | [[[[\u8fd4\u56de\u5b9e\u4f53\uff1f.state \u03b8'unknown'; ]] \u6807\u7b7e\uff1a | [[[ const ip = entity?.attributes .ip 'IP unknown'; const c = entity?.attributes\uff1f || \u5206\u7c7b 'none'; Const noise = \u5b9e\u4f53\uff1f.attributes\uff1f.noise\uff1b const cbs = entity\uff1f.attributes\uff1f.common _business _services; \u8fd4\u56de 'IP ${IP} $\u566a\u97f3\uff1a ${noise} \u2022 \u5e38\u89c1\u4e1a\u52a1\uff1a ${CBS}; ]]] show_label \uff1a \u771f\u6b63\u7684tap_action \uff1a \u884c\u52a8\uff1a \u66f4\u591a\u4fe1\u606f\u6837\u5f0f\uff1a \u5361 \uff1a \u586b\u5145 \uff1a 18px - border-radius\uff1a 20px - \u989c\u8272\uff1a \u767d\u8272 - \u80cc\u666f\uff1a | [[const c = entity?.attributes.classification; \u5982\u679c(c === 'malicious')\u8fd4\u56de 'linear-gradient\uff08135deg, #b71c1c 0%, #E53935 100%\uff09 \u5982\u679c(c ==='suspicious')\u8fd4\u56de 'linear-gradient\uff08135deg, #ef6c00 0%, #FFA726 100%\uff09 if(c === 'benign')\u8fd4\u56de 'linear-gradient\uff08135deg, #00695c 0%, #26a69a100%\uff09 \u8fd4\u56de\u7ebf\u6027\u68af\u5ea6\uff08135deg, #2e7d32 0%, #66bb6a 100%\uff09 ] \u7f51\u683c\uff1a \u7f51\u683c\u6a21\u677f\u533a\u57df\uff1a \"I n\\\"\\\"i s\\\"\\\"l l\\\" - grid-template-columns\uff1a 60px 1fr - \u7f51\u683c\u6a21\u677f\u884c\uff1a min-content min-content min-content \u56fe\u6807\uff1a \u5bbd\u5ea6\uff1a 42px - \u989c\u8272\uff1a \u767d\u8272\u540d\u5b57\uff1a \u81ea\u6211\u8bc1\u660e\uff1a Start - font-size \uff1a 18px - \u5b57\u4f53\u91cd\u91cf\uff1a 700\u4e2a\u5dde\uff1a \u81ea\u6211\u8bc1\u660e\uff1a Start - font-size \uff1a 15px - \u5b57\u4f53\u91cd\u91cf\uff1a 500 \u6807\u7b7e\uff1a \u81ea\u6211\u8bc1\u660e\uff1a \u4e2d\u5fc3 - text-align \uff1a \u4e2d\u5fc3 - \u5bbd\u5ea6 \uff1a 100% \u5b57\u4f53\u5927\u5c0f\uff1a 13px - \u4e0d\u900f\u660e\u6027\uff1a 0.92<\/pre>\n<p>\u8fd9\u5f20\u5361\u975e\u5e38\u597d\uff0c\u7279\u522b\u662f\u5f53\u4f60\u60f3\u8981\u4e00\u4e9b\u66f4\u5f15\u4eba\u6ce8\u76ee\u7684\u4e1c\u897f\u65f6\u3002 \u6211\u4e5f\u8c03\u6574\u4e86\u5e95\u7ebf\uff0c\u4f7f\u5176\u4ee5\u4e2d\u5fc3\uff0c\u8fd9\u786e\u5b9e\u6539\u5584\u4e86\u6e32\u67d3\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%F0%9F%93%9D_Carte_Markdown_recapitulative\"><\/span>Markdown \u5730\u56fe \u6458\u8981<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11235\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131623.png\" alt=\"\" width=\"451\" height=\"332\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131623.png 451w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2026\/03\/Capture-decran-2026-03-29-131623-300x221.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/p>\n<p>\u6700\u540e\uff0c\u6211\u6dfb\u52a0\u4e86\u4e00\u5f20Markdown\u5361\uff0c\u4ee5\u6e05\u6670\u7684\u65b9\u5f0f\u663e\u793a\u6240\u6709\u4fe1\u606f\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\u7c7b\u578b \uff1a Markdown \u5185\u5bb9\uff1a &gt;- {% \u8bbe\u7f6e e = 'sensor.greynoise _ip _check' %} ## \u5b8c\u6574\u7684GreyNoise\u62a5\u544a - **Status**\uff1a {{State(e)}} - **IP**\uff1a {{ state_attr(e, 'ip')\u6216 'unknown'} - **\u5206\u7c7b**\uff1a {{ state_attr(e, 'classification')\u6216'none'}} - **\u4e92\u8054\u7f51\u566a\u97f3**\uff1a {state_attr(e, 'noise')} - **Known \u670d\u52a1**\uff1a { state_attr(e, 'common_business_services')} - ** \u4fe1\u4efb\u7ea7\u522b**\uff1a {{ state_attr(e, 'trust _level')\u6216 '-}} - **\u4fe1\u606f\u6d88\u606f**\uff1a {{ state_attr(e, 'error')\u6216 'none' } } --- - - ** \u8bf7\u6c42\u7684\u6700\u540e\u4e00\u6b21\u6267\u884c**\uff1a {{{ relative _time(states[e].last _updated)} - **\u4e0a\u6b21\u6267\u884c\u7684horodatage**\uff1a {{ as_local(states[e].last _updated).strftime(')%d\/%m\/%Y \u4f4d %H:%M:%S'\uff09}<\/pre>\n<p>\u6211\u559c\u6b22\u8fd9\u5f20\u5361\uff0c\u56e0\u4e3a\u5b83\u975e\u5e38\u6e05\u6670\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u8bca\u65ad\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u6211\u6dfb\u52a0\u4e86\u81ea\u4e0a\u6b21\u66f4\u65b0\u4ee5\u6765\u6240\u7ecf\u8fc7\u7684\u65f6\u95f4\u7684\u6982\u5ff5\uff0c\u8fd9\u5bf9\u4e8e\u77e5\u9053\u8bf7\u6c42\u4f55\u65f6\u5b9e\u9645\u6267\u884c\u662f\u6709\u7528\u7684\u3002<\/p>\n<p>\u7269\u4e1a \u7269\u4e1a <code>last_updated<\/code> \u4ee5\u53ca <code>Last_changed \u7684<\/code> \u5728Home Assistant\u6a21\u677f\u5f15\u64ce\u4e2d\u975e\u5e38\u9002\u5408\u8fd9\u79cd\u7c7b\u578b\u7684\u4f7f\u7528\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%A7%A9_Ce_que_jai_retenu_de_cette_integration\"><\/span>\u6211\u4ece\u8fd9\u6b21\u6574\u5408\u4e2d\u5b66\u5230\u4e86\u4ec0\u4e48<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u4e2a\u5c0f\u9879\u76ee\u8ba9\u6211\u60f3\u8d77\u4e86\u4e00\u4ef6\u91cd\u8981\u7684\u4e8b\u60c5\uff1a \u5728\u5bb6\u5ead\u81ea\u52a8\u5316\u4e2d\uff0c\u6700\u91cd\u8981\u7684\u4e0d\u662f\u7406\u8bba\u4e0a\u6700\u4f18\u96c5\u7684\u65b9\u6cd5\uff0c\u800c\u662f\u771f\u6b63\u53ef\u9760\u5730\u5728\u5bb6\u91cc\u5de5\u4f5c\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u8d77\u521d\uff0c\u6211\u60f3\u53bbREST\u3002 \u6700\u540e\uff0c\u662f\u547d\u4ee4\u884c\u4f20\u611f\u5668\uff0c\u8ba9\u6211\u80fd\u591f\u5b9e\u73b0\u7a33\u5b9a\uff0c\u53ef\u8bfb\u548c\u6613\u4e8e\u7ef4\u62a4\u7684\u7ed3\u679c\u3002 \u5766\u7387\u5730\u8bf4\uff0c\u5bf9\u4e8e\u56fd\u5185\u4f7f\u7528\uff0c\u8fd9\u6b63\u662f\u6211\u6240\u5bfb\u627e\u7684\u3002<\/p>\n<p>\u6211\u4e5f\u610f\u8bc6\u5230\uff0c\u8fd9\u79cd\u6574\u5408\u5177\u6709\u771f\u6b63\u7684\u6559\u5b66\u4ef7\u503c\u3002 \u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u68c0\u7d22JSON\uff0c\u521b\u5efa\u5bb6\u5ead\u52a9\u7406\u4f20\u611f\u5668\uff0c\u5229\u7528\u5c5e\u6027\uff0c\u683c\u5f0f\u5316\u4eea\u8868\u677f\uff0c\u5e76\u5c06\u539f\u59cb\u4fe1\u606f\u8f6c\u6362\u4e3a\u53ef\u89c6\u89c9\u548c\u53ef\u7406\u89e3\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u5728\u4eea\u8868\u677f\u7684\u4e00\u4e2a\u5c0f\u89d2\u843d\u91cc\u4f7f\u7528\u4e86\u8611\u83c7\u5361\uff0c\u4e00\u76ee\u4e86\u7136\uff0c\u6211\u4f1a\u770b\u770b\u56fe\u6807\u662f\u5426\u53d8\u6210\u7ea2\u8272\u3002<\/p>\n<p>\u5982\u679c\u5fc3\u810f\u544a\u8bc9\u6211\uff0c\u6211\u53ef\u4ee5\u5728\u4efb\u4f55\u77ed\u4fe1\u6216\u89c6\u89c9\u901a\u77e5\u7684\u89e6\u53d1\u5668\u4e2d\u6dfb\u52a0\u4f20\u611f\u5668.greynoise_ip_check\u7684\u72b6\u6001\u53d8\u5316\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E2%9C%85_Conclusion\"><\/span>\u300a \u2705 \u7ed3\u8bba<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728GreyNoise\u4e2d\uff0c\u6211\u5728Home Assistant\u4e2d\u6dfb\u52a0\u4e86\u4e00\u5c0f\u5757\u7f51\u7edc\u4e0a\u4e0b\u6587\uff0c\u6211\u89c9\u5f97\u975e\u5e38\u6709\u8da3\u3002 \u5b83\u4e0d\u662f\u4e00\u4e2a\u5947\u8ff9\u5de5\u5177\uff0c\u4e5f\u4e0d\u662f\u4e00\u4e2a\u5b8c\u6574\u7684SDI\uff0c\u4f46\u5b83\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u6307\u6807\uff0c\u8868\u660e\u6211\u7684\u516c\u5171IP\u662f\u5982\u4f55\u4ece\u5916\u90e8\u611f\u77e5\u7684\u3002<\/p>\n<p>\u6211\u9996\u5148\u6d4b\u8bd5\u4e86\u5728\u7ebf\u9a8c\u8bc1\u9875\u9762\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8fdb\u884c\u4e86API\u67e5\u8be2\uff0c\u7136\u540e\u5c1d\u8bd5\u4e86Home Assistant\u7684\u96c6\u6210\u3002 \u7531\u4e8eREST\u4f20\u611f\u5668\u5728\u6211\u7684\u60c5\u51b5\u4e0b\u6ca1\u6709\u7ed3\u8bba\u6027\uff0c\u6211\u79bb\u5f00\u4e86\u3002 <code>_line \u547d\u4ee4<\/code>, \u6700\u7ec8\uff0c\u6b63\u662f\u8fd9\u79cd\u65b9\u6cd5\u5b8c\u6210\u4e86\u8fd9\u9879\u5de5\u4f5c\u3002 \u63cf\u8ff0\u7684\u65b9\u6cd5\u4e0e Home Assistant \u7684 REST \u548c command_line \u96c6\u6210\u7684\u6587\u6863\u529f\u80fd\u4e00\u81f4\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u5f97\u5230\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u4f20\u611f\u5668\uff0c\u4e00\u4e9b\u6709\u7528\u7684\u5c5e\u6027\uff0c\u6700\u91cd\u8981\u7684\u662f\uff0c\u9605\u8bfb\u6109\u5feb\u7684Lovelace\u5361\u3002 \u5bf9\u6211\u6765\u8bf4\uff0c\u8fd9\u6b63\u662f\u6211\u559c\u6b22\u7684\u90a3\u79cd\u878d\u5408\uff1a \u8d77\u521d\u662f\u4e00\u4e2a\u6709\u70b9\u6280\u672f\u6027\u7684\u4e3b\u9898\uff0c\u4f46\u8f6c\u5316\u4e3a\u5177\u4f53\uff0c\u89c6\u89c9\u548c\u65e5\u5e38\u53ef\u8bbf\u95ee\u7684\u4e1c\u897f\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%F0%9F%94%97_Pour_aller_plus_loin\"><\/span>\u8d70\u5f97\u66f4\u8fdc\uff1a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/viz.greynoise.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/viz.greynoise.io\/<\/a><\/li>\n<li><a href=\"https:\/\/check.labs.greynoise.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/check.labs.greynoise.io\/<\/a><\/li>\n<li><a href=\"https:\/\/ougier.net\/cyber-zombies-votre-routeur-est-il-un-soldat-pour-un-botnet\/\" target=\"_blank\" rel=\"noopener\">https:\/\/ougier.net\/cyber-zombies-votre-routeur-est-il-un-soldat-pour-un-botnet\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>\u6211\u82b1\u4e86\u5f88\u591a\u65f6\u95f4\u76d1\u63a7\uff0c\u4fdd\u62a4\u548c\u7406\u89e3\u5bb6\u5ead\u7f51\u7edc\u4e0a\u53d1\u751f\u7684\u4e8b\u60c5\u3002 \u5728\u4e92\u8054\u7f51\u76d2\u5b50\uff0c\u65e0\u610f\u4e2d\u66b4\u9732\u7684\u8bbe\u5907\u4ee5\u53ca\u4e92\u8054\u7f51\u7684\u6c38\u4e45\u626b\u63cf\u4e4b\u95f4\uff0c\u6211\u66fe\u7ecf\u60f3\u8fc7\u4e00\u4ef6\u7b80\u5355\u7684\u4e8b\u60c5\uff1a \u6211\u7684\u516c\u5171IP\u662f\u5426\u88ab\u79f0\u4e3a\u300e\u566a\u97f3\u300f\u6216\u53ef\u7591[\u2026]<\/p>","protected":false},"author":1,"featured_media":11238,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70,14,53],"tags":[],"class_list":["post-11223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurite","category-domotique","category-home-assistant"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/11223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/comments?post=11223"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/11223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media\/11238"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media?parent=11223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/categories?post=11223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/tags?post=11223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}