Kostal Kostal Modbus-TCP and Battery Modbus TCP template

Kostal Modbus-TCP and Battery

Reads energy yield, consumption, and battery data from Kostal inverters via Modbus TCP.

This template reads solar energy yield, home consumption, active power, and battery data from Kostal inverters via Modbus TCP. It provides daily, monthly, and yearly yield totals along with grid consumption breakdowns and battery state of charge.

Protocol
Modbus TCP
Connection
Ethernet, Modbus TCP
Registers
12, read only
Brand
Kostal
Key readings
Total AC Active Power · Yield Total · Yield Daily/Monthly/Yearly · Total Home Consumption · Actual State of Charge · Battery Charge/Discharge Power
Last updated

Registers (12)

12 read, 0 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
Yield Total (Ep)kWhRead
Total AC Active Power (Pp)kWRead
Total Home Consumption BatterykWhRead
Total Home Consumption Grid (Ev)kWhRead
Total Home Consumption PVkWhRead
Total Home ConsumptionkWhRead
Total active Power (Pv), (Powermeter)kWRead
Actual State of Charge (Ss)%Read
Actual battery charge_discharge power (Ps)kWRead
Yield YearlykWhRead
Yield DailykWhRead
Yield MonthlykWhRead

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 solar yield and home consumption from Kostal inverters on a cloud dashboard.
  • Track daily, monthly, and yearly energy production totals to verify system performance over time.
  • Create alerts when battery state of charge drops below a defined threshold for extended periods.
  • Compare grid consumption and PV self-consumption to optimize energy usage for your customer.
  • Review battery charge and discharge power remotely to detect abnormal cycling behavior.

Installation

  1. Enable Modbus TCP in the Kostal inverter settings menu and note the IP address assigned to the inverter.

  2. Connect the ModbusCloud Gateway to the same local network as the Kostal inverter.

  3. Import the Kostal Modbus-TCP and Battery template in the ModbusCloud platform and assign the inverter IP address.

  4. Verify that the gateway can reach the inverter on Modbus TCP port 502 and confirm data appears on the dashboard.

  5. Check that float32 values such as Yield Total and Total Home Consumption display correctly, and confirm int16 values for battery power are scaled as expected.

Things to watch for

Modbus TCP is not responding on the Kostal inverter. What should I check?

Ensure Modbus TCP is explicitly enabled in the inverter configuration menu. Some Kostal models have it disabled by default. Also verify the inverter and the gateway are on the same subnet and that port 502 is not blocked by a firewall.

Battery charge and discharge power values look incorrect or out of range.

Battery charge and discharge power registers use int16 format, while most other registers use float32. Confirm your gateway is configured to read these specific registers as int16. A mismatch in data type will produce incorrect values.

Yield values show zero even though the system is producing energy.

Check that the register addresses match your Kostal inverter model and firmware version. Refer to the official Kostal Modbus register map for your specific model. Some older firmware versions may not expose all registers.

Can I write setpoints or control the inverter with this template?

No. This template is read-only and does not include any write registers. It is designed for monitoring solar yield, consumption, and battery data only.

Want to see how it works?

Electrician working in an open distribution board