Read data from Kostal inverter using TCP Modbus and Python

Kostal.read(your_ip, 1502)
consumptionbat: consumption from battery (W)
consumptiongrid: consumption from grid (W)
consumptionpv: consumption from panels (W)
consumption_total: full consumption (W)
inverter: inverter output (W)
batteryamp: ampere battery (A)
batteryvolt: voltage battery (V)
powerToBattery: load/unload battery (W)
batteryflag: 0 = discharge, 0.5 = idle, 1 = charge
batterypercent: state of charge battery (%)
dc1: production line 1 (W)
dc2: production line 2 (W)
dc3: production line 3 (W)
generation: full production (W)
powerToGrid: power to grid (W)
surplus: surplus production (W)
dailyyield: daily power production (kWh)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store