im not an expert on splitting through files like that im sorry. I basically have nothing in sensor.yaml anymore related to modbus. I moved everything into the config.yaml. this is my working config now for the modbus. you put the sensors right below the modbus: entry.
#################################
### SOLAR INVERTERS ###
#################################
modbus:
- name: SB 6.0 Inverter
type: tcp
host: 192.168.1.147
port: 502
sensors:
- name: SB 6.0 Solar Power
device_class: power
unit_of_measurement: W
slave: 3
address: 30775
input_type: input
count: 2
scan_interval: 60
- name: SB 6.0 Total Yield Inverter
device_class: power
unit_of_measurement: Wh
slave: 3
address: 30529
input_type: input
count: 2
scan_interval: 60
- name: SB 6.0 Internal Temp Inverter
device_class: temperature
unit_of_measurement: C
scale: 0.1
precision: 1
slave: 3
address: 34113
input_type: input
count: 2
scan_interval: 300
- name: SB 6.0 Inverter 2
type: tcp
host: 192.168.1.123
port: 502
sensors:
- name: SB 6.0 Solar Power 2
device_class: power
unit_of_measurement: W
slave: 3
address: 30775
input_type: input
count: 2
scan_interval: 60
- name: SB 6.0 Total Yield Inverter 2
device_class: power
unit_of_measurement: Wh
slave: 3
address: 30529
input_type: input
count: 2
scan_interval: 60
- name: SB 6.0 Internal Temp Inverter 2
device_class: temperature
unit_of_measurement: C
scale: 0.1
precision: 1
slave: 3
address: 34113
input_type: input
count: 2
scan_interval: 300
Invalid config for [modbus]: [register] is an invalid option for [modbus]. Check: modbus->modbus->0->sensors->0->register. (See /config/configuration.yaml, line 19).