Coder Social home page Coder Social logo

lrswss / esp32-sml-multi-reader Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 27 KB

ESP32 reads SML messages from multiple smart electricity meters using an IR reading head and publishes decoded data via MQTT

License: Apache License 2.0

C 49.56% C++ 50.44%
esp32 mqtt obis sml-reader tls-support smart-meter

esp32-sml-multi-reader's Introduction

Read and publish data from multiple smart meters with an ESP32 microcontroller

Motivation

As part of a small project, data from several smart meters in a large meter cabinet (all equipped with a SML IR interface) had to be read more or less simultaneously and published via MQTT. To avoid installing an ESP8266 with Tasmota and IR reading head for each electricity meter, this firmware was developed for an ESP32 microcontroller that can read SML messages from up to eight smart meters simultaneously using RTOS tasks.

Features

  • based on sml_parser library
  • read data from up to 6 smart meters simultaneously
  • publish readings with timestamp to MQTT broker
  • optional MQTT authentication
  • TLS support

Hardware components

Upload firmware

To compile the firmware for the ESP32 controller just download Visual Studio Code and install the PlatformIO add-on. Open the project directory and adjust the settings in include/config.h to your needs.

Since the software was developed on a MacBook you might need to adjust the upload port settings in the section [common] in platformio.ini. For further firmware updates use the OTA option in the web interface.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

Copyright (c) 2023 Lars Wessels
This software was published under the Apache License 2.0.
Please check the license file.

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.