{"id":4845,"date":"2025-07-07T10:00:00","date_gmt":"2025-07-07T15:00:00","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=4845"},"modified":"2025-05-14T21:41:42","modified_gmt":"2025-05-15T02:41:42","slug":"renaming-hostnames-in-esphome","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=4845","title":{"rendered":"Renaming Hostnames in ESPHome"},"content":{"rendered":"\n<p>I&#8217;ve been a bit annoyed by the default esphome-web names that many of my devices have. I haven&#8217;t tried renaming many of them, which seems to be simpler now than when I first renamed a few of them years ago. I also have a secondary issue in my ESPHome dashboard, devices showing as offline, but that are online in Home Assistant.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>These devices that are showing as offline, are also refusing to update, but when I check on them in home assistant, everything is working just fine. I feel like it&#8217;s an issue with my VLANs but I haven&#8217;t changed anything with those settings since I got them working, so I&#8217;m not sure why it stopped working.<\/p>\n\n\n\n<p>This really came to be a problem when I was working on my catomater, as I could see a good ping it in the dashboard, but I couldn&#8217;t use the rename hostname function as it would fail to OTA update the device claiming it was &#8220;offline&#8221;. Other OTA updates would occasionally fail for the catomater, but not all of them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"640\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-1.png\" alt=\"\" class=\"wp-image-4847\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-1.png 1002w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-1-300x192.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-1-768x491.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">I think this may help with VLANs<\/figcaption><\/figure>\n\n\n\n<p>I first went into the home assistant network adapter settings. I found the configuration would let me select a network adapter for use with multicast traffic. I decided to select both VLAN adapters and rebooted home assistant for those settings to take.<\/p>\n\n\n\n<p>The second thing that I tried helped significantly. If I went and found the device IP (I found it in my unifi dashboard), and added it as a use_ip entry in the WiFi settings of the ESPHome device. ESPHome builder would then find the device and it would start pinging successfully, and OTA updates would work.<\/p>\n\n\n\n<p>After that I could use the rename hostname function in ESPHome Builder successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"805\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-2.png\" alt=\"\" class=\"wp-image-4849\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-2.png 503w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-2-187x300.png 187w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><figcaption class=\"wp-element-caption\">Rename Hostname <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"300\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-3.png\" alt=\"\" class=\"wp-image-4850\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-3.png 512w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-3-300x176.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><figcaption class=\"wp-element-caption\">Pick a New Name <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"1024\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-882x1024.png\" alt=\"\" class=\"wp-image-4846\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-882x1024.png 882w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-258x300.png 258w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-768x892.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image-1322x1536.png 1322w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2025\/04\/image.png 1523w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Good to Go!<\/figcaption><\/figure>\n\n\n\n<p>Finally all my ESPHome devices have meaningful hostnames, and are pinging successfully in the ESPHome builder. I no longer have issues with OTA updates, so now I can continue working on some of my odd little ESPHome projects without blockers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been a bit annoyed by the default esphome-web names that many of my devices have. I haven&#8217;t tried renaming many of them, which seems to be simpler now than when I first renamed a few of them years ago. I also have a secondary issue in my ESPHome dashboard, devices showing as offline, but &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lab.rapternet.us\/?p=4845\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Renaming Hostnames in ESPHome&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,9],"tags":[74,39,67,49],"class_list":["post-4845","post","type-post","status-publish","format-standard","hentry","category-how-to","category-networking","tag-esphome","tag-home-assistant","tag-network","tag-smart-home"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4845"}],"version-history":[{"count":5,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4845\/revisions"}],"predecessor-version":[{"id":4929,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/4845\/revisions\/4929"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}