Technicians & Integrators

Controlling Elecq Charging Stations with Loxone via Modbus TCP

Loxone is one of the most widely used smart home and building automation systems in Switzerland. With a Loxone Miniserver, an Elecq charging station can be read and dynamically controlled via Modbus TCP, for example for PV surplus charging or load management. In this article, we walk through the integration step by step, including a Loxone template and sample program for download.

27 November 2026

P

Philipp Bruhin

Controlling Elecq Charging Stations with Loxone via Modbus TCP
Elecq Home and Elecq Biz charging stations with a Loxone Miniserver

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.

Network diagram: Loxone Miniserver and Elecq charging stations via Modbus TCP over Ethernet and Wi-Fi

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:

  1. Open the Elecq Partner App near the charging station, connect via Bluetooth and start the configuration.
  2. In step 1 of 4, select Third Party EMS under Load Balancing.
  3. Under the Modbus menu item that now appears, select Modbus TCP Server.
  4. Leave the TCP port at the default port 502.
  5. Complete the remaining configuration as usual.
Configuring Third Party EMS load management and Modbus TCP in the Elecq Partner App

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

  1. Open your project in Loxone Config and connect to the Miniserver.
  2. In the periphery tree, select the Miniserver under Network Periphery and add a Modbus Server.
  3. Enter the IP address of the charging station and port 502 for the Modbus Server (e.g. 192.168.1.50:502).
  4. Import the file MB_Elecq_Ladestation.xml as 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)

SensorAddressPolling cycleUnit
EVSE state40961 s-
EVSE Power Total41131 skW
Cumulative Reading of EVSE 1 Energy Meter513660 skWh
EVSE Current / Voltage / Power per phase4097-4119300 sA / V / W
EVSE 1 L1-L3 Demand Current / Power5120-5134300 sA / W
EVSE1 phase switch type5140300 s-
EVSE1 phase switch5141300 s-
EVSE 3rd EMS Max Current5142300 sA
Charger Type, Input Phase, Rated Current512-516300 s-
Modbus Communication timeout520300 ss
Modbus safe current521300 sA

Actuators (Function Codes 06 and 16, Write Registers)

ActuatorAddressFunction codeUnit
EVSE1 phase switch514106-
EVSE 3rd EMS Max Current514216 (FLOAT32)A
Modbus Communication timeout52006s
Modbus safe current52116 (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

Loxone Config sample program with the Wallbox block for the Elecq charging station

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, the Vc input 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:

ModelSingle-phase charging via Modbus
Elecq BizYes
Elecq Home ProYes (available soon)
Elecq HomeNo, 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):

  1. A Less block checks whether the charging power is below 4.16 kW.
  2. An Analog Multiplexer then selects the value 6 (three-phase) or 2 (single-phase on L3).
  3. 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).
  4. 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 = 30 seconds (register 520)
  • Modbus safe current = 6 A (register 521)

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.

Recent blogs

Public charging infrastructure in the visitor car park at Lucerne Cantonal Hospital: 21 new Elecq Biz charging stations
Public charging infrastructure in the visitor car park at Lucerne Cantonal Hospital: 21 new Elecq Biz charging stations
Public chargingCommercial real estate 3

Public charging infrastructure in the visitor car park at Lucerne Cantonal Hospital: 21 new Elecq Biz charging stations

Simply park, charge your electric car and pay with ease: the new visitor car park at Lucerne Cantonal Hospital offers visitors 21 Elecq Biz charging stations across two levels. The...

Public charging infrastructure in the visitor car park at Lucerne Cantonal Hospital: 21 new Elecq Biz charging stations
White-Label Platform for Charging Infrastructure: Your Brand with Every Charging Session
White-Label Platform for Charging Infrastructure: Your Brand with Every Charging Session
Utilities & Grid OperatorsProperty managers 1

White-Label Platform for Charging Infrastructure: Your Brand with Every Charging Session

How can you offer charging infrastructure under your own brand? Discover the benefits of a white-label platform and how Hustech uses Sintio technology to keep its brand visible even after...

White-Label Platform for Charging Infrastructure: Your Brand with Every Charging Session
EV Charging Infrastructure at the Sunstar Swiss Hotel Collection: Multiple Locations, One Centralised Solution with sintio.light
EV Charging Infrastructure at the Sunstar Swiss Hotel Collection: Multiple Locations, One Centralised Solution with sintio.light
HotelsCommercial real estate 1

EV Charging Infrastructure at the Sunstar Swiss Hotel Collection: Multiple Locations, One Centralised Solution with sintio.light

How can EV charging stations at different hotel locations be managed and billed efficiently? The Sunstar Swiss Hotel Collection relies on sintio.light from Sintio. At locations including Klosters and Brissago,...

EV Charging Infrastructure at the Sunstar Swiss Hotel Collection: Multiple Locations, One Centralised Solution with sintio.light