biemond / solaredge.modbus

Homey Solaredge modbus app
GNU General Public License v3.0
7 stars 8 forks source link

charge battery from the grid #57

Open kicksev opened 8 months ago

kicksev commented 8 months ago

Hi, I have a Solaredge 3f 10,5K system with a battery and I am using the SolarEdge + Growatt TCP modbus app in my Homey Pro. I am looking for a way to charge the battery from the grid. When setting Storage Control to "remote control"and Storage charge/discharge mode to "charge from PV+AC", the house is charged from the grid and the battery is only charged from the PV. As the PV power becomes 0, the house is still charged from the grid and the battery is discharging to the house with a tiny 0,05kW. The battery never gets charged from the grid. What modes should I set to make the battery being charged from the grid?

biemond commented 8 months ago

works for me

Screen Shot 2023-10-22 at 19 20 21 Screen Shot 2023-10-22 at 19 20 48 Screen Shot 2023-10-22 at 19 33 55
biemond commented 8 months ago

maybe ask for a firmware update

CaptainVoni commented 7 months ago

I have the same situation here. Grid charging is simply not enabled in some regions it seems. I don't even have the option to enable grid charging in the SetApp.

@biemond What inverter and what firmware do you have exactly?

kicksev commented 7 months ago

A few days ago out of the blue all functions started to run. I assume there is new software loaded into my inverter from remote or some magic happened. With Storage Contol status on β€œRemote Control” changing the Storage Charge/discharge Mode is almost immediately reflected in the inverter, functions as expected and is visible in the Mysolaredge app.

biemond commented 7 months ago

indeed, but at same point in the beginning the inverter wants to do test and after that it was allowing remote mode.

https://github.com/biemond/solaredge.modbus/blob/main/drivers/invertorwithbatt/device.ts#L459 plus I set it in remote mode 1st.

I think solaredge enabled it for you. mostly in some night batch after you try to do this. Don't expect your installaltion guy is doing things proactive.

CaptainVoni commented 7 months ago

@kicksev Could you tell me what firmware version you have on your inverter? Do you have the SetApp available?

kicksev commented 7 months ago

I don't have Setapp, but use the inverters wifi to browse to 172.16.0.1. Firmware versions of my inverter: CPU 4.17.136 DSP1 1.20.1551 Dsp2 2.20.1104

CaptainVoni commented 7 months ago

I got 4.17.136/1.20.1532/2.20.1103.

Can you check what you see under Commissioning, Power Control (the lightning icon), Energy Manager, Storage Control? I only have one entry there: AC Charge Limit. According to this video, there should be another option "Grid Charge" that I simply don't have.

May I ask what country you are from?

biemond commented 7 months ago

menu is restricted . also for me. modbus allows me more. also if you want to see more you need an installation accounts.

CaptainVoni commented 7 months ago

Why don't you register such an account? I have two ;-)

biemond commented 7 months ago

nice , how did you get those? in NL you have to do some fake administration as a business

kicksev commented 7 months ago

I am from Holland. My answer to the Commissioning question has to wait for a replacement of the communication board in the inverter. the system stopped communicating a few days ago, even the inverter wifi is not working.

CaptainVoni commented 7 months ago

@kicksev Thanks for the info. I would be really interested to see what settings you have there. I'm pretty sure, that my inverter was able to charge from the grid up at the very beginning, but then it was disabled. I really wonder why and suspect some issue with (country-specific) regulation.

@biemond You yourself might have given the answer to your own question ;-)

biemond commented 7 months ago

yep https://www.solar-bouwmarkt.nl/budget-omvormers-solaredge-monitoring-portal-in.html

biemond commented 7 months ago

in NL it is big business with hourly trading. maybe in DE there is local net restriction but I would guess, you charge your batt when there is a lot of supply. Or it gave errors on solaredge but it is your right to charge it unless your net provider demands it.

CaptainVoni commented 7 months ago

I just got information from Solaredge directly: it is right now impossible to charge from the grid, it's not implemented yet. πŸ˜†
They also claimed that it is impossible to even control the energy management via Modbus. So what we are doing here thanks to the great app from @biemond is actually impossible according to them. They literally have no clue about their system...

CaptainVoni commented 7 months ago

I am from Holland. My answer to the Commissioning question has to wait for a replacement of the communication board in the inverter. the system stopped communicating a few days ago, even the inverter wifi is not working.

