biemond / solaredge.modbus

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

Can you implement "Production Limit" to earn money ;) ? #73

Open richard-e5 opened 2 months ago

richard-e5 commented 2 months ago

Hello,

If the electricity is negative I would like to charge my battery. If I could set the "Production limit" to 0 Watt, then my battery can be charged with AC.

Kind regards, Richard

IMG_3730 IMG_3729

biemond commented 2 months ago

can you try these, it should already be supported

charge from pv, grid.

Screenshot 2024-04-26 at 13 54 41 Screenshot 2024-04-26 at 13 55 06 Screenshot 2024-04-26 at 13 57 00 Screenshot 2024-04-26 at 13 57 16
biemond commented 2 months ago

need to check what production control does but should be almost the same

      if (type == 'limitcontrolmode') {
        // 0 – Disabled
        // 1 – Export Control
        // 2 – Production Control
        // 11 – Minimum Import Control
        if (value == 1) {
          const limitcontrolmodeeRes = await client.writeSingleRegister(0xe000, Number(1));
          console.log('limitcontrolmode', limitcontrolmodeeRes);
          // side = 0
          const limitcontrolsideRes = await client.writeSingleRegister(0xe001, Number(0));
          console.log('limitcontrolside', limitcontrolsideRes);
          // 3000
          const limitcontrolWattRes = await client.writeMultipleRegisters(0xe002, [ 32768, 17723]);
          console.log('limitcontrolwatt', limitcontrolWattRes);
        } else if (value == 11) {
          const limitcontrolmodeeRes = await client.writeSingleRegister(0xe000, Number(2049));
          console.log('limitcontrolmode', limitcontrolmodeeRes);
          // 500
          const limitcontrolWattRes = await client.writeMultipleRegisters(0xe002, [0, 17402]);
          console.log('limitcontrolwatt', limitcontrolWattRes);
        } else {
          const limitcontrolmodeeRes = await client.writeSingleRegister(0xe000, Number(0));
          console.log('limitcontrolmode', limitcontrolmodeeRes);
        }
      }
richard-e5 commented 2 months ago

Thank you for the quick reply.

I tested your setup, but I can not charge the battery with AC.

With Export Limit the battery will charge with PV. With Product Limit the battery wil charge with AC. And if the price is negative I will earn some money ;)

production-limit

biemond commented 2 months ago

did you contact solaredge ? or wait a day at least ( for the night job). they sometimes don't allow it. mine was allowed after a few days

plus check this

Screenshot 2024-04-26 at 14 49 31
richard-e5 commented 2 months ago

yes I can charge from AC, but alway first from PV. I can not choose for AC only. So turn off the SunCells and use only AC.

When I set "Production limit" to 0 Watt (in the SolarEdge install app) then there is no PV, so then the battery can only charge from AC.

In this picture, when Charge from PV+AC. It always will use PV. production-limit(2)

biemond commented 2 months ago

ok, why do you not use Charge from PV+AC?
can you try active power to 0 , see if that works.

have to check for production limit.

richard-e5 commented 2 months ago

I have checked that. Still charge from PV (as picture "With Export Limit" above)

richard-e5 commented 2 months ago

When I set "Production limit" to 0 Watt, it will charge from AC.

biemond commented 2 months ago

can you check active power to 0 , that should be the way how to control PV , at least with plain inverter

Screenshot 2024-04-26 at 15 21 50
richard-e5 commented 2 months ago

How simple it can be :) Thank you!!!

As I though (before talking ): production-limit(3)

After talking with you ;) production-limit(4)

biemond commented 2 months ago

nice, will look at it, at least you are unblocked.

by the way, I think price need to be , negative -14 c or not with the transport cost.

but nice

richard-e5 commented 2 months ago

Yes I have read that too, but not all think the same. Some say €0 and some say -€0,14. So I have to test that also, when price is negative. But thank you for your information and your thoughs!!

richard-e5 commented 2 months ago

I asked Zonneplan for the price, when to stop de SolarEdge. The guy said by -€1 ;)

I tested "Active Power Limit to 0":

  1. For an inverter from 2019 it worked.
  2. But the new one (2024) with the option "Production Limit" it did not work.

I hope you have an other idear ;) Thanx in advance.

biemond commented 2 months ago

I think on the inverter you have to do something to enable active power or not.

I did not implement production limit, let me check it out.

biemond commented 2 months ago

-1 euro is crazy , you get broke on it. -14ct should be enough to stop and start importing it.

biemond commented 2 months ago

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

<img width="394" alt="Screen Shot 2024-05-01 at 20 07 04" src="https://github.com/biemond/solaredge.modbus/assets/1085004/28223ef4-d1ec-4720-8225-ea

Screen Shot 2024-05-01 at 20 07 33

dcb381e360">

biemond commented 2 months ago
Screen Shot 2024-05-01 at 20 07 04
richard-e5 commented 1 month ago

THANX!! Ik ga het opnieuw testen ;)

afbeelding afbeelding afbeelding

green-us commented 1 month ago

FYI: I got a working power limit on a 2022 HDwave (without battery), indeed by simply setting Active power limit to zero. To set it up I did need to reset the inverter to default settings and enable all modbus and power limiting functions but it was functioning perfectly. However (although nothing on my side changed) this specific option now stopped working. I think since I tested the improved tarif optimisation built in in the MySolaredge app. That works but now the modbus function doesn't anymore. May be related. (topic on tweakers: https://gathering.tweakers.net/forum/list_message/79053502#79053502 .

green-us commented 1 month ago

here overview settings screenshots with actually tested and working active power limit manipulation using Homey: Screenshot_20240503-154450 Screenshot_20240503-154508 Screenshot_20240503-154522 Screenshot_20240503-154537 Screenshot_20240503-154602 Screenshot_20240503-154747 Screenshot_20240503-154758 Screenshot_20240503-154813 Screenshot_20240503-154838 Screenshot_20240503-154845 Screenshot_20240503-154859 Screenshot_20240503-154920 Screenshot_20240503-154945 Screenshot_20240503-154958 Screenshot_20240503-155016 Screenshot_20240503-155042 Screenshot_20240503-155126

biemond commented 1 month ago

Also heard this from others, was working fine until solaredge came with this feature. I think you are the fourth person talking about this. I think it is a bug with their new app eature or they want you force you the use the app.

or when you do it once and go back , something is sticking and auto reverted.

green-us commented 1 month ago

Solution (in dutch):

Wifi AP activeren (schakelaar anderhalve tel naar links) inloggen naar webgui navigeren (172.16.0.1) naar 'power control' vervolgens 'load defaults' edit: That's enough.

Indeed, something seems to stick after using tariff optimization. And it seemingly is not in de modbus communication but in the power control. And seems to be an invisible setting, reset when reloading the default power control settings. Nice to know.

biemond commented 1 month ago

na dit is alles ok voor jou? en active power werkt weer

green-us commented 1 month ago

Inderdaad. Lees nu je vraag en probeer het nu nog eens en ja, werkt nog steeds.