Fix multi-inverter entity collisions - #89
Conversation
Scope entity and device identifiers per hub so multiple Fronius Modbus entries can coexist, and align meter polling and discharge control behavior with the configured hardware. Document multi-inverter support and credit the original idea from PR redpomodoro#36.
|
this repo is dead, switch over to califos fork where its already fixed |
|
would be nice if this repo could be archived and a link to https://github.com/callifo/fronius_modbus added in the readme? @redpomodoro ? This repo still shows up first in Google searches |
|
Tested the multi-inverter unique-ID approach successfully on a live Home Assistant installation with multiple standalone Fronius inverters, each on its own IP address. Before scoping the unique IDs per hub, only the first inverter's entities registered correctly. After including This confirms that the entity-collision portion of this PR fixes the issue in a real multi-inverter setup. I have also opened PR #103 to address the separate PyModbus |

Summary
fronius_modbusconfig entriesMeter 1Discharge limitso it writes the discharge setterWhy
Multiple inverter setups currently collide in Home Assistant because entity IDs are not scoped per hub. This prevents additional config entries from registering cleanly.
Validation
Tested on Home Assistant Core
2026.3.4with three Fronius Modbus entries. All three inverters were added successfully, with battery and meter entities visible for each.Attribution
This builds on the original approach proposed in #36 by @larsxschneider.
You can use it here: