Code Monkey home page Code Monkey logo

esphome-dlms-meter's Introduction

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.

  • Clone this repository into your ESPHome config files: git clone [email protected]: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
  • 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

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 & 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

esphome-dlms-meter's People

Contributors

domistyle avatar theexit avatar designer2k2 avatar exolor avatar cdmartinl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.