Elecq charging stations can be read and controlled by a higher-level system in several ways, for example via OCPP Smart Charging Profiles, Modbus RTU or Modbus TCP. Here we use Modbus TCP, a protocol that is widely used in both building automation and industry, for example in controllers from Siemens, Rockwell or Beckhoff. In this article, we show how to integrate an Elecq charging station into a Loxone Miniserver via Modbus TCP and control it in Loxone Config.
This article is intended for electricians, Loxone partners and system integrators. We already covered the basics of the Elecq Modbus interface in the article Integrating Elecq Charging Stations into an EMS via Modbus TCP (in German). This article builds on it and focuses on the implementation in Loxone.
Why Modbus TCP?
Modbus TCP runs over the existing network in the building, so no separate bus cable is needed between the Miniserver and the charging station. In addition, the installer or planner decides how the charging station is connected:
- Wired via Ethernet cable (RJ45) to a network switch
- Wireless via Wi-Fi through an access point
This makes no difference for Loxone. The Loxone Miniserver acts as the Modbus client, and the Elecq charging station acts as the Modbus server. The Miniserver polls the registers of the charging station cyclically and writes setpoints such as the maximum charging current back to it.

Important: Loxone addresses the charging station by its IP address. You should therefore assign the charging station a fixed IP address (DHCP reservation) in your router or DHCP server. If the IP address changes, the Miniserver loses its connection to the charging station.
Downloads: Template and Sample Program
We provide two files for the integration:
📥 Loxone Modbus template for Elecq charging stations (XML)
The Modbus template describes the charging station as a Modbus device. It contains all relevant sensors (reading values) and actuators (writing values) with the correct register addresses, data types, units and polling cycles. This means you don't have to create the registers manually one by one in Loxone Config.
📥 Loxone sample program for Elecq charging stations (.Loxone)
The sample program is a complete Loxone Config project in which the template is already integrated and linked to the logic: Wallbox block, conversion from power to current, automatic phase switching and fail-safe parameters. You can open it and copy the blocks into your own project. The program was created with Loxone Config 17.
You can also find the template and sample program in the Loxone Library.
Step 1: Configure the Charging Station to Communicate with Loxone
Before Loxone can communicate with the charging station, the charging station itself must be configured accordingly. The charging station must hand over control of the charging current to an external system, and the Modbus TCP interface of the charging station must be enabled. The installer carries out this configuration with the Elecq Partner App. The app connects directly to the charging station on site via Bluetooth.
Elecq Partner App for installers
Download the Partner App and get in touch with us. We will be happy to add you to the Elecq partner list. As a partner, you get extended configuration options and can also manage all your charging stations from anywhere via the cloud in your browser.
During configuration, you define who handles the load management of the charging station:
- Elecq: Load management is handled by Elecq itself, for example across several charging stations.
- Third Party EMS: Load management is handled by an external system. In our case, this is Loxone.
For the integration with Loxone, select Third Party EMS and enable Modbus TCP:
- Open the Elecq Partner App near the charging station, connect via Bluetooth and start the configuration.
- In step 1 of 4, select
Third Party EMSunder Load Balancing. - Under the Modbus menu item that now appears, select
Modbus TCP Server. - Leave the TCP port at the default port
502. - Complete the remaining configuration as usual.
Retrofitting existing charging stations: The steps above apply to a new installation in which the installer commissions the charging station. If the charging station is already in operation and Loxone is added later, the owner of the charging station must first grant the installer the appropriate rights in the Elecq App. Only then can the installer edit the charging station in the Partner App. We describe how this authorization works step by step in the Modbus article (in German).
Step 2: Import the Modbus Template into Loxone Config
- Open your project in Loxone Config and connect to the Miniserver.
- In the periphery tree, select the Miniserver under Network Periphery and add a Modbus Server.
- Enter the IP address of the charging station and port
502for the Modbus Server (e.g.192.168.1.50:502). - Import the file
MB_Elecq_Ladestation.xmlas a device template and add the device Elecq Ladestation under the Modbus Server.
The template then automatically creates the following objects. The names come from the official Elecq Modbus documentation. Many of them start with EVSE, which stands for Electric Vehicle Supply Equipment. In the world of e-mobility, this is simply the technical term for the charging station or charging point.
Sensors (Function Code 03, Read Holding Registers)
| Sensor | Address | Polling cycle | Unit |
|---|---|---|---|
| EVSE state | 4096 | 1 s | - |
| EVSE Power Total | 4113 | 1 s | kW |
| Cumulative Reading of EVSE 1 Energy Meter | 5136 | 60 s | kWh |
| EVSE Current / Voltage / Power per phase | 4097-4119 | 300 s | A / V / W |
| EVSE 1 L1-L3 Demand Current / Power | 5120-5134 | 300 s | A / W |
| EVSE1 phase switch type | 5140 | 300 s | - |
| EVSE1 phase switch | 5141 | 300 s | - |
| EVSE 3rd EMS Max Current | 5142 | 300 s | A |
| Charger Type, Input Phase, Rated Current | 512-516 | 300 s | - |
| Modbus Communication timeout | 520 | 300 s | s |
| Modbus safe current | 521 | 300 s | A |
Actuators (Function Codes 06 and 16, Write Registers)
| Actuator | Address | Function code | Unit |
|---|---|---|---|
| EVSE1 phase switch | 5141 | 06 | - |
| EVSE 3rd EMS Max Current | 5142 | 16 (FLOAT32) | A |
| Modbus Communication timeout | 520 | 06 | s |
| Modbus safe current | 521 | 16 (FLOAT32) | A |
You can adjust the polling cycles if required. EVSE state and EVSE Power Total are deliberately read every second so that the Wallbox block in Loxone responds quickly to changes. Static values such as Charger Type or Rated Current, on the other hand, only need to be polled rarely.
All actuators are configured with a repeat rate of 15 seconds. Loxone therefore sends the setpoints to the charging station again at regular intervals. This matters for the Elecq fail-safe behavior (see below): as long as the Miniserver writes every 15 seconds, the Modbus timeout of 30 seconds is never reached.
Step 3: Logic in the Sample Program

