Green-Red-Red-Green LED Sequence

Yes, it’s in seconds. That’s the resolution of the RTC. Keep an eye on the adjustments, and please provide your hardware order number.

Thanks, my order number was #126097

Mark

Just an update … after the last mishap when I pulled the SD card, grabbed the log and posted it above.
After that I simply put the card back in and its been running fine again.
I have been keeping an eye on the log file for time adjustments, its been 8 days so far and there have been no time adjustments in the log at all.
iotamsgs.txt (6.5 KB)
There seems to be nothing much in the log at all apart from a wifi-reconnect when I power cycled my access point earlier tonight.
Strikes me as a little strange given the time seemed to vary wildly when the problem happened :frowning:
I am keeping an eye on my home network as well in the event that anything starts reporting whacky time.

Regards, Mark

1 Like

Sorry to dredge up an old thread.
Everything appears to have been running ok now for quite some time, however last night I noticed an RTC adjustment of “1743” in the log which I am assuming is nearly 1/2 an hour.

Is there any way of working out where the adjustment came from, ie if it was a whacky time server or anything?

My current iotawatt status looks like this …

Any my log currently has the following in it
iotamsgs.txt (6.7 KB)

Note that the tail of the log since the last incident is this bit

** Restart **

SD initialized.
6/13/22 04:11:21z Real Time Clock is running. Unix time 1655093481
6/13/22 04:11:21z Reset Reason: Power-fail restart.
6/13/22 04:11:21z ESP8266 ID: 440304, RTC M41T81 (68)
6/13/22 04:11:21z IoTaWatt 5.0, Firmware version 02_07_05
6/13/22 04:11:21z SPIFFS mounted.
6/13/22 14:11:21 Local time zone: +10:00
6/13/22 14:11:21 device name: IotaWatt
6/13/22 14:11:24 Connecting with WiFiManager.
6/13/22 14:11:27 HTTP server started
6/13/22 14:11:38 WiFi connected. SSID=brocolli, IP=192.168.1.16, channel=1, RSSI -62db
6/13/22 14:11:38 MDNS responder started for hostname IotaWatt
6/13/22 14:11:38 LLMNR responder started for hostname IotaWatt
6/13/22 14:11:39 timeSync: service started.
6/13/22 14:11:39 timeSync: adjusting RTC by 11
6/13/22 14:11:39 statService: started.
6/13/22 14:11:39 Updater: service started. Auto-update class is MINOR
6/13/22 14:11:40 dataLog: service started.
6/13/22 14:11:40 dataLog: Last log entry 06/12/22 22:28:30
6/13/22 14:11:40 historyLog: service started.
6/13/22 14:11:40 historyLog: Last log entry 06/12/22 22:28:00
6/13/22 14:11:41 Updater: Auto-update is current for class MINOR.
6/13/22 14:11:48 PVoutput: started
6/13/22 14:11:49 PVoutput: System New_Build, interval 5, freeload mode
6/13/22 14:11:49 PVoutput: Start status beginning 06/12/22 22:25:00
6/21/22 18:46:16 WiFi disconnected.
6/21/22 18:47:03 WiFi connected. SSID=brocolli, IP=192.168.1.16, channel=1, RSSI -62db
6/21/22 18:47:47 WiFi disconnected.
6/21/22 18:49:44 WiFi connected. SSID=brocolli, IP=192.168.1.16, channel=1, RSSI -62db
7/05/22 13:04:13 Updater: Invalid response from server. HTTPcode: -4
7/09/22 23:22:29 timeSync: adjusting RTC by 1743

I ran ntpscan and cant see anything untoward on my home network in terms if time services

image

The .114 addres I have discovered is my wifi garage door opener and over the last month appears to have had the correct time. I also checked my router (a TP link archer C24) and the time on it appears correct.

Regards. Mark

Here we go again :frowning:
I have been checking my setup almost everyday and things have just been working.
I did notice just 2 of these entries in the log from earlier this month, but apart from that all appeared ok

7/09/22 23:22:29 timeSync: adjusting RTC by 1743
7/11/22 20:22:29 timeSync: adjusting RTC by 197

The unit ran happily and did its 6 week routine restart on the 25th of June (if thats local time, it was yesterday)

7/25/22 14:22:29 timeSync: Six week routine restart.

Since the restart I have noticed these in the log

7/25/22 14:22:42 PVoutput: Start status beginning 07/25/22 14:20:00
7/25/22 22:23:34 timeSync: adjusting RTC by 1479
7/26/22 09:23:34 timeSync: adjusting RTC by 371
7/26/22 10:23:34 timeSync: adjusting RTC by 3332
7/26/22 11:23:34 timeSync: adjusting RTC by 3432

I cant see anything on my home lan that could be causing this (ie wanything braodcasting a sacky time or anything)
image

Complete log is attached
In the meantime, I’ll keep an eye on things

iotamsgs_Jun26th.txt (8.5 KB)

Regards, Mark

Hi again,

A further update, its taken a while since it last happened but my iotawatt appears to be non responsive again.
I checked last night and it appeared ok, its status webpage was working, I also looked at a graph of my solar output from yesterday which appeared ok (I also took a screenshot of the graph for reference).

I did notice that there were some further timeSync message in the log, they seemed to appear again around the 25th of July and have got more frequent over the past few days.
From looking at the log there is almost a pattern to them.

7/28/22 08:18:10 timeSync: adjusting RTC by 1614
7/28/22 09:18:10 timeSync: adjusting RTC by 3326
7/28/22 10:18:10 timeSync: adjusting RTC by 3003
7/28/22 11:18:10 timeSync: adjusting RTC by 3579
7/28/22 12:18:10 timeSync: adjusting RTC by 3278
7/28/22 13:18:10 timeSync: adjusting RTC by 3276
7/28/22 14:18:10 timeSync: adjusting RTC by 3430
7/28/22 16:18:10 timeSync: adjusting RTC by 3088
7/28/22 19:18:10 timeSync: adjusting RTC by 1658
7/29/22 08:18:10 timeSync: adjusting RTC by 1647
7/29/22 18:18:10 timeSync: adjusting RTC by 1078
7/29/22 21:18:10 timeSync: adjusting RTC by 1525

I think I have the latest log file it was left open in a tab on my browser.
iotamsgs_Jul30_3pm.txt (9.8 KB)

At the moment the unit is flashing with a green-red-red sequence.
It appears to be still connected to my wifi as I can ping it at its IP address 192.168.1.16 (fixed via a dhcp reservation on my router) but I cant ping it at iotawatt.local
Its web interface also currently seems down.

I have a short video of its led sequence on my google drive at …

In the previous post you mentioned this …

It is running with the cover off and I havent power cycled it or anything as yet.
If you do look in the log, the last restart was me taking the cover off late in the evening a few nights ago.
Is there any further instructions on what to do, ie is it just a momentary press of the RST button?

Thanks, Mark

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.