Intergrators and Outputs randomly stopped working

Hi,

Can I please have some help with the integrators and outputs that stopped working?

My outputs “Grid_Export” and “Grid_Import” have started reporting 0W when my house is definitely using energy. They used to work, and I haven’t opened iotawatt.local since before the data stopped so I hadn’t changed a thing.

  • I’ve tried restarting a few times.
  • My IoTaWatt is genuine from the IoTaWatt shop. It was from the batch with the bad SD card, but I’ve already replaced the card.
  • My message log hasn’t had anything new since 2023 for some reason. I’m not sure why.
  • Home Assistant shows that the data stopped around the 19th of August, and on the 19th and 18th there were some unrealistically high peaks. However, when I try to look that far back using my IoTaWatt’s Graph+, I can’t see any data from before

Config
Note that solar is 0W because I don’t have solar yet. The CT is sitting there waiting.

Graph+

My best guess is that your SDcard is defective. When you replaced it, did you do a clean build or copy files from the old card?

I’m not sure but I think I at least copied the config file.

Could this be related to why the integrator and outputs suddenly stopped working last month? But I replaced the SD card so long ago so I’m not sure why.

Without a message log I can only guess, but given that the message log is maintained on the SDcard and you don’t have any current entries, I would start there.

Thanks overeasy

I added a new SD card with a brand new config and it worked for several days. But then it stopped with the LED flashing red.

Since my PC freezes when I try to read from the SD card, I’m guessing the card is corrupt.

I’m buying another card to try a third time.

What do you think of these ‘high endurance’ cards? Or do you have any other recommendations?

Hi overeasy,

I copied the files from the Github SD Directory onto a fresh SD card that’s never been used, and installed it in the IoTaWatt.
I didn’t copy over anything from the previous card.

However, it reconnected to my wifi without me telling it how.
As expected, none of the inputs, outputs or integrators are set up. But is this still a good fresh start that will help me eliminate the SD card as the problem? The IoTaWatt must have the WIFI details stored on the ESP, but I’m not sure how much else it remembers.

Correct. The ESP EEPROM. There is hardware manufacturing data about some of the components. There is also a copy of the last valid configuration before the current config on the SDcard. If you have made any updates to the config it has probably been overwritten.

Hi overeasy,

I built the new SD card and connected my IoTaWatt back up to the CTs.
But the 2/4 outputs that use an integrator are still not working.

I started from scratch, without copying any settings over from my previous SD Card.

Initially after installing my SD card, the status page was blank.
I tried restarting several times and then tried clearing the logs, and history.
Eventually, the status page started working again.
iotawatt.local/command?deletelog=both
iotawatt.local/command?deletelog=history

Except for the outputs that use integrators.

Status Page:
The 2 outputs that use integrators aren’t working, but the two that don’t use integrators are working.

Outputs:
Grid_Export and Grid_Import us the Grid integrator.
image

Integrator:
The Grid integrator uses the Main_Line input.
image

Inputs:
The Main_Line input is on channel 1.
image

Logs and Configs:

config.txt (2.0 KB)
config-1.txt (2.0 KB)
esp-spiffs - config.txt (2.1 KB)
iotamsgs.txt (21.9 KB)

I had to change the .log file to .txt for this forum to let me upload them.
histlog.log.txt (12.3 KB)
iotalog.log.txt (66 KB)

You still have the old grid log. Delete the integrator and recreate it. It will take awhile before the new integrator builds the last 24 hours. See the docs about integrators.

EDIT: Thanks. I didn’t see your reply when I sent this. I’ll try that now. Why do I have the old Grid log when I started from scratch and had to recreate all the inputs, integrators and outputs?

FYI, this is with another brand new SD card, and brand new config. This is the SD card I used.

After my last reply, I created a new Integrator named Main_Line_Test (integrator: Wh = Main_Line), and a new output called Main_Line_Test_O=Main_Liner_Test.net and this output and integrator combo works.

It’s just Grid (integrator: Wh = Main_Line), Grid_Export = Grid.neg abs and Grid_Import = Grid.pos that don’t work and report only 0.

The integrator maintains its own log file (there is no room in the other logs for it). If you look at your Data Logs in the status display, you will see it. When you delete an integrator, that log is deleted as well. But you must have copied the log from your old card and implicitly deleted the integrator by deleting and recreating the config. If you had done as I suggested above, it should have solved the problem.