Can't access via browser, HA keeps working

Hi, I’m having an odd issue with my Iotawatt where the web interface stops working a few minutes after I reboot it, but it seems to work fine in Home Assistant.

I was order # 127585 so I have replaced the SD card as I assumed that was the issue, but it keeps happening. I was able to copy all the data off the old one, formatted a new card I had laying around using the recommended utility, and copied back all the files from the old card and restarted.

Below is the log I was able to get after the last time I rebooted.

Is there anything else I can try to get both the web interface and the home assistant integration working at the same time? I’m running the latest update of Home Assistant (2023.4.1) at the moment but this issue started a while ago (I think it began in February but I’m not sure of the exact date).


SD initialized.
3/04/23 21:04:45z Real Time Clock is running. Unix time 1677963885 
3/04/23 21:04:45z Reset reason: Software/System restart
3/04/23 21:04:45z Trace:  18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:4, 18:5, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[3], 1:5[5], 1:6[4], 5:0, 5:7
3/04/23 21:04:45z ESP8266 ID: 15763453, RTC PCF8523 (68)
3/04/23 21:04:45z IoTaWatt 5.0, Firmware version 02_08_02
3/04/23 21:04:45z Updater: Installing update files for version 02_08_02
3/04/23 21:04:45z Updater: Installing EDIT.HTM
3/04/23 21:04:45z Updater: Installing FAVICON.ICO
3/04/23 21:04:46z Updater: Installing GRAPH.HTM
3/04/23 21:04:46z Updater: Installing GRAPH.JS
3/04/23 21:04:46z Updater: Installing GRAPH2.HTM
3/04/23 21:04:47z Updater: Installing GRAPH2.JS
3/04/23 21:04:47z Updater: Installing INDEX.HTM
3/04/23 21:04:49z Updater: Installing TABLES.TXT
3/04/23 21:04:49z Updater: Installing CNFSTYLE.CSS
3/04/23 21:04:49z Updater: Installation complete.
3/04/23 21:04:49z SPIFFS mounted.
3/04/23 21:04:50z Local time zone: +0:00
3/04/23 21:04:50z device name: IotaWatt
3/04/23 21:04:50z HTTP server started
3/04/23 21:04:50z timeSync: service started.
3/04/23 21:04:50z statService: started.
3/04/23 21:04:50z dataLog: service started.
3/04/23 21:04:50z dataLog: Last log entry 03/04/23 21:04:10
3/04/23 21:04:55z historyLog: service started.
3/04/23 21:04:55z historyLog: Last log entry 03/04/23 21:04:00
3/04/23 21:04:55z grid: Started
3/04/23 21:04:55z grid: Last log entry 03/04/23 21:04:10
3/04/23 21:04:59z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -60db
3/04/23 21:04:59z Updater: service started. Auto-update class is MINOR
3/04/23 21:05:00z Updater: Auto-update is current for class MINOR.
3/13/23 12:25:34z Updater: Invalid response from server. HTTPcode: -4
3/17/23 06:20:05z WiFi disconnected.
3/17/23 06:20:06z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -57db
3/17/23 13:39:55z WiFi disconnected.
3/17/23 13:39:57z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -59db

** Restart **

SD initialized.
3/17/23 15:19:41z Real Time Clock is running. Unix time 1679066381 
3/17/23 15:19:41z Reset Reason: Power-fail restart.
3/17/23 15:19:41z ESP8266 ID: 15763453, RTC PCF8523 (68)
3/17/23 15:19:41z IoTaWatt 5.0, Firmware version 02_08_02
3/17/23 15:19:41z SPIFFS mounted.
3/17/23 15:19:41z Local time zone: +0:00
3/17/23 15:19:41z device name: IotaWatt
3/17/23 15:19:44z Connecting with WiFiManager.
3/17/23 15:19:47z HTTP server started
3/17/23 15:19:47z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -54db
3/17/23 15:19:47z timeSync: service started.
3/17/23 15:19:47z statService: started.
3/17/23 15:19:47z Updater: service started. Auto-update class is MINOR
3/17/23 15:19:47z dataLog: service started.
3/17/23 15:19:48z dataLog: Last log entry 03/17/23 15:19:35
3/17/23 15:19:48z Updater: Auto-update is current for class MINOR.
3/17/23 15:19:51z grid: Started
3/17/23 15:19:51z grid: Last log entry 03/17/23 15:19:35
3/17/23 15:19:52z historyLog: service started.
3/17/23 15:19:52z historyLog: Last log entry 03/17/23 15:19:00
3/25/23 09:18:43z WiFi disconnected.
3/25/23 09:18:44z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -56db
3/25/23 21:38:57z WiFi disconnected.
3/25/23 21:38:58z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -56db
3/26/23 12:19:16z WiFi disconnected.
3/26/23 12:19:17z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -58db
3/27/23 07:24:43z WiFi disconnected.
3/27/23 07:24:44z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -61db
3/31/23 08:24:28z WiFi disconnected.
3/31/23 08:24:30z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -57db

