britkat1980 / giv_tcp

TCP connection (from inverter) and MQTT implementation
86 stars 37 forks source link

3 phase Gen 3 inverter. When will GivTCP be compatible? #186

Closed LeeFarm11 closed 2 months ago

LeeFarm11 commented 6 months ago

Hi. I had an 11kW 3 phase Gen 3 inverter installed at end of February. As far as I can tell GivTCP is not yet able to communicate with the inverter. Is there a timescale of when it will be added to GivTCP please?

Valex1p commented 3 months ago

Went back to my newest backup of Dev 660 and all working again - batteries discovered and data being pulled.

LeeFarm11 commented 3 months ago

Slightly off topic. Any idea why this does not work. Has never worked. And same for Giv version in Portal. image image

Valex1p commented 3 months ago

you need the beta version of the energy graph in the Giv portal:-

Capture

go to the portal>edit dashboard> and scroll down to the beta widget

LeeFarm11 commented 3 months ago

Thanks very much. Wasn't aware of that. @britkat1980 Will there be a version of the GivTCP Energy Graph to work with 3ph?

Valex1p commented 3 months ago

I noticed something today that is now puzzling me. I created a very simple dashboard to look at a few key values.

Capture

Battery charging and battery discharging is obviously a bi-directional flow but according to these numbers both things are happening at the same time.

The GE portal presents it as charging or discharging with the corresponding value but is that the truth?

When presented as 'charging' the GE and givtcp values align and the same when 'discharging' but what about the number for the opposite state?

I've been watching this and it is almost as if the charging value is updated if the battery is charging and the discharging value remain unaltered until the battery starts discharging again at which point it gets updated

gcoan commented 3 months ago

there be a version of the GivTCP Energy Graph to work with 3ph?

I found that the GivTCP energy graphs didn't reliably update themselves for my gen 1 inverters so stopped using them.

As an alternative to using the GivTCP energy graph, I use the Power Flow Plus card from HACS in HA to construct my own energy flow graphs. They should work for 3 phase inverters if you have appropriate 'power now' sensors working. Unfortunately it only works for one set of solar and battery so as I have two inverters I have to display two energy cards side by side. I could create template sensors to add the values together but I prefer to see the breakdown.

LeeFarm11 commented 3 months ago

Hi @britkat1980 Predbat evidently uses Battery Charge Rate from GivTCP for something. I don't know why and I don't know what this setting in GivTCP does, but it seems something is wrong with it. Are you able to take a look please? Thanks. https://github.com/springfall2008/batpred/issues/1380

britkat1980 commented 3 months ago

Battery charge rate sets the power rate for ac charge. In single phase inverters this is a power vale in watts. Three phase doesn’t have this control rather it uses a % value. So I would need to reverse create this value. Do you know that maximum battery charge power for the HV Stacks?

LeeFarm11   @. @.)>   21 Aug 2024 at 11:41:56   wrote:

Hi @britkat1980 (https://github.com/britkat1980)

Predbat evidently uses Battery Charge Rate from GivTCP for something. I don't know why and I don't know what this setting in GivTCP does, but it seems something is wrong with it. Are you able to take a look please? Thanks. springfall2008/batpred#1380 (https://github.com/springfall2008/batpred/issues/1380)

Reply to this email directly, view it on GitHub (https://github.com/britkat1980/giv_tcp/issues/186#issuecomment-2301740303), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQPLJBWZUJ2YQGP2OOMXPP3ZSRVHHAVCNFSM6AAAAABHR5GP6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRG42DAMZQGM).

You are receiving this because you were mentioned.Message ID: @.***>

LeeFarm11 commented 3 months ago

The maximum charge rate I have seen is 11.144kW but if the house was using absolutely nothing I guess it could be a little higher. image

LeeFarm11 commented 3 months ago

While trying to run predbat, I am getting some errors which seem to relate back to GivTCP. Suggestion is that there are still some issues with the mappings? Or maybe the settings just don't exist on 3 phase Inverters? Maybe predbat will have to switch to different sensors somehow to make work for 3 phase. @britkat1980 What do you think.?

This line says Battery is 10kWh. But it is really 20.4kWh. Maybe that is another mis-read from GivTCP? But I don't see any relevant Entities or Helpers from GivTCP.

2024-08-21 18:10:07.086293: Inverter 0 with soc_max 10.0 kWh nominal_capacity 10.0 kWh battery rate raw 11000.0 w charge rate 11.0 kW discharge rate 11.0 kW battery_rate_min 200.0 w ac limit 11.5 kW export limit 11.5 kW reserve 4.0 % current_reserve 4.0 %

I (gcoan) also noticed the current SoC isn't being reported correctly:

2024-08-21 18:10:07.088260: Found 1 inverters totals: min reserve 0.4 current reserve 0.4 soc_max 10.0 soc 0.0 charge rate 11.0 kW discharge rate 0.2 kW battery_rate_min 200.0 w ac limit 11.5 export limit 11.5 kW loss charge 3 % loss discharge 3 % inverter loss 4 %

Thanks

britkat1980 commented 3 months ago

Battery Capacity is missing in GivTCP-HA entities, but it looks like predbat picks it from the raw out from GivTCP. Which sounds like the inverter is outputting the wrong data. What does your GivTCP entity say for SOC, if its reported as 0% in predbat, if its right in HA then predbat needs to update.

Try Beta693 which should have two values for Battery_Capacit_kWh. One direct from inverter and one calculated. Let me know which one is right...

LeeFarm11 commented 3 months ago

Hi. Installed Beta 694 and I am geting these errors -

024-08-22 07:34:04,249 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'TypeError'>, TypeError("string indices must be integers, not 'str'"), <traceback object at 0x7f3f1eccc280>) 2024-08-22 07:34:04,249 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'TypeError'>, TypeError("string indices must be integers, not 'str'"), <traceback object at 0x7f3f1eccc280>) 2024-08-22 07:34:04,249 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-22 07:34:04,250 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1557)

