ExternalEMS optimization mode
Let your own or a third-party energy management system control batteries, solar and other connected devices through Reduxi.
External EMS is an optimization mode that enables users or third-party energy management systems to control connected devices through Reduxi. It is designed to support all major device categories, including batteries, photovoltaic systems, HVAC equipment, EV chargers, and other controllable energy assets.
Control instructions specify how each device category should operate during a defined time period. Start and end times can be set to any time and do not need to align with 15-minute intervals. Reduxi applies these instructions to the relevant device categories while managing communication, device integration, and execution at the local level.
External EMS can be activated by adding the External EMS optimization mode in the strategy’s Optimization Modes menu, as shown in the image below
Text description of this image
Screenshot of the Reduxi Configurator, page Strategy, with the dialog "Add" open (close X at the top right of the dialog). Left menu: Devices (+), Strategies (open): Energy manager (bold, marked by a red arrow), Energy manager - PV1/BESS branch, Energy manager - PV2 branch, Main AI Energy manager, button "+ Add strategy"; then Utility Rate Plan and Settings (+). Behind the dialog, a strategy table with an Import limit column (17,3 kW and 5,0 kW), Advanced column with edit and delete icons, rows named Default mo(de), "-" and AI energy m(anager), and the footnote "* premium fea(ture)"; a red arrow points to the black plus (+) button next to Save. Dialog entries, each with a description and a Create button: "AI energy manager *": Use AI agent to optimize battery, HVAC, EVSE and PV (greyed, grey Create button); "Schedule": Scheduled entries define when settings are in effect; a "Hide" link with an up arrow; "Flexibility": Expose regulation of the strategy to external management systems and allow power regulation within the set limits of the strategy; "External EMS": Allow external EMS to optimize consumption and production (a red arrow points to its black Create button); "Negative price": With negative price optimization you can define settings that are in effect when SPOT price drops below zero (greyed, grey Create button). A further entry below is cut off. The dialog footer has a Close button. At the bottom right of the page there is a small text with a user name and an identifier code.
Once External EMS is configured, Reduxi listens for control commands received through the MQTT API and applies them to the selected strategy. The time intervals have to be defined before. In case no operation is defined in a specific time period, then the other optimization mode is executed (e.g. default optimization mode).
Reduxi enforces the grid limits
External EMS commands remain subject to the configured grid import and export limits. Reduxi automatically adjusts the requested power to keep operation within these limits. For example, if the external EMS requests an EV charging power of 11 kW, but the available grid import capacity allows only 8 kW, Reduxi reduces the charging power to 8 kW.
External EMS via MQTT
Once External EMS is enabled in the strategy, Reduxi can receive scheduled control instructions through the MQTT API.
Commands are sent to:
controllers/{controllerId}/strategies/{strategyId}/externalEMS/{externalEMSType}/set
The payload contains a schedule with start and end times defined as Unix timestamps in milliseconds, together with the requested control value. Multiple intervals can be included in one schedule:
{
"schedule": [
{
"start": 1784548800000,
"end": 1784549700000,
"value": "3000"
},
{
"start": 1784549700000,
"end": 1784550600000,
"value": "-2000"
}
]
}
In this example, the device is instructed to operate at 3000 W during the first 15-minute interval and at -2000 W during the following interval. For a battery, positive values typically represent charging and negative values represent discharging.
For HVAC devices, control values may include commands such as OFF, REDUCE_1, ON, and BOOST_1.
The active schedule is published on:
controllers/{controllerId}/strategies/{strategyId}/externalEMS/{externalEMSType}
externalEMSType can be one of the following
- battery
- evse
- hvac
- pv
See more about MQTT specification in this article Reduxi Controller - MQTT API