1.4 KiB
AMS <-> MQTT Bridge
Orignally designed and coded by @roarfred, see the original repo at roarfred/AmsToMqttBridge
This repository contains the code and schematics necessary to build a device to receive and convert data from AMS electrical meters installed in Norway. The code can be used on both ESP8266 and ESP32, both as custom build devices or built from readily available modules. It reads data from the HAN port of the meter and sends this to a configured MQTT bus.
Building this project will require some skills in ordering and assembling electronic circuits as well as programming, and I have not included detailed instructions to take a beginner through the steps. I still hope some still find information here useful, maybe also for other projects.
Release binaries
In the Release section of this repository, you will find precompiled binaries for some common boards.
- esp12e :: Compiled for a general ESP8266 board with 12E or 12F chip, ex NodeMCU board.
- hw1esp12e :: Compiled for first version hardware with ESP 12E of 12F chip.
Flashing binaries with esptool.py
Linux:
esptool.py --port /dev/ttyUSB0 write_flash 0x0 binary-file.bin
Windows:
esptool.py --port COM1 write_flash 0x0 binary-file.bin