Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control of export limit and production limits #85

Open
ThirstyDursty opened this issue May 10, 2022 · 43 comments
Open

Control of export limit and production limits #85

ThirstyDursty opened this issue May 10, 2022 · 43 comments

Comments

@ThirstyDursty
Copy link

Hi

I see this component can control the battery settings

Is it possible for it to also control the export limit (set to zero export for when feed in tariffs go negative)
and production limits to zero for when pricing goes negative...

I'm with Amber energy and regularly we get negative feed-in/export pricing and occasionally we get negative energy pricing (today had 2 hours of negative pricing (paid to consume) and 30min of that was 0.05/kw)

@djfanatix
Copy link

djfanatix commented Jun 1, 2022

@iNaiks
Copy link

iNaiks commented Jul 24, 2022

Hi, I'm interested to change the export limit. How can I do with parameter F001?

@tias2001
Copy link

This pull request allows it, works very well
#42

@iNaiks
Copy link

iNaiks commented Jul 24, 2022

Hi thanks, bit i don’t understand how to set or configure. 🥲

@tias2001
Copy link

tias2001 commented Jul 24, 2022

You just need to overwrite the files from that pull request into config/custom_components/solaredge_modbus
Then restart home assistant
You will then have a few more entities available and to set export limiting on you need to set both export control mode to Direct export limitation and export control site limit to 0
I.e

service: select.select_option
data:
  option: Direct Export Limitation
target:
  entity_id: select.solaredge_export_control_mode

service: number.set_value
data:
  value: '0'
target:
  entity_id: number.solaredge_export_control_site_limit

To set it back you just need to reset the control mode
service: select.select_option
data:
  option: Disabled
target:
  entity_id: select.solaredge_export_control_mode

The number will reset itself

@iNaiks
Copy link

iNaiks commented Jul 25, 2022

Hi, I've downloaded a folder named "home-assistant-solaredge-modbus-mpredfearn-add_export_control".
Inside on /custom_components/solaredge_modbus, there are the files that a need to copy. (Right?)

My question is, I lose any of configurations of my entities? Like name (changed manually) or disabled entities?

Very very thanks!

Nico

@tias2001
Copy link

tias2001 commented Jul 25, 2022 via email

@iNaiks
Copy link

iNaiks commented Jul 25, 2022

Fantastic, it worksss!!!.
But... 😆 In my case, the voltage of the grid is very high, I only can reduce using a little amount of energy of the grid.
I tried to add negative value to export control (in settapp works) for recive always 100~300w from the grid. But I can not set negative numbers.
Any idea?

Super Thanks
Nico

@ThirstyDursty
Copy link
Author

You just need to overwrite the files from that pull request into config/custom_components/solaredge_modbus Then restart home assistant You will then have a few more entities available and to set export limiting on you need to set both export control mode to Direct export limitation and export control site limit to 0 I.e

service: select.select_option
data:
  option: Direct Export Limitation
target:
  entity_id: select.solaredge_export_control_mode

service: number.set_value
data:
  value: '0'
target:
  entity_id: number.solaredge_export_control_site_limit

To set it back you just need to reset the control mode
service: select.select_option
data:
  option: Disabled
target:
  entity_id: select.solaredge_export_control_mode

The number will reset itself

Do these entities show up on their own? I still only have 83 entities and none are select. All are sensors

@tias2001
Copy link

tias2001 commented Aug 2, 2022 via email

@tias2001
Copy link

tias2001 commented Aug 2, 2022 via email

@binsentsu
Copy link
Owner

1.6.0 has just been released

@Ralphy140
Copy link

Just upgraded to v1.6.0 and re-added the integration and don't see any new controls or options to limit export in the integration. Am i missing something or did it not make the code for the 1.6.0 release ?

@ThirstyDursty
Copy link
Author

Just upgraded to v1.6.0 and re-added the integration and don't see any new controls or options to limit export in the integration. Am i missing something or did it not make the code for the 1.6.0 release ?

Update worked for me. Couple new select.solaredge….entities

goingbto test today

@Ralphy140
Copy link

Ralphy140 commented Aug 3, 2022

would you mind popping in a screenshot just to make sure i am not an idiot :) just to make sure i know where i am looking.

