Skip to main content

Your Smart Meter Is Already a Sensor: Revisiting the Kaifa MA309M with ESPHome

Kaifa MA309M sends P1 readings through ESPHome DSMR to a Home Assistant energy dashboard.
Kaifa MA309M to Home Assistant

A utility bill tells you how much electricity you used. It rarely tells you when the house started using more. If you already have a working P1 reader for a Kaifa MA309M, Home Assistant can help answer that second question. And if you built the reader last year, an ESPHome change makes the software worth a second look.

Why the original build used a custom parser

The P1 port sends a telegram: a recurring packet of meter readings. An ESP32 running ESPHome can read those values and publish them as Home Assistant sensors. The original Kaifa MA309M project targeted ESPHome 2025.11. At that baseline, its author used a custom parser on ESP-IDF because the built-in DSMR component required Arduino and did not expose the Israeli tariff registers the project needed. The parser checked each telegram’s checksum before publishing readings.

The dashboard is the part worth keeping. An instantaneous power reading in kW can show a load turning on. A cumulative energy reading in kWh tells you how much energy has passed over time. Home Assistant’s Utility Meter integration turns cumulative readings into daily or monthly totals. Keep grid import and export separate: a day with heavy export can still include a large evening import. And if you compare today with yesterday, compare at the same hour, not today so far against all of yesterday.

What changed in ESPHome

ESPHome 2026.1 added ESP-IDF support to the built-in DSMR component. The 2026.11.0 source exposes six Israeli tariff energy counters: three for grid import (called delivered in DSMR) and three for export (returned). That removes two reasons for keeping a custom parser. It doesn’t prove that the built-in component will reproduce every reading from a particular meter.

There’s also a subtle compatibility issue: native DSMR exposes the Israeli active tariff as text, while the original project represents it as a number. A Home Assistant template that expects a number can behave differently even if the display looks identical.

Test the reader before replacing it

  1. Compare the same input. On an isolated test setup, use a few representative telegrams from an existing reader and compare the two parsers. Keep raw captures private; redact identifiers before sharing any examples. If you edit a sample for replay, regenerate its checksum so it remains a valid test case.
  2. Check more than the headline number. Compare import and export totals by tariff, the per-phase readings you use, units and decimal precision, and the active-tariff value and type. With CRC checking enabled, also test a deliberately corrupted copy and make sure it does not become a valid reading. ESPHome’s DSMR reference documents the available sensors and CRC setting.
  3. Protect the dashboard. Start with separate test entities. Check which entity IDs and types feed your utility meters, templates, and charts. Keep a rollback copy and make sure the history and totals behave as expected before pointing the dashboard at a replacement reader.

My take: If the current reader works, leave it running. Try native DSMR on the bench first. The win is a simpler reader without losing the measurements or history you already trust.

This is a software comparison based on the project and ESPHome sources, not a hardware compatibility test or a wiring guide.

Comments

Popular posts from this blog

ESP32-C6 Wi-Fi Logger with Browser GPS + Heat Map Dashboard

This project is an ESP-IDF firmware for the Seeed Studio XIAO ESP32-C6 that turns the board into a self-hosted, secure Wi-Fi scanning logger. It creates its own access point, serves a responsive HTTPS web UI, logs nearby Wi-Fi access points, optionally tags rows with GPS coordinates (provided by the client browser), and exposes battery status from the on-board LiPo input. The end result is a pocket Wi-Fi “survey” tool: scan, track, export logs as CSV, and generate a heat map view to visualize RSSI vs location. Project overview and feature set: :contentReference[oaicite:1]{index=1} What it does AP + Station mode so the device can serve the dashboard while scanning nearby Wi-Fi networks. HTTPS web interface using a bundled certificate/key for local secure access. Single scan and continuous tracking modes. CSV export for analysis and archiving. Persistent logging to SPIFFS at /spiffs/logs.csv . Battery monitoring via ADC with voltage/percentage/status sh...

Ollama Voice Chat — A Local, Talking AI Assistant for Windows

  Ollama Voice Chat — A Local, Talking AI Assistant for Windows I’m excited to share my latest open-source project: Ollama Voice Chat — a simple but powerful local voice chat assistant that runs fully on your machine using open-source AI tools. It lets you talk to a Large Language Model (LLM) and hear its responses spoken back out loud — no cloud APIs, no monthly fees, and full control of your data. ๐Ÿ‘‰ GitHub repository: https://github.com/error0327/ollama-voice-chat ๐Ÿš€ What Is It? Ollama Voice Chat is an interactive client for Windows that connects to a locally running LLM (via Ollama), converts user speech to text, sends it to the model, and uses Coqui TTS to speak the replies. It includes an automated setup script to streamline installation and configuration. Instead of typing, you can talk to your AI assistant and get spoken answers — great for hands-free use cases, prototyping voice UIs, or just having a more natural interaction with your models. ๐Ÿง  Why This Matte...

ืกืœืงื•ื ืžืžืฉ ืœื ื›ื“ืื™ ืœืงื ื•ืช ืžืืฆืœื›ื ืžื•ื“ื™ื

