Replies: 1 comment 4 replies
-
|
I know there's someone (or some people) out there that say they have it like that, but I don't think I've ever seen their particular file structure and YAML structure. It might be possible to do using the various However, the Modbus integration has certain expectations. For example, you can't have any "hub" twice. So this won't work: modbus:
- name: SungrowSHx
type: tcp
host: 10.1.1.1
port: 502
sensors:
- name: Sensor 1
address: 1234
- name: Sensor 2
address: 5678your_battery_stuff.yaml: modbus:
- name: SungrowSHx
type: tcp
host: 10.1.1.1
port: 502
sensors:
- name: Sensor 3
address: 9876
- name: Sensor 4
address: 5432Also, it rejects having two hubs with the same host & port, so this won't work either: modbus:
- name: SungrowSHx
type: tcp
host: 10.1.1.1
port: 502
sensors:
- name: Sensor 1
address: 1234
- name: Sensor 2
address: 5678your_battery_stuff.yaml: modbus:
- name: SungrowBattery
type: tcp
host: 10.1.1.1
port: 502
sensors:
- name: Sensor 3
address: 9876
- name: Sensor 4
address: 5432Yes, you can even use - name: Sensor 3
address: 9876
- name: Sensor 4
address: 5432your_normal_stuff.yaml: modbus:
- name: SungrowSHx
type: tcp
host: 10.1.1.1
port: 502
sensors: !include your_battery_sensors.yaml # does not work
- name: Sensor 1
address: 1234
- name: Sensor 2
address: 5678
- !include your_battery_sensors.yaml # does not work
!include your_battery_sensors.yaml # does not workSadly, the option to have multiple "top level" keys, like - name: Sensor 3
address: 9876
- name: Sensor 4
address: 5432your_normal_stuff.yaml: modbus:
- name: SungrowSHx
type: tcp
host: 10.1.1.1
port: 502
sensors general:
- name: Sensor 1
address: 1234
- name: Sensor 2
address: 5678
sensors battery: !include your_battery_sensors.yaml # does not workSo... I don't know. Maybe if the sensor definitions were moved into a separate directory ...
modbus:
- name: SungrowSHx
sensors: !include_dir_merge_list sensors/
...sensors/general.yaml: sensors/your-extra-battery-sensors.yaml: If it's possible, someone enlighten us please. ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I am not very adept at Home assistant. Maybe this is a stupid question, but I thought i should ask before trying it myself.
I'm planning to migrate to the new 2026-version. Up until now I have used added battery registers (for SBR096) and other "stuff" to the modbus_sungrow.yaml-file. It works, but the file becomes large and difficult to update. Is it possible to create and use a separate .yaml-file for battery registers (i.e. modbus_sungrow_battery.yaml) in a similar vein to that used for multiple inverters? I understand that there would have to be other modifications also. Would I create more problems than i solve?
Beta Was this translation helpful? Give feedback.
All reactions