Green-Red-Red-Green LED Sequence

Yes it is, then wait for it to completely restart before capturing the message log from the restart. It’s the trace that I’m interested in.

I tried pressing the RST button and the unit appears to reset.
From what I can see the blue led as well as the red/green one stop blinking for a second or so and the unit appears to come back up.
Its now flashing green-red-red and I cant seem to access it either by http://iotawatt.local/ or http://192.168.1.16 (which is its IP address).
I have a unifi access point and I can see that tis connected to my wifi

Is there anything else I can try to get the log/trace off it?
Apart from the RST press I havent done anything else such as remove the SD cad or power cycle it at the power point

Thanks, Mark

Sorry to dig up an old thread, but I’m having this exact issue. My unit is only a couple of months old. Is there anything I can do to help in the troubleshooting of the problem, or should I just get a replacement SD card?

For the past week or so, the web interface has not been available. It would just show

Not found: GET, URI: /

But my Home Assistant integration was still functioning, so I didn’t do anything with it. Last night, data stopped feeding into Home Assistant. I power cycled it twice, but nothing has fixed it. Home Assistant is not getting data, and the web interface just continues to show the above error message.

What was the order number?

Order number: 127642

I’ll send out a new card.

Hello,
Just had the exact same issue this morning - IoTaWatt is on and connected to wifi but Green-Red-Red-Green sequence and no connection on home assistant nor web browser. Based in the UK so presume easier for me to source a micro SD and perform instructions earlier in this thread? Order number 124528 if it helps with diagnosing anything?

That should resolve the problem.

Indeed it has, however a curious issue now: I copied over the config files so everything connected back in Home Assistant, however the “wh acc” figures are a crazy negative number (e.g. -2,649,312,955). Will have a poke around and see if I can figure out a reset - don’t really use this part but weird nonetheless.

Seems that there was some spurious negative values on the watt readings when it came back online. Although data is feeding nicely into Home Assistant, I’m now unable to ping or access the web gui of IoTaWatt itself - any further ideas (have tried an off/on of the device to no avail).

EDIT: after searching around the forums I found this and it seems the Home Assistant Integration is to blame. Disabled and GUI works again. Still unsure on the spurious values but can deal with that now I can access the GUI.

I now have this Green Red Red Green LED sequence. I had Green Red Red, did a power restart and it’s now Green Red Red Green.

I assume this means the SD card is borked and I need a new one. I can get a replacement card but need some pointers on what to do next.

Are the links here still relevant?

I have a Macbook, no Windows computers. No idea how I would connect an SD card to it.

EDIT: I have found a new class 10 16GB SD card, must have got it for something which didn’t eventuate. I think my Macbook has a built in SD card reader.

OK, for rebuilding the SD card, the instruction is to format in FAT32 format, which I have done.

Then:

Download the SD files from github SD directory

I’m at the linked Github page but how do I download the (right) files?

I can’t find a download files option.

I tried the Windows download link (I have a Macbook) and pasted the Github URL above and these are the files it provided:

Does that look right?

EDIT UPDATE:

I seem to have worked it out and got it all back on line. The link to use Windows to download the Github files also worked on my Mac.

I’ve lost whatever was stored on the old SD card, unless there is some other way to access it.

I managed to trace my all CT clamp wires and recreate the set up.

ORIGINAL POST:

I put the new SD card into the Iotawatt and it’s accessible, it connected to the Wi-Fi without needing to be reset up.

I plugged the old SD card into my Mac but it does not load at all. I was able to view the new card, so it looks as though the old card is corrupt and I have lost my config file.

So I’ll need to work out what’s what with rebuilding the config.

In the meantime it looks like the Iotawatt is resetting itself about every 30 seconds:

** Restart **

