Overview Block Energy Manager

As a presentation: Block Energy Manager - functions and benefits at a glance, for customer meetings and training (arrow keys to browse, F for full screen). The presentation Energy management gives the overview of all blocks around PV, storage and wallbox.



Function block for the energy management of a house with photovoltaics. It distributes the PV surplus according to a priority list to the heat pump (heating, boost heating, hot water), a heater rod, a charging station and up to 16 freely defined additional consumers. The block belongs to the control element Block Energy Manager and must be linked to it. There the user sets the order, the operating mode of each consumer and the values – always within the limits the installer defines on the block.

Note: The block has been rebuilt and is not compatible with the earlier version. Delete existing Block Energy Manager blocks, create them again and then link the control element again.

Principle: one list, one power budget

All consumers are in one list; the order is the priority. The heat pump appears in it with three entries – Heating, Boost heating and Hot water – so that their order can be moved like that of any other consumer. The factory order is heating, boost heating, hot water, heater rod, charging station, followed by the additional consumers.

Every second the block calculates the power budget: the feed-in at the grid connection plus the power of all consumers it has currently switched on itself – i.e. the power that would be free if it switched everything off. The list is processed from the top; each consumer sees the budget minus what the higher priorities already occupy. The power of a running consumer comes from its meter, otherwise from its rated power or its setpoint.

The continuous consumers (heater rod, charging station, continuous additional consumers) are filled from the top: a higher one is at its maximum power before a lower one gets more than its minimum power. So only the lowest running continuous consumer regulates; two controllers never work against each other.

Switching on and off

  • Switching on: when the budget reaches at least the switch-on power (continuous: minimum power) plus the reserve and stays there for the whole switch-on delay.
  • Switching off: when the budget drops below the switch-on power and stays there for the whole switch-off delay. If the surplus returns, the delay starts from the beginning next time.
  • Minimum pause: after switching off, on again at the earliest after this time. Default 0 = none.

Battery

The block does not control the battery, it only reads the state of charge and the charging power and shifts the budget accordingly. Storage systems that control the grid connection to zero simply charge less when a consumer takes the power. For each consumer the battery rule defines whether it may take the power that would otherwise go into the battery:
  • Always before the battery: the consumer sees the feed-in and the charging power of the battery (default for heating, boost heating and hot water).
  • Before the battery, except battery priority: as above, as long as battery priority is not in effect (default for charging station and additional consumers).
  • From battery state of charge: only from its own value From battery state of charge (default 80 %), below that only the feed-in.
  • Feed-in only: only real feed-in, i.e. only when the battery is full or charges at reduced power (default for the heater rod).
Battery priority is a switch in the control element. If it is on and the state of charge is below Battery priority up to (default 60 %), the battery is charged first; consumers with the rule "Before the battery, except battery priority" wait until then. With Battery supports from (default 0 = off) the battery may, from this state of charge, hold a running consumer during a cloud for at most Battery supports at most minutes (default 10) before its switch-off delay starts – provided the consumer's battery rule allows the battery. Without the Battery area there is neither battery rule nor battery priority; every consumer then only sees the feed-in.

Time window, runtime per day, catch up

With Time window from/to a consumer only runs during this time (also across midnight); without a time window at any time. Runtime per day together with Catch up from ensures a minimum runtime per day, e.g. for a pool pump: if the consumer has not reached its runtime by the time "Catch up from", it runs from then on without surplus and regardless of the time window at full power until it is reached – provided there is a request. Every minute the consumer ran today counts; counting restarts at midnight.

Feed-in limit and "Only curtailed energy"

With a feed-in limit (value Feed-in limit), consumers with Only curtailed energy = Yes only see the feed-in above limit minus reserve as their budget. So the heater rod, for example, runs exactly when the system would otherwise have to curtail – without a fixed time. If the feed-in already sits at the limit (the inverter is curtailing), the curtailed part cannot be seen at the grid connection: the consumer then switches on and ramps up step by step until the feed-in drops below limit minus reserve. Without a feed-in limit the setting has no effect.

Areas