Just checking: is your inverter still without communication? I'm looking for some "proof" that the Solaredge inverter actually can charge from the grid for my installer. So that he at least tries to find a way to enable it. :grin:

kicksev commented 7 months ago

@CaptainVoni My system is running again and I have looked at the Storage Control. Also in my system there is only 1 entry : AC charge limit which is set to no limit. To start charging and uncharging to AC I had to set the import and export limits to 5000 again, (were reset to 0)

CaptainVoni commented 7 months ago

@kicksev Thanks for the hints. I tried pretty much everything, but I can't get it to charge. What exactly do you do to set the import and export limits? (Just to be safe we are talking about the same settings) Can you show me a flow where you set all the necessary setting to get it charging?

kicksev commented 7 months ago

@CaptainVoni what country you are from? I have 2 48V batteries with a maximum charge/discharge load of 5000W

image

To check the inverter and battery status:

image

Inverter status:

  1. Undefined
  2. Off
  3. Sleeping
  4. Grid Monitoring
  5. Producing
  6. Producing (Throttled)
  7. Shutting Down'Fault
  8. Maintenance

Battery Status:

  1. Off
  2. Standby
  3. Initialising
  4. Charging
  5. Discharging
  6. Fault
  7. Idle
  8. Idle
  9. Idle
  10. Idle
kicksev commented 7 months ago

I will try to make a dashboard screen dump when my battery is loading from the grid at 5000W for your installer Too bad, at this moment the system is not listening to my commands, It does not react at all, may be I have played too much today.

CaptainVoni commented 7 months ago

That would be great, thanks.

As I wrote, right at the beginning I was able to charge from the grid. But that was when I installed and played around with this app and I think that playing-around triggered something to prevent future charging.

kicksev commented 7 months ago

@Biemond On Oct 22 you showed a picture like this with charging 1000w and discharging 5000w, values my inverter is now also showing:

image

You also showed a picture where charging and discharging settings were 5400W. How did you change these values? I tried setting charge power and discharge power with no success

biemond commented 7 months ago

hey , for me it is the bms or solaredge is controlling that. when batt is under 10% SOC , it will slowly charge it to 10% and after it will use the max specified until it is full or stopped.
I cannot control this , 5000 is ignored until it reaches 10%

I changed them with flow actions. discharge I think I did this with a export limit.

CaptainVoni commented 7 months ago

@kicksev That's a documented behaviour of the inverter: when the battery drops below a certain level, it will force a 1kW grid charge until it reaches that level again; everything else is ignored. The level itself depends on which battery is configured in the inverter: for my BYD LVS 8.0 it is 10%.

kicksev commented 6 months ago

@CaptainVoni I Think I start to understand the system a bit. My latest problem was caused by a minimum import limit set to 3000W. When set to zero, battery discharging started again. This limit seems to be the minimum power imported from the grid before the battery will discharge. As far as I can see are all modes of storage charge / discharge mode seem to work. This is a screendump when the battery is loaded with 4000W from AC according to the charge settings.

image
CaptainVoni commented 6 months ago

@kicksev Thanks for all the info! I can't tell you how frustrating this is for me. No matter what I try, it doesn't charge from the grid. But now I have a screenshot from the Solaredge app I can pass along. Thanks again, I'll report back if I find any solution.

biemond commented 6 months ago

also works for me , I don't do it much but it works

kicksev commented 5 months ago

@CaptainVoni Now testing the new TOU option in the Solaredge app. According to Solaredge: β€œIn Time of Use mode, we use your rate plan and smart forecasting and learning algorithm which optimizes your energy sources and battery usage to reduce your electric bills. Based on your consumption habits and energy production, our algorithm predicts your consumption and energy generation potential for the following day, and dynamically charges or discharges the battery accordingly. Time of Use mode automatically uses your battery when electricity rates are at their peak and solar is not available.” In fact, at lowest hour price my battery is charged from the grid at full speed (5kW) but then it is discharged at random times. I am trying to find out what smart algorithms this behavior is based upon. But in your case, maybe the system will be forced to charge at 5kW.

biemond commented 5 months ago

oh, only was thinking they now support auto disabling solar export when hour price is negative

is this a new option in your inverter menu?

kicksev commented 5 months ago

it in the Mysolaredge app. info: https://marketing.solaredge.com/tou-mode

image
kicksev commented 5 months ago

