{"id":9062,"date":"2025-09-06T15:10:37","date_gmt":"2025-09-06T13:10:37","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=9062"},"modified":"2026-01-04T00:10:36","modified_gmt":"2026-01-03T22:10:36","slug":"je-flashe-un-esp-sonoff-pow-r3-avec-esphome","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome","title":{"rendered":"I flash an ESP Sonoff POW R3 with ESPHome"},"content":{"rendered":"<p class=\"wp-block-paragraph\">I wanted to get the information <strong>Energy (kWh)<\/strong> on my Sonoff POW R3, initially flashed with ESP Easy. By reflashing it with <strong>ESPHome<\/strong>, I was able to simplify its integration into Home Assistant and access all energy data. Here is how I did it step by step.<!--more--><\/p>\r\n\r\n\r\n\r\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-6ae459541323f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/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-6ae459541323f\"  aria-label=\"Toggle\" \/><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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Ou_acheter_cet_equipement\" >Where to buy this equipment?<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Verification_des_connecteurs\" >Checking connectors<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Connexion_du_CP2102\" >Connecting CP2102<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Connexion_du_Sonoff_POW_R3\" >Connecting the Sonoff POW R3<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Flashage_avec_ESPHome_Builder\" >Flashing with ESPHome Builder<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Configuration_des_capteurs_dans_ESPHome\" >Configuring Sensors in ESPHome<\/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\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Resultat_dans_Home_Assistant\" >Result in Home Assistant<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/en\/je-flashe-un-esp-sonoff-pow-r3-avec-esphome\/#Pages_de_references\" >Reference pages<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ou_acheter_cet_equipement\"><\/span>Where to buy this equipment?<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>Here is the link to his page dedicated to the <a href=\"https:\/\/www.sigalou-domotique.fr\/en\/product\/powr3\/\" target=\"_blank\" rel=\"noopener\">POWR3<\/a>. I referenced the sellers and prices.<\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"Verification_des_connecteurs\"><\/span>Checking connectors<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In a previous feedback, I had detailed the procedure for flashing this equipment with ESP Easy:<\/p>\r\n\r\n\r\n\r\n<ul>\r\n<li><a href=\"https:\/\/www.sigalou-domotique.fr\/en\/flasher-le-sonoff-pow-r3\/\">Flash the Sonoff POW R3<\/a><\/li>\r\n<\/ul>\r\n<p class=\"wp-block-paragraph\">On that occasion, I noticed that the designers of the Sonoff POW R3 had already welded the <strong style=\"font-size: 14px;\">4 connectors needed<\/strong><span style=\"font-size: 14px;\"> (3.3V, Rx, Tx, GND), which greatly facilitates the flashing process.<\/span><\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2545\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-scaled.jpg\" alt=\"Sonoff POW R3 Connectors\" width=\"309\" height=\"412\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-scaled.jpg 1920w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-scaled-600x800.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-225x300.jpg 225w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-768x1024.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-1152x1536.jpg 1152w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/20220109_162044-1536x2048.jpg 1536w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p class=\"wp-block-paragraph\">These connectors allow you to connect a USB-series adapter to flash the firmware.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connexion_du_CP2102\"><\/span>Connecting CP2102<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Contrary to what is often documented, I used a <strong>CP2102<\/strong> rather than an FTDI232. This module plugs directly into USB and is very simple to use.<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9064\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1.jpg\" alt=\"Module CP2102\" width=\"338\" height=\"293\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1.jpg 1976w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1-600x520.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1-300x260.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1-1024x887.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1-768x665.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_185847-1-1536x1331.jpg 1536w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Here is how I made the connections:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Red thread<\/strong> \u2192 3.3V<\/li>\r\n<li><strong>Black thread<\/strong> \u2192 GND<\/li>\r\n<li><strong>White wire<\/strong> \u2192 TXD<\/li>\r\n<li><strong>Brown thread<\/strong> \u2192 RXD<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><em>Note:<\/em> If communication is not established, it may be necessary to reverse the white and brown wires (Rx and Tx).<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9065\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-scaled.jpg\" alt=\"Connecting CP2102\" width=\"306\" height=\"203\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-scaled.jpg 2560w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-scaled-600x398.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-300x199.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-1024x680.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-768x510.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-1536x1020.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_190928-2048x1360.jpg 2048w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connexion_du_Sonoff_POW_R3\"><\/span>Connecting the Sonoff POW R3<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">I then connected the CP2102 wires to the Sonoff POW R3 connectors:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9066\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-scaled.jpg\" alt=\"Connecting the Sonoff POW R3\" width=\"373\" height=\"280\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-scaled.jpg 2560w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-scaled-600x450.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-300x225.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-1024x768.jpg 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-768x576.jpg 768w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-1536x1152.jpg 1536w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_191235-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/figure>\r\n<\/div>\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9067\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_1912352.jpg\" alt=\"Details of the Sonoff POW R3 connectors\" width=\"227\" height=\"427\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_1912352.jpg 472w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/20250905_1912352-159x300.jpg 159w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Red thread<\/strong> \u2192 3.3V<\/li>\r\n<li><strong>Black thread<\/strong> \u2192 GND<\/li>\r\n<li><strong>White wire<\/strong> \u2192 ERX<\/li>\r\n<li><strong>Brown thread<\/strong> \u2192 ETX<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Flashage_avec_ESPHome_Builder\"><\/span>Flashing with ESPHome Builder<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To flash the Sonoff POW R3 with ESPHome, I followed these steps:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Launch <strong>ESPHome Builder<\/strong>.<\/li>\r\n<li>Click on <strong>New Device<\/strong> to add new equipment.<\/li>\r\n<li>Provide basic information (name, type of card, etc.).<\/li>\r\n<li>Plug the CP2102 into USB while holding down the Sonoff POW R3 button (see image below). The LEDs must be switched off, indicating that the programming mode is activated.<\/li>\r\n<li>Start flashing via the ESPHome interface.<\/li>\r\n<\/ol>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"394\" class=\"wp-image-2562\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-09-at-19-11-00-Home-Assistant-Sonoff-POW-R3-e-Home-Assistant-integrazione-con-Firmware-nativo-e-Tasmot....png\" alt=\"Button to activate programming mode\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-09-at-19-11-00-Home-Assistant-Sonoff-POW-R3-e-Home-Assistant-integrazione-con-Firmware-nativo-e-Tasmot....png 863w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-09-at-19-11-00-Home-Assistant-Sonoff-POW-R3-e-Home-Assistant-integrazione-con-Firmware-nativo-e-Tasmot...-600x274.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-09-at-19-11-00-Home-Assistant-Sonoff-POW-R3-e-Home-Assistant-integrazione-con-Firmware-nativo-e-Tasmot...-300x137.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-09-at-19-11-00-Home-Assistant-Sonoff-POW-R3-e-Home-Assistant-integrazione-con-Firmware-nativo-e-Tasmot...-768x351.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configuration_des_capteurs_dans_ESPHome\"><\/span>Configuring Sensors in ESPHome<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The configuration of the Sonoff POW R3 in ESPHome is based on a YAML file. Be careful, there are several models of Sonoff POW R3 (Elite 16A, Elite 20A, Origin 16A, etc.), and their configuration may vary. I used the official documentation for the <a href=\"https:\/\/devices.esphome.io\/devices\/Sonoff-POW-R2\" target=\"_blank\" rel=\"noopener\">Sonoff POW R2<\/a> and adapted it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Here is the YAML code I used for my Sonoff POW R3:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>substitutions: update_interval: 10s name: \"sphome-heater\" esphome: name: \"${name}\" friendly_name: ESPHome Chauffeau esp8266: board: esp01_1m logger: baud_rate: 0 API: ota: - platform: esphome password: \"b91495d666ba78dd3d0120f6a364e8b1\" # Replace with your OTA wifi password: ssid: !secret wifi _ssid password: !secret wifi _password ap: ssid: \"Esphome-Chauffeau\" password: \"coucoucoucou\" # Replace with a secure password captive_portal: uart: rx_pin: RX baud _rate: 4800 parity: EVEN binary _sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: \"Bouton\" on _press: - switch.toggle: relay_template sensor: - platform: cse7766 current: name: \"Current\" filters: - multiply: 0.98 # Adjusts the current to reduce the deviation by 2% - sliding _window _moving _average: window_size: 80 send _every: 32 voltage: name: \"Tension\" filters: - sliding _window _moving _average: window_size: 80 send _every: 32 power: name: \"Power\" filters: - sliding _window _moving _average: window_size: 80 send _every: 32 energy: name: \"Energy Wh\" id: energy_wh filters: - throttle: ${update _interval} # Virtual sensor to convert Wh to kWh - platform: template name: \"Energy kWh\" unit _of _measurement: \"kWh\" lambda: |- return id(energy _wh).state \/ 1000; update_interval: 60s accuracy_decimals: 3 switch: - platform: template name: \"Jus\" positive: true id: relay_template turn_on_action: - switch.turn_on: relay - light.turn_on: pow_blue_led turn_off_action: - switch.turn _off: relay - light.turn _off: pow_blue_led - platform: gpio id: pin relay: GPIO12 inverted: true light: - platform: status_led name: \"Blue LED\" id: pow_blue_led pin: number: GPIO13 inverted: true<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Explanations of the code:<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>substitutions<\/strong> : Sets reusable variables, such as update interval and equipment name.<\/li>\r\n<li><strong>esphome<\/strong> : Configures the name and user-friendly name of the equipment.<\/li>\r\n<li><strong>esp8266<\/strong> : Specifies the type of card used (ESP01 1M).<\/li>\r\n<li><strong>logger<\/strong> : Disables serial logs to avoid conflicts with UART communication.<\/li>\r\n<li><strong>wifi<\/strong> : Configures the Wi-Fi connection and a backup access point.<\/li>\r\n<li><strong>uart<\/strong> : Sets the serial communication parameters for the CSE7766 sensor (current measurement, voltage, power, energy).<\/li>\r\n<li><strong>binary_sensor<\/strong> : Configures the physical button on the Sonoff to switch the relay state.<\/li>\r\n<li><strong>sensor<\/strong> : Defines current, voltage, power and energy sensors. A virtual sensor converts Wh to kWh.<\/li>\r\n<li><strong>switch<\/strong> : Manages the relay and the blue LED to indicate the status (on\/off).<\/li>\r\n<li><strong>light<\/strong> : Controls the blue LED of the Sonoff.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><em>Note:<\/em> Wi-Fi passwords and credentials should be replaced with your own values.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Resultat_dans_Home_Assistant\"><\/span>Result in Home Assistant<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Once the flashing is complete and the equipment restarted, it will automatically appear in Home Assistant with all the sensors configured:<\/p>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"659\" class=\"wp-image-9069\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/chauffeau2.png\" alt=\"Integration in Home Assistant\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/chauffeau2.png 639w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/chauffeau2-600x619.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2025\/09\/chauffeau2-291x300.png 291w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can now monitor real-time power consumption, voltage, power and energy (kWh) directly from your Home Assistant dashboard.<\/p>\r\n\r\n<h3><span class=\"ez-toc-section\" id=\"Pages_de_references\"><\/span>Reference pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>(attention to nonsense in some forums)<\/p>\r\n<ul>\r\n<li><a href=\"https:\/\/community.home-assistant.io\/t\/flashing-sonoff-pow-r3-to-esphome\/475802\/4\" target=\"_blank\" rel=\"noopener\">https:\/\/community.home-assistant.io\/t\/flashing-sonoff-pow-r3-to-esphome\/475802\/4<\/a><\/li>\r\n<li><a href=\"https:\/\/devices.esphome.io\/devices\/Sonoff-POW-R2\" target=\"_blank\" rel=\"noopener\">https:\/\/devices.esphome.io\/devices\/Sonoff-POW-R2<\/a><\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>I wanted to get the Energy (kWh) information on my Sonoff POW R3, initially flashed with ESP Easy. By reflashing it with ESPHome, I was able to simplify its integration into Home Assistant and access all energy data. This is how I proceeded, step by step.<\/p>","protected":false},"author":1,"featured_media":2433,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53],"tags":[61],"class_list":["post-9062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-home-assistant","tag-esp"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/9062","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=9062"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/9062\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=9062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=9062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=9062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}