The areas Heating (heat pump), Hot water (heat pump), Heater rod, Charging station and Battery are switched on or off with parameters of the same name. A switched-off area disappears together with its entries, values and terminals; in the control element its settings are omitted. When switching, the terminals of the block change – existing addresses and connections move along with their terminal. The battery is an exception: its inputs AL and AS are always present, without the area they are just not evaluated.

Heating (heat pump)

  • Heating enables the heat pump with surplus. With an outdoor sensor (TA) only while the outdoor temperature is below the Outdoor heating limit.
  • Boost heating cancels the setback with surplus, the house is heated slightly above normal. Boost heating ends at the Room maximum temperature and is allowed again below the maximum temperature minus hysteresis.
  • Cold protection: if the room temperature stays below the Room minimum temperature for longer than the Cold protection delay (with an outdoor sensor only below the heating limit), the heat pump is enabled even without surplus until minimum temperature plus hysteresis is reached. Cold protection only gives the enable – the setback remains, boost heating only happens with surplus. Without a room sensor (TR) there is no cold protection.
There are two kinds of outputs for the heat pump; no switching is needed: if the heat pump only has switching contacts, the enables are wired – HF (enable or lifted block) and HA (setback). If setpoints can be written (e.g. via Modbus), the setpoint outputs are used: HR (room setpoint), HK (heating curve offset), SG with G1/G2 (SG Ready) and WS for hot water. The enable HF is set while heating, boost heating or hot water is running – hot water also needs the enable of the heat pump.

Hot water (heat pump)

The hot water entry charges the storage tank with surplus up to Hot water with surplus and requests again when the top temperature (TW) is the hysteresis below it. If TW drops below the Hot water minimum temperature, the tank is charged without surplus (protection function) until Hot water minimum charge up to is reached at the top and the bottom (TU, if connected) is at most 1 K below. Output WS carries "Hot water with surplus" during the surplus charge, otherwise "Hot water normal".

Heater rod

The heater rod is continuous: output EP gives 0-100 %. The maximum power (rated power) is optional. Without it (default 0) the block controls the output level directly by the feed-in – like a classic PV heater rod controller; the budget then only knows its power via a meter. With a maximum power the budget knows how much the heater rod occupies, and output EL gives the power setpoint in kW. The temperature comes from the tank sensors TW (top) and TU (bottom): it switches on when the top falls below the target minus hysteresis; with a bottom sensor, heating only ends when the bottom is also at most 1 K below the target. With only one sensor, it goes to TW and only the hysteresis controls. Since only the top is measured then, the bottom of the tank is usually not fully charged when heating stops; to store more heat, set the setpoint a little higher. If TW is not connected, the heater rod always has a request and its own thermostat must take care of the temperature limit. With surplus it heats up to the Heater rod setpoint; below the Heater rod minimum temperature (default 0 = off) at 100 % even without surplus, up to minimum temperature plus hysteresis. Always on heats at 100 % up to Heater rod always on up to. If the heater rod needs a contactor, separate logic switches it from EP above 0 % with a switch-off delay, so it does not switch constantly. If heat pump and heater rod share one tank, the heater rod setpoint should be above "Hot water with surplus" – then the heat pump with its better efficiency charges first. Staged heater rods are split onto their relays by separate logic at outputs EP or EL. Because a staged heater rod draws more or less than the block specifies in steps, it should then get a meter – otherwise the budget is wrong and the control oscillates.

Charging station

The charging station is continuous between minimum power (default 4500 W) and maximum power (default 11000 W). It does not regulate below the minimum power: in PV mode it only starts from minimum power plus reserve; if the budget is no longer sufficient, it keeps charging at the minimum power for the switch-off delay (difference from battery or grid) and then switches off. The modes in the control element:
  • PV: charges with surplus only.
  • Min+PV: always charges at least at the minimum power, the rest comes from the surplus. While the vehicle is charging, the minimum power does not count as surplus for higher-priority consumers either.
  • Fast: charges permanently at the maximum power.
  • Off: blocked.
Outputs are enable (LF), charging power (LW) and charging current (LA = charging power / (230 V × Charging station phases)). Charging stations with their own surplus control get their budget via LB – the power that is free at their position in the list – instead of the grid power. If the vehicle does not draw any power (meter below 0.3 kW for longer than 2 minutes), the enable stays on but its power is released for the lower consumers.

