Hello,
I’m currently trying out HA and would like to integrate devices via Modbus.
To do this, I changed the configuration.yaml:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homeassistant:
packages: !include_dir_named packages
Then added the folder “pachages” and in it e.g. sma.yaml
modbus:
name: sma
type: tcp
host: 192.168.115.25
port: 502
sensors:
- name: PV-Leistung
unit_of_measurement: W
slave: 3
address: 30775
count: 2
data_type: uint32
But I get the following error message:
Home Assistant Core
Setup failed for 'modbus': Invalid config.
07:22:08 – (FEHLER) setup.py
Invalid config for 'modbus' at packages/sma.yaml, line 7: PV-Leistung: `count` illegal with `data_type: uint32` 'modbus->0->sensors->0', got {'name': 'PV-Leistung', 'unit_of_measurement': 'W', 'slave': 3, 'address': 30775, 'count': 2, 'data_type': 'uint32', 'scan_interval': 15}, please check the docs at https://www.home-assistant.io/integrations/modbus
07:22:08 – (FEHLER) config.py