LeeFarm11 commented 3 months ago

Full log from start -

2024-08-22 08:21:40,782 - startup - [INFO] - ========================== STARTING GivTCP================================ 2024-08-22 08:21:42,823 - startup - [INFO] - Searching for Inverters 2024-08-22 08:21:42,823 - startup - [INFO] - Scanning network for GivEnergy Devices... 2024-08-22 08:21:44,087 - startup - [INFO] - GivEVC 11288853538258 found at: 192.168.1.102 2024-08-22 08:22:05,924 - startup - [INFO] - Inverter TD2343G049 which is a Gen1 - Hybrid_3ph with 6 batteries has been found at: 192.168.1.101 2024-08-22 08:22:05,947 - startup - [INFO] - Inverter TD2343G049 already found in settings file (slot 1), checking IP address is unchanged... 2024-08-22 08:22:05,953 - startup - [INFO] - Setting up invertor: 1 2024-08-22 08:22:06,061 - startup - [INFO] - ============================================================== 2024-08-22 08:22:06,062 - startup - [INFO] - ==== Web Gui Config is at ==== 2024-08-22 08:22:06,063 - startup - [INFO] - ==== http://192.168.1.204:8099/config.html ==== 2024-08-22 08:22:06,064 - startup - [INFO] - ============================================================== 2024-08-22 08:22:06,065 - startup - [INFO] - Running Invertor 1 (TD2343G049) read loop every 30/120s 2024-08-22 08:22:06,070 - startup - [INFO] - Running EVC read loop every 10s 2024-08-22 08:22:06,081 - startup - [INFO] - Serving Web Dashboard from port 3000 [2024-08-22 08:22:07 +0100] [57] [INFO] Starting gunicorn 22.0.0 [2024-08-22 08:22:07 +0100] [57] [INFO] Listening at: http://0.0.0.0:6345 (57) [2024-08-22 08:22:07 +0100] [57] [INFO] Using worker: sync [2024-08-22 08:22:07 +0100] [71] [INFO] Booting worker with pid: 71 [2024-08-22 08:22:07 +0100] [72] [INFO] Booting worker with pid: 72 [2024-08-22 08:22:07 +0100] [73] [INFO] Booting worker with pid: 73 2024-08-22 08:22:11,664 - Inv1 - evc - [DEBUG ] - Socket isn't yet open 2024-08-22 08:22:11,703 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-22 08:22:11,722 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-22 08:22:11,723 - Inv1 - evc - [DEBUG ] - Opening settings for first run evc 2024-08-22 08:22:11,725 - Inv1 - evc - [DEBUG ] - Settings available evc 2024-08-22 08:22:11,726 - Inv1 - evc - [DEBUG ] - serial number aready exists: " serial_number_evc="11288853538258" " 2024-08-22 08:22:11,729 - Inv1 - evc - [DEBUG ] - removing lockfile 2024-08-22 08:22:11,732 - Inv1 - evc - [CRITICAL] - Publishing Home Assistant Discovery messages 2024-08-22 08:22:12,220 - Inv1 - selector_events - [DEBUG ] - Using selector: EpollSelector 2024-08-22 08:22:12,230 - Inv1 - read - [INFO ] - Starting watch_plant loop... 2024-08-22 08:22:12,230 - Inv1 - GivLUT - [DEBUG ] - Opening Modbus Connection to 192.168.1.101 2024-08-22 08:22:12,237 - Inv1 - read - [CRITICAL] - Detecting inverter characteristics... 2024-08-22 08:22:12,352 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-22 08:22:12,360 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error UPDATE The latest version of serve is 14.2.3 INFO Accepting connections at http://localhost:3000 2024-08-22 08:22:15,373 - Inv1 - HA_Discovery - [DEBUG ] - 0 discovery messages changed and removed 2024-08-22 08:22:21,221 - Inv1 - HA_Discovery - [DEBUG ] - Connecting to broker: core-mosquitto 2024-08-22 08:22:21,221 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-22 08:22:21,427 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-22 08:22:21,628 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-22 08:22:21,831 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-22 08:22:22,033 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-22 08:22:22,226 - Inv1 - HA_Discovery - [DEBUG ] - connected OK Returned code=Success 2024-08-22 08:22:22,239 - Inv1 - HA_Discovery - [DEBUG ] - Publishing MQTT: core-mosquitto 2024-08-22 08:22:26,261 - Inv1 - HA_Discovery - [DEBUG ] - Sent 29 discovery messages 2024-08-22 08:22:26,262 - Inv1 - HA_Discovery - [DEBUG ] - Found 470 discovery messages 2024-08-22 08:22:26,262 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-22 08:22:26,262 - Inv1 - evc - [DEBUG ] - MQTT Connection appears closed, re-opening 2024-08-22 08:22:26,262 - Inv1 - evc - [DEBUG ] - Opening MQTT Connection to core-mosquitto 2024-08-22 08:22:26,266 - Inv1 - evc - [DEBUG ] - In wait loop (multi_MQTT_publish) 2024-08-22 08:22:26,267 - Inv1 - evc - [DEBUG ] - connected OK Returned code=Success 2024-08-22 08:22:26,268 - Inv1 - evc - [DEBUG ] - Subscribing to GivEnergy/control/# 2024-08-22 08:22:26,469 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-22 08:22:26,476 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-22 08:22:32,664 - Inv1 - read - [DEBUG ] - Running full refresh 2024-08-22 08:22:32,664 - Inv1 - read - [DEBUG ] - Running processData 2024-08-22 08:22:32,664 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-22 08:22:32,665 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-22 08:22:32,679 - Inv1 - read - [DEBUG ] - Getting Battery Details 2024-08-22 08:22:32,681 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,682 - Inv1 - read - [DEBUG ] - Battery HY2343G302 added 2024-08-22 08:22:32,683 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,684 - Inv1 - read - [DEBUG ] - Battery HY2343G257 added 2024-08-22 08:22:32,685 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,686 - Inv1 - read - [DEBUG ] - Battery HY2343G446 added 2024-08-22 08:22:32,687 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,688 - Inv1 - read - [DEBUG ] - Battery HY2343G025 added 2024-08-22 08:22:32,689 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,690 - Inv1 - read - [DEBUG ] - Battery HY2343G259 added 2024-08-22 08:22:32,691 - Inv1 - read - [DEBUG ] - Building battery output: 2024-08-22 08:22:32,691 - Inv1 - read - [DEBUG ] - Battery HY2343G144 added 2024-08-22 08:22:32,693 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'TypeError'>, TypeError("string indices must be integers, not 'str'"), <traceback object at 0x7fa75ba63480>) 2024-08-22 08:22:32,693 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'TypeError'>, TypeError("string indices must be integers, not 'str'"), <traceback object at 0x7fa75ba63480>) 2024-08-22 08:22:32,693 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-22 08:22:32,694 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1557)

