{"id":8199,"date":"2024-12-16T14:44:54","date_gmt":"2024-12-16T12:44:54","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=8199"},"modified":"2026-01-03T16:20:43","modified_gmt":"2026-01-03T14:20:43","slug":"flasher-un-d1-mini-v4","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/flasher-un-d1-mini-v4","title":{"rendered":"Flash a D1 Mini V4 with ESP Home"},"content":{"rendered":"<p>This article follows on from the previous article:<\/p>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/en\/flasher-un-d1-mini\/\" target=\"_blank\" rel=\"noopener\">Flashing a D1 Mini<\/a><\/p>\r\n<p>I wanted to replace a flashed D1 Mini with ESP Easy and chatting in MQTT with Home Assistant with the new <a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/d1-mini-v4\/\" target=\"_blank\" rel=\"noopener\">D1 MINI V4<\/a>, This time, I'm interconnecting it with ESP Home.<\/p>\r\n<p><!--more-->To Flash a\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/d1-mini-v4\/\" target=\"_blank\" rel=\"noopener\">D1 MINI V4<\/a> with ESP Home, you have to<\/p>\r\n<ol class=\"-mt-1 [li&gt;&amp;]:mt-2 list-decimal space-y-2 pl-8\">\r\n<li class=\"whitespace-normal break-words\">Necessary equipment:<\/li>\r\n<\/ol>\r\n<ul class=\"-mt-1 [li&gt;&amp;]:mt-2 list-disc space-y-2 pl-8\">\r\n<li class=\"whitespace-normal break-words\">A\u00a0<a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/d1-mini-v4\/\" target=\"_blank\" rel=\"noopener\">D1 MINI V4<\/a><\/li>\r\n<li class=\"whitespace-normal break-words\">A good quality micro-USB cable (for data connection, not just power supply)<\/li>\r\n<li class=\"whitespace-normal break-words\">A computer with a USB port<\/li>\r\n<\/ul>\r\n<ol class=\"-mt-1 [li&gt;&amp;]:mt-2 list-decimal space-y-2 pl-8\" start=\"2\">\r\n<li class=\"whitespace-normal break-words\">Software required:<\/li>\r\n<\/ol>\r\n<ul class=\"-mt-1 [li&gt;&amp;]:mt-2 list-disc space-y-2 pl-8\">\r\n<li class=\"whitespace-normal break-words\">ESPHome installed on a Home Assistant<\/li>\r\n<li class=\"whitespace-normal break-words\">according to the doc: A USB-series driver (CH340 for the D1 mini V4) I did not need it.<\/li>\r\n<\/ul>\r\n<h2>ESP Home Builder<\/h2>\r\n<p>If it is not already installed, I install the ESPHome Device Builder integration<\/p>\r\n<p><a href=\"https:\/\/my.home-assistant.io\/redirect\/supervisor_addon\/?addon=5c53de3b_esphome&amp;repository_url=https%3A%2F%2Fgithub.com%2Fesphome%2Fhome-assistant-addon\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-8206\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/supervisor_addon.svg\" alt=\"\" \/><\/a><\/p>\r\n<p>After installation, I obtain:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8208\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome01.png\" alt=\"\" width=\"248\" height=\"165\" \/><\/p>\r\n<p>or (depending on the versions)<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8231\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome100.png\" alt=\"\" width=\"269\" height=\"157\" \/><\/p>\r\n<p>I am adding new equipment<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8210\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome02.png\" alt=\"\" width=\"346\" height=\"162\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome02.png 346w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome02-300x140.png 300w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8212\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome03.png\" alt=\"\" width=\"408\" height=\"508\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome03.png 408w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome03-241x300.png 241w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8213\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome04.png\" alt=\"\" width=\"520\" height=\"267\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome04.png 520w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome04-300x154.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8214\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome05.png\" alt=\"\" width=\"465\" height=\"132\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome05.png 465w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome05-300x85.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8215\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome06.png\" alt=\"\" width=\"514\" height=\"199\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome06.png 514w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome06-300x116.png 300w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8216\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome07.png\" alt=\"\" width=\"572\" height=\"280\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome07.png 572w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome07-300x147.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8218\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome08.png\" alt=\"\" width=\"379\" height=\"244\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome08.png 379w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome08-300x193.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8219\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome09.png\" alt=\"\" width=\"301\" height=\"211\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8220\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome10.png\" alt=\"\" width=\"295\" height=\"199\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8221\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome11.png\" alt=\"\" width=\"404\" height=\"339\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome11.png 404w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome11-300x252.png 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/p>\r\n<p>Here I use the wifi which corresponds to the vlan which is not connected to the internet. The equipment will end up in 192.168.4.xxx<\/p>\r\n<p>But first, I will change \u2018cheating\u2019 to affect it on the vlan (via DHCP) of my Home Assistant, because the automatic discovery of ESPHome via mDNS does not work between two VLANs, because the multicast is not usually routed by default between VLANs.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8222\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome12.png\" alt=\"\" width=\"666\" height=\"184\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome12.png 666w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome12-600x166.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome12-300x83.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8223\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome13.png\" alt=\"\" width=\"397\" height=\"476\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome13.png 397w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome13-250x300.png 250w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8224\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome14.png\" alt=\"\" width=\"404\" height=\"210\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome14.png 404w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome14-300x156.png 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8225\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome15.png\" alt=\"\" width=\"494\" height=\"184\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome15.png 494w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome15-300x112.png 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8226\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome16.png\" alt=\"\" width=\"641\" height=\"465\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome16.png 641w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome16-600x435.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome16-300x218.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8227\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome17.png\" alt=\"\" width=\"606\" height=\"188\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome17.png 606w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome17-600x186.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/12\/esphome17-300x93.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/p>\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>This article follows on from the previous article: Flashing a D1 Mini I wanted to replace a flashed D1 Mini with ESP Easy and chatting in MQTT with Home Assistant with the new D1 MINI V4, this time I'm interconnecting it with ESP Home life.<\/p>","protected":false},"author":1,"featured_media":8202,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23,166],"tags":[],"class_list":["post-8199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-jeedom-2","category-retex"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/8199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=8199"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/8199\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media\/8202"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=8199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=8199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=8199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}