Additional consumers

Up to 16 additional consumers are created in the dialog Consumers, limits, profiles, each with name and type – switching (on/off) or continuous (0-100 %). Each one gets one input and two outputs: Operating mode (optional; connected = controlled externally, 0 = Automatic), Enable and Setpoint % (switching: 100 % when on). A continuous additional consumer without maximum power is controlled directly by the feed-in like the heater rod.

Summer operation

In summer the surplus is usually sufficient for the heater rod. For this, heating, boost heating and hot water are set to Always off (by hand or via a profile). Always off blocks the entry including its protection function: the heat pump enable then stays closed completely, cold protection only works as long as heating is not set to Always off. The hot water minimum temperature is then taken over by the heater rod via its Heater rod minimum temperature, if necessary with power from the grid. If hot water is set to Always off and the heater rod has no minimum temperature or is also set to Always off, the control element shows the note "Hot water without minimum temperature".

Profiles (optional)

With profiles the user switches e.g. between summer and winter without changing each consumer individually. The names (up to 4, one per line) are entered in the dialog Consumers, limits, profiles on the page Profiles; without names there are no profiles and the control element shows no selection. A profile stores the operating mode of each consumer, the order and the switch Battery priority. All other values (powers, times, temperatures) apply to all profiles together. If the user changes an operating mode or the order while a profile is active, this is saved in the active profile. Input PR switches on every change (1 = first profile), e.g. from a Block Clock or a limit switch on the outdoor temperature; the first value after start does not count as a change. Because only the change has an effect, the user can still switch in the control element afterwards. Output PA gives the active profile. Example:
EntryWinterSummer
Heating, boost heatingAutomaticAlways off
Hot waterAutomaticAlways off (minimum temperature via the heater rod)
Heater rodAutomatic, feed-in onlyAutomatic, higher up in the list
Charging stationPVPV
Pool, air conditionersAlways offAutomatic

Operating mode via input BA

Input BA overrides the operating modes of all consumers, e.g. for holidays: 1 = all Always on, 2 = all Always off (including the protection functions), any other value = the operating modes of the control element or the active profile apply. BA works above all profiles; the control element then shows the reason "Operating mode input".

Limits: what the user may change

The parameter Consumers, limits, profiles opens a dialog of its own with the pages Consumers, Values and Profiles. On the page Consumers, additional consumers are created with +, deleted with − (their terminals are dropped together with their addresses) and moved in the order with the arrows; the fixed entries can be renamed, their type is fixed and not shown. If a consumer has its own meter, its address is entered under Meter (address), next to it the unit in which it delivers the power (kW or W, Shelly devices mostly W); empty means no meter. With a meter the block calculates with the measured instead of the set power, and the APP shows it. For the heat pump, the first meter of heating, overheating and hot water applies to all three – enabled does not mean that it is running. Every value of a consumer and every general value has three columns: Default applies as long as the user changes nothing; Min and Max limit what the user may set in the control element. Min = Max locks the value, it is then only displayed. For times, "-" means "none". From the factory the limits are wide open – the installer narrows them, e.g. the heater rod setpoint to protect against scalding. The controller enforces the limits as well: a value outside is clamped to the limit, not discarded.

The user's settings are stored in the controller, not in the project, and are kept when a project is transferred. Values the user has never changed follow a changed default.

Tip: Powers at the terminals are in kW, the values in the dialog and in the control element in W. So that the control element can display and record grid, PV, battery, consumption and autarky, the terminals NL, PV, AL, AS, VB and AT need addresses – a purely internal wiring is not sufficient. The address generator only creates the addresses of the displays VB, AT, UE and PA; measured values, enables and setpoints are wired by the installer to the device blocks.

Inputs

