home-assistant-solaredge-modbus icon indicating copy to clipboard operation
home-assistant-solaredge-modbus copied to clipboard

Control of export limit and production limits

Open ThirstyDursty opened this issue 2 years ago • 43 comments

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)

ThirstyDursty avatar May 10 '22 06:05 ThirstyDursty

Yeah would also like this feature. You can control this with parameter 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

djfanatix avatar Jun 01 '22 12:06 djfanatix

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

iNaiks avatar Jul 24 '22 11:07 iNaiks

This pull request allows it, works very well https://github.com/binsentsu/home-assistant-solaredge-modbus/pull/42

tias2001 avatar Jul 24 '22 12:07 tias2001

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

iNaiks avatar Jul 24 '22 18:07 iNaiks

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

tias2001 avatar Jul 24 '22 19:07 tias2001

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

iNaiks avatar Jul 25 '22 12:07 iNaiks

You shouldn't no but backup your files and backup home assistant

On Mon, 25 July 2022, 9:39 pm iNaiks, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1193966850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPGFI6HMVW5U5ZPSNXGXNLVVZ7VZANCNFSM5VQQCIEA . You are receiving this because you commented.Message ID: @.*** com>

tias2001 avatar Jul 25 '22 12:07 tias2001

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

iNaiks avatar Jul 25 '22 13:07 iNaiks

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

ThirstyDursty avatar Aug 02 '22 01:08 ThirstyDursty

binsentsu just updated the master with this so redownload from hacs and they should be there now

On Tue, 2 Aug 2022 at 10:53, ThirstyDursty @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1201909719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPGFI23MEB6H7A2AH56C5LVXB2CXANCNFSM5VQQCIEA . You are receiving this because you commented.Message ID: @.*** com>

tias2001 avatar Aug 02 '22 01:08 tias2001

oops sorry looks like it hasnt been released yet so wait until the version gets released

On Tue, 2 Aug 2022 at 11:00, Mathias Boer-Mah @.***> wrote:

binsentsu just updated the master with this so redownload from hacs and they should be there now

On Tue, 2 Aug 2022 at 10:53, ThirstyDursty @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1201909719, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPGFI23MEB6H7A2AH56C5LVXB2CXANCNFSM5VQQCIEA . You are receiving this because you commented.Message ID: @.*** com>

tias2001 avatar Aug 02 '22 03:08 tias2001

1.6.0 has just been released

binsentsu avatar Aug 02 '22 19:08 binsentsu

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 ?

Ralphy140 avatar Aug 03 '22 00:08 Ralphy140

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

ThirstyDursty avatar Aug 03 '22 00:08 ThirstyDursty

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

Ralphy140 avatar Aug 03 '22 00:08 Ralphy140

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

AlexandreLogist avatar Aug 05 '22 07:08 AlexandreLogist

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 
`````````````````````````

Ralphy140 avatar Aug 05 '22 07:08 Ralphy140

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

iNaiks avatar Aug 21 '22 08:08 iNaiks

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

ThirstyDursty avatar Sep 18 '22 02:09 ThirstyDursty

Hi,

Have you enabled it on the inverter?

https://github.com/binsentsu/home-assistant-solaredge-modbus/pull/42#issuecomment-924407891

On Sun, 18 Sept 2022, 12:17 pm ThirstyDursty, @.***> wrote:

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

—
Reply to this email directly, view it on GitHub
<https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1250179231>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZPGFIZ432FOPMVR7EGX3F3V6Z7E7ANCNFSM5VQQCIEA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>

tias2001 avatar Sep 18 '22 03:09 tias2001

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 avatar Sep 18 '22 06:09 purcell-lab

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

purcell-lab avatar Sep 18 '22 06:09 purcell-lab

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?

On Sun, 18 Sept 2022, 4:18 pm purcell-lab, @.***> wrote:

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?

[image: Screenshot_20220918-164641] https://user-images.githubusercontent.com/79175134/190889495-b891b71a-b4b5-4242-9c99-ccb89c68e99f.png

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1250204961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPGFI5CAVOPVQ7H35U5OSLV623MPANCNFSM5VQQCIEA . You are receiving this because you commented.Message ID: @.*** com>

tias2001 avatar Sep 18 '22 07:09 tias2001

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 avatar Sep 18 '22 08:09 purcell-lab

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.

purcell-lab avatar Oct 02 '22 12:10 purcell-lab

I logged onto the solaredge local set up wifi and turned off “grid services”. It didn’t seem to make any differenceSent from my iPhoneOn 2 Oct 2022, at 10:45 pm, purcell-lab @.***> wrote: 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. 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ThirstyDursty avatar Oct 02 '22 23:10 ThirstyDursty

Sent from my iPhoneOn 3 Oct 2022, at 10:09 am, Adam Durst @.> wrote:I logged onto the solaredge local set up wifi and turned off “grid services”. It didn’t seem to make any differenceSent from my iPhoneOn 2 Oct 2022, at 10:45 pm, purcell-lab @.> wrote: 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. 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ThirstyDursty avatar Oct 02 '22 23:10 ThirstyDursty

🧐 not sure I understand how to do that. Or is that reflective of menu items in the set-up screens of the inverter. Which I accessed to set up the tcp modbus connection. Sent from my iPhoneOn 18 Sep 2022, at 1:16 pm, tias2001 @.***> wrote: Hi,

Have you enabled it on the inverter?

https://github.com/binsentsu/home-assistant-solaredge-modbus/pull/42#issuecomment-924407891

On Sun, 18 Sept 2022, 12:17 pm ThirstyDursty, @.***> wrote:

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

—
Reply to this email directly, view it on GitHub
<https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1250179231>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZPGFIZ432FOPMVR7EGX3F3V6Z7E7ANCNFSM5VQQCIEA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ThirstyDursty avatar Oct 11 '22 08:10 ThirstyDursty

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

On Sun, 18 Sept 2022, 6:20 pm purcell-lab, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/85#issuecomment-1250223735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPGFI6ULMLXM447YVPR7O3V63JV5ANCNFSM5VQQCIEA . You are receiving this because you commented.Message ID: @.*** com>

tias2001 avatar Oct 11 '22 09:10 tias2001

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?

ThirstyDursty avatar Oct 11 '22 10:10 ThirstyDursty