mletenay / home-assistant-goodwe-inverter

Experimental version of Home Assistant integration for Goodwe solar inverters
https://discord.gg/TaXyWXT
MIT License
149 stars 43 forks source link

House Consumption #80

Open Logzy72 opened 3 years ago

Logzy72 commented 3 years ago

Im wondering if this intergration reads the house consumption from the inverter if the inverter has a goodwe smart meter connected to it via RS485. I have a MS series inverter and i dont see any fields for house consumption data. This could be because the smart meter i have is the Goodwe Homekit which is basically the Goodwe smart meter with a wifi module attached to it. but i would have thought Id still see the sensor form consumption but the value would be 0. When my solar was installed the installer did not connect the RS485 from the meter to the inverter. If I was to connect the RS485 link I think the Goodwe Homekit would then send the consumption data to the inverter.

Could this intergration then read that consumption data from the inverter.

mletenay commented 3 years ago

Well, the house_consumption sensor present in inverters based on ET and ES protocols is calculated by the plugin itself. The basic formula is power produced by PV + power retrieved from battery (if any) - power exported to grid (measured by smart meter). All these input values are provided directly by the inverter. The trouble with the DT based inverters (DT, D-NS, XS, MS) is that the inverter does not provide the smart meter value. (Or it does , but we we did not identified the data offset in response - i.e. modbus register. There are these xx* sensors we do not know their meaning, in theory one of the may represent the smart meter value.)

Anyway, in you case, I'm not sure how or if the smart meter communicates with the inverter, I have seen so far only RS485 connections. But as said above, even if you have wired RS485 connection to smart meter, at this point in time we do not know if or where those values are present in udp packet payloads.

But a general rule applies - if you see some data in the official mobile app (SolarGo) that are not provided by the HA plugin, then there is a high chance we can expose it too once analyzed. If some data are not visible in SolarGo, that may not exist (or just SolarGo is not programmed to show them). In your case, look if you can somewhere see grid export/import (smart meter) values.

Logzy72 commented 3 years ago

What do I need to do to see the xx* sensors?

On Sun, 17 Oct 2021, 1:28 am mletenay, @.***> wrote:

Well, the house_consumption sensor present in inverters based on ET and ES protocols is calculated by the plugin itself. The basic formula is power produced by PV + power retrieved from battery (if any) - power exported to grid (measured by smart meter). All these input values are provided directly by the inverter. The trouble with the DT based inverters (DT, D-NS, XS, MS) is that the inverter does not provide the smart meter value. (Or it does , but we we did not identified the data offset in response - i.e. modbus register. There are these xx* sensors we do not know their meaning, in theory one of the may represent the smart meter value.)

Anyway, in you case, I'm not sure how or if the smart meter communicates with the inverter, I have seen so far only RS485 connections. But as said above, even if you have wired RS485 connection to smart meter, at this point in time we do not know if or where those values are present in udp packet payloads.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mletenay/home-assistant-goodwe-inverter/issues/80#issuecomment-944923631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZLQI55NBE226AR575CGVTUHGDZDANCNFSM5GA5TLJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mletenay commented 3 years ago

I've just release v0.9.3 where I re-enabled the xx sensors, so you should now see them out of the box. Most of them don't provide any values, but e.g. xx134, xx142, xx144 seem to report something, we just need to figure out what.

Logzy72 commented 3 years ago

Looks like, on the MS series of inverter, the unknown sensors xx134, xx142, x144 dont report anything either. All unknown sensors reporting "unknown"

jebeke65 commented 2 years ago

The GW5000S-BP has it also in the plug-in but the value it produces is much too high, hence not correct. When I check the value during the night, I’m getting around 1500W which is certainly not what is consumed in the house

midadami commented 2 years ago

I have asked GoodWe and plan to keep asking until I get an answer as to why DT based inverters (DT, D-NS, XS, MS) don't offer the house consumption value through SolarGo app. It's probably because they made it that way and need firmware update or similar. My D-NS does have access to house consumption as excess electricity is activated and that can only happen if inverter has access to house consumption number on the moment.

bruxy70 commented 1 year ago

The basic formula is power produced by PV + power retrieved from battery (if any) - power exported to grid (measured by smart meter). All these input values are provided directly by the inverter.

So it does not include the power imported from the grid?

And the difference between House Consumption and Load is, that Load also contains the battery charge?

stevoh6 commented 1 year ago

I've just release v0.9.3 where I re-enabled the xx sensors, so you should now see them out of the box. Most of them don't provide any values, but e.g. xx134, xx142, xx144 seem to report something, we just need to figure out what.

@mletenay How and where can I see those values? I have shelly and GW DT inverter with smartmeter, so I can play with it, but I need some basic instructions. Im able to run Python or Nodejs scripts to read registers.

It will be enought to comment out line 177 in sensors.py ? if not sensor.id_.startswith("xx")

teranex commented 1 year ago

The basic formula is power produced by PV + power retrieved from battery (if any) - power exported to grid (measured by smart meter). All these input values are provided directly by the inverter.

So it does not include the power imported from the grid?

And the difference between House Consumption and Load is, that Load also contains the battery charge?

@bruxy70 Did you ever find an answer to what the difference between Load and House Consumption is? I'm also wondering about it, but can't really find an answer anywhere.

bruxy70 commented 1 year ago

No, I did not. It is confusing. Based on all the explanations, I think it is supposed to be the same in my scenario (since I have no other load than the house consumption). But it is not.

teranex commented 1 year ago

No, I did not. It is confusing. Based on all the explanations, I think it is supposed to be the same in my scenario (since I have no other load than the house consumption). But it is not.

Yeah I would also expect that in my case as I also have no other load. The only thing I could imagine would be that House Consumption would be what the house uses, and Load might be House Consumption + Power usage of the inverter itself. But I don't think that is the case since I noticed during the day the House Consumption is always higher than the Load (by 50 - 100W), but House Consumption is below Load during the night...

AT622CZ commented 1 week ago

Hi, we need update basic formula for House Consuption to "power produced by PV + power retrieved from battery (if any) + power retrieved from battery 2 (if any) - power exported to grid". Will be possible? (Batt2 power register: 35264)