From d0dd9de4d7e8f16e1735db6704373b622c4cc00f Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sat, 24 Aug 2024 08:37:24 +0200 Subject: [PATCH] Updated fix for missing graph data --- src/AmsToMqttBridge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AmsToMqttBridge.cpp b/src/AmsToMqttBridge.cpp index d8943a9f..47dfa63b 100644 --- a/src/AmsToMqttBridge.cpp +++ b/src/AmsToMqttBridge.cpp @@ -1367,9 +1367,9 @@ void handleDataSuccess(AmsData* data) { tmElements_t tm, mtm; breakTime(now, tm); breakTime(meterTime, mtm); - if(data->getListType() == 4) { // Assuming these type of meters report all data all the time + if(!meterState.isCounterEstimated()) { // Assuming these type of meters report all data all the time if(tm.Minute == 0) { - debugD_P(PSTR("Updating data storage, triggered by list 4 (internal clock %02d:%02d:%02d UTC, neter clock: %02d:%02d:%02d)"), tm.Hour, tm.Minute, tm.Second, mtm.Hour, mtm.Minute, mtm.Second); + debugD_P(PSTR("Updating data storage (internal clock %02d:%02d:%02d UTC, meter clock: %02d:%02d:%02d)"), tm.Hour, tm.Minute, tm.Second, mtm.Hour, mtm.Minute, mtm.Second); saveData = ds.update(data, now); } } else if(data->getListType() == 3) { // Assuming HAN-NVE style meters which reports list type 3 only once per hour