evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.29k stars 604 forks source link

Handle SMA "NaN-Values" via Modbus plugin #3030

Closed premultiply closed 2 years ago

premultiply commented 2 years ago

Is your feature request related to a problem? Please describe. SMA uses special "NaN-Values" on their own SMA Modbus-Profile (Non-SunSpec) which are currently unhandled by evcc so they appear es very large numbers if a value is currently not available if the inverter is in standby at night for example. This special handling is required for SMA Smart Energy Hybrid inverters as there is currently no other way to retrieve all requested data values by other supported protocols like Speedwire or SunSpec Profiles.

Describe the solution you'd like Implement a way to mask or map these special values so that they will return as 0. The NaN-Values are documented by SMA. See attached document.

Describe alternatives you've considered Use external scripts or other solutions to poll and process the values but this is not compatible with evcc's concept of integrated templates.

Additional context grafik 721_sma_modbus-tb-de-13.pdf

andig commented 2 years ago

Wenn ich es richtig verstehe:

Ich hab eine Idee :)

premultiply commented 2 years ago

Ich überlege gerade ob man das nicht von XXXXsma auf XXXXnan umbenennen sollte. Das taucht auch immer mal wieder bei anderen Herstellern/Geräten auf. Dann wäre es etwas generischer.

andig commented 2 years ago

Yep 👍🏻 Dann auch überall wo jetzt schon verwendet

premultiply commented 2 years ago

3120