SD initialized.
3/17/24 01:52:53z Real Time Clock is running. Unix time 1710640373 
3/17/24 01:52:53z Reset reason: Exception
3/17/24 01:52:53z Trace:  10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
3/17/24 01:52:53z ESP8266 ID: 15763621, RTC PCF8523 (68)
3/17/24 01:52:53z IoTaWatt 5.0, Firmware version 02_08_03
3/17/24 01:52:53z SPIFFS mounted.
3/17/24 01:52:53z Local time zone: +0:00
3/17/24 01:52:53z device name: IotaWatt
3/17/24 01:52:53z HTTP server started
3/17/24 01:52:53z timeSync: service started.
3/17/24 01:52:53z statService: started.
3/17/24 01:52:53z dataLog: service started.
3/17/24 01:52:53z dataLog: Last log entry 03/17/24 01:52:50
3/17/24 01:52:53z historyLog: service started.
3/17/24 01:52:53z historyLog: Last log entry 03/17/24 01:52:00
3/17/24 01:52:58z WiFi connected. SSID=ASUS, IP=192.168.0.74, channel=6, RSSI -63db
3/17/24 01:52:58z Updater: service started. Auto-update class is MINOR
3/17/24 01:52:59z Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
3/17/24 01:53:28z Real Time Clock is running. Unix time 1710640408 
3/17/24 01:53:28z Reset reason: Exception
3/17/24 01:53:28z Trace:  10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
3/17/24 01:53:28z ESP8266 ID: 15763621, RTC PCF8523 (68)
3/17/24 01:53:28z IoTaWatt 5.0, Firmware version 02_08_03
3/17/24 01:53:28z SPIFFS mounted.
3/17/24 01:53:28z Local time zone: +0:00
3/17/24 01:53:28z device name: IotaWatt
3/17/24 01:53:28z HTTP server started
3/17/24 01:53:28z timeSync: service started.
3/17/24 01:53:28z statService: started.
3/17/24 01:53:28z dataLog: service started.
3/17/24 01:53:28z dataLog: Last log entry 03/17/24 01:53:25
3/17/24 01:53:28z historyLog: service started.
3/17/24 01:53:28z historyLog: Last log entry 03/17/24 01:53:00
3/17/24 01:53:32z WiFi connected. SSID=ASUS, IP=192.168.0.74, channel=6, RSSI -63db
3/17/24 01:53:32z Updater: service started. Auto-update class is MINOR
3/17/24 01:53:33z Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
3/17/24 01:54:03z Real Time Clock is running. Unix time 1710640443 
3/17/24 01:54:03z Reset reason: Exception
3/17/24 01:54:03z Trace:  10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:54, 10:56, 25:20, 25:40, 25:41, 25:42, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:62, 25:61, 25:64
3/17/24 01:54:03z ESP8266 ID: 15763621, RTC PCF8523 (68)
3/17/24 01:54:03z IoTaWatt 5.0, Firmware version 02_08_03
3/17/24 01:54:03z SPIFFS mounted.
3/17/24 01:54:03z Local time zone: +0:00
3/17/24 01:54:03z device name: IotaWatt
3/17/24 01:54:03z HTTP server started
3/17/24 01:54:03z timeSync: service started.
3/17/24 01:54:03z statService: started.
3/17/24 01:54:03z dataLog: service started.
3/17/24 01:54:03z dataLog: Last log entry 03/17/24 01:54:00
3/17/24 01:54:03z historyLog: service started.
3/17/24 01:54:03z historyLog: Last log entry 03/17/24 01:54:00
3/17/24 01:54:07z WiFi connected. SSID=ASUS, IP=192.168.0.74, channel=6, RSSI -61db
3/17/24 01:54:07z Updater: service started. Auto-update class is MINOR
3/17/24 01:54:08z Updater: Auto-update is current for class MINOR.

Two things:

The link you asked about

Contained instructions on how to recover your old config from the ESP8266 SPIFFS. That may be gone now if you created a new one, but take a look.

Your unit is now getting an exception while handling a query. This has happened before with Home Assistant and a brand new datalog. If you have HA, please stop the IoTaWatt integration and see if the IoTaWatt stops restarting. If so, wait a few hours before restarting the HA integration and it should be OK.

Thanks, looks like that’s gone now.

No matter, I have recreated it from scratch and took the opportunity to rename things.

Thanks again. Looks like it sorted itself out once I did some stuff on the HA end. The last message log entry was:

SD initialized.
3/17/24 02:06:14z Real Time Clock is running. Unix time 1710641174 
3/17/24 02:06:14z Reset reason: Exception

which wasn’t all that long after the ones I posted yesterday. Since then there is nothing new in the messages file.

It all seems to be working well, and also the HA integration (the forked one that works) appears to be nice and stable. Previously it used to drop out a lot even though the Iotawatt would be online and reporting OK via the iotawatt.local page.

Maybe the old SD card was causing issues. For the record this was the card in the unit:

In any case, the good thing was the unit gave me a clear indicator of what the issue was, and despite my uncertainty I was able to get it all back up and running by following the documentation.

Thanks again.

Could you post a picture of the back of the card? Most of the SD card problems are related to a bad batch of those cards.

Sure:

That’s the bad batch.

1 Like

A post was merged into an existing topic: Config update problem

14 posts were split to a new topic: Config update problem