-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow Specifying DC Energy Source for Hybrid Inverters #258
Comments
I guess it is hard to represent variants like this, but I wonder if it wouldn't make more sense to have an explicit enum value I think it would make sense to allow using |
I am inclined towards
Also, this is only relevant for hybrid-inverter-discharge. For every other case, there is only one option. In this scheme, if a user specifies to prefer PV source for battery inverters, or battery source for PV inverters, the API returns an error. (I added a 2nd proposal for this approach. I have a slight preference for this one)
Yes, and that is also the case for say 1kW charge and 1kVAr inductive command. I do not see a problem with this approach. Also, clubbing everything in a single RPC does not lead to any benefit on the hardware side. Instead that potentially makes the RPCs more complicated. |
I also like proposal 2 better, it seems more clear about default behaviour and error conditions 👍 |
So proposal 2 also means it is not exclusive, right? If I ask for 2kW and prefer battery, the battery can only provide 1kW but the PV can provide the remaining 2kW, I will still get 2kW, part from the battery and part from the PV, right? I'm wondering if there could be cases where we really don't want to touch one of the sources, for example we don't want to discharge the battery, maybe if would make sense to have some |
If I'm understanding this correctly, I don't think it makes sense to implement the preference/switch-over logic in the lower-level apps, because they would get in the way of application needs. It might not be so bad to require the source category to always be specified, especially if such control is possible with hybrid inverters. |
That's right. |
I added a 3rd proposal. This potentially addresses the concerns about not selecting sources exclusively, while maintaining the flexibility of having preferences. |
Oh, I think I'm getting the issue now. If I send a battery-only command, and then a pv-only command, then the battery-only command would go away right? So if I want to discharge from both, I'd have to set preferred power, because there can be only one power value in a command to an inverter at a time. Is that right? |
And similarly, I can't produce from PV to charge the battery, if both are connected to the same hybrid inverter, right? |
In terms of proposal 3, that is correct.
Oh that's an interesting case, which I forgot about 🤦
What do you think? |
Yeah, if the device supports it, I agree that from the client control PoV it would be best to treat it as 2 separate inverters. At least from the SDK PoV I don't think we will benefit from having the preferences, as PV and batteries will normally be used via PV or battery pools. Using set power commands that can use both will actually complicate things quite a bit in the SDK, so it would be great if we can avoid it. That said, from the PoV of a very simple app that maybe uses the microgrid API client directly, having the preferred mode might be useful, but from the SDK perspective I don't think we even need it. |
So seeing the above proposals it seems its possible to just set the source of where the energy is coming from by choosing the battery and say wether it should be charge from DC or AC or both. I think we should investigate that before we can draw a conclusion. It might not be possible to say I want to charge a battery from solar but rather just DC but I might be mistaken. |
What's needed?
So far, the RPC
SetComponentPowerActive
only allows setting the total active power of a component without differentiating between the sources (PV arrays and batteries) when dealing with hybrid inverters.This limitation primarily affects scenarios where more granular control is required, especially during discharging operations, as clients may need to specify whether the energy is drawn from the battery or the PV arrays.
We need a way to specify the DC energy source when issuing discharge commands.
We do not need to specify the DC component for
Proposed solution
Proposal 1
This approach is about asking the user specifics for hybrid-inverter-discharges, and ignoring this input for other cases.
Proposal 2
This approach is about using defaults as much as possible.
Proposal 3
This is a combination of the above two:
One implication of this approach is that the underlying controller should be responsible for maintaining a steady AC output if the PV power fluctuates.
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: