GIVTCP will not talk to the Givenergy inverter

Hope there is a cure my inverter and givtcp have stopped talking and i am getting the following error message in the log.

2023-08-03 17:36:11,336 - Inv1 - read - [ERROR ] - 10 failed inverter reads in a row so removing regCache to force update…
2023-08-03 17:37:53,346 - Inv1 - read - [ERROR ] - Consecutive failure count= 4 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9940>)”), <traceback object at 0x7f83f02140>)
2023-08-03 17:38:19,273 - Inv1 - read - [ERROR ] - Consecutive failure count= 5 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9940>)”), <traceback object at 0x7f83f00fc0>)
2023-08-03 17:38:45,105 - Inv1 - read - [ERROR ] - Consecutive failure count= 6 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9940>)”), <traceback object at 0x7f83f213c0>)
2023-08-03 17:39:10,917 - Inv1 - read - [ERROR ] - Consecutive failure count= 7 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9940>)”), <traceback object at 0x7f83f22100>)
2023-08-03 17:39:36,729 - Inv1 - read - [ERROR ] - Consecutive failure count= 8 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9940>)”), <traceback object at 0x7f83f20c80>)
2023-08-03 17:39:57,310 - Inv1 - read - [ERROR ] - Consecutive failure count= 9 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:013), <traceback object at 0x7f8cbd9880>)”), <traceback object at 0x7f83f21440>)
2023-08-03 17:40:23,128 - Inv1 - read - [ERROR ] - Consecutive failure count= 10 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbd9980>)”), <traceback object at 0x7f83f22840>)
2023-08-03 17:40:48,950 - Inv1 - read - [ERROR ] - Consecutive failure count= 11 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbe9980>)”), <traceback object at 0x7f857b4a00>)
2023-08-03 17:40:48,950 - Inv1 - read - [ERROR ] - 10 failed inverter reads in a row so removing regCache to force update…
2023-08-03 17:42:32,337 - Inv1 - read - [ERROR ] - Consecutive failure count= 4 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbed980>)”), <traceback object at 0x7f83f00c00>)
2023-08-03 17:42:58,138 - Inv1 - read - [ERROR ] - Consecutive failure count= 5 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbed900>)”), <traceback object at 0x7f83f00f00>)
2023-08-03 17:43:23,964 - Inv1 - read - [ERROR ] - Consecutive failure count= 6 – (<class ‘Exception’>, Exception(“Garbage or failed inverter Response: ERROR:-(<class ‘KeyError’>, KeyError(HR:243), <traceback object at 0x7f8cbed940>)”), <traceback object at 0x7f83f02bc0>)
2023-08-03 17:43:49,822 - Inv1 - read - [ERROR ] - Consecutive failure count= 7 – (<class ‘Exception’>,

Is there a fix for this problem?

Thanks Steve

1 Like

Hi Steve,

I just had the same problem and it was after the latest update to GivTCP was installed. I managed to get this working by going into the configuration for GivTCP and enabling the ‘Is it old fimware’ toggle. I tried the ‘AIO’ option, but that also gave me the same error. Once selecting ‘Old Firmware’ toggle, and restarting the addin, it work straight away.

Hope this is of some help to you.

Rob

Steve,
I experienced the same problem, tried Rob’s fix for using Old Firmware and it works again.
Issues like this are what can make HA so frustrating at times and shows worth of a community to come up with solutions.

Thanks a lot Rob

From another Rob!

Cheers fellas, was having exactly the same issue, will try this when I get home

i have just installed an allinone and inverter from givenergy and using thr GIVTCP I get this message repeated in the log file. The old firmware fix didnt do it for me

Inv2 - read        -  [ERROR   ] - Consecutive failure count= 7 -- (<class 'Exception'>, Exception("Garbage or failed inverter Response: ERROR:-(<class 'KeyError'>, KeyError(HR:113), <traceback object at 0x7f0abc0289c0>)"), <traceback object at 0x7fb05d9aa400>)

Hi, I too have just had theAIO installed and this is also giving me the same error:
ERROR ] - Consecutive failure count= 11 – (<class ‘Exception’>

Inverter is on Firmware D0.608-A0.608

Had the same issues trying to set-up givtcp with a newly installed AIO. Changed the “is it on old firmware” toggle to off, and this appears to have solved this for me.

hi,
i am a noobie with HA, but i installed Givtcp etc. and after the install all worked ok, next day however everything was unknown ( i changed nothing over night )
this is what the log shows, i have an aio have toggled the firmware and battery options but that has no effect
thanks

2024-07-23 09:16:54,953 - startup - [CRITICAL] - Running Redis
2024-07-23 09:16:54,956 - startup - [CRITICAL] - Setting up invertor: 1 of 1
2024/07/23 09:16:54 [notice] 69#69: using the “epoll” event method
2024/07/23 09:16:54 [notice] 69#69: nginx/1.20.2
2024/07/23 09:16:54 [notice] 69#69: OS: Linux 6.6.28-haos-raspi
2024/07/23 09:16:54 [notice] 69#69: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2024/07/23 09:16:54 [notice] 69#69: start worker processes
2024/07/23 09:16:54 [notice] 69#69: start worker process 74
2024/07/23 09:16:54 [notice] 69#69: start worker process 75
2024/07/23 09:16:54 [notice] 69#69: start worker process 76
2024/07/23 09:16:54 [notice] 69#69: start worker process 77
2024-07-23 09:16:54,979 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2024-07-23 09:16:54,979 - startup - [CRITICAL] - Running Invertor (192.168.1.24) read loop every 5s
2024-07-23 09:16:54,982 - startup - [CRITICAL] - Subscribing MQTT Broker for control
2024-07-23 09:16:54,985 - startup - [CRITICAL] - Starting Gunicorn on port 6345
[2024-07-23 09:16:55 +0100] [81] [INFO] Starting gunicorn 21.2.0
[2024-07-23 09:16:55 +0100] [81] [INFO] Listening at: http://0.0.0.0:6345 (81)
[2024-07-23 09:16:55 +0100] [81] [INFO] Using worker: sync
[2024-07-23 09:16:55 +0100] [82] [INFO] Booting worker with pid: 82
[2024-07-23 09:16:55 +0100] [83] [INFO] Booting worker with pid: 83
[2024-07-23 09:16:55 +0100] [86] [INFO] Booting worker with pid: 86
2024-07-23 09:16:55,739 - Inv1 - mqtt_client - [CRITICAL] - Connecting to MQTT broker for control- core-mosquitto
2024-07-23 09:17:02,785 - Inv1 - read - [ERROR ] - 10 failed inverter reads in a row so removing regCache to force update…
2024-07-23 09:18:35,834 - Inv1 - mqtt_client - [ERROR ] - No serial_number found in MQTT queue. MQTT Control not available.
Traceback (most recent call last):
File “/app/GivTCP_1/mqtt_client.py”, line 402, in
client.loop_forever()
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 1756, in loop_forever
rc = self._loop(timeout)
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 1164, in _loop
rc = self.loop_read()
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 1556, in loop_read
rc = self._packet_read()
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 2439, in _packet_read
rc = self._packet_handle()
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 3039, in _packet_handle
return self._handle_connack()
File “/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py”, line 3138, in _handle_connack
on_connect(
File “/app/GivTCP_1/mqtt_client.py”, line 386, in on_connect
client.subscribe(MQTT_Topic+“/control/”+GiV_Settings.serial_number+“/#”)
AttributeError: type object ‘GiV_Settings’ has no attribute ‘serial_number’
2024-07-23 09:19:13,148 - Inv1 - read - [ERROR ] - 10 failed inverter reads in a row so removing regCache to force update…

a