{"id":6913,"date":"2024-04-25T10:57:25","date_gmt":"2024-04-25T08:57:25","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=6913"},"modified":"2026-01-02T16:56:12","modified_gmt":"2026-01-02T14:56:12","slug":"je-change-le-port-de-home-assistant","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/zh\/je-change-le-port-de-home-assistant","title":{"rendered":"\u6211\u6362\u4e86\u5bb6\u5ead\u52a9\u7406\u7684\u6e2f\u53e3"},"content":{"rendered":"<h2>\u6211\u7684\u76ee\u6807<\/h2>\r\n<p>\u4e3a\u4e86\u907f\u514d\u4f7f\u7528\u300e\u6807\u51c6\u300f\u7aef\u53e3\uff0c\u56e0\u6b64\u51fa\u4e8e\u5b89\u5168\u539f\u56e0\uff0c\u6211\u60f3\u66f4\u6539Home Assistant\u7684\u7aef\u53e3\u3002<\/p>\r\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u7aef\u53e3 8123\u3002 \u5bf9\u4e8e\u8fd9\u4e2aRETEX\uff0c\u6211\u5c06\u9009\u62e98888\u4f5c\u4e3a\u4e00\u4e2a\u4f8b\u5b50\uff0c\u4f46\u6211\u663e\u7136\u5728\u5bb6\u91cc\u7528\u4e86\u53e6\u4e00\u4e2a\u3002<\/p>\r\n<p><!--more--><\/p>\r\n<h2>\u4fee\u6539 configuration.yaml \u6587\u4ef6<\/h2>\r\n<p>\u4ee5\u4e00\u79cd\u975e\u5e38\u7ecf\u5178\u7684\u65b9\u5f0f\uff0c\u6211\u5c06\u4fee\u6539config.yaml\u6587\u4ef6\uff0c\u6211\u5c06\u6dfb\u52a0\u8fd9\u4e24\u884c\uff1a<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">HTTP \uff1a server_port \uff1a 8888<\/pre>\r\n<p>\u00a0<\/p>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6914\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png\" alt=\"\" width=\"501\" height=\"133\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png 501w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-300x80.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\r\n<h2>\u6211\u91cd\u65b0\u542f\u52a8\u5bb6\u5ead\u52a9\u7406<\/h2>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6917\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png\" alt=\"\" width=\"755\" height=\"476\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png 755w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1-600x378.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1-300x189.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\r\n<h2>\u6211\u7528\u65b0\u5730\u5740\u767b\u5f55<\/h2>\r\n<p>\u8981\u767b\u5f55Home Assistant\uff0chttp:\/\/homeassistant.local:8321\uff1a<\/p>\r\n<ul>\r\n<li>http:\/\/homeassistant.local:8888<\/li>\r\n<\/ul>\r\n<h2>\u6211\u6d4b\u8bd5\u4e86 Nabu Casa \u7684\u5916\u90e8\u8bbf\u95ee<\/h2>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/logo-text.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6920\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/logo-text.png\" alt=\"\" width=\"253\" height=\"214\" \/><\/a><\/p>\r\n<p>\u4e0d\u7528\u62c5\u5fc3\uff0cNabu Casa\u5de5\u4f5c\u5f97\u5f88\u597d\uff0c\u4e0e\u6211\u7684Ha\u7684\u5916\u90e8\u8fde\u63a5\u662f\u597d\u7684\u3002\u00a0<\/p>\r\n<h2>\u4e66\u76ee \u76ee \u76ee<\/h2>\r\n<ul>\r\n<li><a href=\"https:\/\/www.wundertech.net\/how-to-access-home-assistant-remotely\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.wundertech.net\/how-to-access-home-assistant-remotely\/<\/a><\/li>\r\n<li><a href=\"https:\/\/rapidlydigital.com\/change-default-port-number-in-home-assistant\/\" target=\"_blank\" rel=\"noopener\">https:\/\/rapidlydigital.com\/change-default-port-number-in-home-assistant\/<\/a><\/li>\r\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Mon objectif Pour \u00e9viter d&rsquo;utiliser un port \u00ab\u00a0standard\u00a0\u00bb, donc par s\u00e9curit\u00e9, je voudrais changer le port de Home Assistant. Par d\u00e9faut, c&rsquo;est le port 8123 qui est utilis\u00e9. Pour ce RetEx, je vais choisir 8888 comme exemple mais j&rsquo;ai \u00e9videmment utilis\u00e9 un autre chez moi.<\/p>","protected":false},"author":1,"featured_media":7040,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70,14,53,166],"tags":[],"class_list":["post-6913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurite","category-domotique","category-home-assistant","category-retex"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/6913","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=6913"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/6913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media\/7040"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media?parent=6913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/categories?post=6913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/tags?post=6913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}