Is there a know issue with GivTCP as for the past through weeks, I have discovered that my GivTCP stops collecting information from my GivEnergy invertor, and log the following error. this only resolves itself, after I do a restart on the Addon.
I have installed the Addon for Mqtt version 6.1.3 and GivTCP Version 2.0.6 into my Home Assistant.
Log from GivTCP
2022-12-17 10:26:11,839 - read - [ERROR] - Error collecting registers: (<class ‘KeyError’>, KeyError(IR:183), <traceback object at 0x7f125d213d80>)
2022-12-17 10:28:30,239 - sync - [ERROR] - Connection to (192.168.40.2, 8899) failed: timed out
2022-12-17 10:28:35,175 - GivLUT - [CRITICAL] - Consecutive failure count= 1
2022-12-17 10:28:35,175 - read - [ERROR] - Error collecting registers: (<class ‘KeyError’>, KeyError(IR:000), <traceback object at 0x7f125d20f900>)
I did see a post about deleting the .PKL files, but I have no ideal were to find them in HA
and when I restart the GIVTCP I get the following results
2022-12-17 12:37:58,068 - startup - [CRITICAL] - Config directory already exists
2022-12-17 12:37:58,068 - startup - [CRITICAL] - Running Redis
2022-12-17 12:37:58,072 - startup - [CRITICAL] - Running RQ Dashboard on port 9181
2022-12-17 12:37:58,072 - startup - [CRITICAL] - Setting up invertor: 1 of 1
2022-12-17 12:37:58,080 - startup - [CRITICAL] - Recreating settings.py for invertor 1
2022-12-17 12:37:58,081 - startup - [CRITICAL] - Removing old invertor data cache
2022-12-17 12:37:58,081 - startup - [CRITICAL] - Removing old battery data cache
2022-12-17 12:37:58,082 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2022-12-17 12:37:58,082 - startup - [CRITICAL] - Running Invertor read loop every 5s
2022-12-17 12:37:58,087 - startup - [CRITICAL] - Subscribing Mosquitto on port 1883
2022-12-17 12:37:58,092 - startup - [CRITICAL] - Starting Gunicorn on port 6345
2022-12-17 12:37:58,104 - startup - [CRITICAL] - Setting daily charge target forecast job to run at: 00:20
[2022-12-17 12:37:58 +0000] [16] [INFO] Starting gunicorn 20.1.0
[2022-12-17 12:37:58 +0000] [16] [INFO] Listening at: http://0.0.0.0:6345 (16)
[2022-12-17 12:37:58 +0000] [16] [INFO] Using worker: sync
[2022-12-17 12:37:58 +0000] [19] [INFO] Booting worker with pid: 19
[2022-12-17 12:37:58 +0000] [20] [INFO] Booting worker with pid: 20
[2022-12-17 12:37:58 +0000] [21] [INFO] Booting worker with pid: 21
RQ Dashboard version 0.6.0
- Running on 0.0.0.0:9181
- Serving Flask app ‘rq_dashboard.cli’
- Debug mode: off
2022-12-17 12:38:00,889 - sync - [ERROR] - Connection to (192.168.40.2, 8899) failed: timed out
2022-12-17 12:38:07,632 - GivLUT - [CRITICAL] - Consecutive failure count= 1
2022-12-17 12:38:07,632 - read - [ERROR] - Error collecting registers: (<class ‘KeyError’>, KeyError(HR:013), <traceback object at 0x7f599fb1b600>)
2022-12-17 12:38:12,923 - read - [CRITICAL] - First time running so saving AC Charge status
2022-12-17 12:38:12,924 - read - [CRITICAL] - Publishing Home Assistant Discovery messages
2022-12-17 12:40:16,062 - GivLUT - [CRITICAL] - Consecutive failure count= 1
2022-12-17 12:40:16,062 - read - [ERROR] - Error collecting registers: (<class ‘KeyError’>, KeyError(HR:013), <traceback object at 0x7f599fb1f240>)
I have checked my MQTT and goggle the results and it looks like it is heathy
2022-12-27 12:03:48: New connection from 192.168.1.7:45413 on port 1883.
2022-12-27 12:03:48: New client connected from 192.168.1.7:45413 as GivEnergy_GivTCP_1 (p2, c1, k60, u’mqttuser’).
2022-12-27 12:03:48: Client GivEnergy_GivTCP_1 disconnected.
but I am not able to result why I have to repeat restart the addon for it to start to collect the information each day and popular my database and dashboard