Ik wacht (al) even op feedback van het R&D team van Sunpura voor ik verder werk aan de integratie. Heb al wat tijd gestoken in het uitvogelen van die verschillende opties in de API maar ik kijk pas verder als ik iets meer documentatie heb.
Voorlopig ga je best aan de slag met de HA integraties (local en cloud) in de zip die je via de Sunpura app kan downloaden. Onze integratie werkt nu idd niet meer na de aanpassingen van het API endpoint.
I’d like to inform you of a change. The domain for Sunpura’s API has been updated. It has changed from
monitor.ai-ec.cloud:8443
to
server-nj.ai-ec.cloud:8443.
Ik kan via manual/timed mode de batterij laten laden en ontladen vanuit Home Assistant/emhass planning maar liep dan bijvoorbeeld tegen het probleem dat als de batterij vol is en ik "doe niets" stuur de PV productie ook ook uitgezet wordt. Om dat op te lossen moest ik de batterij dan weer in AI mode zetten...
De vraag waarvoor ik op antwoord wacht moest iemand tijd hebben om er verder naar te kijken op't moment :
Thank you for your response. Let me clarify the "Energy
Modes" and "Power Modes" I'm referring to - these terms
come from the actual API parameters in your endpoints,
not from written documentation.
*API Parameters I'm referring to:*
When calling /aiSystem/setAiSystemTimesWithEnergyMode,
the payload includes:
- energyMode: Values 0, 1, 2 (we see in responses:
0=Manual, 1=Auto, 2=AI)
- powerMode: Values 0, 1 (we see: 0=Intelligent,
1=Zero-feed)
- aiMode: Values 0, 1 (seems to control actual AI
automation)
*The confusion:*
Through testing, we discovered some counterintuitive
behavior:
- To get *manual battery control* to work (especially
forced discharge), we need energyMode: 2 ("AI mode")
- But with aiMode: 0, this disables actual AI
automation
- For forced discharge to override solar charging, we
need powerMode: 1 (zero-feed mode)
*My questions:*
1. *Could you provide official definitions* for these
parameters and their values?
- What does energyMode: 0, 1, 2 actually control?
- What does powerMode: 0, 1 actually control?
- What does aiMode: 0, 1 actually control?
2. *Original question about solar export*: Is there a
combination of settings that allows solar to export to
grid even when the battery is full?
3. *Manual control clarification*: Why does manual
battery control (forced charge/discharge) require
energyMode: 2 instead of energyMode: 0 (Manual)?
This information would help us integrate properly with
your API
If you look at the sunspec standard, these controls are normally availalble on a hybrid (bat+solar) inverter:
Battery Controls
Charge/Discharge Management:
Set charging power limits (kW)
Set discharging power limits (kW)
Enable/disable battery charging
Enable/disable battery discharging
Set minimum and maximum state of charge (SOC) limits
Configure charge/discharge schedules
Operating Modes:
Self-consumption mode
Time-of-use optimization
Backup/reserve mode
Grid export limitation
Force charge/discharge commands