CT signal for Mains reversed after power outage

I have had my IoTaWatt since 2021 and it’s been working fine. Glad to see there is still activity in the IoTaWatt community. Great device giving invaluable data!

I have the 5v power supply plugged into a UPS for protection from surges, and the AC monitor to a regular outlet. I use CTs to monitor the 2 main wires from SDGE and the 2 wires from my solar inverter. I then calculate Consumption watts by adding the mains and solar watts. Have not had any power outages or restarted the IoTaWatt for a couple years. Data as viewed on the graphs is consistent.

Yesterday, after we lost AC power for about 2 hours, and everything restarted (had to wait for wifi to restart before starting the IoTaWatt) and I was getting my normal graph output, I noticed a much higher consumption reading than normal. It was about 6KW instead of 1or 2 KW. The SDGE meter was reading a negative approx. 2KW flow.

So I tried reversing the CT signal on the Input Setup Configuration for the 2 main CTs. That appeared to fix the problem.

But I don’t understand why a restart of the device would cause the polarity of the CT output to reverse? And it was just for the mains, not the solar.

Could SDGE’s repair of the outage have switched polarity(?) of the mains? I would think current in vs current out should have stayed the same. Puzzling.

Have you ever seen this before?

Thanks for your support.

Charlie