⚡ Power meter with ESP32 and ESPHome

Alvaro Martinez Muñoz ✅
6 min readAug 2, 2023

With the price of electricity at an all-time high, and the forecast for continued increases, we believe it is necessary to have a way to measure electricity consumption and the parts of the home with the highest energy consumption in order to be able to optimize its use, and thus reduce our bill. One simple way to achieve this goal is by installing power meters per device and/or at the global level of the entire home. In this article we will focus on placing a power meter in the electrical panel to measure the consumption of our entire home.

There are a multitude of devices on the market that fulfill this purpose. But from this blog we have preferred to make our own for very little money and that is also non-invasive, that is, it does not require the line with the current to be measured to pass through the device, therefore, its assembly and use is safer.

WARNING: This tutorial is advanced and requires touching the electrical panel of the house, that implies certain knowledge of electricity and electronics, as well as ensuring the total cut of the current before manipulation.

Materials

  • An ESP8266 or ESP32 module that we will use to obtain the data from the meter and transmit it via Wi-Fi to our server. You can find different models on Amazon.
  • PZEM-004T V3 meter that you can…

--

--

Alvaro Martinez Muñoz ✅

Hi!. I´m Alvaro and i´ll share my Personal projects hobbies like Home Assistant and Linux HomeLabs. I hope like my Posts and support me with little beer 🍻