Kostal Plenticore Daten per skript über Modbus auslesen

  • Danke für die Rückmeldung ;-) - hab auch noch ein paar andere Skripte gepostet (energymanager & byd) - falls Die für Dich von Interesse sind ;-)

    PV: 9,4Kwp, LG 335, Kostal Plenticore, BYD 6,4

  • EDIT: Anfrage gelöscht, hab die Daten gefunden

    Installation: 3.2019 (Prognosen aus 04/2019 für zukünftige Vergleiche)

    27 x LG NeON2 LG320N1C-A5 (Module), Kostal Plenticore 8.5 (WR), BYD HV 10,2 kWh (Speicher)

    Gruppe 1: 12 Module Flachdach bei DN 16° mit ca. -40° SO --> 3,96 kWp

    Gruppe 2: 15 Module Schrägdach bei DN 23° mit ca. -135° NO --> 4,95 kWp

    PVGIS-Prognose:

    Gruppe 1: 3290 kWh/Jahr bzw. 831 kWh/kWp

    Gruppe 2: 3160 kWh/Jahr bzw. 639 kWh/kWp

    Summe der Anlage: 6450 kWh/Jahr

  • So

    ich antworte mir mal selber ;-)

    Habe den Update auf die neuste Kostal Plenticore Firmware vollzogen (UI: 01.07.03325 FW: 01.31), weil ich dachte, dass da vieeel mehr Register mit mehr Informationen vorhanden sind.

    Das hat dazu geführt, dass mein "altes" Skript nicht mehr richtig tickert, da das Register 212 (Battery State) nicht mehr da zu sein scheint.

    Na ja - anbei ein aktualisiertes Skript - falls jemand Interesse hat. Feinheiten sind in der Anfangssektion des Skripts.


    Aufruf:

    python kostal_modbusquery_V003.py


    Output sollte dann so ähnlich wie unten aussehen:




    Starting QUERY ..........

    Inverter article number b'xxxxxxxxx'

    Software-Version IO-Controller (IOC) b'01.30\x00\x00\x00'

    Total DC power 294.63

    State of energy manager 0.0

    Home own consumption from battery 267.28

    Home own consumption from grid 0.0

    Total home consumption Battery 648154.19

    Total home consumption Grid 1994417.5

    Total home consumption PV 882665.25

    Home own consumption from PV 0.0

    Total home consumption 3507481.25

    Isolation resistance 6640000.0

    Power limit from EVU 100.0

    Total home consumption rate 28.99

    Worktime 13005115.0

    Actual cos phi 1.0

    Grid frequency 49.98

    Current Phase 1 0.54

    Active power Phase 1 91.99

    Voltage Phase 1 225.17

    Current Phase 2 0.54

    Active power Phase 2 86.35

    Voltage Phase 2 226.94

    Current Phase 3 0.58

    Active power Phase 3 92.31

    Voltage Phase 3 224.08

    Total AC active power 270.65

    Total AC reactive power 266.99

    Total AC apparent power 380.18

    Battery charge current 20.0

    Number of battery cycles 112.0

    Actual battery charge -minus or discharge -plus current 1.12

    PSSB fuse state 0.0

    Battery ready flag 1.0

    Act. state of charge 91.0

    Battery temperature 22.4

    Battery voltage 264.79

    Cos phi (powermeter) -0.03

    Frequency (powermeter) 49.96

    Current phase 1 (powermeter) 0.31

    Active power phase 1 (powermeter) -55.5

    Reactive power phase 1 (powermeter) 9.9

    Apparent power phase 1 (powermeter) -56.9

    Voltage phase 1 (powermeter) 225.44

    Current phase 2 (powermeter) 0.68

    Active power phase 2 (powermeter) 105.7

    Reactive power phase 2 (powermeter) -80.5

    Apparent power phase 2 (powermeter) 134.3

    Voltage phase 2 (powermeter) 225.8

    Current phase 3 (powermeter) 0.31

    Active power phase 3 (powermeter) -54.4

    Reactive power phase 3 (powermeter) 13.5

    Apparent power phase 3 (powermeter) -56.2

    Voltage phase 3 (powermeter) 226.47

    Total active power (powermeter) -0.1

    Total reactive power (powermeter) -51.5

    Total apparent power (powermeter) -51.5

    Current DC1 0.0

    Power DC1 -0.11

    Voltage DC1 16.7

    Current DC2 -0.0

    Power DC2 -0.23

    Voltage DC2 21.52

    Current DC3 0.0

    Power DC3 0.0

    Voltage DC3 0.0

    Total yield 5281275.5

    Daily yield 33424.23

    Yearly yield 5019377.0

    Monthly yield 577523.25

    Battery actual SOC 91

    Battery Manufacturer b' '

    Battery Model ID 0

    Battery Serial Number 0

    Work Capacity 0

    Inverter Max Power 6565

    Inverter Generation Power (actual) 270

    Generation Energy 2516254800

    Actual battery charge-discharge power 294

    Battery Firmware 0

    Battery Type 4

    Done...

    [[6, 'Inverter article number', 'Strg8', b'10335959'],

    [46, 'Software-Version IO-Controller (IOC)', 'Strg8', b'01.30\x00\x00\x00'],

    [100, 'Total DC power', 'Float', 294.63],

    [104, 'State of energy manager', 'Float', 0.0],

    [106, 'Home own consumption from battery', 'Float', 267.28],

    [108, 'Home own consumption from grid', 'Float', 0.0],

    [110, 'Total home consumption Battery', 'Float', 648154.19],

    [112, 'Total home consumption Grid', 'Float', 1994417.5],

    [114, 'Total home consumption PV', 'Float', 882665.25],

    [116, 'Home own consumption from PV', 'Float', 0.0],

    [118, 'Total home consumption', 'Float', 3507481.25],

    [120, 'Isolation resistance', 'Float', 6640000.0],

    [122, 'Power limit from EVU', 'Float', 100.0],

    [124, 'Total home consumption rate', 'Float', 28.99],

    [144, 'Worktime', 'Float', 13005115.0],

    [150, 'Actual cos phi', 'Float', 1.0],

    [152, 'Grid frequency', 'Float', 49.98],

    [154, 'Current Phase 1', 'Float', 0.54],

    [156, 'Active power Phase 1', 'Float', 91.99],

    [158, 'Voltage Phase 1', 'Float', 225.17],

    [160, 'Current Phase 2', 'Float', 0.54],

    [162, 'Active power Phase 2', 'Float', 86.35],

    [164, 'Voltage Phase 2', 'Float', 226.94],

    [166, 'Current Phase 3', 'Float', 0.58],

    [168, 'Active power Phase 3', 'Float', 92.31],

    [170, 'Voltage Phase 3', 'Float', 224.08],

    [172, 'Total AC active power', 'Float', 270.65],

    [174, 'Total AC reactive power', 'Float', 266.99],

    [178, 'Total AC apparent power', 'Float', 380.18],

    [190, 'Battery charge current', 'Float', 20.0],

    [194, 'Number of battery cycles', 'Float', 112.0],

    [200,

    'Actual battery charge -minus or discharge -plus current',

    'Float',

    1.12],

    [202, 'PSSB fuse state', 'Float', 0.0],

    [208, 'Battery ready flag', 'Float', 1.0],

    [210, 'Act. state of charge', 'Float', 91.0],

    [214, 'Battery temperature', 'Float', 22.4],

    [216, 'Battery voltage', 'Float', 264.79],

    [218, 'Cos phi (powermeter)', 'Float', -0.03],

    [220, 'Frequency (powermeter)', 'Float', 49.96],

    [222, 'Current phase 1 (powermeter)', 'Float', 0.31],

    [224, 'Active power phase 1 (powermeter)', 'Float', -55.5],

    [226, 'Reactive power phase 1 (powermeter)', 'Float', 9.9],

    [228, 'Apparent power phase 1 (powermeter)', 'Float', -56.9],

    [230, 'Voltage phase 1 (powermeter)', 'Float', 225.44],

    [232, 'Current phase 2 (powermeter)', 'Float', 0.68],

    [234, 'Active power phase 2 (powermeter)', 'Float', 105.7],

    [236, 'Reactive power phase 2 (powermeter)', 'Float', -80.5],

    [238, 'Apparent power phase 2 (powermeter)', 'Float', 134.3],

    [240, 'Voltage phase 2 (powermeter)', 'Float', 225.8],

    [242, 'Current phase 3 (powermeter)', 'Float', 0.31],

    [244, 'Active power phase 3 (powermeter)', 'Float', -54.4],

    [246, 'Reactive power phase 3 (powermeter)', 'Float', 13.5],

    [248, 'Apparent power phase 3 (powermeter)', 'Float', -56.2],

    [250, 'Voltage phase 3 (powermeter)', 'Float', 226.47],

    [252, 'Total active power (powermeter)', 'Float', -0.1],

    [254, 'Total reactive power (powermeter)', 'Float', -51.5],

    [256, 'Total apparent power (powermeter)', 'Float', -51.5],

    [258, 'Current DC1', 'Float', 0.0],

    [260, 'Power DC1', 'Float', -0.11],

    [266, 'Voltage DC1', 'Float', 16.7],

    [268, 'Current DC2', 'Float', -0.0],

    [270, 'Power DC2', 'Float', -0.23],

    [276, 'Voltage DC2', 'Float', 21.52],

    [278, 'Current DC3', 'Float', 0.0],

    [280, 'Power DC3', 'Float', 0.0],

    [286, 'Voltage DC3', 'Float', 0.0],

    [320, 'Total yield', 'Float', 5281275.5],

    [322, 'Daily yield', 'Float', 33424.23],

    [324, 'Yearly yield', 'Float', 5019377.0],

    [326, 'Monthly yield', 'Float', 577523.25],

    [514, 'Battery actual SOC', 'U16', 91],

    [517, 'Battery Manufacturer', 'Strg8', b' '],

    [525, 'Battery Model ID', 'U32', 0],

    [527, 'Battery Serial Number', 'U32', 0],

    [529, 'Work Capacity', 'U32', 0],

    [531, 'Inverter Max Power', 'Float', 6565],

    [575, 'Inverter Generation Power (actual)', 'S16', 270],

    [577, 'Generation Energy', 'U32', 2516254800],

    [582, 'Actual battery charge-discharge power', 'S16', 294],

    [586, 'Battery Firmware', 'U32', 0],

    [588, 'Battery Type', 'U16', 4]]

    ----------------------------------

    Doing some Calculations of the received information:

    Left Side Raw Power Generation of Panles : -0.3

    BatteryCharge (-) / Discharge(+) is : 296.6

    Powerfromgrid (-) /To Grid (+) is : 2.7

    Total current Home consumption is : 267.3


    Dateien

    PV: 9,4Kwp, LG 335, Kostal Plenticore, BYD 6,4