EDIT: Ahh found it under entities not under the integration its self ;)

Got it working now :) Please ignore me

@AlexandreLogist
Copy link

AlexandreLogist commented Aug 5, 2022

Hi all,

V1.6.0

Deleted my integration and added it again, but no extra select entities.
My converted supports the throttling of export, so I guess it should be possible to use in HA.

Any other limitations that could explain why I don't have the controls?

Kind regards,
Alexandre

@Ralphy140
Copy link

Hi all,

V1.6.0

Deleted my integration and added it again, but no extra select entities. My converted supports the throttling of export, so I guess it should be possible to use in HA.

Any other limitations that could explain why I don't have the controls?

Kind regards, Alexandre

Hey Alexandre,

I suspect you are having the same "issue" I had. The new entities are not under the integration its self. you will need to go to developer tools and under the states if you search you should see a new entity called "solaredge (Export control mode)"

I have written a small automation to turn on and off the export controls based on a binary helper that you can toggle on a dashboard if you want. Or if you want to get smart and you have real time feed in tariffs with something like Amber in Australia you could set the export limit to 0 when the value of exported power is negative

Below are the two automations i have written

Turn on export limit and set it to 0 export

alias: Solar - Set Export to 0
description: ''
trigger:
  - platform: state
    entity_id:
      - input_boolean.solar_export_limit
    to: 'on'
    for:
      hours: 0
      minutes: 0
      seconds: 0
condition: []
action:
  - service: select.select_option
    data:
      option: Direct Export Limitation
    target:
      entity_id: select.solaredge_export_control_mode
  - service: number.set_value
    data:
      value: '0'
    target:
      entity_id: number.solaredge_export_control_site_limit
mode: single

Turn off export limit when solar_export_limit is turned off 

````````````
alias: 'Solar -  Export no limit '
description: ''
trigger:
  - platform: state
    entity_id:
      - input_boolean.solar_export_limit
    to: 'off'
condition: []
action:
  - service: select.select_option
    data:
      option: Disabled
    target:
      entity_id: select.solaredge_export_control_mode
mode: single 
`````````````````````````

@iNaiks
Copy link

iNaiks commented Aug 21, 2022

Fantastic, it worksss!!!. But... 😆 In my case, the voltage of the grid is very high, I only can reduce using a little amount of energy of the grid. I tried to add negative value to export control (in settapp works) for recive always 100~300w from the grid. But I can not set negative numbers. Any idea?

Super Thanks Nico

Hi, any idea for this?
Captura de Pantalla 2022-08-21 a las 10 16 28

@ThirstyDursty
Copy link
Author

Hi all,
V1.6.0
Deleted my integration and added it again, but no extra select entities. My converted supports the throttling of export, so I guess it should be possible to use in HA.
Any other limitations that could explain why I don't have the controls?
Kind regards, Alexandre

Hey Alexandre,

I suspect you are having the same "issue" I had. The new entities are not under the integration its self. you will need to go to developer tools and under the states if you search you should see a new entity called "solaredge (Export control mode)"

I have written a small automation to turn on and off the export controls based on a binary helper that you can toggle on a dashboard if you want. Or if you want to get smart and you have real time feed in tariffs with something like Amber in Australia you could set the export limit to 0 when the value of exported power is negative

Below are the two automations i have written

Turn on export limit and set it to 0 export

alias: Solar - Set Export to 0
description: ''
trigger:
  - platform: state
    entity_id:
      - input_boolean.solar_export_limit
    to: 'on'
    for:
      hours: 0
      minutes: 0
      seconds: 0
condition: []
action:
  - service: select.select_option
    data:
      option: Direct Export Limitation
    target:
      entity_id: select.solaredge_export_control_mode
  - service: number.set_value
    data:
      value: '0'
    target:
      entity_id: number.solaredge_export_control_site_limit
mode: single

Turn off export limit when solar_export_limit is turned off 

alias: 'Solar - Export no limit '
description: ''
trigger:

  • platform: state
    entity_id:
    • input_boolean.solar_export_limit
      to: 'off'
      condition: []
      action:
  • service: select.select_option
    data:
    option: Disabled
    target:
    entity_id: select.solaredge_export_control_mode
    mode: single
```

