domoticsduino / smarthome-fw-esp8266-pzem-power-meter

Firmware for my board named ESP8266MCU12, based on ESP8266 microcontroller. This device use a PZEM-004T board as power meter device and use MQTT protocol to send data to OpenHAB Smart Home Automation System.

Home Page:https://www.domoticsduino.cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smarthome firmware for ESP8266 - PZEM Power Meter

Firmware for my board named ESP8266MCU12, based on ESP8266 microcontroller.

This device use a PZEM-004T board as power meter device and use MQTT protocol to send data to OpenHAB Smart Home Automation System.

Built with platformio (https://platformio.org) and visual studio code (https://code.visualstudio.com)

Depends on the following dd libraries:

  • ddcommon
  • ddwifi
  • ddmqtt
  • ddpzem004t

Compile & Build

To build your firmware bin file:

  • clone this repository with the --recursive flag to checkout dd-libraries
  • rename file include/user-config-template.h in include/user-config.h
  • set your WIFI and MQTT settings in file include/user-config.h

Firmware file will be in .pio/build/esp12e/firmware.bin

OTA / WebServer support

To upload using OTA, open http://ip-device/update on a browser and point to the firmware *.bin file

Open http://ip-device to get sensor state and device info in your browser

Branches

  • main contains work in progress commits - NOT STABLE branch
  • master contains STABLE commits and releases

Credits

About

Firmware for my board named ESP8266MCU12, based on ESP8266 microcontroller. This device use a PZEM-004T board as power meter device and use MQTT protocol to send data to OpenHAB Smart Home Automation System.

https://www.domoticsduino.cloud

License:MIT License


Languages

Language:C++ 60.9%Language:C 26.6%Language:Python 12.5%