0% SOC for 30 seconds on GivEnergy Local Home Assistant

7 comments started 2023-08-27 last 2023-08-28
Home AutomationHome Assistant
P
#1 P3tro

Hello.
I have an automation set up using Home Assistant (HA) and it ran through the night, because it was triggered by my battery's SOC value. I was pretty pleased I got this to work, as I'm learning how to make more use of HA with my IoT things!

I looked at my HA to see how things went with my trigger and I noticed something strange. The trigger was meant to be when the battery SOC was below 10(%), but my battery SOC at the time was actually 31(%). So I looked at the HA Logbook and History and saw that for about 30 seconds, the reported SOC was 0 around the time the HA automation kicked in.

While the automation did it's job perfectly, I've discovered that the 30 second reporting of zero SOC happens quite regularly. Please take a look at my screenshots from HA.

I'm not on the very latest HA (I'm on HA core 2023.6.2 and HA OS 10.4), but I am on the latest version of 'GivEnergy Local' by cdpuk, which at time of writing today is v1.8.0.

Does anyone have any tips or suggestions on how to overcome this issue?

The only thing I can think of is to make use of the 'For' aspect of the HA automation trigger, which, if I understand it correctly, will look at the value over a set amount of time (I'm going to use 1 minute). I think that should overcome the 30 second 'blip' of zero SOC being reported to HA.

Thanks in advance!

W
#2 wilfleek

That looks rather like a data "drop out" . I have noticed on the iPhone app that when I look at my individual battery data, there are regular if somewhat infrequent transient drops to zero for both SoC and temperature. It affects nothing for me, so I simply ignore it, put it down to the app charactistics. I don't see it on the portal graphs.

Wonder if your wifi is dropping out occasionally?

#3 hoggy

Isn't this just the signature of latest BMS doing an OCV check?
If SOC below 80% (3013) or 40% (3012) the BMS disconnects at certain times when the battery is <4A to carry out a voltage check on the pack. The BMS disconnecting would show as a (spurious) drop to 0% before it jumps back to where it was (or what it now thinks is the correct SOC)

Edit: from your top graph it looks like your battery was a little too busy for it to be classed as idle so perhaps not.

P
#4 P3tro

wilfleek That's interesting, I never see any such drops on the iOS app. And no, not having any wifi issues (I'd quickly and easily spot wifi issues, and the wifi drops would also be reported by other things on my HA integrations).

hoggy I'm still on 3012 -- on that version, is the OCV check while SOC is between 40-60%? Your theory seemed the most plausible but I noticed it happened while SOC was above 80% (about 4 times according to top HA graph).

My gut feeling is that the issue is something to do with the HA integration, 'GivEnergy Local' and it's interface with the inverter but I don't think I can prove it. Just seems odd. Can't really see a pattern either.

R
#5 Rubikcube

You are using the wrong SOC. There is an SOC from the inverter and an SOC from each battery. Using the inverter SOC will fix the issue with your automation.

G
#6 geoffreycoan

Rubikcube I dont see the SoC dropping to zero in my home assistant, but I have wondered about the different SoC figures. I’m using the inverter SoC in my automation script but there is often a discrepancy to the battery SoC.
Two gen 1 hybrid inverters, one with a 5.2 and the other with a 9.5. On the 9.5 the battery SoC and the inverter SoC follow pretty closely, except when the battery is nearing full when the inverter SoC tops out at 100% but the battery SoC stops at 98%. There’s a period around where the battery is full/slightly discharging/slightly recharging where the battery SoC is consistently 2% below the inverter SoC.
On the 5.2 battery and inverter there’s much more of a variance. Battery SoC again never gets to 100%, tops out at 98% and is consistently 2% below inverter SoC, but when charging and Eco discharging the SoC’s diverge with the battery being up to 7% higher than the inverter SoC (e.g. battery SoC=39%, inverter SoC=32%). Doesn’t make any sense, there’s only one battery on each inverter so I’d expect the values to be much closer aligned.

So which is correct?

Anyway, I don’t see the drop to zero in Home Assistant at all (I’m using GivTCP not GivEnergy Local though) and I’m using the inverter SoC for my automations.

R
#7 Rubikcube

geoffreycoan So which is correct?

Both are correct because they are measured in different ways.

Like CPI is 6.8% and RPI is 9.0% but both are correct measures of inflation.