Kostal Kostal Smart Energy Meter KSEM Modbus TCP template

Kostal Smart Energy Meter KSEM

Reads energy data from Kostal Smart Energy Meter via Modbus TCP

This template reads energy data from the Kostal Smart Energy Meter (KSEM) via Modbus TCP. It provides grid power, home consumption, and inverter AC output. Compatible with both KSEM G1 and G2 models.

Protocol
Modbus TCP
Connection
Ethernet, Modbus TCP
Registers
3, read only
Brand
Kostal
Key readings
Grid power Total · Home consumption · Sum output inverter AC
Compatible models
Kostal Smart Energy Meter G1 · Kostal Smart Energy Meter G2
Last updated

Registers (3)

3 read, 0 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
Grid power TotalkWRead
Home consumptionkWRead
Sum output inverter ACkWRead

Loading registers…

Send your device list

If a device is not in the library yet, we build the template for free as soon as we have the register data.

Number of installations (optional)

Use cases

  • Monitor real-time grid power exchange and home consumption on a live ModbusCloud dashboard.
  • Track total inverter AC output across multiple Kostal PV installations from a single portal.
  • Create an alert when grid export or import exceeds a defined threshold for demand management.
  • Log historical energy data to verify PV system performance against design estimates.
  • Add battery power monitoring by extending the template with register 40984 for hybrid systems.

Installation

  1. Log in to the Kostal Smart Energy Meter dashboard using the password printed on the type plate on the side of the device.

  2. Enable the Modbus TCP slave function under the Modbus settings section of the KSEM dashboard.

  3. Connect the KSEM and the ModbusCloud Gateway to the same local network.

  4. Configure the gateway with the IP address of the KSEM, port 502, and Modbus unit address 1.

  5. Import the Kostal Smart Energy Meter template in the ModbusCloud platform and assign it to the gateway.

  6. Verify that grid power, home consumption, and inverter AC output values appear on your ModbusCloud dashboard.

Things to watch for

The gateway cannot read any data from the KSEM. What should I check?

Make sure the Modbus TCP slave function is activated in the KSEM dashboard under Modbus settings. Also verify that the gateway IP address, port 502, and unit address 1 are correctly configured.

How do I find the password to access the KSEM configuration?

The initial password is printed on the type plate on the side of the Kostal Smart Energy Meter. If the password has been changed, contact the person who commissioned the device.

Can I monitor battery power with this template?

Battery power is available at Modbus address 40984 (function code 0x03, int32, in watts) but is not included in the default template. You can add it as a custom data point in ModbusCloud.

What data type do the registers use?

All registers in this template use the int32 (32-bit signed integer) data type. Make sure your data type setting matches, otherwise values will appear incorrect or zero.

Want to see how it works?

Electrician working in an open distribution board