Story
Introduction
The MicroPIC Energy Meter is a powerful and compact device that helps you monitor your home's real-time energy consumption and solar production. It shows exactly how close you are to hitting the power limit set by your energy provider, helping you prevent blackouts before they happen.
Features & Design
-
Real-time monitoring of consumption and solar production
-
Visual alert with LED when nearing the contracted power limit
-
Customizable power threshold, production limit, and language (English/Spanish)
-
Histogram view of the last 24h energy usage and current hour summary
-
Powered by an ESP32 with a 2.9" Elecrow LCD screen
-
Designed for integration with Home Assistant via MQTT
How it works
The device receives energy data from Home Assistant through MQTT, processes it, and displays it on a clean, user-friendly interface. A custom Home Assistant add-on collects and pushes the data at regular intervals.
Program & Code
The firmware is developed in Arduino and fully open-source. It supports configuration of Wi-Fi, MQTT topics, and thresholds through an on-screen menu.
Step-by-step tutorial
-
Flash the Arduino firmware (or ESPHome if you prefer)
-
Set up the Home Assistant integration and MQTT topic
-
Configure thresholds, language, and display settings
-
Enjoy real-time energy visibility and peace of mind
You can find the full code and installation instructions on my blog: https://www.micropic.es/micropic-energy-meter/
I’ve also included a video walkthrough with all the steps and testing.