GivTCP - Export stat stopped working

6 comments started 2025-02-23 last 2025-02-23
Home Automation
M
#1 Morrisinc

Hi
Noticed on my energy board that "GivTCP Energy Export Energy Total kWh" I was using stopped workign about 3 weeks ago - no data - initally though was due to no real sun so was not exporting - but the other day on fill sun and export was going I notices the energy screen was not updating.

Restarted GivTCP and also restarted HA

Phil

S
#2 SteveCook

GivTCP 2 or 3
What do the logs show

M
#3 Morrisinc

Hi GivTCP v3
Logs look normal to me:

2025-02-21 10:29:21,405 - GivTCP - read - [INFO ] - Starting watch_plant loop...
2025-02-21 10:29:21,407 - GivTCP - GivLUT - [CRITICAL] - Opening Modbus Connection to 192.168.7.199
2025-02-21 10:29:21,412 - GivTCP - read - [CRITICAL] - Detecting inverter characteristics...
2025-02-21 10:30:10,826 - GivTCP - read - [INFO ] - Publishing Home Assistant Discovery messages
2025-02-22 00:00:17,571 - GivTCP - read - [INFO ] - Midnight, so resetting Day/Night stats...
2025-02-22 00:00:48,987 - GivTCP - read - [INFO ] - Midnight, so resetting Day/Night stats...
2025-02-22 00:30:25,817 - GivTCP - read - [INFO ] - Saving current energy stats at start of night rate tariff (Dynamic)
2025-02-22 06:07:34,050 - GivTCP - read - [ERROR ] - Error processing Inverter data: ((<class 'TypeError'>, TypeError("unsupported operand type(s) for +: 'float' and 'NoneType'"), <traceback object at 0x7f800f9273c0>), 1040)
2025-02-22 06:07:34,058 - GivTCP - read - [ERROR ] - inverter Update failed so using last known good data from cache: ((<class 'Exception'>, Exception('Process Data Failure'), <traceback object at 0x7f800f44e300>), 1657)
2025-02-22 06:07:34,059 - GivTCP - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1825)
2025-02-22 07:30:31,270 - GivTCP - read - [INFO ] - Saving current energy stats at start of day rate tariff (Dynamic)
2025-02-23 00:00:34,191 - GivTCP - read - [INFO ] - Midnight, so resetting Day/Night stats...
2025-02-23 00:01:06,123 - GivTCP - read - [INFO ] - Midnight, so resetting Day/Night stats...
2025-02-23 00:30:05,842 - GivTCP - read - [INFO ] - Saving current energy stats at start of night rate tariff (Dynamic)
2025-02-23 07:18:56,265 - startup - [INFO ] - ==================== STARTING GivTCP==========================
2025-02-23 07:18:56,307 - startup - [INFO ] - Network Found: 192.168.7.1/24
2025-02-23 07:18:58,312 - startup - [INFO ] - Searching for Inverters
2025-02-23 07:18:58,312 - startup - [INFO ] - Scanning network for GivEnergy Devices...
2025-02-23 07:19:00,945 - startup - [INFO ] - INV- Scanning network (1):192.168.7.1/24
2025-02-23 07:19:09,500 - client - [INFO ] - Connection established to 192.168.7.199:8899
2025-02-23 07:19:09,501 - client - [INFO ] - Detecting plant
2025-02-23 07:19:10,758 - client - [INFO ] - Plant Detected
2025-02-23 07:19:13,508 - startup - [INFO ] - Inverter SA2227G323 which is a Gen1 - Hybrid with 1 batteries has been found at: 192.168.7.199
2025-02-23 07:19:13,598 - startup - [INFO ] - Setting up invertor: 1
2025-02-23 07:19:14,055 - startup - [INFO ] - ==============================================================
2025-02-23 07:19:14,055 - startup - [INFO ] - ==== Web Gui Config is at ====
2025-02-23 07:19:14,055 - startup - [INFO ] - ==== http://192.168.7.200:8099/config.html ====
2025-02-23 07:19:14,056 - startup - [INFO ] - ==============================================================
2025-02-23 07:19:14,057 - startup - [INFO ] - Running Invertor 1 (SA2227G323) read loop every 30/120s
2025-02-23 07:19:14,066 - startup - [INFO ] - Serving Web Dashboard from port 3000
[2025-02-23 07:19:14 +0000] [69] [INFO] Starting gunicorn 23.0.0
[2025-02-23 07:19:14 +0000] [69] [INFO] Listening at: http://0.0.0.0:6350 (69)
[2025-02-23 07:19:14 +0000] [69] [INFO] Using worker: sync
[2025-02-23 07:19:14 +0000] [85] [INFO] Booting worker with pid: 85
[2025-02-23 07:19:14 +0000] [79] [INFO] Starting gunicorn 23.0.0
[2025-02-23 07:19:14 +0000] [79] [INFO] Listening at: http://0.0.0.0:6345 (79)
[2025-02-23 07:19:14 +0000] [79] [INFO] Using worker: sync
[2025-02-23 07:19:14 +0000] [86] [INFO] Booting worker with pid: 86
[2025-02-23 07:19:14 +0000] [87] [INFO] Booting worker with pid: 87
[2025-02-23 07:19:14 +0000] [88] [INFO] Booting worker with pid: 88
2025-02-23 07:19:16,152 - GivTCP - read - [INFO ] - Starting watch_plant loop...
2025-02-23 07:19:16,159 - GivTCP - GivLUT - [CRITICAL] - Opening Modbus Connection to 192.168.7.199
2025-02-23 07:19:16,169 - GivTCP - read - [CRITICAL] - Detecting inverter characteristics...
2025-02-23 07:20:04,558 - GivTCP - read - [INFO ] - Publishing Home Assistant Discovery messages
2025-02-23 07:30:22,682 - GivTCP - read - [INFO ] - Saving current energy stats at start of day rate tariff (Dynamic)

G
#4 geoffreycoan

Morrisinc There is a problem that a couple of us have noticed with battery charge and discharge total that goes wild https://github.com/britkat1980/giv_tcp/issues/338 it could be you have a similar issue.

Restarting givtcp cures the problem, but why it occurs, so far no idea

M
#5 Morrisinc

That was a issue I had at the start of the year but I was using _today ones - switched the _total ones as advised on there and worked well - Just this export one is not returning any values - looking in dev at the sensor no data recordered.

G
#6 geoffreycoan

Morrisinc The total sensors are definitely more reliable than the today sensors, but definitely seen a few unexplained issues with them as well

I’ve been working on writing a set of procedures for loading missing entity history in Home Assistant e.g. from the GivEnergy Portal so you can recreate the history for the Energy dashboard.
Got a bit more work to do on it but when done I’ll share it on this forum