LeeFarm11 commented 3 months ago

Loaded Beta 695. Seems to be running much better. Thanks.

I now see these -

image image

But none of them are correct. Should be 20.4 kwh. This is from the Giv Portal -

image

britkat1980 commented 3 months ago

Try 696, think I cracked it. Might be slightly different than 20.4 as it’s the actual capacity measured by the BCU

Valex1p commented 3 months ago

with Dev 698 I get:-

Capture

I have the same battery setup as @LeeFarm11

Valex1p commented 3 months ago

oops - second screen grab is wrong.

Should be:-

Capture 2

britkat1980 commented 3 months ago

So that looks right to me??

Valex1p commented 3 months ago

The calc and design figures yes I would agree. Did you say further up the thread that Capacity KWh is actually not available from the inverter?

britkat1980 commented 3 months ago

Stack Design Capacity is the battery capacity, so its no longer missing, it just wasn't using the same register as single phase inverters!

Valex1p commented 3 months ago

@britkat1980:-

Valex1p commented 3 months ago

Stack Design Capacity is the battery capacity, so its no longer missing, it just wasn't using the same register as single phase inverters!

all good then!

britkat1980 commented 3 months ago

Remind me what's not working with Force Charge/Export? Firmware is a GivEnergy thing, so I'm not sure about timings

Valex1p commented 3 months ago

This thread from 3 days ago:-

OK, interesting, what it should do is force the battery to charge at full power, drawing from grid if there is not enough PV. That's not happening, so I'll need to dig into what settings need to be in play for it to work properly

LeeFarm11 commented 3 months ago

Hi @britkat1980 Now on Beta 698 For Stack Design Capacity I see 18 or less. It is varying over time. @Valex1p was showing 21.54 with same setup, so doesn't seem quite right. Seems too random.

image

britkat1980 commented 3 months ago

Is t dropping inline with the SOC???

LeeFarm11 commented 3 months ago

Could be. Would know better after sun comes out tomorrow.

image

Valex1p commented 3 months ago

That does seem to be the case. I charged from the grid twice last night:-

Capture

britkat1980 commented 3 months ago

Ok, so that figure is probably SOC_kWh, which is the kWh remaining in the battery. I’ll take a look at this tonight and push an update with (hopefully) the right figures

LeeFarm11 commented 3 months ago

Yes.Tracks SOC. At 100% shows 22.74 which seems a little high. Should be 20.4.

image

LeeFarm11 commented 3 months ago

Sorry not sure now about 20.4. Not sure where I got that from. Giv Portal says 20.09.

LeeFarm11 commented 3 months ago

Paperwork says 20.4kWh but Portal says 20.09kWh GivEnergy_11kW__Hybrid_Manual.pdf

LeeFarm11 commented 3 months ago

I am seeing many othese errors in the Log. Inverter_Power_Out is outside of allowable bounds so using old value. I have over 200 of them just today.

2024-08-23 17:13:53,619 - Inv1 - read - [DEBUG ] - Data cleansed for: HY2343G144 2024-08-23 17:13:53,620 - Inv1 - read - [DEBUG ] - Data cleansed for: Battery_Stack_1 2024-08-23 17:13:53,621 - Inv1 - read - [DEBUG ] - Data cleansed for: Battery_Details 2024-08-23 17:13:53,621 - Inv1 - read - [DEBUG ] - Battery_Charge_Power is Zero so using old value 2024-08-23 17:13:53,622 - Inv1 - read - [DEBUG ] - Inverter_Power_Out is outside of allowable bounds so using old value. Out of bounds value is: -1292.6. Min limit: 0. Max limit: 30000 2024-08-23 17:13:53,622 - Inv1 - read - [DEBUG ] - Meter_Import_Power is Zero so using old value 2024-08-23 17:13:53,622 - Inv1 - read - [DEBUG ] - Data cleansed for: Power 2024-08-23 17:13:53,623 - Inv1 - read - [DEBUG ] - Data cleansed for: Power 2024-08-23 17:13:53,623 - Inv1 - read - [DEBUG ] - Data cleansed for: TD2343G049 2024-08-23 17:13:53,624 - Inv1 - read - [DEBUG ] - Data cleansed for: Meter_ID1 2024-08-23 17:13:53,624 - Inv1 - read - [DEBUG ] - Data cleansed for: Meter_Details 2024-08-23 17:13:53,625 - Inv1 - read - [DEBUG ] - Data cleansed for: Today

I did a Restart of GivTCP_Beta and same result.

