PowerMeter
ESP8266 and PZEM-004T based Power Meter
Install / Use
/learn @fcgdam/PowerMeterREADME
PowerMeter
This repository holds a PZEM-004T and ESP8266 based power/energy meter. More information at: https://primalcortex.wordpress.com/2019/07/06/measuring-home-energy-consumption-with-the-pzem004t-and-esp8266/. Note that the master branch is for use with the PZEM-004T Version 2.0 that uses standard serial communications. The Version 3.0 uses modbus which does not work with this version.
The repository structure is as follows: The PowerMeter repository/folder contains the firmware for an ESP8266 and PZEM-004T based power/energy meter. This is the firmware that should be used to have a full functional ESP8266 based powermeter.
The PowerMeter is designed to use Wemos D1 ESP8266 boards.
The PZEM004T-Test repository contains a simple program for testing the ESP8266 to PZEM004 communications and the retrieving of data from the PZEM004T.
The Node-Red folder contains a flow that receives published telemetry data from the Power Meter, saves it on an InfluxDB database and creates a Node-Red Dashboard UI to show the latest collected data.
The Grafana folder contains a very simple grafana dashboard that retrieves data from the InfluxDB database and displays it. It's a no frills dashboard...
Screenshots:
Some screenshots of the PowerMeter working:
ESP8266 based Power Meter Web Interface:

The Node-Red UI:

The simple Grafana dashboard:

Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
