wimleers / homebridge-sma-home-manager

SMA Home Manager & Inverter plug-in for Homebridge
GNU General Public License v2.0
10 stars 2 forks source link

[Feature Request] Support setups with PV inverter only, no SMA Home Manager? #15

Closed StijnDC closed 1 year ago

StijnDC commented 1 year ago

Hi Wim,

I've been looking for a replacement for the old SMA plugin and this seems to really fit the bill. Currently however I Don't have a Sunny manager. Would it be possible to enable just providing the readouts of the inverter using this plugin when no energy manager is detected? I Would love to be able to read the data properly instead of interpreting lux values.

Thanks!

wimleers commented 1 year ago

While theoretically possible, this would massively increase the complexity of this codebase.

This plugin specifically reads as little as possible from the PV inverter, and as much as possible from the SMA Home Manager.

Why? Because the inverter's data can only be read through Modbus. Which is known to be brittle and slow. If you read too often, it's known to crash. Every piece of data you want requires reading a separate Modbus register. It works, but is not a good fit for showing realtime data.

In stark contrast: the SMA Home Manager 2.0's data: it is broadcast once per second on the network. Perfect.

So if I were to add support for only PV inverters, then I'd have to

  1. read far more Modbus registers and ignore half of the data that the SMA Home Manager 2.0 is broadcasting 🤪
  2. or maintain two different codebases, of which I only use one

Conclusion: I'm afraid I can't do this. It's more of a support burden than I'm willing to bear.

I suggest:

Good luck!