2024-08-23 17:17:52,026 - Inv1 - read - [DEBUG ] - Data cleansed for: HY2343G144 2024-08-23 17:17:52,026 - Inv1 - read - [DEBUG ] - Data cleansed for: Battery_Stack_1 2024-08-23 17:17:52,027 - Inv1 - read - [DEBUG ] - Data cleansed for: Battery_Details 2024-08-23 17:17:52,027 - Inv1 - read - [DEBUG ] - Inverter_Power_Out is outside of allowable bounds so using old value. Out of bounds value is: -1492.6. Min limit: 0. Max limit: 30000 2024-08-23 17:17:52,028 - Inv1 - read - [DEBUG ] - Data cleansed for: Power 2024-08-23 17:17:52,028 - Inv1 - read - [DEBUG ] - Data cleansed for: Power 2024-08-23 17:17:52,029 - Inv1 - read - [DEBUG ] - Data cleansed for: TD2343G049 2024-08-23 17:17:52,029 - Inv1 - read - [DEBUG ] - Data cleansed for: Meter_ID1 2024-08-23 17:17:52,029 - Inv1 - read - [DEBUG ] - Data cleansed for: Meter_Details

Is this an issue?

britkat1980 commented 3 months ago

I’m expecting inverter power out to only be positive integer… so it’s rejecting the negative value… is that value likely to be real?

britkat1980 commented 3 months ago

Dev712 has new calc for Battery capacity etc... Also fix for invertor power out

LeeFarm11 commented 3 months ago

Dev712 installed. I get this error -

2024-08-24 08:16:03,111 - startup - [INFO] - ========================== STARTING GivTCP================================ 2024-08-24 08:16:05,155 - startup - [INFO] - Searching for Inverters 2024-08-24 08:16:05,156 - startup - [INFO] - Scanning network for GivEnergy Devices... 2024-08-24 08:16:31,617 - startup - [INFO] - Inverter TD2343G049 which is a Gen1 - Hybrid_3ph with 6 batteries has been found at: 192.168.1.101 2024-08-24 08:16:31,633 - startup - [INFO] - Inverter TD2343G049 already found in settings file (slot 1), checking IP address is unchanged... 2024-08-24 08:16:31,636 - startup - [INFO] - Setting up invertor: 1 2024-08-24 08:16:31,690 - startup - [INFO] - ============================================================== 2024-08-24 08:16:31,691 - startup - [INFO] - ==== Web Gui Config is at ==== 2024-08-24 08:16:31,692 - startup - [INFO] - ==== http://192.168.1.204:8099/config.html ==== 2024-08-24 08:16:31,692 - startup - [INFO] - ============================================================== 2024-08-24 08:16:31,694 - startup - [INFO] - Running Invertor 1 (TD2343G049) read loop every 30/120s 2024-08-24 08:16:31,705 - startup - [INFO] - Running EVC read loop every 10s 2024-08-24 08:16:31,717 - startup - [INFO] - Serving Web Dashboard from port 3000 [2024-08-24 08:16:33 +0100] [53] [INFO] Starting gunicorn 22.0.0 [2024-08-24 08:16:33 +0100] [53] [INFO] Listening at: http://0.0.0.0:6345 (53) [2024-08-24 08:16:33 +0100] [53] [INFO] Using worker: sync [2024-08-24 08:16:33 +0100] [70] [INFO] Booting worker with pid: 70 [2024-08-24 08:16:33 +0100] [71] [INFO] Booting worker with pid: 71 [2024-08-24 08:16:33 +0100] [72] [INFO] Booting worker with pid: 72 2024-08-24 08:16:36,390 - Inv1 - evc - [DEBUG ] - Socket isn't yet open 2024-08-24 08:16:37,475 - Inv1 - selector_events - [DEBUG ] - Using selector: EpollSelector 2024-08-24 08:16:37,478 - Inv1 - read - [INFO ] - Starting watch_plant loop... 2024-08-24 08:16:37,480 - Inv1 - GivLUT - [DEBUG ] - Opening Modbus Connection to 192.168.1.101 2024-08-24 08:16:37,485 - Inv1 - read - [CRITICAL] - Detecting inverter characteristics... UPDATE The latest version of serve is 14.2.3 2024-08-24 08:16:39,087 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-24 08:16:39,102 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... INFO Accepting connections at http://localhost:3000 2024-08-24 08:16:39,450 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-24 08:16:39,462 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-24 08:16:39,463 - Inv1 - evc - [DEBUG ] - Opening settings for first run evc 2024-08-24 08:16:39,464 - Inv1 - evc - [DEBUG ] - Settings available evc 2024-08-24 08:16:39,466 - Inv1 - evc - [DEBUG ] - serial number aready exists: " serial_number_evc="11288853538258" " 2024-08-24 08:16:39,467 - Inv1 - evc - [DEBUG ] - removing lockfile 2024-08-24 08:16:39,468 - Inv1 - evc - [CRITICAL] - Publishing Home Assistant Discovery messages 2024-08-24 08:16:39,673 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-24 08:16:39,676 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-24 08:16:42,680 - Inv1 - HA_Discovery - [DEBUG ] - 0 discovery messages changed and removed 2024-08-24 08:16:48,143 - Inv1 - HA_Discovery - [DEBUG ] - Connecting to broker: core-mosquitto 2024-08-24 08:16:48,143 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-24 08:16:48,346 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-24 08:16:48,547 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-24 08:16:48,748 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-24 08:16:48,963 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-24 08:16:49,148 - Inv1 - HA_Discovery - [DEBUG ] - connected OK Returned code=Success 2024-08-24 08:16:49,168 - Inv1 - HA_Discovery - [DEBUG ] - Publishing MQTT: core-mosquitto 2024-08-24 08:16:53,190 - Inv1 - HA_Discovery - [DEBUG ] - Sent 29 discovery messages 2024-08-24 08:16:53,190 - Inv1 - HA_Discovery - [DEBUG ] - Found 477 discovery messages 2024-08-24 08:16:53,190 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-24 08:16:53,191 - Inv1 - evc - [DEBUG ] - MQTT Connection appears closed, re-opening 2024-08-24 08:16:53,192 - Inv1 - evc - [DEBUG ] - Opening MQTT Connection to core-mosquitto 2024-08-24 08:16:53,196 - Inv1 - evc - [DEBUG ] - In wait loop (multi_MQTT_publish) 2024-08-24 08:16:53,198 - Inv1 - evc - [DEBUG ] - connected OK Returned code=Success 2024-08-24 08:16:53,199 - Inv1 - evc - [DEBUG ] - Subscribing to GivEnergy/control/# 2024-08-24 08:16:53,399 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-24 08:16:53,404 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-24 08:16:55,186 - Inv1 - read - [DEBUG ] - Running full refresh 2024-08-24 08:16:55,187 - Inv1 - read - [DEBUG ] - Running processData 2024-08-24 08:16:55,188 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-24 08:16:55,188 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-24 08:16:55,206 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd3edb18500>) 2024-08-24 08:16:55,206 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd3edb18500>) 2024-08-24 08:16:55,207 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-24 08:16:55,207 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1578) 2024-08-24 08:17:03,408 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-24 08:17:03,421 - Inv1 - evc - [DEBUG ] - Socket is still open

