GivTCP mqtt_client - [ERROR ] - No serial_number found in MQTT queue

8 comments started 2025-01-08 last 2025-01-09
Home Automation
T
#1 TrevorD

Hi All,

First day at attempting to get HA running (BIG thanks to a number of the content creators on YouTube for some very helpful videos)

X86 machine, runnning HAOS
Inverter: GIV-3HY-11
Software Version: DA0.007-DD0.007-A0.007

Progress was not too bad until attempting to obtain the parameters from the Inverter.

Using GivTCP and MQTT Broker

Error Log

2025-01-08 20:47:59,250 - startup - [CRITICAL] - Inverter TD2335G007 which is a Gen 1 - Hybrid has been found at: 192.168.1.120
2025-01-08 20:47:59,251 - startup - [INFO] - Searching for Inverters again
2025-01-08 20:47:59,252 - startup - [CRITICAL] - Running Redis
2025-01-08 20:47:59,255 - startup - [CRITICAL] - Setting up invertor: 1 of 1
2025/01/08 20:47:59 [notice] 69#69: using the "epoll" event method
2025/01/08 20:47:59 [notice] 69#69: nginx/1.20.2
2025/01/08 20:47:59 [notice] 69#69: OS: Linux 6.6.66-haos
2025/01/08 20:47:59 [notice] 69#69: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2025/01/08 20:47:59 [notice] 69#69: start worker processes
2025/01/08 20:47:59 [notice] 69#69: start worker process 70
2025/01/08 20:47:59 [notice] 69#69: start worker process 71
2025/01/08 20:47:59 [notice] 69#69: start worker process 72
2025/01/08 20:47:59 [notice] 69#69: start worker process 73
2025-01-08 20:47:59,307 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2025-01-08 20:47:59,308 - startup - [CRITICAL] - Running Invertor (192.168.1.120) read loop every 30s
2025-01-08 20:47:59,310 - startup - [CRITICAL] - Subscribing MQTT Broker for control
2025-01-08 20:47:59,311 - startup - [CRITICAL] - Starting Gunicorn on port 6345
2025-01-08 20:47:59,318 - startup - [CRITICAL] - Serving Web Dashboard from port 3042
[2025-01-08 20:47:59 +0000] [80] [INFO] Starting gunicorn 23.0.0
[2025-01-08 20:47:59 +0000] [80] [INFO] Listening at: http://0.0.0.0:6345 (80)
[2025-01-08 20:47:59 +0000] [80] [INFO] Using worker: sync
[2025-01-08 20:47:59 +0000] [94] [INFO] Booting worker with pid: 94
[2025-01-08 20:47:59 +0000] [95] [INFO] Booting worker with pid: 95
[2025-01-08 20:47:59 +0000] [96] [INFO] Booting worker with pid: 96
2025-01-08 20:48:00,300 - Inv1 - mqtt_client - [CRITICAL] - Connecting to MQTT broker for control- core-mosquitto
UPDATE The latest version of serve is 14.2.4
INFO Accepting connections at http://localhost:3042
2025-01-08 20:49:40,422 - 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 <module>
client.loop_forever()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2297, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1686, in loop
rc = self.loop_read()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2100, in loop_read
rc = self.
packet_read()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3142, in packet_read
rc = self.
packet_handle()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3814, in packet_handle
return self.
handle_connack()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3934, 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'

Serial number has been obtained, so from that I have to conclude that communications has been established succefully, at least at the beginning

I've seen other posts in the forum from people with simlar issues - so this may have already been posted (appologies) but I've running a Three Phase Hybrid inverter, so checking to see if anyone else has solved this on my inverter.

NOTE: I see similar issues with the GivEnergy App - the HOME connects but can't obtain any data, but the AWAY connection works fine. (Feel these may be linked i.e. suffering the same connectivity issue)

#2 hoggy

Are you definetly running GivTCP 3 onwards - the TCP library only recently supported 3 phase inverters - I can see that the error log shows it thinking its a Gen 1 hybrid so this may be where it is getting hung up.

G
#3 geoffreycoan

TrevorD As Hoggy says you need to be on Giv TCP v3, the latest is 3.0.4 for a 3 phase inverter.

I’m not sure it is perfect yet but there are others using it. Have a look at the github givtcp issues and see what others are reporting. You could well need the dev or beta build as its still WIP

T
#4 TrevorD

Thanks - I did try to reinstal the GivTCP 3, but what I selected must have been wrong.

So I'll try agains, I'll get on that and post progress once I'm sure its using the GivTCP 3

Thanks

Trevor

G
#5 geoffreycoan

TrevorD Make sure that you untick auto start and shutdown v2 or uninstall. Can’t run multiple givtcp’s together !

T
#6 TrevorD

I've just uninstalled... hopefully that killed it

T
#7 TrevorD

BIG THANKS...

I'm up and running...

I'd missed the need to add another repository to see the V3 version

Anyway - thanks

G
#8 geoffreycoan

TrevorD yes the add on location changed for v3, it does make it easier to install the dev or beta versions now though

Glad you got it sorted