biemond / solaredge.modbus

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

Zero export limit #12

Open djfanatix opened 2 years ago

djfanatix commented 2 years ago

Hi,

Could you add a option to read and write the export limit? It is address F001

[](https://tweakers.net/i/_Vbw6h07uP3EtmVy-RP_ZXr0jnM=/full-fit-in/4000x4000/filters:no_upscale():fill(white):strip_exif()/f/image/IHKtvheNjManYE9TaabWoDh8.png?f=user_large)

Thanks

biemond commented 2 years ago

yeah, will do, should be easy.

export limit is what we control or not?

By the way for your solcast, is it possible to add a flow condition so I can charge the batt with dal tarief when needed (like when expected kwh for today is less ) , I run this after midnight so prediction should be in for that day..

djfanatix commented 2 years ago

I am not sure if it is export limit or total production limit I have to try it.

I will check on the Solcast app

biemond commented 2 years ago

can you test this and see if this is what you want.

https://homey.app/nl-nl/app/solaredge.modbus/SolarEdge/test/

and https://github.com/biemond/solaredge.modbus/commit/80bd9ae7780b22c7404ca49af1f91bd3ff6b8dae

Screen Shot 2022-06-14 at 23 36 06
djfanatix commented 2 years ago

Yes I see the same.

I found some more documentation:

https://user-images.githubusercontent.com/2674434/134251823-c404b894-037e-469b-bc9b-8787ebc1770a.png

Can you make a flow card or a setting to change the power limit?

I think people with dynamic energy contracts can then enable zero export in case of negative prices

biemond commented 2 years ago

really that is a thing in europe. you have to pay when you do export to the grid. So you can only do this when you have batt or when it is stimulated and get paid for it.

biemond commented 2 years ago

so an enable/disable flow with. advanced power on 1 and reactive power config to 4 or for normal/enabled both back to 0 is this also a menu setting/action? which one?

if you do this on the invertor = active power limit 0 % then?

djfanatix commented 2 years ago

really that is a thing in europe. you have to pay when you do export to the grid. So you can only do this when you have batt or when it is stimulated and get paid for it.

No most of the time you get paid to export, but on sunny and windy days, the rates are negative, so you have to pay. (or you get paid to import)

djfanatix commented 2 years ago

I found this in another repo: I think I was wrong, the active power limit, limits the inverter, that's not what we need, we need to limit export (with a meter of course)

I don't think (for my needs) that E001 has to be included.

0xE000 - 1 - Export control mode: 16bit_uint

 0: "Disabled",
 1: "Direct Export Limitation",
 2: "Indirect Export Limitation",
 4: "Production Limitation"

0xE001 - 1 - Export control limit mode:16bit_uint

 0: "Total",
 1: "Per phase"

0xE002 - 2 - Export control site limit: 32bit_float

["Export control site limit", "export_control_site_limit", 0xE002, "f", {"min": 0, "max": 10000, "unit": "W"}],

biemond commented 2 years ago

yes that looks better , I know sometimes on US or AUS you cannot deliver back to the grid.

biemond commented 2 years ago

let me 1st retrieve those and add them when they are ok.

djfanatix commented 2 years ago

By the way for your solcast, is it possible to add a flow condition so I can charge the batt with dal tarief when needed (like when expected kwh for today is less ) , I run this after midnight so prediction should be in for that day..

I checked this, but I am not planning to rewrite the app for sdk 3, as it is too much work with the whole UTC timezone and crontasks thing. You can just use logic and the solcast tag and use it as a condition. (greater or smaller then..)

biemond commented 2 years ago

thanks

biemond commented 2 years ago

I need this from oct/nov

biemond commented 2 years ago
Screen Shot 2022-06-15 at 20 59 25 Screen Shot 2022-06-15 at 21 00 13
biemond commented 2 years ago

so only when you have a meter.

biemond commented 2 years ago
        "advancedpwrcontrolen": [0xf142, 2, 'UINT32', "Advanced Power Control En"],
        "reactivepwrconfig": [0xf102, 2, 'UINT32', "Reactive Power Config"],        
        "export_control_mode": [0xe000, 1, 'UINT16', "Export control Mode"],
        "export_control_limit_mode": [0xe001, 1, 'UINT16', "Export control limit Mode"],
        "export_control_site": [0xe002, 2, 'FLOAT32', "Export control site limit"],
        "powerreduce": [0xf140, 2, 'FLOAT32', "Power Reduce"],
        "maxcurrent": [0xf18e, 2, 'FLOAT32', "Max Current"]

rrcr_state 0 xxx RRCR State
active_power_limit 100 xxx Active Power Limit
cosphi 1 xxx CosPhi
advancedpwrcontrolen 1 xxx Advanced Power Control En
reactivepwrconfig 4 xxx Reactive Power Config
export_control_mode 0 xxx Export control Mode
export_control_limit_mode 0 xxx Export control limit Mode
export_control_site -3.4028234663852886e+38 xxx Export control site limit
powerreduce 100 xxx Power Reduce
maxcurrent 7071.06787109375 xxx Max Current
biemond commented 2 years ago

tested it on 5000

rrcr_state 0 xxx RRCR State
active_power_limit 100 xxx Active Power Limit
cosphi 1 xxx CosPhi
advancedpwrcontrolen 1 xxx Advanced Power Control En
reactivepwrconfig 4 xxx Reactive Power Config
export_control_mode 1 xxx Export control Mode
export_control_limit_mode 0 xxx Export control limit Mode
export_control_site 5000 xxx Export control site limit
powerreduce 100 xxx Power Reduce
maxcurrent 7071.06787109375 xxx Max Current
Screen Shot 2022-06-20 at 19 14 52 Screen Shot 2022-06-20 at 19 15 13 Screen Shot 2022-06-20 at 19 16 46 Screen Shot 2022-06-20 at 19 16 57 Screen Shot 2022-06-20 at 19 17 13
biemond commented 2 years ago

I think I only need to set these 3

export_control_mode 1 xxx Export control Mode
export_control_limit_mode 0 xxx Export control limit Mode  , already on site / not phase.
export_control_site 5000 xxx Export control site limit
biemond commented 2 years ago

can you try this https://homey.app/a/solaredge.modbus/test/ for now only a menu item ( no flow ) and export limit fixed on 5000W

Screen Shot 2022-06-21 at 00 46 44 Screen Shot 2022-06-21 at 00 46 59
djfanatix commented 2 years ago

Looks good, my site limit is 4500w, so I can’t test it at the moment.

biemond commented 2 years ago

ok , 4500 is your energy provider restriction or do you get some error on solaredge.

shall I change it to 4500 to find out if it works or give me some value.

djfanatix commented 2 years ago

no, I only have a small inverter, 4kw. Can you try 3000 or so?

biemond commented 2 years ago

yes , let me do this now.

biemond commented 2 years ago

done https://homey.app/a/solaredge.modbus/test/

djfanatix commented 2 years ago

image

Works! Thank you.

I double checked in HA and I see the same data

biemond commented 2 years ago

beter, mooi. I will work on the flows and this export limit setting

biemond commented 2 years ago

and the flows https://homey.app/a/solaredge.modbus/test/ plus you can change export limit watts

MTRKhn commented 1 year ago

Hi,

could you please consider adding a 0W export limit setting ? I can’t find a way to enable zero export :(

thanks !

biemond commented 1 year ago

oh , let me check

biemond commented 1 year ago

@MTRKhn can you try this one https://homey.app/a/solaredge.modbus/test/

MTRKhn commented 1 year ago

UI seems ok. Now the challenge will be to generate enough to check if it’s exporting or not 😅

060EF19E-FE43-4630-8090-8969F12A3521

biemond commented 1 year ago

yes winter time. it is hard to get something and go over your own consumption