everytime I set the export limit...it restores it automatically to 15000

@tias2001
Copy link

tias2001 commented Sep 18, 2022 via email

@purcell-lab
Copy link

purcell-lab commented Sep 18, 2022

everytime I set the export limit...it restores it automatically to 15000

I'm having the same problem. When I set a new value it works for about 30 seconds and then resets back to 50000.

I have confirmed with Amber they are no longer sending commands to SolarEdge inverters until the reset big is fixed.

Screenshot_20220918-164507

@purcell-lab
Copy link

When I try to disable export limitation with this integration it automatically switches back.

Do I need to change something in the inverter setup before I can use this integration to change modes?

Screenshot_20220918-164641

@tias2001
Copy link

tias2001 commented Sep 18, 2022 via email

@purcell-lab
Copy link

Hmm interesting.. mine has set export limit for a good portion of the day today.. hopefully this isn't a bug that comes my way.. what inverter firmware do you have installed?

I don't think this is a bug, I'm just trying to workout howto do setup, I haven't had this working yet.

I have some funny firmware revisions and with the reintroduction of modbusTCP over wifi I'm wondering if a firmware upgrade maybe worth the risk.

- name: Inverter 1
manufacturer: SolarEdge
model: SE7K-AUBTEBEU4
communicationMethod: RS485
cpuVersion: 4.14.228
SN: XXXXXX-XX
connectedOptimizers: 25
- name: Inverter 2
manufacturer: SolarEdge
model: SE7K-AUBTEBEU4
communicationMethod: ETHERNET
cpuVersion: 4.15.110
SN: XXXXX-XX
connectedOptimizers: 25

@purcell-lab
Copy link

purcell-lab commented Oct 2, 2022

I have checked with SolarEdge why my export controls are constantly resetting and they advised that you cannot change the Export limit configuration while your system is subscribed to grid services.

Some interesting content on SolarEdge Grid Services here: https://www.solaredge.com/aus/solutions/grid-services

I have enrolled my inverters with Amber Electric SmartShift as they offer remote curtailment (zero export) during periods of negative FIT. They have had to suspend this as they were seeing the inverters reboot when changing settings and have stopped issuing remote commands, but it sounds like I might need to un-enroll.

I am now seeking to get my inverters un-enrolled so I can set zero export locally.

I'm not sure if there is a ModBus register that can check for grid services?

@ThirstyDursty you may want to confirm with your setup.

@ThirstyDursty
Copy link
Author

ThirstyDursty commented Oct 2, 2022 via email

@ThirstyDursty
Copy link
Author

ThirstyDursty commented Oct 2, 2022 via email

@ThirstyDursty
Copy link
Author

ThirstyDursty commented Oct 11, 2022 via email

@tias2001
Copy link

tias2001 commented Oct 11, 2022 via email

@ThirstyDursty
Copy link
Author

Oh right, did you follow the setup from the post I linked above?

I don't understand how to do that set up...How do you change those register items? I can log into the setup using AP mode on the inverter...I get options to turn on and off grid services...or turn on reactive power control etc...none of them seemed to work...

is it possible to get stepwise instructions here?

@purcell-lab
Copy link

Oh right, did you follow the setup from the post I linked above?

Does the binsentsu/integration change these settings (AdvancedPwrControlEn, ReactivePwrConfig & Commit Power Control Settings) on the inverter, or do I need to change these registers manually before the integration will setup zero export?

image

@ThirstyDursty
Copy link
Author

Oh right, did you follow the setup from the post I linked above?

can we have some clarity on how to conduct the set up?

@purcell-lab
Copy link

can we have some clarity on how to conduct the set up?

I'm also following another thread which is trying to achieve the same outcome but with a lower level library.
nmakel:solaredge_modbus

However, without a proxy you can only run one ModBus client at a time.

nmakel/solaredge_modbus#36

I'm still awaiting my inverters to be un-enroll from grid services so I can't test yet.

@ThirstyDursty
Copy link
Author

I'm also following another thread which is trying to achieve the same outcome but with a lower level library. nmakel:solaredge_modbus

However, without a proxy you can only run one ModBus client at a time.

nmakel/solaredge_modbus#36

