UtilitechAS / amsreader-firmware

ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported
Other
381 stars 73 forks source link

Realtime export hour is wrong #622

Closed wknutsen closed 1 year ago

wknutsen commented 1 year ago

Export hour kWh is wrong in frontend and in export to MQTT. However realtime day total export and "Energy use last 24 hours (kWh)" graph seems correct. See "he" on last post what I would expect to be output. It could be that "he" is using 2.5s sample rate instead of 10s.

Example from two hour samples from MQTT

{ "id": "", "name": "ANSReader", "up": 220063, "t": 0, "vcc": 3.303, "rssi": -73, "temp": -127.0, "data": { "lv": "AIDON_V0001", "id": "", "type": "6525", "P": 0, "Q": 0, "PO": 305, "QO": 470, "I1": -0.9, "I2": 0.0, "I3": -1.4, "U1": 239.8, "U2": 237.5, "U3": 236.7, "tPI": 93346.712, "tPO": 586.38, # Accumulated active export "tQI": 2307.21, "tQO": 8428.96, "rtc": 1692619200 = Monday, August 21, 2023 2:00:00 PM GMT+02:00 DST }, "realtime": { "h": 0.0, "d": 6.1, "t": 5, "x": 2.97, "he": 0.57, # Export this hour "de": 7.2 # Export total today } }

{ "id": "", "name": "ANSReader", "up": 223663, "t": 0, "vcc": 3.31, "rssi": -76, "temp": -127.0, "data": { "lv": "AIDON_V0001", "id": "", "type": "6525", "P": 0, "Q": 0, "PO": 2341, "QO": 231, "I1": -5.5, "I2": 0.0, "I3": -5.3, "U1": 239.7, "U2": 238.1, "U3": 238.7, "tPI": 93346.712, "tPO": 588.07, # Accumulated active export "tQI": 2307.21, "tQO": 8429.19, "rtc": 1692622800 = Monday, August 21, 2023 3:00:00 PM GMT+02:00 DST }, "realtime": { "h": 0.0, "d": 6.1, "t": 5, "x": 2.97, "he": 0.6, # Should have been 588.07 - 586.38 = 1.69 = 1.7 kWh "de": 8.8 # Seems correct } }

Thank you for an amazing product :)

Hardware information:

Relevant firmware information:

gskjold commented 1 year ago

I can confirm this would be an issue with NVE standard data. Will fix

gskjold commented 1 year ago

Final testing of this feature in issue #641