Janitza UMG 604 Pro in HA

Guten Abend,
ich habe mal eine Frage zu dem Thema Modbus in HA und der Integration.

Ich möchte die Leistung der WP gerne als Datenpunkt haben. Dazu habe ich in der configuration.yaml folgendes eingefügt:
modbus: !include modbus.yaml

Dann habe ich eine modbus.yaml erstellt und dort dann folgende Werte eingetargen:

  - name: Wärmepumpe_hub
    type: tcp
    host: 192.168.178.5
    port: 502
    sensors:
        - name: WP_Leistung
          slave: 1
          adress: 19018
          input_type: float
          unit_of_measurement: W
          state_class: measurement
          scale: 0,001
          offset: 0
          precision: 1
          data_type: unit32

Aber Leider bekomme ich da immernoch keine Werte. Immer wieder schreibt mir HA das dort fehler in der config sind.

Invalid config for 'modbus' at modbus.yaml, line 12: expected float for dictionary value 'modbus->0->sensors->0->scale', got '0,001', please check the docs at https://www.home-assistant.io/integrations/modbus Invalid config for 'modbus' at modbus.yaml, line 15: value must be one of [<DataType.CUSTOM: 'custom'>, <DataType.FLOAT16: 'float16'>, <DataType.FLOAT32: 'float32'>, <DataType.FLOAT64: 'float64'>, <DataType.INT16: 'int16'>, <DataType.INT32: 'int32'>, <DataType.INT64: 'int64'>, <DataType.STRING: 'string'>, <DataType.UINT16: 'uint16'>, <DataType.UINT32: 'uint32'>, <DataType.UINT64: 'uint64'>] for dictionary value 'modbus->0->sensors->0->data_type', got 'unit32', please check the docs at https://www.home-assistant.io/integrations/modbus Invalid config for 'modbus' at modbus.yaml, line 6: required key 'address' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus Invalid config for 'modbus' at modbus.yaml, line 8: 'adress' is an invalid option for 'modbus', check: modbus->0->sensors->0->adress, please check the docs at https://www.home-assistant.io/integrations/modbus Invalid config for 'modbus' at modbus.yaml, line 9: value must be one of ['holding', 'input'] for dictionary value 'modbus->0->sensors->0->input_type', got 'float', please check the docs at https://www.home-assistant.io/integrations/modbus

Vielleicht weiß jemand wie ich das auslesen kann. Oder gibt es eine andere Möglichkeit solch ein Zähler auszulesen?

Danke für eure Mithilfe

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)

s.a.: (Neues Update & Features - Hier in der Community 🫶)

schon mal mit punkt statt komma versucht?

scale: 0.001

nur so eine Idee…

EDIT:
Im Übrigen ist das der Strom

19018 float _G_I_SUM3 A Vector sum; IN=I1+I2+I3

du suchst

19026 float _G_P_SUM3 W Psum3=P1+P2+P3

Moin, habe ich geändert. Leider noch ohne Erfolg. Fehlermeldung kommt wieder.

Der Zähler hat auch eine REST API, prüfe mal ob diese aktiv ist:

http://192.168.175.5:8088/read.json?GetActValues=0

http://192.168.175.5:8088/:8088/read.json?GetBusValues=0

Da kannst du dann recht simpel mit einer Abfrage die gewünschten json Blöcke übernehmen. Hier mal ein Beispiel:

rest:
- authentication: basic
    username: "admin"
    password: "deinpasswort"
    scan_interval: 10
    resource: http://192.168.178.5:8088/read.json?GetBusValues=256
    sensor:
      - name: "Gesamtzaehler_Trafo"
        value_template:  >-
            {% set invalid_value = 'unavailable' %}
            {% set state = states('sensor.Gesamtzaehler_Trafo') %}
            {% if state != invalid_value %} {{ state_attr('sensor.Gesamtzaehler_Trafo', 'Value') }}
            {% else %}Not OK
            {% endif %}
        json_attributes_path: "$.256.10"
        json_attributes:
          - "Value"

Guten Morgen,

Ich kenne mich mit der Rest ApI leider so gar nicht aus. Ich hab das Janitza einfach gegen einen SMA Energy Meter getauscht und mit der SMA-EP Integration das Gerät ausgelesen. Das klappt wesentlich einfacher für mich und hat den gleichen Effekt. Danke aber für eure Hilfe.