** Restart **

SD initialized.
4/07/23 14:11:49z Real Time Clock is running. Unix time 1680876709 
4/07/23 14:11:49z Reset Reason: Power-fail restart.
4/07/23 14:11:49z ESP8266 ID: 15763453, RTC PCF8523 (68)
4/07/23 14:11:49z IoTaWatt 5.0, Firmware version 02_08_02
4/07/23 14:11:49z SPIFFS mounted.
4/07/23 14:11:49z Local time zone: +0:00
4/07/23 14:11:49z device name: IotaWatt
4/07/23 14:11:52z Connecting with WiFiManager.
4/07/23 14:11:55z HTTP server started
4/07/23 14:11:55z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -57db
4/07/23 14:11:56z timeSync: service started.
4/07/23 14:11:56z statService: started.
4/07/23 14:11:56z Updater: service started. Auto-update class is MINOR
4/07/23 14:11:56z dataLog: service started.
4/07/23 14:11:56z dataLog: Last log entry 04/07/23 14:11:40
4/07/23 14:11:57z Updater: Auto-update is current for class MINOR.
4/07/23 14:12:00z grid: Started
4/07/23 14:12:01z grid: Last log entry 04/07/23 14:11:40
4/07/23 14:12:01z historyLog: service started.
4/07/23 14:12:01z historyLog: Last log entry 04/07/23 14:11:00
4/07/23 14:12:28z WiFi disconnected.
4/07/23 14:12:30z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -59db

** Restart **

SD initialized.
4/07/23 15:03:34z Real Time Clock is running. Unix time 1680879814 
4/07/23 15:03:34z Reset Reason: Power-fail restart.
4/07/23 15:03:34z ESP8266 ID: 15763453, RTC PCF8523 (68)
4/07/23 15:03:34z IoTaWatt 5.0, Firmware version 02_08_02
4/07/23 15:03:34z SPIFFS mounted.
4/07/23 15:03:34z Local time zone: +0:00
4/07/23 15:03:34z device name: IotaWatt
4/07/23 15:03:37z Connecting with WiFiManager.
4/07/23 15:03:41z HTTP server started
4/07/23 15:03:41z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -58db
4/07/23 15:03:41z timeSync: service started.
4/07/23 15:03:41z statService: started.
4/07/23 15:03:41z Updater: service started. Auto-update class is MINOR
4/07/23 15:03:42z dataLog: service started.
4/07/23 15:03:42z dataLog: Last log entry 04/07/23 14:44:45
4/07/23 15:03:43z Updater: Auto-update is current for class MINOR.
4/07/23 15:03:46z historyLog: service started.
4/07/23 15:03:46z historyLog: Last log entry 04/07/23 14:44:00
4/07/23 15:03:46z grid: Started
4/07/23 15:03:46z grid: Last log entry 04/07/23 14:44:40
4/07/23 15:04:14z WiFi disconnected.
4/07/23 15:04:15z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -61db
4/07/23 15:04:46z WiFi disconnected.
4/07/23 15:04:47z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -60db

** Restart **

