/esp-p1-mqtt

ESP8266 software to read telegram from P1 Smart Meter and publish data to MQTT

Primary LanguageC

esp-p1-mqtt

Software for the ESP8266 that sends P1 smart meter data to a MQTT broker.

Features

  • Reads P1 telegram from smart meter
  • Publish data to MQTT broker
  • Uses WifiManager to create an AP if WiFi connection cannot be established

Installation

Connecting the ESP8266 to the smart meter

The ESP8266 can be connected to the smart meter using a RJ11 connector. The ESP module can be powered from the smart meter. A couple of hardware components are added to the ESP8266 module to invert the serial signal from the smart meter. If you do not want to use additional hardware you can try to use the SoftwareSerial library to invert the signal in software.

I followed this schema to modify my ESP8266:

Use this schema to connect the RJ11 connector:

RJ11 P1 connetor