Problem loading GivTCP in Home Assitant

5 comments started 2024-02-24 last 2024-03-01
Home Automation
S
#1 steverice1

I have installed mosquitto broker and Givtcp but am getting the following in the log

Can anybody help `please?```

2024-02-24 10:04:52,924 - Inv1 - mqtt_client - [CRITICAL] - Connecting to MQTT broker for control- core-mosquitto
INFO Accepting connections at http://localhost:3042
2024-02-24 10:06:33,046 - 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 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'

P
#2 pacemaker

did you also setup the MQTT user and add to the givtcp config?

S
#3 steverice1

Yes, should core-mosquitto be the broker hostname in givtcp or should this be an IP address

I have entered the username and password

G
#4 geoffreycoan

steverice1 I have had the ‘no serial number’ error intermittently with GivTCP 2.4.3 and my gen 1 hybrid inverter. The issue hasn’t occurred on the older 2.4.1 so in the past when it occurred I downgraded back to 2.4.1 (from a prior HA backup).

Last time it happened I found that the inverter had got into a weird state and this was what was causing the error in GivTCP. Doing a reset to defaults through the portal cured the error in GivTCP

G
#5 G-dog

geoffreycoan i had same problem when i tried to install HA/GivTCP. funny it knocked out my cloud readings also. maybe that was the problem. Anyway i faffed about with it for a few days and gave up.