SD initialized.
4/07/23 20:09:15z Real Time Clock is running. Unix time 1680898155 
4/07/23 20:09:15z Reset Reason: Power-fail restart.
4/07/23 20:09:15z ESP8266 ID: 15763453, RTC PCF8523 (68)
4/07/23 20:09:15z IoTaWatt 5.0, Firmware version 02_08_02
4/07/23 20:09:15z SPIFFS mounted.
4/07/23 20:09:15z Local time zone: +0:00
4/07/23 20:09:15z device name: IotaWatt
4/07/23 20:09:18z Connecting with WiFiManager.
4/07/23 20:09:21z HTTP server started
4/07/23 20:09:22z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -57db
4/07/23 20:09:22z timeSync: service started.
4/07/23 20:09:22z statService: started.
4/07/23 20:09:22z Updater: service started. Auto-update class is MINOR
4/07/23 20:09:22z dataLog: service started.
4/07/23 20:09:22z dataLog: Last log entry 04/07/23 20:09:10
4/07/23 20:09:23z Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
4/07/23 20:09:25z Real Time Clock is running. Unix time 1680898165 
4/07/23 20:09:25z Reset reason: Exception
4/07/23 20:09:25z Trace:  9:9, 1:3, 10:0, 10:14, 10:14, 10:14, 10:14, 10:14, 10:14, 10:14, 10:14, 10:14, 10:14, 10:15, 10:16, 10:16[1], 10:16[1], 34:30, 34:30, 33:0, 34:30, 10:16[1], 34:30, 34:30, 33:0, 34:30, 10:16[2], 10:17, 10:17, 10:18, 10:23, 10:17
4/07/23 20:09:25z ESP8266 ID: 15763453, RTC PCF8523 (68)
4/07/23 20:09:25z IoTaWatt 5.0, Firmware version 02_08_02
4/07/23 20:09:25z SPIFFS mounted.
4/07/23 20:09:25z Local time zone: +0:00
4/07/23 20:09:25z device name: IotaWatt
4/07/23 20:09:25z HTTP server started
4/07/23 20:09:25z timeSync: service started.
4/07/23 20:09:25z statService: started.
4/07/23 20:09:25z dataLog: service started.
4/07/23 20:09:25z dataLog: Last log entry 04/07/23 20:09:20
4/07/23 20:09:29z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -55db
4/07/23 20:09:29z Updater: service started. Auto-update class is MINOR
4/07/23 20:09:30z historyLog: service started.
4/07/23 20:09:30z historyLog: Last log entry 04/07/23 20:09:00
4/07/23 20:09:30z Updater: Auto-update is current for class MINOR.
4/07/23 20:09:30z grid: Started
4/07/23 20:09:30z grid: Last log entry 04/07/23 20:09:10

** Restart **

SD initialized.
4/09/23 14:27:39z Real Time Clock is running. Unix time 1681050459 
4/09/23 14:27:39z Reset Reason: Power-fail restart.
4/09/23 14:27:39z ESP8266 ID: 15763453, RTC PCF8523 (68)
4/09/23 14:27:39z IoTaWatt 5.0, Firmware version 02_08_02
4/09/23 14:27:39z SPIFFS mounted.
4/09/23 14:27:39z Local time zone: +0:00
4/09/23 14:27:39z device name: IotaWatt
4/09/23 14:27:42z Connecting with WiFiManager.
4/09/23 14:27:45z HTTP server started
4/09/23 14:27:45z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -60db
4/09/23 14:27:45z timeSync: service started.
4/09/23 14:27:45z statService: started.
4/09/23 14:27:45z Updater: service started. Auto-update class is MINOR
4/09/23 14:27:46z dataLog: service started.
4/09/23 14:27:46z dataLog: Last log entry 04/09/23 14:27:30
4/09/23 14:27:47z Updater: Auto-update is current for class MINOR.
4/09/23 14:27:50z grid: Started
4/09/23 14:27:50z grid: Last log entry 04/09/23 14:27:25
4/09/23 14:27:51z historyLog: service started.
4/09/23 14:27:51z historyLog: Last log entry 04/09/23 14:27:00
4/09/23 14:28:17z WiFi disconnected.
4/09/23 14:28:18z WiFi connected. SSID=The Wee Fee, IP=192.168.1.113, channel=6, RSSI -58db

I suspect your datalogs were damaged when the card failed. You can delete them by entering the following URL into your browser:

http://iotawatt.local/command?deletelog=both

If you cannot access the IoTaWatt to execute the command, you can remove the SDcard and delete the files:

/iotawatt/datalog.log
/iotawatt/histlog.log

1 Like

Does this delete the history saved on the device?

yes, all of the history is in the datalogs.