Comments (11)
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
from sungrow-shx-inverter-modbus-home-assistant.
I would also very much like this to be possible.
from sungrow-shx-inverter-modbus-home-assistant.
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.
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.
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.
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.
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.
from sungrow-shx-inverter-modbus-home-assistant.
How did you get that beautiful UI?
from sungrow-shx-inverter-modbus-home-assistant.
How did you get that beautiful UI?
Would really love it if he could share the config :)
from sungrow-shx-inverter-modbus-home-assistant.
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.
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.
very nice UI ... would you please share yure code/config?
from sungrow-shx-inverter-modbus-home-assistant.
Related Issues (20)
- 2 sensors not available in the tesla dashbaord by louis HOT 1
- Zwei Wechselrichter. Daten unterschiedlich in HA und iSolarCloud | Two inverters. Different data in HA and iSolarCloud HOT 18
- Strange outage HOT 1
- Force charge and all other modbus write registers don't work HOT 1
- Retrieved data through modbus not containing data of both inverters HOT 1
- Battery Capacity wrong HOT 9
- Battery dis/charging power sensors don't work. HOT 5
- Load 1 ON/OFF Mode Switch for the DO-port holding register 130011 or more complex DO-Configuration and Load Control Mode by using registers 13001-13016 HOT 3
- Entities are no longer available or jumping between available and unavailable HOT 28
- NO VALUE after Home Assistant >= 2024.04 HOT 68
- Second Inverter ist changing between unavailable and avalaible every few seconds
- Undocumented Holding Registers destroys SH10RT Config HOT 6
- Yearly Export jumps about 1100kWh on May 1st HOT 1
- Modbus no longer works HOT 7
- Some values are missing after updating to 2024.5.2 HOT 2
- Battery charging/discharging power using wrong registers? HOT 1
- sungrow update no battery forced mode HOT 2
- total_dc_power over a million watts HOT 3
- Self-consume mode not triggering HOT 2
- 16bit integer wraparound error on Single phase hybrid inverters battery current sensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sungrow-shx-inverter-modbus-home-assistant.