Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christian-heusel/esp32-smartmeter
Reads out the values of an ISKRA MT681 and sends the values via MQTT
https://github.com/christian-heusel/esp32-smartmeter
cpp embedded esp32 mqtt smarthome
Last synced: 10 days ago
JSON representation
Reads out the values of an ISKRA MT681 and sends the values via MQTT
- Host: GitHub
- URL: https://github.com/christian-heusel/esp32-smartmeter
- Owner: christian-heusel
- License: gpl-3.0
- Created: 2023-03-03T20:53:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T13:24:14.000Z (8 months ago)
- Last Synced: 2024-03-12T14:40:14.589Z (8 months ago)
- Topics: cpp, embedded, esp32, mqtt, smarthome
- Language: C++
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP32 SmartMeter
This project reads out the meter values of an [ISKRA MT681](https://wiki.volkszaehler.org/hardware/channels/meters/power/edl-ehz/iskraemeco_mt681) via an [IR reader](https://wiki.volkszaehler.org/hardware/controllers/ir-schreib-lesekopf). It then takes these values and sends them as payload to a MQTT-Broker, where they get converted to a prometheus metric via [`kpetremann/mqtt-exporter`](https://github.com/kpetremann/mqtt-exporter) and then read into prometheus.
## Installation
1. Install the [ESP-IDF](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#manual-installation)
2. Clone this repository:
```sh
git clone [email protected]:christian-heusel/esp32-smartMeter.git
cd esp32-smartMeter
```3. activate esp-idf in current terminal session
```sh
. $HOME/esp/v5.2.1/esp-idf/export.sh
```4. Configure the project
```sh
idf.py menuconfig
```And especially insert sensible values into the MQTT & Wi-Fi Configuration
5. Build it & flash it
```sh
idf.py build
idf.py flash
```## Visualization
Import the grafana dashboard in [contrib/grafana-dashboard.json](https://github.com/christian-heusel/esp32-smartMeter/blob/main/contrib/grafana-dashboard.json)
![image](https://user-images.githubusercontent.com/26827864/224534926-38ba97d7-14db-4c0a-b674-8eaadf1df6d5.png)
## License & Acknowledgements
The contents of this repository are heavily based on the great examples in the ESP IDF:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.