LeeFarm11 commented 3 months ago

I’m expecting inverter power out to only be positive integer… so it’s rejecting the negative value… is that value likely to be real?

I don't see why it should be real based on the description. However, there were over 200 instances of it being negative in one day, so I don't think it can be overlooked. Maybe it goes negative when Inverter is receiving Power from the Grid? Would a full log file help?

LeeFarm11 commented 3 months ago

Hi @britkat1980 I have now installed Dev713, but still same error -

2024-08-26 17:28:52,477 - startup - [INFO] - ========================== STARTING GivTCP================================ 2024-08-26 17:28:54,520 - startup - [INFO] - Searching for Inverters 2024-08-26 17:28:54,521 - startup - [INFO] - Scanning network for GivEnergy Devices... 2024-08-26 17:28:55,863 - startup - [INFO] - GivEVC 11288853538258 found at: 192.168.1.102 2024-08-26 17:29:18,043 - startup - [INFO] - Inverter TD2343G049 which is a Gen1 - Hybrid_3ph with 6 batteries has been found at: 192.168.1.101 2024-08-26 17:29:18,061 - startup - [INFO] - Inverter TD2343G049 already found in settings file (slot 1), checking IP address is unchanged... 2024-08-26 17:29:18,064 - startup - [INFO] - Setting up invertor: 1 2024-08-26 17:29:18,113 - startup - [INFO] - ============================================================== 2024-08-26 17:29:18,113 - startup - [INFO] - ==== Web Gui Config is at ==== 2024-08-26 17:29:18,114 - startup - [INFO] - ==== http://192.168.1.204:8099/config.html ==== 2024-08-26 17:29:18,115 - startup - [INFO] - ============================================================== 2024-08-26 17:29:18,116 - startup - [INFO] - Running Invertor 1 (TD2343G049) read loop every 30/120s 2024-08-26 17:29:18,128 - startup - [INFO] - Running EVC read loop every 10s 2024-08-26 17:29:18,138 - startup - [INFO] - Serving Web Dashboard from port 3000 [2024-08-26 17:29:19 +0100] [52] [INFO] Starting gunicorn 22.0.0 [2024-08-26 17:29:19 +0100] [52] [INFO] Listening at: http://0.0.0.0:6345 (52) [2024-08-26 17:29:19 +0100] [52] [INFO] Using worker: sync [2024-08-26 17:29:19 +0100] [71] [INFO] Booting worker with pid: 71 [2024-08-26 17:29:19 +0100] [72] [INFO] Booting worker with pid: 72 [2024-08-26 17:29:19 +0100] [73] [INFO] Booting worker with pid: 73 2024-08-26 17:29:24,072 - Inv1 - evc - [DEBUG ] - Socket isn't yet open 2024-08-26 17:29:24,162 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 17:29:24,183 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 17:29:24,186 - Inv1 - evc - [DEBUG ] - Opening settings for first run evc 2024-08-26 17:29:24,195 - Inv1 - evc - [DEBUG ] - Settings available evc 2024-08-26 17:29:24,196 - Inv1 - evc - [DEBUG ] - serial number aready exists: " serial_number_evc="11288853538258" " 2024-08-26 17:29:24,209 - Inv1 - evc - [DEBUG ] - removing lockfile 2024-08-26 17:29:24,210 - Inv1 - evc - [CRITICAL] - Publishing Home Assistant Discovery messages 2024-08-26 17:29:25,272 - Inv1 - selector_events - [DEBUG ] - Using selector: EpollSelector 2024-08-26 17:29:25,288 - Inv1 - read - [INFO ] - Starting watch_plant loop... 2024-08-26 17:29:25,290 - Inv1 - GivLUT - [DEBUG ] - Opening Modbus Connection to 192.168.1.101 2024-08-26 17:29:25,305 - Inv1 - read - [CRITICAL] - Detecting inverter characteristics... 2024-08-26 17:29:25,735 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:29:25,776 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error UPDATE The latest version of serve is 14.2.3 2024-08-26 17:29:28,794 - Inv1 - HA_Discovery - [DEBUG ] - 0 discovery messages changed and removed INFO Accepting connections at http://localhost:3000 2024-08-26 17:29:30,214 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 17:29:30,243 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 17:29:34,573 - Inv1 - HA_Discovery - [DEBUG ] - Connecting to broker: core-mosquitto 2024-08-26 17:29:34,573 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 17:29:34,785 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 17:29:34,998 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 17:29:35,200 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 17:29:35,401 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 17:29:35,582 - Inv1 - HA_Discovery - [DEBUG ] - connected OK Returned code=Success 2024-08-26 17:29:35,606 - Inv1 - HA_Discovery - [DEBUG ] - Publishing MQTT: core-mosquitto 2024-08-26 17:29:39,664 - Inv1 - HA_Discovery - [DEBUG ] - Sent 29 discovery messages 2024-08-26 17:29:39,665 - Inv1 - HA_Discovery - [DEBUG ] - Found 1783 discovery messages 2024-08-26 17:29:39,665 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 17:29:39,666 - Inv1 - evc - [DEBUG ] - MQTT Connection appears closed, re-opening 2024-08-26 17:29:39,666 - Inv1 - evc - [DEBUG ] - Opening MQTT Connection to core-mosquitto 2024-08-26 17:29:39,670 - Inv1 - evc - [DEBUG ] - In wait loop (multi_MQTT_publish) 2024-08-26 17:29:39,671 - Inv1 - evc - [DEBUG ] - connected OK Returned code=Success 2024-08-26 17:29:39,672 - Inv1 - evc - [DEBUG ] - Subscribing to GivEnergy/control/# 2024-08-26 17:29:39,879 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:29:39,885 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-26 17:29:48,334 - Inv1 - read - [DEBUG ] - Running full refresh 2024-08-26 17:29:48,334 - Inv1 - read - [DEBUG ] - Running processData 2024-08-26 17:29:48,335 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-26 17:29:48,336 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 17:29:48,350 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd963ecd240>) 2024-08-26 17:29:48,351 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd963ecd240>) 2024-08-26 17:29:48,351 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-26 17:29:48,352 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1578) 2024-08-26 17:29:49,889 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 17:29:49,898 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 17:29:49,910 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 17:29:49,910 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 17:29:49,911 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:29:59,916 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 17:29:59,928 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 17:29:59,932 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 17:29:59,932 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 17:29:59,933 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:30:09,938 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 17:30:09,942 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 17:30:09,954 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 17:30:09,955 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 17:30:09,955 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:30:18,542 - Inv1 - read - [DEBUG ] - Running partial refresh 2024-08-26 17:30:19,960 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 17:30:19,964 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 17:30:19,981 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 17:30:19,982 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 17:30:19,982 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 17:30:23,996 - Inv1 - read - [DEBUG ] - Data get was successful, now running handler if needed: 2024-08-26 17:30:23,996 - Inv1 - read - [DEBUG ] - Running processData 2024-08-26 17:30:23,997 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-26 17:30:23,997 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 17:30:24,014 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd963ca3b40>) 2024-08-26 17:30:24,015 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'UnboundLocalError'>, UnboundLocalError("cannot access local variable 'stack' where it is not associated with a value"), <traceback object at 0x7fd963ca3b40>) 2024-08-26 17:30:24,015 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-26 17:30:24,016 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1578)

