Hi, and thanks for reading
I have been a happy GiveEnergy user for the past 3 months and have just got round to looking at HomeAssistant with a view to limiting my battery charging based upon predicted solar generation for the following day. I have an all-in-one plus gateway and 11 solar panels connected to a Solis 3.5kWh inverter. The GivEnergy inverter is limited to 3.68kW export.
My thoughts were to add GiveTCP and PredBat to my HomeAssistant Server (a VM running HaOS under Hyper-V), but when I install and start GivTCP, I get the log shown below and no new devices are seen in MQTT. MQTT itself seems to be working fine because I use it to pull in data from the door sensors on my Ring Alarm system.
I am a relative newbie to HA so am struggling to figure out what I have done wrong - does anybody have a debugging and/or troubleshooting guide bceause I am sure I have done (or not done) something simple - I just can't see where I have gone wrong.
I know I could use wonderwatt or similar, but it would be cool to figure it all out on my own system
Thanks In Advance
Chris
2024-09-13 11:44:56,603 - startup - [CRITICAL] - HA MQTT Service has been found at core-mosquitto
2024-09-13 11:44:56,605 - startup - [INFO] - Supervisor Timezone: Europe/London
2024-09-13 11:44:58,609 - startup - [CRITICAL] - Scanning network for GivEnergy Devices...
2024-09-13 11:45:02,351 - startup - [CRITICAL] - Inverter GW2335G432 which is a Gen 1 - Gateway has been found at: 192.168.1.136
2024-09-13 11:45:02,507 - startup - [CRITICAL] - Inverter CD2347G136 which is a Gen 1 - All in One has been found at: 192.168.1.213
2024-09-13 11:45:02,507 - startup - [INFO] - Searching for Inverters again
2024-09-13 11:45:02,507 - startup - [CRITICAL] - Running Redis
2024-09-13 11:45:02,508 - startup - [CRITICAL] - Setting up invertor: 1 of 2
2024/09/13 11:45:02 [notice] 69#69: using the "epoll" event method
2024/09/13 11:45:02 [notice] 69#69: nginx/1.20.2
2024/09/13 11:45:02 [notice] 69#69: OS: Linux 6.6.46-haos
2024/09/13 11:45:02 [notice] 69#69: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2024/09/13 11:45:02 [notice] 69#69: start worker processes
2024/09/13 11:45:02 [notice] 69#69: start worker process 70
2024/09/13 11:45:02 [notice] 69#69: start worker process 71
2024/09/13 11:45:02 [notice] 69#69: start worker process 72
2024/09/13 11:45:02 [notice] 69#69: start worker process 76
2024-09-13 11:45:02,517 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2024-09-13 11:45:02,517 - startup - [CRITICAL] - Running Invertor (192.168.1.213) read loop every 15s
2024-09-13 11:45:02,518 - startup - [CRITICAL] - Subscribing MQTT Broker for control
2024-09-13 11:45:02,518 - startup - [CRITICAL] - Starting Gunicorn on port 6345
2024-09-13 11:45:02,521 - startup - [CRITICAL] - Setting up invertor: 2 of 2
2024-09-13 11:45:02,534 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2024-09-13 11:45:02,534 - startup - [CRITICAL] - Running Invertor (192.168.1.136) read loop every 15s
2024-09-13 11:45:02,535 - startup - [CRITICAL] - Subscribing MQTT Broker for control
2024-09-13 11:45:02,536 - startup - [CRITICAL] - Starting Gunicorn on port 6346
[2024-09-13 11:45:02 +0100] [80] [INFO] Starting gunicorn 23.0.0
[2024-09-13 11:45:02 +0100] [80] [INFO] Listening at: http://0.0.0.0:6345 (80)
[2024-09-13 11:45:02 +0100] [80] [INFO] Using worker: sync
[2024-09-13 11:45:02 +0100] [85] [INFO] Booting worker with pid: 85
[2024-09-13 11:45:02 +0100] [86] [INFO] Booting worker with pid: 86
[2024-09-13 11:45:02 +0100] [87] [INFO] Booting worker with pid: 87
[2024-09-13 11:45:02 +0100] [84] [INFO] Starting gunicorn 23.0.0
[2024-09-13 11:45:02 +0100] [84] [INFO] Listening at: http://0.0.0.0:6346 (84)
[2024-09-13 11:45:02 +0100] [84] [INFO] Using worker: sync
[2024-09-13 11:45:02 +0100] [90] [INFO] Booting worker with pid: 90
[2024-09-13 11:45:02 +0100] [91] [INFO] Booting worker with pid: 91
[2024-09-13 11:45:02 +0100] [92] [INFO] Booting worker with pid: 92
2024-09-13 11:45:03,386 - Inv2 - mqtt_client - [CRITICAL] - Connecting to MQTT broker for control- core-mosquitto
2024-09-13 11:45:03,630 - Inv1 - mqtt_client - [CRITICAL] - Connecting to MQTT broker for control- core-mosquitto
2024-09-13 11:45:57,472 - Inv1 - read - [ERROR ] - 10 failed inverter reads in a row so removing regCache to force update...
2024-09-13 11:46:43,486 - Inv2 - mqtt_client - [ERROR ] - No serial_number found in MQTT queue. MQTT Control not available.
Traceback (most recent call last):
File "/app/GivTCP_2/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_2/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-09-13 11:46:43,725 - 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'
