Hello everyone, I’m currently working on integrating multiple Modbus slaves into my Home Assistant setup, and I’m facing a bit of a challenge. I have several power meters, each connected to the same Modbus bus but with different device addresses. Each of these meters has identical sensors for measuring energy consumption and return from solar panels, heat pumps, and air conditioning units.
The issue I’m encountering is that the configuration for each sensor seems to require a lot of repetition. For example, I have to manually set the name, slave address, and unique_id for each sensor, even though all other parameters are the same. This makes the configuration file quite redundant and difficult to manage, especially as I add more devices.
I was wondering if there’s a smarter way to handle this configuration. Ideally, I’d like to define the sensor parameters once and then apply them to all the slaves, only changing the unique parts like the name and slave address. This would not only simplify the setup but also make it easier to maintain in the future.
Has anyone encountered a similar situation and found a solution? Any tips or examples would be greatly appreciated. If this functionality isn’t currently available, I think it would be a valuable addition to the Modbus integration in Home Assistant.
Thank you in advance for your help and insights! Looking forward to hearing from you.