{
  "id": 3736031,
  "title": "ESP32 Energy Metering with HLW8032, BL0942, and ESPHome",
  "url": "https://urgent.news/2026/08/27/esp32-energy-metering-with-hlw8032-bl0942-and-esphome",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-27T12:40:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zediot/esp32-energy-metering-with-hlw8032-bl0942-and-esphome-15dm"
  },
  "original_language": "en",
  "account": "Title: ESP32 Energy Metering with HLW8032, BL0942, and ESPHome - Design Considerations\n\nESP32 energy metering using HLW8032 or BL0942 modules, coupled with ESPHome, allows for easy integration of voltage, current, power, and energy readings into Home Assistant. However, the overall energy metering node's reliability depends on more than just the sensor integration. The article discusses five layers in the ESP32 energy metering stack, common pitfalls, and the importance of a stable data path for accurate monitoring.\n\n1. Energy metering is more fragile than ordinary sensing\n1.1 Metering data is different from temperature or humidity data. Energy metering must handle transient startup and shutdown, switching supplies, and the complex relationship between voltage, current, power, power factor, and accumulated energy.\n1.2 HLW8032 and BL0942 are metering front ends, not complete product architectures. While ESPHome components simplify integration, the project must still address UART ownership, update interval, calibration, and diagnostics.\n\n2. A more reliable ESP32 energy metering stack\n2.1 Think in five layers - physical wiring, electrical safety, metering front end, ESPHome integration, calibration and validation, and diagnostics and operations.\n2.2 The node requires a trustworthy data path from sampling to operations. Weaknesses at any layer can lead to troubleshooting challenges later.\n\n3. Common mistakes\n3.1 Treat UART ownership and wiring casually. Sharing the serial path with other components or not constraining wiring order leads to instability.\n3.2 Excessive reporting can cause Wi-Fi and ESPHome API overload, larger Home Assistant storage, and misleading readings of motor starts or power supply transients.\n3.3 Calibration should not be limited to one-time YAML values. Accurate calibration depends on factors like loads, shunts, and current transformers.\n\nIn conclusion, the ESP32 energy metering project's success depends on understanding the complexity beyond just connecting a sensor module. A well-designed, stable data path from sampling to operations is key to reliable energy monitoring.",
  "summary": "ESP32 Energy Metering with HLW8032, BL0942, and ESPHome ESP32 energy metering with HLW8032, BL0942, and ESPHome is not just about reading voltage, current, power, and energy. This article explains how to design the UART boundary, reporting cadence, calibration, entity model, and diagnostics as one stable data path. Many ESP32 energy metering projects start well. You connect an HLW8032 or BL0942…",
  "key_points": [
    "ESP32 energy metering with HLW8032, BL0942, and ESPHome requires five layers for reliability",
    "Common mistakes include UART ownership issues, excessive reporting, and limited calibration methods"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}