britkat1980 commented 2 months ago

try Dev714,i cant test, but think its fixed

LeeFarm11 commented 2 months ago

Hi @britkat1980 . Thanks. Dev714 gets further but errors with Battery Nominal Capacity -

2024-08-26 18:11:58,841 - startup - [INFO] - Searching for Inverters 2024-08-26 18:11:58,841 - startup - [INFO] - Scanning network for GivEnergy Devices... 2024-08-26 18:12:00,209 - startup - [INFO] - GivEVC 11288853538258 found at: 192.168.1.102 2024-08-26 18:12:19,844 - startup - [INFO] - Inverter TD2343G049 which is a Gen1 - Hybrid_3ph with 6 batteries has been found at: 192.168.1.101 2024-08-26 18:12:19,857 - startup - [INFO] - Inverter TD2343G049 already found in settings file (slot 1), checking IP address is unchanged... 2024-08-26 18:12:19,862 - startup - [INFO] - Setting up invertor: 1 2024-08-26 18:12:19,912 - startup - [INFO] - ============================================================== 2024-08-26 18:12:19,912 - startup - [INFO] - ==== Web Gui Config is at ==== 2024-08-26 18:12:19,913 - startup - [INFO] - ==== http://192.168.1.204:8099/config.html ==== 2024-08-26 18:12:19,914 - startup - [INFO] - ============================================================== 2024-08-26 18:12:19,916 - startup - [INFO] - Running Invertor 1 (TD2343G049) read loop every 30/120s 2024-08-26 18:12:19,922 - startup - [INFO] - Running EVC read loop every 10s 2024-08-26 18:12:19,929 - startup - [INFO] - Serving Web Dashboard from port 3000 [2024-08-26 18:12:21 +0100] [56] [INFO] Starting gunicorn 22.0.0 [2024-08-26 18:12:21 +0100] [56] [INFO] Listening at: http://0.0.0.0:6345 (56) [2024-08-26 18:12:21 +0100] [56] [INFO] Using worker: sync [2024-08-26 18:12:21 +0100] [70] [INFO] Booting worker with pid: 70 [2024-08-26 18:12:21 +0100] [71] [INFO] Booting worker with pid: 71 [2024-08-26 18:12:21 +0100] [72] [INFO] Booting worker with pid: 72 2024-08-26 18:12:24,313 - Inv1 - evc - [DEBUG ] - Socket isn't yet open 2024-08-26 18:12:24,367 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:12:24,385 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:12:24,388 - Inv1 - evc - [DEBUG ] - Opening settings for first run evc 2024-08-26 18:12:24,388 - Inv1 - evc - [DEBUG ] - Settings available evc 2024-08-26 18:12:24,394 - Inv1 - evc - [DEBUG ] - serial number aready exists: " serial_number_evc="11288853538258" " 2024-08-26 18:12:24,395 - Inv1 - evc - [DEBUG ] - removing lockfile 2024-08-26 18:12:24,396 - Inv1 - evc - [CRITICAL] - Publishing Home Assistant Discovery messages 2024-08-26 18:12:25,207 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:12:25,216 - Inv1 - HA_Discovery - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-26 18:12:25,644 - Inv1 - selector_events - [DEBUG ] - Using selector: EpollSelector 2024-08-26 18:12:25,653 - Inv1 - read - [INFO ] - Starting watch_plant loop... 2024-08-26 18:12:25,654 - Inv1 - GivLUT - [DEBUG ] - Opening Modbus Connection to 192.168.1.101 2024-08-26 18:12:25,682 - Inv1 - read - [CRITICAL] - Detecting inverter characteristics... UPDATE The latest version of serve is 14.2.3 2024-08-26 18:12:28,238 - Inv1 - HA_Discovery - [DEBUG ] - 0 discovery messages changed and removed INFO Accepting connections at http://localhost:3000 2024-08-26 18:12:30,291 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 18:12:30,312 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 18:12:33,834 - Inv1 - HA_Discovery - [DEBUG ] - Connecting to broker: core-mosquitto 2024-08-26 18:12:33,835 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 18:12:34,035 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 18:12:34,236 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 18:12:34,442 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 18:12:34,649 - Inv1 - HA_Discovery - [DEBUG ] - In wait loop (sendDiscoMsg) 2024-08-26 18:12:34,841 - Inv1 - HA_Discovery - [DEBUG ] - connected OK Returned code=Success 2024-08-26 18:12:34,850 - Inv1 - HA_Discovery - [DEBUG ] - Publishing MQTT: core-mosquitto 2024-08-26 18:12:38,917 - Inv1 - HA_Discovery - [DEBUG ] - Sent 29 discovery messages 2024-08-26 18:12:38,917 - Inv1 - HA_Discovery - [DEBUG ] - Found 1783 discovery messages 2024-08-26 18:12:38,918 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:12:38,918 - Inv1 - evc - [DEBUG ] - MQTT Connection appears closed, re-opening 2024-08-26 18:12:38,918 - Inv1 - evc - [DEBUG ] - Opening MQTT Connection to core-mosquitto 2024-08-26 18:12:38,921 - Inv1 - evc - [DEBUG ] - In wait loop (multi_MQTT_publish) 2024-08-26 18:12:38,922 - Inv1 - evc - [DEBUG ] - connected OK Returned code=Success 2024-08-26 18:12:38,923 - Inv1 - evc - [DEBUG ] - Subscribing to GivEnergy/control/# 2024-08-26 18:12:39,122 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:12:39,127 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Stats/Timeout_Error 2024-08-26 18:12:49,128 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 18:12:49,148 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:12:49,161 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:12:49,162 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:12:49,162 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:12:53,115 - Inv1 - read - [DEBUG ] - Running full refresh 2024-08-26 18:12:53,116 - Inv1 - read - [DEBUG ] - Running processData 2024-08-26 18:12:53,117 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-26 18:12:53,118 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 18:12:53,133 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'battery_nominal_capacity'"), <traceback object at 0x7f631e25fc40>) 2024-08-26 18:12:53,134 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'battery_nominal_capacity'"), <traceback object at 0x7f631e25fc40>) 2024-08-26 18:12:53,135 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-26 18:12:53,135 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1578) 2024-08-26 18:12:59,168 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 18:12:59,171 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:12:59,183 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:12:59,184 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:12:59,184 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:13:09,190 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 18:13:09,193 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:13:09,207 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:13:09,208 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:13:09,208 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:13:19,224 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 18:13:19,226 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:13:19,238 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:13:19,238 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:13:19,239 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:13:23,262 - Inv1 - read - [DEBUG ] - Running partial refresh 2024-08-26 18:13:27,194 - Inv1 - read - [DEBUG ] - Data get was successful, now running handler if needed: 2024-08-26 18:13:27,195 - Inv1 - read - [DEBUG ] - Running processData 2024-08-26 18:13:27,195 - Inv1 - read - [DEBUG ] - Beginning parsing of Inverter data 2024-08-26 18:13:27,195 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 18:13:27,212 - Inv1 - read - [ERROR ] - inverter Update failed so using last known good data from cache: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'battery_nominal_capacity'"), <traceback object at 0x7f631e25ed40>) 2024-08-26 18:13:27,212 - Inv1 - read - [DEBUG ] - processData result: processData Error processing registers: (<class 'AttributeError'>, AttributeError("'list' object has no attribute 'battery_nominal_capacity'"), <traceback object at 0x7f631e25ed40>) 2024-08-26 18:13:27,213 - Inv1 - read - [DEBUG ] - Running pubFromPickle 2024-08-26 18:13:27,214 - Inv1 - read - [ERROR ] - runAll2 Error processing registers: ('KeyError', 'read.py', 1578) 2024-08-26 18:13:29,259 - Inv1 - evc - [DEBUG ] - Socket is already open 2024-08-26 18:13:29,262 - Inv1 - evc - [DEBUG ] - Socket is still open 2024-08-26 18:13:29,273 - Inv1 - evc - [DEBUG ] - Dealt with Charger 2024-08-26 18:13:29,274 - Inv1 - evc - [DEBUG ] - Publish all to MQTT 2024-08-26 18:13:29,274 - Inv1 - evc - [DEBUG ] - Publishing: GivEnergy/11288853538258/Charger 2024-08-26 18:13:30,235 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist... 2024-08-26 18:13:30,243 - Inv1 - GivLUT - [DEBUG ] - regcache doesn't exist...