I'm still awaiting my inverters to be un-enroll from grid services so I can't test yet.

I've logged onto my inverter using the setup AP setting...I turned off grid services...but has not had an affect.

I'm not sure how to change the setting referenced above

in the settings web interface I can turn on AdvancedPwrControl, and change it to RRCR

but the commit power control settings I'm not sure...There are also tons of other associated settings so a little worried about getting to click happy. one issue might be that at least in SA all inverters are now required to have grid services....is too bad if Ambers curtailment had worked...be a non issue

@purcell-lab
Copy link

purcell-lab commented Oct 25, 2022

I logged a job with solaredge support via the app to get my firmware updated on my inverter to 4.16.23 to get ModBusTCP over wifi enabled, which they were able to complete remotely.

https://www.solaredge.com/aus/setapp-inverters-firmware

I also had Amber un-enroll my SolarEdge inverters from Grid Services through SolarEdge support - you cannot unenroll from the SetApp interface. My Powerwall2 Battery remains enrolled in Grid Services.

With these changes I am able to use the binsentsu integration to control my export limit and my inverter no longer resets when I change export control modes.

@ThirstyDursty

@ejbatts
Copy link

ejbatts commented Mar 26, 2024

This is an old thread, and i cant seem to find anything newer for SolarEdge curtailment in HA. I thought I had found a thread a few weeks ago but it now escapes me. I am hoping someone can help me set up my HA, or point me to another thread.

Also, my setup includes 3 inverters so I am wondering if the instructions above would work if only applied to the 'leader'.

I had applied to onboard my inverters with Amber, but after five weeks of waiting I have reenabled Modbus TCP and supposedly that cant happen now.

Mark @purcell-lab perhaps?

@Ralphy140
Copy link

I cant answer on the 3 inverters and "leader" question but in terms of how to set curtailment you will need to make a new automation. I have written a blueprint for it here https://github.com/Ralphy140/Amber it may or may not help with your specific situation

@ejbatts
Copy link

ejbatts commented Mar 27, 2024

@Ralphy140 Thank you. I may need to experiment re the three inverters case as I believe the SolarEdge Modbus addon is for single inverters only? I thought that Mark @purcell-lab had multiple inverters which is why I was hoping he may offer the solution.

@purcell-lab
Copy link

I'm runing the alternative solaredge-modbus-multi integration, which does handle the multi inverter solution well.
https://github.com/WillCodeForCats/solaredge-modbus-multi

I make the changes to the leader and my follower inverter changes the settings automatically.

I then use an automation when the feedin price goes negative I switch to zero export mode on the inverter.
image

@ejbatts
Copy link

ejbatts commented Mar 27, 2024

Thanks Mark @purcell-lab , really appreciated. Already using modbus-multi. I will need to investigate how to expose the I1 Limit Control Mode options...I presume through SetApp? Or in one of the Integrations? Haven't looked yet...maybe tomorrow.

@purcell-lab
Copy link

Thanks Mark @purcell-lab , really appreciated. Already using modbus-multi. I will need to investigate how to expose the I1 Limit Control Mode options...I presume through SetApp? Or in one of the Integrations? Haven't looked yet...maybe tomorrow.

If you already have access via modbusTCP, ( which requires SetApp) then you should be able to enable the power control options directly from the integration (without SetApp)
https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Power-Control-Options-%E2%80%90-Configuration

@ejbatts
Copy link

ejbatts commented Mar 31, 2024

EDIT: scenario1: battery full, excess solar over consumption: Hmm. When I enable export control (export/import meter), and site limit zero, production curtails to zero and is not matching consumption?? AND, the Active Power slider moves itself to zero. When I disable export control, production slowly ramps up to normal, taking maybe a couple of minutes.

Scenario 2: Battery charging, no excess solar for export: Production throttles on all three inverters to about 1/3 of total energy available

Wondering if I should be using 'per phase' control?

image

@ejbatts
Copy link

ejbatts commented Apr 2, 2024

Changing Site Limit to 1 (W) seems to have resolved my problem above. Production now mirrors consumption with a couple of seconds. :)

After disabling Limit Control, there is still a delay whilst production ramps back to normal (inverters resetting?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants