We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7036057 commit f216590Copy full SHA for f216590
tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino
@@ -422,9 +422,9 @@ void Energy200ms(void) {
422
Settings->energy_kWhexport_ph[i] = RtcSettings.energy_kWhexport_ph[i];
423
424
Energy->period[i] -= RtcSettings.energy_kWhtoday_ph[i]; // this becomes a large unsigned, effectively a negative for EnergyShow calculation
425
- Energy->kWhtoday[i] = 0;
+ Energy->kWhtoday[i] = Energy->kWhtoday[i] % 100; // Roll fractional watt-hours into the next day since kWhtotal truncates to watt-hours.
426
Energy->kWhtoday_offset[i] = 0;
427
- RtcSettings.energy_kWhtoday_ph[i] = 0;
+ RtcSettings.energy_kWhtoday_ph[i] = Energy->kWhtoday[i];
428
Settings->energy_kWhtoday_ph[i] = 0;
429
430
Energy->start_energy[i] = 0;
0 commit comments