britkat1980 commented 2 months ago

How about Dev715

LeeFarm11 commented 2 months ago

Looking good. Will take a closer look later. Thanks.

LeeFarm11 commented 2 months ago

With Dev715, if I set this - Charge Rate 33% in the Giv Portal - image Then I see this in HA. All seems OK. image

But if I set that setting to 100% in Giv Portal, then I see this - image And I get this error - 2024-08-27 12:41:55,090 - read - [DEBUG] - Data cleansed for: Timeslots 2024-08-27 12:41:55,090 - read - [DEBUG] - Battery_Charge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000 2024-08-27 12:41:55,091 - read - [DEBUG] - Data cleansed for: Control

If I restart GivTCP then I see this - image

But the error persists.

AND exactly the same situation with Battery Discharge Rate and Battery Discharge Rate AC. If set to less than about 90% in Giv Portal all seems ok in HA, but set to 100% and then we get errors due to 10000 max limit.

2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Data cleansed for: Timeslots 2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Battery_Discharge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000 2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Battery_Charge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000 2024-08-27 12:49:46,046 - Inv1 - read - [DEBUG ] - Data cleansed for: Control

britkat1980 commented 2 months ago

Ok, it should accept the 11000, I’ll check it out later

LeeFarm11   @. @.)>   27 Aug 2024 at 12:52:58   wrote:

