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
by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)