gluap / pyess

Python library for communication with LG ESS power converters
MIT License
31 stars 10 forks source link

Access to installer settings #17

Open s-hager opened 1 year ago

s-hager commented 1 year ago

Hello! @gluap I saw that in the disclaimer you say that you only have customer-level access to your LG ESS inverter. I actually found on a website that the password protected installer settings in the LG EnerVu Plus 1.3.2 android app can be accessed by typing in the "Registration NO." that is printed on the right side of the inverter (on the same sticker as the WLAN Password, just below it.) My Registration NO. for example is a 16 character sequence that starts with DE2011B... and the last 6 characters are integers.

For anyone who is reading this just be careful NOT TO CHANGE ANYTHING IF YOU DO NOT KNOW EXACTLY WHAT YOU ARE DOING because changes made in this menu can have more significant consequences and potentially break things.

PanicMan commented 6 months ago

Is it possible to read the SOH value out from the installer Battery info and put it to the MQTT?

gluap commented 6 months ago

I'm a bit hesitant to publish code that accesses the installer settings, even if only to read values. The reason being that some of the installer settings can have dangerous consequences when people change them. Plus I have no idea what that will do to users warranty.

PanicMan commented 6 months ago

I understand it, and I would assume to make an switch in the settings to explicitly activate it. The reason I need it, is, that my system is nearly 4 years old, and if I look from time to time into the installer settings, it shows me an SOH of 88%. But if I measure it on my system and count the amount of energy it discharges from 100-0% it is about 6.1kWh of an (usable) 9.3kWh Battery what is about 66% and that would definitely affect the warranty. Thats why I want to track the SOH to see if the BMS is somehow recognizing the missing energy...

gluap commented 6 months ago

As it is currently winter in the northern hemisphere: if you have winter mode enabled that might explain the discrepancy: winter mode essentially always keeps the battery charged to 20%, so in winter, only 80% of full capacity are usable.(at least on my system that's what it seems to be doing with default settings).

Depending on how winter mode accounts for soh, with 88%soh and 20% winter reserve only 68% capacity might be available.

PanicMan commented 6 months ago

Yes, I know that mode, and I already removed the additional 15% which are reserved in the Winter Mode. I have that issue already since the last summer. What I also encounter, is, that the Charge/Discharge Energy of the Battery is going apart and the Battery is getting warmer... In January f.e. the Battery charged 121.85 kWh and discharged 95.37 kWh, so where are the missing 26.48 kWh? In my opinion the battery will soon die and I hope not with fire, as this are LiPo's... :(

gluap commented 6 months ago

For me in winter the numbers are similar in terms of lost energy. For instance 32 kWh battery charge vs 23 kWh battery discharge in December 2022, but it looked better again in July 2023: 138 kWh charge vs 137 kWh discharge. Bad again in December 2023: 22kWh battery charge vs 14 kWh discharge or January 2024 59 kWh charge vs 49 kWh battery discharge. My SOH is 94, battery from 2019.

A possible explanation aside from a broken battery would be the inverters own power consumption might go uncounted by LGs power computation - In summer that self-consumption is largely directly from PV, in winter with very little sun it's mostly from battery. One thing that I can't comment on is the battery temperature, I've not monitored that in the past, and the battery getting hot definitely sounds concerning.

s-hager commented 6 months ago

My SOH is at 88,5%, battery was installed in April 2021, manufactured September 2020. I also have backup-mode enabled (meaning it does not discharge below 30%). Just as an additional data input.

PanicMan commented 6 months ago

I can only say what I can see, and that is, that my battery capacity is decreasing rapidly from last summer and the battery is getting warmer and my house is an wood house what scares me a little... I need to track something, because the app is lying with SOH and the LG Service is not a help at all... In my opinion the Warranty promise from LG is an complete lie... I just hope that it will not end in an disaster...

gluap commented 6 months ago

Even if we were to build in installer settings, pyess would see the same value the app is displaying. The app is displaying data it receives from the ESS - so you wouldn't see things that you don't already see in the app.

If you are concerned for safety and think the SOH value is bogous anyhow, I don't understand how monitoring that bogous value will improve things?

SamA699 commented 6 months ago

My SOH now shows 91% within 3 1/2 year. I hope that monitoring this over the time with my homeassistant would give me more arguments in discussion with the LG-Service, when the battery shows below 80% for a possible guarantee change. So, for me also, access to the installer menu with getting the SOH over mqtt would help.

gluap commented 6 months ago

If anyone wants to have a go, here's a short talk about how i reverse engineered the lg ess api for the user mode: https://youtu.be/C8qPi5ViYLA?si=Sad9u6iriGE_52fI

I don't plan doing it myself, but would be willing to consider a PR provided the mode needs to be enabled very explicitly.