Inputs of the Wallbox Block
- Vc (vehicle connected): The EVSE state sensor is compared with the value
1(Charging) using an Equal block. When charging is active, theVcinput is set. - Cp (current charging power): The EVSE Power Total sensor provides the current power. The conversion from W to kW is already included in the template.
- Mr (meter reading): The Cumulative Reading of EVSE 1 Energy Meter sensor provides the meter reading in kWh. Loxone uses it to create the consumption statistics of the charging station.
The Wallbox block is configured with power limits of 1.38 kW (minimum, corresponding to 6 A single-phase) and 11 kW (maximum, corresponding to 16 A three-phase). The minimum of 1.38 kW only applies to charging stations with phase switching. Elecq charging stations can charge at up to 22 kW (32 A three-phase). If you want to use this power and the charging station is connected with the appropriate cable cross-sections and the matching circuit protection, set the maximum in the Wallbox block to 22 kW.
Elecq Home: For the Elecq Home (always three-phase), the minimum charging power in the Wallbox block must be set to 4.16 kW. Three-phase charging requires at least 6 A per phase. If the available power is below this value, the block pauses charging. Without this adjustment, the formula calculates single-phase below 4.16 kW, but the charging station charges on three phases and therefore at three times the power.
Converting Charging Power into Charging Current
The Wallbox block outputs the permitted charging power in kW at the Tp output. However, the Elecq charging station expects a current in amperes in register 5142 (EVSE 3rd EMS Max Current). A Formula block handles the conversion:
(I1 * 1000) / (IF(I1 < 4.16; 1; 3) * 230)
- If the power is below 4.16 kW, the calculation is single-phase:
P / 230 V. - From 4.16 kW, the calculation is three-phase:
P / (3 x 230 V).
The threshold of 4.16 kW roughly corresponds to the minimum three-phase charging power (3 x 230 V x 6 A = 4.14 kW). Below this value, a vehicle can no longer charge on three phases.
Automatic Phase Switching
Whether a charging station can switch from three phases to one depends on the model:
| Model | Single-phase charging via Modbus |
|---|---|
| Elecq Biz | Yes |
| Elecq Home Pro | Yes (available soon) |
| Elecq Home | No, always charges three-phase |
If the charging station can switch, it charges on a single phase at low power. This is particularly important for PV surplus charging: single-phase charging is possible from 1.38 kW, while three-phase charging only starts at around 4.14 kW.
To do this, the sample program writes register 5141 (EVSE1 phase switch):
- A Less block checks whether the charging power is below 4.16 kW.
- An Analog Multiplexer then selects the value
6(three-phase) or2(single-phase on L3). - A Not Equal block uses the EVSE1 phase switch type sensor to check whether the charging station supports phase switching at all (value not equal to
0). - A second Analog Multiplexer always outputs the constant 3-Phase Mode (
6) for charging stations without phase switching, and otherwise the result of the phase selection.
The logic therefore works for all models. On an Elecq Home, the value automatically remains 6.
Elecq Home: Remove the EVSE1 phase switch actuator (5141) from the configuration for the Elecq Home. Disabling only the cyclic transmission is not enough, because the value is still written whenever it changes.
Note: In the sample program, phase L3 (value 2) is set for single-phase charging. L3 was chosen deliberately because L1 is often already loaded by single-phase consumers. Adjust this value to your installation to avoid unbalanced loads on the grid connection. If the charging station reports the value 2 (static phase switching) for EVSE1 phase switch type, single-phase charging is only possible on L1 (value 0).
Fail-Safe: Behavior When the Connection Is Lost
Two constants are also used to write the fail-safe parameters to the charging station:
- Modbus Timeout =
30seconds (register520) - Modbus safe current =
6A (register521)
If the charging station receives no valid Modbus communication for 30 seconds, for example because the Miniserver is restarting or the network is interrupted, it automatically continues charging at the safe fallback current of 6 A. This keeps the charging station in a safe operating state even if the Loxone control fails.
Outlook: PV Surplus Charging and Load Management with Loxone
With the Wallbox block, the Elecq charging station is fully integrated into Loxone. Charging power, meter reading and status appear in the Loxone app, and the charging station can be combined with other Loxone functions, for example with the Energy Manager for PV surplus charging or with a power limit for the building's grid connection.
You can find the complete list of all Modbus registers in the official Elecq documentation:
ELECQ Modbus Communication for Third Party EMS – Version 1.1 (PDF download)
Do you have questions about integrating Elecq charging stations into Loxone? Our support team will be happy to help.



