Charging plans and external energy management with the cFos Charging Manager

An external energy management system (EMS) can specify charging limits to the cFos Charging Manager, via the API or a charging plan. This page shows the calls set_cplan and get_cplan and the JSON format.

Charging limits and charging plans

You can also integrate the cFos Charging Manager into an external energy management system (EMS). The EMS can then specify absolute charging limits for the maximum total current per phase and for individual wallboxes. You can also specify such limits for the charging and discharging current of a controllable energy storage system.

Without an external EMS, you can also specify these limits under “Charging Plan (limits)” in the general load management settings (or in the wallbox and battery storage settings). Here you enter a list of times of day in minutes and the associated current in mA. For battery storage, the limits are values for power in watts.

Charging limits serve as an additional limit on the charging current (or charging power). Independently of this, the Charging Manager can further limit the charging current (or charging power) based on other conditions and charging rules.

Setting charging limits via the API (set_cplan)

An EMS can set these limits programmatically with the following API call:

/cnf?cmd=set_cplan&dev_id=xx&tmp=t

Here xx is a device ID or $G for the maximum total current per phase.

t is 0 or 1. 1 means that the charging limits are not saved, i.e. they no longer exist after a restart of the Charging Manager. To spare the flash memory, an EMS should save the values only rarely and mostly change them only temporarily.

The request body is a JSON object:

{
   "cplan": [ { obj } ]
}

This means a “cplan” is an array of obj. obj can contain the following elements:

ElementMeaning
"dc"true or false: does the limit refer to discharging power (true)? Default is false
"st"Start of the limit in minutes of the respective day
"dr"Duration of the limit in minutes
"lm"Limit in mA or watts

Querying current charging limits (get_cplan)

With /cnf?cmd=get_cplan&dev_id=xx you can query the current charging limits of the device or for the maximum total current.