mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
304 stars 79 forks source link

2 inverters on Homeassistant #308

Closed Markusunterholzer closed 1 week ago

Markusunterholzer commented 2 weeks ago

I have a question, I have 2 identical Sungrow SH10rt inverters, both with storage. One runs in normal mode, the second in stand-alone mode. I would like to integrate both into my Homassistant instance. How do I do that? It is not enough to rename all the sensors in the modbus_sungrow.yaml (sensor.xxx to sensor.2xxx) Can someone help me?

TCzerny commented 1 week ago

Did you add/renamed the host_ip, slave and port variables in modbus_sungrow.yaml and secrets.yaml too ?

on the header of modbus_sungrow.yaml: host: !secret sungrow_modbus_host_ip_2 port: !secret sungrow_modbus_port_2

on all sensors: device_address: !secret sungrow_modbus_slave_2

and the add in secrets.yaml

sungrow_modbus_host_ip: 192.168.178.xxx # TODO update with the IP of your inverter. Check your router. sungrow_modbus_port: 502 # TODO update with the Modbus port of your inverter. Default is '502' sungrow_modbus_slave: 1 #TODO update with the slave address of your inverter. Default is '1'

sungrow_modbus_host_ip_2: 192.168.178.xxx # TODO update with the IP of your inverter. Check your router. sungrow_modbus_port_2: 502 # TODO update with the Modbus port of your inverter. Default is '502' sungrow_modbus_slave_2: 1 #TODO update with the slave address of your inverter. Default is '1'

Here you can find a detailed 'how to':

#194

Markusunterholzer commented 1 week ago

Thank you after I renamed all sensors, scripts and automation it worked immediately.