diff --git a/lib/SvelteUi/src/AmsWebServer.cpp b/lib/SvelteUi/src/AmsWebServer.cpp index 6bcc856d..41b649d4 100644 --- a/lib/SvelteUi/src/AmsWebServer.cpp +++ b/lib/SvelteUi/src/AmsWebServer.cpp @@ -2190,7 +2190,7 @@ void AmsWebServer::configFileDownload() { EnergyAccountingConfig eac; config->getEnergyAccountingConfig(eac); EnergyAccountingData ead = ea->getData(); - server.sendContent(buf, snprintf_P(buf, BufferSize, PSTR("energyaccounting %d %d %.2f %d %d %.2f %d %d %d %.2f %d %.2f %d %.2f %d %.2f %d %.2f %.2f %.2f"), + server.sendContent(buf, snprintf_P(buf, BufferSize, PSTR("energyaccounting %d %d %.2f %.2f %.2f %.2f %.2f %.2f %d %.2f %d %.2f %d %.2f %d %.2f %d %.2f %.2f %.2f"), ead.version, ead.month, ea->getCostYesterday(), diff --git a/src/AmsToMqttBridge.cpp b/src/AmsToMqttBridge.cpp index 27c3296a..6e706600 100644 --- a/src/AmsToMqttBridge.cpp +++ b/src/AmsToMqttBridge.cpp @@ -2129,13 +2129,13 @@ void configFileParse() { } } else if(i == 3) { float val = String(pch).toFloat(); - ead.costYesterday = val * 10; + ead.costYesterday = val * 100; } else if(i == 4) { float val = String(pch).toFloat(); - ead.costThisMonth = val; + ead.costThisMonth = val * 100; } else if(i == 5) { float val = String(pch).toFloat(); - ead.costLastMonth = val; + ead.costLastMonth = val * 100; } else if(i >= 6 && i < 18) { uint8_t hour = i-6; { @@ -2156,22 +2156,22 @@ void configFileParse() { ead.month = val; } else if(i == 2) { float val = String(pch).toFloat(); - ead.costYesterday = val * 10; + ead.costYesterday = val * 100; } else if(i == 3) { float val = String(pch).toFloat(); - ead.costThisMonth = val; + ead.costThisMonth = val * 100; } else if(i == 4) { float val = String(pch).toFloat(); - ead.costLastMonth = val; + ead.costLastMonth = val * 100; } else if(i == 5) { float val = String(pch).toFloat(); - ead.incomeYesterday= val * 10; + ead.incomeYesterday= val * 100; } else if(i == 6) { float val = String(pch).toFloat(); - ead.incomeThisMonth = val; + ead.incomeThisMonth = val * 100; } else if(i == 7) { float val = String(pch).toFloat(); - ead.incomeLastMonth = val; + ead.incomeLastMonth = val * 100; } else if(i >= 8 && i < 18) { uint8_t hour = i-8; {