ืกืœืงื•ื ื‘ืืžืช ืžื‘ืืก ืœื’ืœื•ืฉ ืืชื›ื !! ื‘ืฉืขื” ื˜ื•ื‘ื” ื•ืžืฆืœื—ืช ืงื ื™ืชื™ ืžื•ื“ื ืกืœื•ืœืืจื™ ืขืœ ืžื ืช ืฉืื•ื›ืœ ืœื’ืœื•ืฉ ื‘ืื™ื ื˜ืจื ื˜ ื‘ืขื–ืจืชื•. ื‘ืขืžื“ืช ื”ืžื›ื™ืจื” ื”ืฆื™ืขื• ืœื™ ืืช ืžืกืœื•ืœ ืชืฉืœื•ื ืžืจืืฉ ื”ื™ื“ื•ืข ื›talkman, ืžืกืœื•ืœ ื–ื” ื”ืชืื™ื ืœืฆืจื›ื™ ื›ืš ืฉืื•ื›ืœ ืœื“ืขืช ืžืจืืฉ ื›ืžื” ืืฉืœื ื•ื‘ื—ืจืชื™ ืœื‘ืฆืข ืืช ื”ืขื™ืกืงื”. ื›ืืฉืจ ื”ืชื—ืœืชื™ ืœื’ืœื•ืฉ ืœืฉืจืชื™ื ื”ืžืกืคืงื™ื ืชื•ื›ืŸ ื›ื’ื•ืŸ rapidshare , megaupload , zshare ื•ืขื•ื“ ื’ื™ืœื™ืชื™ ื›ื™ ื›ืชื•ื‘ืช ื”IP ืžืžื ื” ืื ื™ ื’ื•ืœืฉ ื—ืกื•ืžื”, ืื• ืขื‘ืจื” ืืช ื›ืžื•ืช ื”ืฉื™ืžื•ืฉ ื”ืžื•ืชืจืช ืื•ืœื ื–ื” ืงื•ืจื” ืœืคื ื™ ืฉืื ื™ ื‘ื™ืฆืขืชื™ ืฉื™ืžื•ืฉ ื›ืœืฉื”ื•ื. ื ื™ืกื™ืชื™ ืœื”ืฉืชืžืฉ ื‘ื›ืชื•ื‘ื•ืช ืื—ืจื•ืช ื‘ืืžืฆืขื•ืช ืงื‘ืœืช ื›ืชื•ื‘ืช IP ืื—ืจืช (ื”ื•ืฆืื” ื•ื”ื›ื ืกื” ืฉืœ ื”ืžื›ืฉื™ืจ ื ื•ืชื ืช ื›ืชื•ื‘ืช ื—ื“ืฉื”), ืื•ืœื ื‘ื›ืœ ื ื™ืกื™ื•ืŸ ื”ื›ืชื•ื‘ื•ืช ื”ื™ื• ื—ืกื•ืžื•ืช, ื›ืœื•ืžืจ ืœื ื™ื›ืœืชื™ ืœื”ืฉืชืžืฉ ื›ืœืœ ื‘ืฉื™ืจื•ืช. ื ืชื•ืŸ ื–ื” ืฉื”ื›ืชื‘ื•ืช ื›ื‘ืจ ื‘ืฉื™ืžื•ืฉ ื•ืžื™ ืฉืžืชืžืฉ ื‘ื›ืชื•ื‘ืช ื“ื™ื ืืžื™ื•ืช ื—ืกื•ื ืœื ื ืืžืจ ืœื™ ื•ืœื ื”ื•ืขืœื” ื‘ืขืช ื”ืžื›ื™ืจื”. ืžื” ืฉืงื•ืจื” ืฉื‘ื›ืœ ืืชืจ ืฉืื ื™ ืจื•ืฆื” ืœื”ืฉืชืžืฉ ื‘ื• ืื ื™ ื—ืกื•ื ื•ืœื ื™ื›ื•ืœ ืœื”ืฉืชืžืฉ. ื“ื‘ืจืชื™ ืขื ืžืกืคืจ ื—ื‘ืจื™ื ืฉื™ืฉ ืœื”ื ืžื•ื“ืžื™ื ื›ืืœื” ื›ื‘ืจ ื–ืžืŸ ืจื‘ , ื›ืฉืฉืืœืชื™ ืื™ืš ืœืคืชื•ืจ : ืืžืจื• ื›ื™ ื”ื‘ืขื™ื™ื” ื ืคืชืจื” ืœื ื• ืข"ื™ ืฉื™ื ื•ื™ ื‘ืชื•ืš ื”ืžื•ื“ื ืœ: ABN = intereal ื• ื–ื” ื‘ืฉืคื” ื”ืžืงืฆื•ืขื™ืช ืื•ืžืจ " IP ืงื‘ื•ืข" ืฉืžื—ืชื™ ืœ ืคืชืจื•ืŸ ื• ื ื’ืฉืชื™ ืœ ืกืœืงื•ื ืื—ืจื™ 30 ื“ืงื•ืช ื”ืžืชื ื”...

Advertisement