05 POLLING - patience4711/ESP8266_read_p1meter GitHub Wiki

Automatic polling

The meter is polled automatically with an interval that can be defined in the menu settings.

values

The data is received as a telegram. The values that are extracted are:

  • ECON_LT the consumed el. energy low tariff kWh
  • ECON_HT the consumed el. energy high tariff kWh
  • ERET_LT the returned el. energy low tariff kWh
  • ERET_H the returned el. energy high tariff kWh
  • PACTUAL_CON the actual power consumption W
  • PACTUAL_RET the actual power returning W
  • mGAS the consumed gas (m2)

This data is processed and displayed on the webinterface in different ways:

  • on the frontpage in the form of the current meter readings
  • in a submenu in the form of a report of the monthly consumption.
  • in a submenu in the form of the original received telegram
  • via a httprequest like 'http//ip-of-esp/API/get.Data'

In addition, the data is sent via mosquitto in the form of a json array (2 formats)

monthly report:

This report contains the figures over a timeperiod of a month. At a new month, the current values are saved in a file. Now we can calculate the value by subtraction 2 months from each other. In the current month we see this value as 'todate'.

report