Coder Social home page Coder Social logo

Comments (11)

purcell-lab avatar purcell-lab commented on June 12, 2024 1

What is missing is a control logic to determine the states and the power / energy to charge/ discharge. I never checked: are there some EMS (Energy management solutions) available.

The excellent EMHASS add on can provide this desired control logic. It takes into account your buy/sell price as well as forecasts for PV production and household loads and determines the optimal schedule for battery and other household loads, which it exposes as HA sensors that you could feed into this integration to set battery charging/ discharging profiles.

https://emhass.readthedocs.io/en/latest/intro.html

Screenshot_20221013-070852

from sungrow-shx-inverter-modbus-home-assistant.

Battlier avatar Battlier commented on June 12, 2024

I would also very much like this to be possible.

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

hmm thats a really reasonable feature.

The yaml integration already provides all required parameters / configs for this.

Holding registers

  • Forced mode instead of the auto EMS mode "addr 13049, EMS Mode Selection raw"
  • select between charge and discharge: "addr 13050, Battery Forced Charge Discharge Cmd raw"
  • setting the power for charging / discharging "addr 13051, Battery Forced Charge Discharge Power"

What is missing is a control logic to determine the states and the power / energy to charge/ discharge. I never checked: are there some EMS (Energy management solutions) available. Maybe something similar to EVCC, which primary targets electric vehicle energy management?

From where do you get the information about the pricing? If it is already available in Home assistant you can start writing automations based on the lower part of my modbus_sungrow.yaml file (Last section about Automation)

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

maybe have a look here, bjeanes made something similar

https://github.com/bjeanes/ha-config/blob/main/config/packages/sungrow.yaml

from sungrow-shx-inverter-modbus-home-assistant.

Battlier avatar Battlier commented on June 12, 2024

Thanks all for the info, lots of possibilities. A question I guess that “force discharge” is not equal to to “discharge”? The discharge option only uses the battery to supply the house with necessary power but does not export to grid, is there any way to set the system into discharge mode?

from sungrow-shx-inverter-modbus-home-assistant.

Battlier avatar Battlier commented on June 12, 2024

Hi again
It seems like there is something I am missing here. Has anyone found a way to update the time of allowed discharging (as in post by @bergh-io, parameter 1-4) or should you update the discharging energy based on the power needed momentanously?

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

Hi,

sorry, I missed your post earlier.

While writing this answer and making some screenshots to describe it better, I found out, that I made a small mistake in the "PV Control" YAML page. In the original version the "forced charge disscharge cmd" was as readonly status. The drop down menu, I created was missing :/

I fixed it in the git. Just update the "PV_Control.yaml". I guess that was the important missing part :)

A question I guess that “force discharge” is not equal to to “discharge”? The discharge option only uses the battery to supply the house with necessary power but does not export to grid, is there any way to set the system into discharge mode?

The mode, that only supplies the load within the house is called "Self-consumption mode" and is set by default. The register EMS mode controls it's behaviour.

If you want to charge or discharge the battery from the grid you need to set the EMS mode to "Forced mode" (see screenshot).
In addition you need to tell the inverter if it should charge or discharge the battery (see second screenshot) and set the forced charge discharge power in W (3rd screenshot). Do not mixup the "forced charge discharge power" with the two separate parameters "max charge power" and "max discharge power". These two control the battery behaviour in the EMS self consumption mode.

For creating a customized energy management system you need set all 3 parameters and tune the last parameter at run-time.

image
image
image

from sungrow-shx-inverter-modbus-home-assistant.

GrandAmmor avatar GrandAmmor commented on June 12, 2024

https://emhass.readthedocs.io/en/latest/intro.html

Screenshot_20221013-070852

How did you get that beautiful UI?

from sungrow-shx-inverter-modbus-home-assistant.

elektrinis avatar elektrinis commented on June 12, 2024

How did you get that beautiful UI?

Would really love it if he could share the config :)

from sungrow-shx-inverter-modbus-home-assistant.

GrandAmmor avatar GrandAmmor commented on June 12, 2024

How did you get that beautiful UI?

Would really love it if he could share the config :)

This is what I wanted to say :p That would be really nice

from sungrow-shx-inverter-modbus-home-assistant.

MonsterD1 avatar MonsterD1 commented on June 12, 2024

What is missing is a control logic to determine the states and the power / energy to charge/ discharge. I never checked: are there some EMS (Energy management solutions) available.

The excellent EMHASS add on can provide this desired control logic. It takes into account your buy/sell price as well as forecasts for PV production and household loads and determines the optimal schedule for battery and other household loads, which it exposes as HA sensors that you could feed into this integration to set battery charging/ discharging profiles.

https://emhass.readthedocs.io/en/latest/intro.html

Screenshot_20221013-070852

very nice UI ... would you please share yure code/config?

from sungrow-shx-inverter-modbus-home-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.