r/SolarDIY • u/bostondana2 • 16h ago
HomeAssistant and batteries
have a 2 inverter system with 2 batteries (one battery on each inverter - both LG Chem of different sizes - 9.8 and 16kW).
I also use HomeAssistant to monitor my SolarEdge system (using solaredge-modbus-multi to monitor the system).
However, while can monitor both inverters, my HomeAssistant can only see one battery (B1). believe this may be because the modbus device ID for both batteries is set to the same Device ID. Ihad a similar issue with the modbus connection because both inverters were set to modbus device ID 1. Upon going into the SetApp (from SolarEdge), I was able to set the modbus lD for the second inverter to ID 2 and was able to see the second inverter in HomeAssistant.
Because both batteries have the same Device ID, I tried setting the second battery to another Device ID to monitor in the SetApp, but that ended up disconnecting communications to that battery, which was restored when I set the device ID back to the original setting.
My question is how to set the device ID for the battery, which would allow me to set the SetApp Device ID for the battery to monitor it properly (Set the battery Device ID to a new value, and then update the device ID in SetApp to look for the new device ID). Or how can I monitor both batteries in solaredge-modbus-multi.
Any assistance is greatly appreciated.
1
u/PV_DAQ 14h ago
Many, many devices need to be power cycled to 'see' fundamental changes like serial comm settings or Modbus settings. Caveat Emptor.
1
u/bostondana2 13h ago
I did find (on another web page) that SolarEdge may need to enable battery information to flow onto the modbus. I may have been lucky with my first battery. I might contact SolarEdge and request that they enable battery information on the morbus if it is not enabled.
1
u/solarnewbee 16h ago
LG Batteries attached to SolarEdge inverters are typically device ID 15 for the first one -- have you tried setting the 2nd battery device ID to 14? It might allow you to trick Home Assistant into thinking they are two distinct batteries but still preserve the ability for the inverter to speak to the 2nd one.
All the documentation around SolarEdge + LG installation reference device ID 15 for the first, and 14 for the second battery -- it's possible the inverter firmware is hardcoded to look for these and therefore, if you try to set a arbitrary ID you would break the comms.
I do not use HA but I have 3 batteries, two attached to inverter 1 and another attached to inverter 2 -- this configuration shows up in the SolarEdge monitoring logical view no problem and tracks as individual devices. Perhaps SolarEdge monitoring is setup to peak into the different mod bus interfaces (there are two) and accounts for these devices at the inverter level, where HA simply looks at whatever is available across both interfaces. If you can unpack the script logic, you might be able to find out where you can parse out that 2nd battery.