First week TOU. Charging starts at minimum hour price, discharging starts random? It does not look like the result of smart algorithms as promised. TOU test.pdf

biemond commented 5 months ago

interesting so they do this from their datacenter and gather all the data. Did you see this menu option on your inverter? also like to see your change triggers, I guess they do the same trigger actions

kicksev commented 5 months ago

I have asked them where the algorithms run, but they told me to consult my installer who probably does not even know of the option. I saw the option on my mobile not on the inverter menu. What do you mean with change triggers?

biemond commented 5 months ago

oh, now I know this time of use. I did this 2 years back . only NL as user you were not allowed to make these profiles, my installer did this for me and there were some profiles like day and night tariff

looks like they make it more advanced

biemond commented 5 months ago

storedge_charge_discharge_profile_programming.pdf

biemond commented 5 months ago

you need to click on the batt and I see the same as the pdf but now from the app and I need to set all my peak moments. you can also do utility rate plan but I don't have this.so I got peak hours only

kicksev commented 5 months ago

In what country you are? Have you selected your tariff in the app?:

image
biemond commented 5 months ago

like you in NL but did not select dynamic, still do salderen.

CaptainVoni commented 5 months ago

@kicksev I tried the TOU option - didn't do anything. Just for fun I tried to charge from the grid: IMG_9169

I didn't change anything. No update for the inverter. No idea - just works for now.

kicksev commented 5 months ago

The system is charging with 5kW. This should only take place at lowest rate hour. This screenshot should be taken at about 4 o'clock this morning, did you? Please let me know if discharging will start at the peak hours (if you entered some).

When I set the Storage charge/ discharge to Charge from PV+AC, it sometimes charges from PV+AC with 5kW and sometimes only with the available PV. Is there be a variable prohibiting/allowing charging from the grid besides the max discharge setting?

kicksev commented 5 months ago

in TOU mode last week my system charged from the grid at 5kW. This week it does charge from the grid at all, not by TOU mode nor when manually set to charge from PV+AC. I wonder why. There is a register (Storage AC Charge Policy) enabling or disabling charging from the grid. do you know a way to read this register value or even set it?

Storage AC Charge Policy is used to enable charging for AC and the limit of yearly AC charge (if applicable). 0 – Disable 1 – Always allowed – needed for AC coupling operation. Allows unlimited charging from the AC. When used with Maximize self-consumption, only excess power is used for charging (charging from the grid is not allowed). 2 – Fixed Energy Limit – allows AC charging with a fixed yearly (Jan 1 to Dec 31) limit (needed for meeting ITC regulation in the US) 3 – Percent of Production - allows AC charging with a % of system production year to date limit (needed for meeting ITC regulation in the US)

CaptainVoni commented 5 months ago

@kicksev This sounds like you found the reason why it sometimes charges and sometimes not! πŸŽ‰ Do you have a link to the document where you found that register mentioned? I only found it mentioned here and it's stated that it is read-write, so we should be able to set it.

@biemond Can you add that register to the app? For the options 2 and 3 the following register (Storage AC Charge Limit) would be needed, but I doubt that there is much use outside the US for those options.

CaptainVoni commented 5 months ago

@biemond The register "Storage Backup Reserved Setting" might also be worth considering. It seems to relate to the minimum SOC of the battery.

biemond commented 5 months ago

let me check the docs which register this is plus what is my value for this.

biemond commented 5 months ago

can you send me diagnostic reports, I already added this

        "storage_control_mode": [0xe004, 1, 'UINT16', "Storage Control Mode"],
        "storage_accharge_policy": [0xe005, 1, 'UINT16', "Storage AC Charge Policy"],
        "storage_accharge_Limit": [0xe006, 2, 'FLOAT32', "Storage AC Charge Limit"],
CaptainVoni commented 5 months ago

07d74748-6c83-4ab2-b214-10d109151f0f

biemond commented 5 months ago
storage_control_mode 4 xxx Storage Control Mode
storage_accharge_policy 2 xxx Storage AC Charge Policy
storage_accharge_Limit 0 xxx Storage AC Charge Limit
CaptainVoni commented 5 months ago

With what version did you add that?

biemond commented 5 months ago

what do you mean ? I just already read this

2 – Fixed Energy Limit – allows AC charging with a fixed yearly (Jan 1 to Dec 31) limit (needed for meeting ITC regulation in the US)