Skip to content

ESPHome component to read out DLMS smart meters via M-Bus

License

Notifications You must be signed in to change notification settings

docbobo/esphome-dlms-meter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A custom component for ESPHome for reading meter data sent by the Kaifa MA309M via M-Bus.

Features

  • Exposes all data sent from the smart meter as sensors
  • Allows grouping data together in a single report for storing in InfluxDB or similar

Supported meters

  • Kaifa MA309M

Supported providers

Exposed sensors

  • Voltage L1
  • Voltage L2
  • Voltage L3
  • Amperage L1
  • Amperage L2
  • Amperage L3
  • Active Power Plus
  • Active Power Minus
  • Active Energy Plus
  • Active Energy Minus
  • Reactive Energy Plus
  • Reactive Energy Minus

Requirements

Notes

  • Tested with ESP32-POE (should work without problems over wifi)

Software installation

This software installation guide assumes some familiarity with ESPHome.

  • Pull this repository into your ESPHome config files
  • Adjust the meter01.example.yaml to your needs, copy it into your ESPHome config folder as meter01.yaml
  • Don't forget to add your decryption key in meter01.yaml
  • Connect your ESP
  • Run esphome meter01.yaml run and choose your serial port (or do this via the Home Assistant UI)
  • Disconnect the ESP and continue with hardware installation

Hardware installation

  • Cut one end of the RJ11 cable and connect wires to pin 3 & 4 OR Plug RJ11 into a breakout board
  • Connect everything according to this table:
ESP32 M-Bus Board RJ11 Notes
3.3V 3V3 - 3.3V power
GND GND - Ground
GPIO4 RX - Connect RX from the M-Bus board to TX from the ESP
GPIO36 TX - Connect TX from the M-Bus board to RX from the ESP
- MBUS1 3 Connect M-Bus board to smart meter, polarity does not matter
- MBUS2 4 Connect M-Bus board to smart meter, polarity does not matter

About

ESPHome component to read out DLMS smart meters via M-Bus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 87.1%
  • C 12.9%