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

Modbus control of import and export power #20

Open
HarmvandenBrink opened this issue Nov 5, 2024 · 4 comments
Open

Modbus control of import and export power #20

HarmvandenBrink opened this issue Nov 5, 2024 · 4 comments
Labels
question Further information is requested

Comments

@HarmvandenBrink
Copy link

Would it be possible to control the import and export power of the DEYE inverter using Modbus?

Can we do this per phase, or as total amount?

Could you help me out with this, you’re sort of my last resort.

@githubDante
Copy link
Owner

It's doable via the following registers:

  • MaxChargeAmps
  • MaxDischargeAmps
    or
  • GridExportLimit

All are available in the WritableRegisters class. The latter is even mentioned at the bottom of the README.

@HarmvandenBrink
Copy link
Author

Sorry that I missed that. I thought it are limits that are set, not actual set points for the inverter

@tonsmets
Copy link

tonsmets commented Nov 6, 2024

I would like to know the same thing. With other systems I am used to writing a power setpoint (either a positive or negative value depending on discharge/charge).

So I think my question is: if I just want to charge or discharge the battery right now with a certain amount of power, what commands do I need to send? This seems like a very basic functionality but I cannot find the correct commands/steps when looking at the documentation.

@githubDante githubDante added the question Further information is requested label Nov 6, 2024
@githubDante
Copy link
Owner

githubDante commented Nov 6, 2024

So I think my question is: if I just want to charge or discharge the battery right now with a certain amount of power, what commands do I need to send? This seems like a very basic functionality but I cannot find the correct commands/steps when looking at the documentation.

You should use the programmer with the correct time interval, power & SOC settings. Also make sure that the TimeOfUse (register 146) shows Enabled and at least the current day of the week is also in the list.

TimeOfUse example from deye-read:

[                   Sell_Time_Of_Use]: ['TimeOfUse - ENABLED', 'TimeOfUse - MONDAY', 'TimeOfUse - TUESDAY', 'TimeOfUse - WEDNESDAY', 'TimeOfUse - THURSDAY', 'TimeOfUse - FRIDAY', 'TimeOfUse - SATURDAY', 'TimeOfUse - SUNDAY'] 

Edit: If you want to charge the battery, the SOC value in the programmer must be set above the current battery SOC value and vice versa if you want discharge the SOC in the programmer must be set lower than the current battery SOC.

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

No branches or pull requests

3 participants