BA Operating mode Optional. Common operating mode of all consumers: 1 = all Always on, 2 = all Always off (including the protection functions), otherwise or not connected the operating modes of the control element apply.
NL Grid power kW Power at the grid connection: positive = import, negative = feed-in. Basis of the power budget.
PV PV power kW Generated PV power. Used for calculating consumption and autarky as well as for display and recording.
AL Battery power kW Battery area, optional. Charging or discharging power of the battery. Which direction is positive is set by the parameter Battery power positive. Not connected, the block does not see the charging power: battery rules that may run before the battery then only have the feed-in, and the tile only shows the state of charge.
AS Battery state of charge % State of charge for battery rule, battery priority and display. Only evaluated with the Battery area.
PR Profile Optional. On every change switches to the profile with this number (1 = first profile). The first value after start and numbers without a profile have no effect.
TR Room temperature Heating area. For cold protection and boost heating. Not connected: no cold protection, boost heating without temperature limit.
TA Outdoor temperature Heating area, optional. Heating, boost heating and cold protection only below the Outdoor heating limit. Not connected: no heating limit.
TW Tank temperature top Hot water or heater rod area. Controls surplus charging and minimum temperature of the hot water as well as the heater rod. If the tank has only one sensor, it goes here and TU stays free – connecting the same sensor to TU as well has no benefit. Not connected: hot water and heater rod always have a request, no minimum temperature.
TU Tank temperature bottom Hot water or heater rod area, optional. The minimum charge of the hot water and heating with the heater rod only end when the bottom is also at most 1 K below the respective target.
B1 … B16 Operating mode <name> Per additional consumer, optional. Connected = controlled externally: 0 = Automatic (the energy manager decides), 1 = Always on, 2 = Always off. The operating mode is then greyed out in the APP. Not connected: the operating mode from the APP applies. Locks and releases of the system (e.g. only in heating mode) come via separate logic.

Outputs

VB Consumption kW House consumption = PV + grid − battery charging power (with the Battery area), never negative.
AT Autarky % Share of the consumption that is currently not coming from the grid.
UE Free power kW Power left after the distribution (with a battery including its charging power). For display or own logic.
PA Active profile Number of the active profile, 1 = first. Without profiles 1.
HF Heat pump enable Heating or hot water area. 1 while heating, boost heating or hot water is running (also through a protection function). For a block via relay the output is wired inverted.
SG SG Ready state Heating or hot water area. 1 = blocked (no enable), 2 = normal operation, 3 = boosted operation (boost heating or hot water with surplus).
G1 SG Ready contact 1 1 in state 1 (blocked).
G2 SG Ready contact 2 1 in state 3 (boosted).
HA Heating setback Heating area. 0 while boost heating is running, otherwise 1 (setback active).
HR Heating room setpoint Heating area. Room setpoint boost heating during boost heating, otherwise Room setpoint.
HK Heating curve offset Heating area. Heating curve offset boost heating in K during boost heating, otherwise 0.
WF Hot water enable Hot water area. 1 while the hot water entry is running (surplus charge or minimum temperature).
WS Hot water setpoint Hot water area. Hot water with surplus during the surplus charge, otherwise Hot water normal.
EP Heater rod % Heater rod area. Output level 0-100 %.
EL Heater rod power kW Heater rod area. Power setpoint = output level × maximum power; without maximum power 0.
LF Charging station enable Charging station area. 1 = charging enabled.
LW Charging power kW Charging station area. Charging power setpoint between minimum and maximum power, 0 without enable.
LA Charging current A Charging station area. Charging power / (230 V × charging station phases).
LB Charging station budget kW Charging station area. Power that is free at the charging station's position in the list (minus reserve) – for charging stations with their own surplus control.
F1 … F16 Enable <name> Per additional consumer. 1 = on.
W1 … W16 Setpoint % <name> Per additional consumer. Continuous: output level 0-100 %; switching: 100 when on, otherwise 0.

Parameters

Consumers, limits, profiles The button ... opens the dialog for additional consumers, defaults and Min/Max limits of all values as well as the profile names, see above and the tables below.
Heating (heat pump) Area with the entries Heating and Boost heating. Default on.
Hot water (heat pump) Area with the entry Hot water. Default on.
Heater rod Area with the entry Heater rod. Default on.
Charging station Area with the entry Charging station. Default on.
Battery Evaluate the battery (battery rule, battery priority, display). Default on.
Battery power positive Charging (default): a positive value at AL = the battery is charging. Discharging: a positive value = the battery is discharging.
Charging station phases 1 to 3, for converting the charging power into the charging current. Default 3.
Maximum power kW Limit for the plausibility check of the recording. An hourly value of an energy (grid, PV, battery, consumption) whose magnitude is above this power for one hour (plus 10 % tolerance) is not recorded and not delivered to the control element. The other values of the same hour are kept. Outliers that have already been recorded are removed with Delete outliers in the control element. Default 1000 kW, 0 switches the check off. Do not choose the limit too tight: a value that is too small discards real measurements.
Diagnosis Reports every switching on and off of an entry with reason, budget and state of charge, as well as profile changes via input PR. Default off.