With Dev715, if I set this - Charge Rate 33% in the Giv Portal - image.png (view on web) (https://github.com/user-attachments/assets/bd251628-b8c5-4c3f-a38d-b44f4fbd4406)

Then I see this in HA. All sems OK. image.png (view on web) (https://github.com/user-attachments/assets/fdce68e0-5278-451f-92e7-794efa1cfc89)

But if I set that setting to 100% in Giv Portal, then I see this - image.png (view on web) (https://github.com/user-attachments/assets/ba3f2989-99c0-4b3e-8f39-3bd40d0e6ec9)

And I get this error -

2024-08-27 12:41:55,090 - read - [DEBUG] - Data cleansed for: Timeslots

2024-08-27 12:41:55,090 - read - [DEBUG] - Battery_Charge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000

2024-08-27 12:41:55,091 - read - [DEBUG] - Data cleansed for: Control

If I restart GivTCP then I see this - image.png (view on web) (https://github.com/user-attachments/assets/df7cbe6d-5ebe-4ae8-896c-14a3e4769be1)

But the error persists.

AND exactly the same situation with Battery Discharge Rate and Battery Discharge Rate AC. If set to less than about 90% in Giv Portal all seems ok in HA, but set to 100% and then weget errors due to 10000 max limit.

2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Data cleansed for: Timeslots

2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Battery_Discharge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000

2024-08-27 12:49:46,045 - Inv1 - read - [DEBUG ] - Battery_Charge_Rate is outside of allowable bounds so using old value. Out of bounds value is: 11000. Min limit: 0. Max limit: 10000

2024-08-27 12:49:46,046 - Inv1 - read - [DEBUG ] - Data cleansed for: Control

Reply to this email directly, view it on GitHub (https://github.com/britkat1980/giv_tcp/issues/186#issuecomment-2312353946), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQPLJBVEX6C4FQETFHROCFTZTRSBRAVCNFSM6AAAAABHR5GP6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSGM2TGOJUGY).

You are receiving this because you were mentioned.Message ID: @.***>

britkat1980 commented 2 months ago

Missing Battery_Charge_Rate and 10,000 charge rate error fixed in 716

Valex1p commented 2 months ago

I noticed something today that is now puzzling me. I created a very simple dashboard to look at a few key values. Capture Battery charging and battery discharging is obviously a bi-directional flow but according to these numbers both things are happening at the same time. The GE portal presents it as charging or discharging with the corresponding value but is that the truth? When presented as 'charging' the GE and givtcp values align and the same when 'discharging' but what about the number for the opposite state?

I've been watching this and it is almost as if the charging value is updated if the battery is charging and the discharging value remain unaltered until the battery starts discharging again at which point it gets updated

@britkat1980 - any thoughts on this?

Valex1p commented 2 months ago

Whilst waiting on GE for the firmware upgrade to 'pause' battery discharge this setup works a treat for me:-

I use the fact that the EV is charging at anything above 0 to trigger an automation to force discharge the battery but with a very high threshold of 98% - it effectively stops the battery discharging at all and lets the EV charge from the grid instead (on cheap octopus go obviously!)

Capture

LeeFarm11 commented 2 months ago

I'll try to carry on testing specific GivTCP switches when time permits.

But in the meantime I again tried Predbat, now with GivTCP Dev727.

Seems to start up OK now without errors. Great. Then I see that it fails to calculate charge and discharge curves due to some missing data. Is this a GivTCP issue or does it need some guidance from a predbat person?

Note: Cannot find battery charge curve (missing history), one of the required settings for predbat_status, soc_kw, battery_power and charge_rate do not have history, check apps.yaml Note: Cannot find battery charge curve (missing history), one of the required settings for predbat_status, soc_kw, battery_power and charge_rate do not have history, check apps.yaml

2024-08-28 22:17:48.305659: Inverter 0 scheduled discharge enable is True
2024-08-28 22:17:48.305716: Inverter 0 discharge windows currently [{'start': 450, 'end': 540, 'average': 0}, {'start': 1890, 'end': 1980, 'average': 0}]
2024-08-28 22:17:48.305820: Find charge curve with sensors sensor.givtcp_td2343g049_soc_kwh and number.givtcp_td2343g049_battery_charge_rate and predbat.status and sensor.givtcp_td2343g049_battery_power
2024-08-28 22:17:48.698280: Note: Cannot find battery charge curve (missing history), one of the required settings for predbat_status, soc_kw, battery_power and charge_rate do not have history, check apps.yaml
2024-08-28 22:17:48.699480: Find discharge curve with sensors sensor.givtcp_td2343g049_soc_kwh and number.givtcp_td2343g049_battery_discharge_rate and predbat.status and sensor.givtcp_td2343g049_battery_power
2024-08-28 22:17:48.900763: Note: Cannot find battery charge curve (missing history), one of the required settings for predbat_status, soc_kw, battery_power and charge_rate do not have history, check apps.yaml
2024-08-28 22:17:48.901768: Found 1 inverters totals: min reserve 0.85 current reserve 1.06 soc_max 21.28 soc 16.69 charge rate 11.0 kW discharge rate 11.0 kW battery_rate_min 200.0 w ac limit 11.5 export limit 11.5 kW loss charge 3 % loss discharge 3 % inverter loss 4 %
2024-08-28 22:17:49.053477: Base charge    window [  ]
britkat1980 commented 2 months ago

One for the predbat group, but I think it needs about a week of data in HA, so I suspect as we’ve only just got some of these working you’ll need to wait. But check with them

britkat1980 commented 2 months ago

Can I suggest we close this issue as it seems to be mostly working. Please raise specific issues separately so I can track and fix them more easily.