Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

DomiStyle/esphome-dlms-meter

Repository files navigation

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 withESP32-POE (should work without problems over wifi)

Software installation

This software installation guide assumes some familiarity with ESPHome.

  • Clone this repository into your ESPHome config files:git clone git@github.com:DomiStyle/esphome-dlms-meter.git
  • Copy the meter01.example.yaml into your ESPHome config folder and adjust it to your needs
  • Don't forget to add your decryption key in meter01.yaml
  • Connect your ESP
  • Runesphome meter01.yaml run and choose your serial port (or do this via the Home Assistant UI)
  • Disconnect the ESP and continue with hardware installation

Make sure your directory structure looks like this:

  • config
    • meter01.yaml
    • esphome-dlms-meter
      • The files from this repo (espdm.h, ...)

Hardware installation

  • Cut one end of the RJ11 cable and connect wires to pin 3 & 4OR Plug RJ11 into a breakout board
  • Connect everything according to this table:
ESP32M-Bus BoardRJ11Notes
3.3V3V3-3.3V power
GNDGND-Ground
GPIO4RX-Connect RX from the M-Bus board to TX from the ESP
GPIO36TX-Connect TX from the M-Bus board to RX from the ESP
-MBUS13Connect M-Bus board to smart meter, polarity does not matter
-MBUS24Connect M-Bus board to smart meter, polarity does not matter

[8]ページ先頭

©2009-2025 Movatter.jp