Values per consumer

In the dialog on the page Consumers, in the control element under Details of the consumer. Defaults: heating / boost heating / hot water / heater rod / charging station / additional consumer. Switch-on and rated power are set by the installer only: in the dialog without Min and Max, not visible in the control element. The exception is the maximum power of the charging station: it appears in the control element as Max. charging power and can be set there within Min and Max.
Switch-on power
or minimum power
Switching: budget from which the consumer is switched on (plus reserve). Continuous: lowest power, below which there is no control. Default 1800 / 2000 / 3400 / 300 / 4500 / 1000 W.
Rated power
or maximum power
Switching: power the running consumer occupies (without a measurement). Continuous: highest power; 0 = unknown, control by the feed-in. Default 1800 / 2000 / 3400 / 0 / 11000 / 1000 W.
Switch-on delay Default 30 / 120 / 1800 / 90 / 120 / 300 s.
Switch-off delay Default 900 / 900 / 600 / 300 / 180 / 300 s.
Minimum pause After switching off. Default 0.
Battery rule Always before the battery (heating, boost heating, hot water) / Before the battery, except battery priority (charging station, additional consumers) / From battery state of charge / Feed-in only (heater rod).
From battery state of charge Only with the rule "From battery state of charge". Default 80 %.
Time window from / to Time of day; without a time window (default) the consumer runs at any time.
Only curtailed energy Yes = only energy above the feed-in limit. Default No.
Runtime per day Minutes. Default 0 = off.
Catch up from Time of day from which a missing runtime per day is made up without surplus. Default off.

General values and areas

In the dialog on the page Values, in the control element under Values. Values of areas that are not present are omitted.
Reserve General. Power that must additionally be free when switching on and to which continuous consumers control the feed-in. Default 200 W.
Feed-in limit General. For "Only curtailed energy". Default 0 = none. A fixed value of the system: set Min = Max, then it cannot be changed in the APP.
Battery priority up to Battery. Battery priority applies up to this state of charge. Default 60 %.
Battery supports from Battery. From this state of charge the battery holds running consumers when surplus is missing. Default 0 = off.
Battery supports at most Battery. For this long. Default 10 min.
Room minimum temperature Heating. Limit for cold protection. Default 21 °C.
Room minimum temperature hysteresis Heating. Cold protection ends at minimum temperature plus hysteresis. Default 1 K.
Room maximum temperature Heating. End of boost heating. Default 24 °C.
Room maximum temperature hysteresis Heating. Boost heating allowed again below maximum temperature minus hysteresis. Default 2 K.
Outdoor heating limit Heating, only with an outdoor sensor. Default 15 °C.
Cold protection delay Heating. The room must be too cold for this long. Default 15 min.
Room setpoint Heating. Output HR in normal operation. Default 21 °C.
Room setpoint boost heating Heating. Output HR during boost heating. Default 23 °C.
Heating curve offset boost heating Heating. Output HK during boost heating. Default 2 K.
Hot water normal Hot water. Output WS without surplus. Default 50 °C.
Hot water with surplus Hot water. Target of the surplus charge, output WS during it. Default 60 °C.
Hot water hysteresis Hot water. New request below target minus hysteresis. Default 5 K.
Hot water minimum temperature Hot water. Below it charging without surplus. Default 40 °C.
Hot water minimum charge up to Hot water. End of the minimum charge. Default 45 °C.
Heater rod setpoint Heater rod. Target with surplus. Default 65 °C.
Heater rod hysteresis Heater rod. For setpoint, minimum temperature and Always on. Default 2 K.
Heater rod minimum temperature Heater rod. Below it 100 % without surplus. Default 0 = off.
Heater rod always on up to Heater rod. Target in the operating mode Always on. Default 45 °C.

See also common parameters of all function blocks.