
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
| Name | Unit | Access | Address (Hidden until you enter your email) | Function (hidden) | Type (hidden) |
|---|---|---|---|---|---|
| Yield Total (Ep) | kWh | Read | |||
| Total AC Active Power (Pp) | kW | Read | |||
| Total Home Consumption Battery | kWh | Read | |||
| Total Home Consumption Grid (Ev) | kWh | Read | |||
| Total Home Consumption PV | kWh | Read | |||
| Total Home Consumption | kWh | Read | |||
| Total active Power (Pv), (Powermeter) | kW | Read | |||
| Actual State of Charge (Ss) | % | Read | |||
| Actual battery charge_discharge power (Ps) | kW | Read | |||
| Yield Yearly | kWh | Read | |||
| Yield Daily | kWh | Read | |||
| Yield Monthly | kWh | Read |
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.
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
Enable Modbus TCP in the Kostal inverter settings menu and note the IP address assigned to the inverter.
Connect the ModbusCloud Gateway to the same local network as the Kostal inverter.
Import the Kostal Modbus-TCP and Battery template in the ModbusCloud platform and assign the inverter IP address.
Verify that the gateway can reach the inverter on Modbus TCP port 502 and confirm data appears on the dashboard.
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?











