Closed Crootie closed 5 months ago
hi,
There was an issue with the EMS mode setting, which was fixed last night. Please ensure, that you are on the 2023-09-12 version.
If you are on the current version: Did you set both parameters? 1) EMSmode --> "Forced mode" 2) Battery forced charge discharge cmd --> "Forced charge"
Yep. I updated the Code before I updated HA to 2023.09.02
just to be sure: did you wait >10 seconds after setting the mode? It takes some time until the sensors are updated again:
is something in the log files?
have managed to get inverter state to change but it still isn't charging the battery. Have waited about 1 minute before taking screen shots. Not sure where to go to find the logs for this but there is nothing under core or supervisor which point to anything remotely related to the pv.
Don't know if this is going to make a difference and after testing it hasn't. says enabled but should be disabled.
Does something happen, if you toggle the "Export power limit mode"?
Also, I recommend completely powering off your system and turn it back on. I had it a couple of times, that the battery was offline. Cold-Restarting helped.
Does something happen, if you toggle the "Export power limit mode"?
toggled this and it is now disabled. pulled the power on the rpi4 and left it for 5 mins then rebooted. still won't go into forced charge mode even though it says it is. can you guide me to the logs for it?
Does something happen, if you toggle the "Export power limit mode"?
Also, I recommend completely powering off your system and turn it back on. I had it a couple of times, that the battery was offline. Cold-Restarting helped.
oh, that was ambiguous ....
I meant: Please completely power off your inverter / battery :)
(I never cold-restarted my RPI4 the last 3 years, except one power outage...)
toggled this and it is now disabled. pulled the power on the rpi4 and left it for 5 mins then rebooted. still won't go into forced charge mode even though it says it is. can you guide me to the logs for it?
Settings --> System --> Logs
Then look for something with modbus :)
Found an error...
Logger: homeassistant.components.modbus.modbus Source: components/modbus/modbus.py:401 Integration: Modbus (documentation, issues) First occurred: 7:15:42 PM (1 occurrences) Last logged: 7:15:42 PM
Pymodbus: SungrowSHx: Exception Response(134, 6, SlaveFailure)
Can you enable the debug log for modbus and give me a new log?
Instructions here: https://www.home-assistant.io/integrations/modbus/
search for "logger"
home-assistant_2023-09-14T09-14-31.021Z.log
okies.. try that.
Cannot find any error related to modbus in your logs. Seems all working normal
Same but it still won't force charge.
Let's go some steps back....
What happens if you are using the sungrow App for this?
Let's go some steps back....
What happens if you are using the sungrow App for this?
Well this looks interesting.... not force charging through the app either. I think i might reboot the inverter tomorrow and see if that fixes it. App says it's good but overview is not showing as charging.
ok restarted the system multiple times. going to contact the supplier of the unit since it isn't working through the sungrow app either. fly out to work tomorrow for 2 weeks so will have limited updates. HA addon still isn't working either even though it is direct connect.
Same Problem here. Switch to Force mode but nothings happens :-( Sungrow Firware latest...
Same Problem here. Switch to Force mode but nothings happens :-( Sungrow Firware latest...
see some post earlier:
Let's go some steps back....
What happens if you are using the sungrow App for this?
Yes thank you , it is a Sungrow Inverter Update Problem Maybe after the last Update !
Here it is either not working. Same as stated about. Forced mode seems to be on but it is not loading the battery from grid.
Yes I don't know why. But the same problem no update and no response from Sungrow ! I can't use the force mode maybe since the last Update !
@mkaiser
After updating the whole PV system (hybrid inverter, communication module, battery) and a complete restart, the force charge is now working as expected. Thanks for that great integration!
Hi,
i have also the issue that the force charge is not working. I have the latest versions installed but nothing happens when i chnage to force charge.
I waited about 5 to 10 minutes after each state switch and then about 15 minutes for the battery to begin charging.
Hi,
i have also the issue that the force charge is not working. I have the latest versions installed but nothing happens when i chnage to force charge.
I waited about 5 to 10 minutes after each state switch and then about 15 minutes for the battery to begin charging.
Seems you don't have the latest updates installed. See my comment above.
Hi I also have the same issue, forced charging not working. Latest firmware and updated HA and code. Inverter and battery restarted. Inverter reports forced mode and forced charge but nothing happens. Works with the iSolarCloud app.
Did you set a value at "set forced charge discharge Power"?
It also takes a few minutes until the inverter is switching the state to forced mode. 2-3 minutes in my case.
Yes, I did set a value and waited a while. This is something that has changed the over the last few weeks, it worked flawless until then. My supplier updates my inverter now and then so i do not know if there was an update that they did a couple of weeks ago that triggered this. However I asked them yesterday to do an update to the last version but i still get the same behavior :(
The fault finding continues…I really would like this to work again. Setting forced charging times in the app every day is not a good solution.
Should I maybe do an isolated test with fresh/clean HA installation with the latest code and see if that works? Or is it so that you can anticipate that if the inverter reports that it is in forced mode and forced charge that it gets and acknowledge the commands in a proper way? Is there anyway to check via the iSolarCloud app that it is in forced mode?
After one more reboot it works again.
I am also unable to set force mode, found this in the log.
`Logger: homeassistant.components.automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update
Source: components/automation/__init__.py:676
Integration: Automation (documentation, issues)
First occurred: 2:51:32 AM (2 occurrences)
Last logged: 8:08:20 AM
Error while executing automation automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update: expected float for dictionary value @ data['value']`
Why is capacity 0?
Try updating to the newest version of modbus_sungrow.yaml
I am also unable to set force mode, found this in the log.
`Logger: homeassistant.components.automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update Source: components/automation/__init__.py:676 Integration: Automation (documentation, issues) First occurred: 2:51:32 AM (2 occurrences) Last logged: 8:08:20 AM Error while executing automation automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update: expected float for dictionary value @ data['value']`
I had the same issue. I added "|float" in line 2742 in latest version of sungrow_modbus.yaml and now force charging works again.
@bliblabl8
I am also unable to set force mode, found this in the log.
`Logger: homeassistant.components.automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update Source: components/automation/__init__.py:676 Integration: Automation (documentation, issues) First occurred: 2:51:32 AM (2 occurrences) Last logged: 8:08:20 AM Error while executing automation automation.sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update: expected float for dictionary value @ data['value']`
I had the same issue. I added "|float" in line 2742 in latest version of sungrow_modbus.yaml and now force charging works again.
In line 2742 only stands "data". Did you mean 2743? If yes, how does your code look in that line?
2742 data:
2743 value: "{{ states('sensor.battery_forced_charge_discharge_power') }}"
But anyway. For me the force charge does work even with the “|float" command. It just takes 3-5 minutes until it starts.
In my case it's line 2742 beginning with "value:..." as shown below:
data:
value: "{{ states('sensor.battery_forced_charge_discharge_power')|float }}"
mode: single
hmm It does not make much sense to me... Can someone enlighten me?
battery_forced_charge_discharge_power
is a sensor (modbus uint16) with precision 0. So a simple integer.
You described that adding the |float
conversion made force charging to work again:
- id: "automation_sungrow_inverter_update_battery_forced_charge_discharge_power_input_slider_update"
alias: "sungrow inverter update battery forced charge discharge power input slider update"
description: "Updates battery forced charge discharge power input slider"
trigger:
- platform: state
entity_id:
- sensor.battery_forced_charge_discharge_power
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.set_sg_forced_charge_discharge_power
data:
value: "{{ states('sensor.battery_forced_charge_discharge_power') >>>>>>>>>>>>>> |float <<<<<<<<<<<<< }}"
mode: single
(used >>> and <<< because I cant use bold formatting in a code quote)
The input sensor input_number.set_sg_forced_charge_discharge_power
is also an integer. Why should a | float conversion help here?
What is your exact inverter model?
I've just read the error message "expect float" , so I tried that. Nothing else.
Converter is SH8.0RT-VT112
In the meanwhile, I changed my opinion. Forced charging does take a couple of minutes (! Up to 10 minutes) to start when converter isn't active (e g. When battery is empty and solar production is zero).
So I think, changing the automation "input_number.set_sg_forced_charge_discharge_power" to float only corrects to automation. It does not affect the forced charging. Forced charging works independent from the float bugfix, one just have to wait some more minutes!
lol that's what I'm telling you since the last posts. It takes a few minutes until it charges the battery...
Just did the latest update for home assistant: Tried to force charge and lost it again. Was working great and left it open in case others had issues with the same thing.
Change this one, and then you go :-)
Just ran that to 5000 and it is working....... but... that's discharging not charging. Quick education please.
actually don't bother.. it is a dual setting depending on charge or discharge... thankyou.
Maybe it should be an "&" in the middle for clearifaction.
even just a charge/discharge would work it. but thankyou for your assistance
Describe the bug When i change the EMS to forced mode for charging it is not activating. Everything says forced but it won't forced charge.
Your Sungrow inverter:
Home Assistant :
modbus_sungrow.yaml:
last update: 2023-09-12
Expected behavior Forced Charge should enable buut it isn't.