Hi, i tried the code to use for a simple run time power calculation without use of mqtt, but power is all of sudden returned to zero. What I did is just removed all the mqtt parts of the code as I opted to use serial interface with pi.
Is true that power is set to 0 for 1 minute during the startup by the following code.
if (millis() - chan1_last_pulse > 60000) {
chan1_watts = 0;
}