Kostal Plenticor 7 und ein KSEM Smartmeter in Home Assistant

Hallo Grüß Euch
Ich Bin Neu Hier Vielleicht könnt ihr mir Helfen Habe Mein Home Assistant neu. Mein Problem ist ich habe einen Kostal Plenticor 7 und ein KSEM Smartmeter habe schon alles versucht die werte von Smartmeter zu auslesen. verwende Sunspec. Aber leider keine brauchbaren Werte . Vielen Danke für Tipps lg.Arno

Will den Kostal KSEM mit Modbus in die configuration.yaml Eintragen

modbus:
  - name: "KSEM" #can be anything you want
    type: tcp #modbus over tcp
    host: 192.168.1.100  #insert your KSEM ip address, eg "host: 192.168.1.100"
    port: 502 #insert your KSEM port, eg "port: 502"
    sensors:
    - name: networkreference_power_ksem #power from grid
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 0
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: gridfeed_power_ksem #power to grid
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 2
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: networkreference_energy_ksem #total energy from gird
      slave: 1
      scale: 0.0001
      precision: 3
      address: 512
      scan_interval: 60
      count: 4
      input_type: holding
      data_type: uint64
      device_class: energy
      state_class: total_increasing
      unit_of_measurement: kWh

    - name: gridfeed_energy_ksem #total energy to grid
      slave: 1
      scale: 0.0001
      precision: 3
      address: 516
      scan_interval: 60
      count: 4 
      input_type: holding
      data_type: uint64
      device_class: energy
      state_class: total_increasing
      unit_of_measurement: kWh

    - name: L1_powerpos_ksem #power sent to grid on L1
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 40
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: L1_powerneg_ksem #power taken to grid on L1
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 42
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: L2_powerpos_ksem #power sent to grid on L2
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 80
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: L2_powerneg_ksem #power taken from grid on L2
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 82
      scan_interval: 10
      count: 2 
      input_type: holding
      data_type: uint32

    - name: L3_powerpos_ksem #power sent to grid on L3
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 120
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

    - name: L3_powerneg_ksem #power taken from grid on L3
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 122
      scan_interval: 10
      count: 2
      input_type: holding
      data_type: uint32

Bekomme aber immer diesen Fehler
Konfigurationswarnungen

Invalid config for 'modbus' at configuration.yaml, line 107: L2_powerneg_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->7', got {'name': 'L2_powerneg_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 82, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 119: L3_powerpos_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->8', got {'name': 'L3_powerpos_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 120, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 131: L3_powerneg_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->9', got {'name': 'L3_powerneg_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 122, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 21: networkreference_power_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->0', got {'name': 'networkreference_power_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 0, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 33: gridfeed_power_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->1', got {'name': 'gridfeed_power_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 2, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 45: networkreference_energy_ksem: `count` illegal with `data_type: uint64` 'modbus->0->sensors->2', got {'name': 'networkreference_energy_ksem', 'slave': 1, 'scale': 0.0001, 'precision': 3, 'address': 512, 'scan_interval': 60, 'count': 4, 'input_type': 'holding', 'data_type': 'uint64', 'device_class': 'energy', 'state_class': 'total_increasing', 'unit_of_measurement': 'kWh'} Invalid config for 'modbus' at configuration.yaml, line 58: gridfeed_energy_ksem: `count` illegal with `data_type: uint64` 'modbus->0->sensors->3', got {'name': 'gridfeed_energy_ksem', 'slave': 1, 'scale': 0.0001, 'precision': 3, 'address': 516, 'scan_interval': 60, 'count': 4, 'input_type': 'holding', 'data_type': 'uint64', 'device_class': 'energy', 'state_class': 'total_increasing', 'unit_of_measurement': 'kWh'} Invalid config for 'modbus' at configuration.yaml, line 71: L1_powerpos_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->4', got {'name': 'L1_powerpos_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 40, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 83: L1_powerneg_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->5', got {'name': 'L1_powerneg_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 42, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'} Invalid config for 'modbus' at configuration.yaml, line 95: L2_powerpos_ksem: `count` illegal with `data_type: uint32` 'modbus->0->sensors->6', got {'name': 'L2_powerpos_ksem', 'slave': 1, 'device_class': 'power', 'state_class': 'measurement', 'unit_of_measurement': 'W', 'scale': 0.1, 'address': 80, 'scan_interval': 10, 'count': 2, 'input_type': 'holding', 'data_type': 'uint32'}

Bitte um Hilfe

:pencil2: by tarag: Beiträge zusammengeführt und Code in vorformatierten Text </> formatiert

Hallo Arno,

versuch es mal hiermit:

modbus:

# KSEM

  - name: KSEM 
    type: tcp
    host: 192.168.1.100
    port: 502
    sensors:
    - name: netzbezug_leistung_ksem
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 0
      scan_interval: 10 # Defines the update interval of the sensor in seconds.
      slave_count: 2 # Anzahl zu lesenden Register
      input_type: holding
      data_type: uint32

    - name: netzeinspeisung_leistung_ksem
      slave: 1
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      scale: 0.1
      address: 2
      scan_interval: 10 # Defines the update interval of the sensor in seconds.
      slave_count: 2 # Anzahl zu lesenden Register
      input_type: holding
      data_type: uint32

Und so weiter, die Adressen findest du in der Doku.

Grüße

Hallo Stephan
Erstmal vielen Dank es Funktioniert. ich würde noch die Sensoren für die PV module Benötigen in welcher Doku finde ich die LG. Arno

Würde gerne noch diese Sensoren hinzufügen aber ich weiß leider nicht die Namen von den Sensoren.IM KSEM Zählt er sie nämlich zusammen Wäre sehr Dankbar Stephan wenn Du mir noch einmal Hilfst LG.Arno

:crayon:by HarryP: Zusammenführung Doppelpost (bitte “bearbeiten” Funktion nutzen)

Hallo Arno,

die Werte kommen ja vom Wechselrichter, nicht vom KSME. Da gibt es eine Integration für:

Schau dir das mal an.

Hallo Danke Dir. Habe ich aber ich kann die Entitäten nicht finden wo er die Gesamteinspeisung ausgibt LG.Arno


Habe einen Plenticore 7 Plus und einen PIKO 3.0-2 MP + Aber er Zeigt mir nur den Plenticore 7 an Im Smartmeter sind beide Zusammen gezählt.LG.Arno

:crayon:by HarryP: Zusammenführung Doppelpost (bitte “bearbeiten” Funktion nutzen)

Schau dir mal hier unter Downloads

die Schnittstellenbeschreibung Modbus an, da findest du die Adressen. Ich habe nur einen WR, da bekomme ich alles was ich brauch von der Integration. Ob die Summe der beiden dem KSEM bekannt ist, kann ich nicht genau sagen, finde auch erstmal nichts dazu

Danke Dir Stephan für Deine Bemühungen werde alle Sensoren Durchschauen LG.Arno :smiley:

Hallo

Hast du den nötigen Sensoren für die Gesamtwerte gefunden?

LG Dieter