I use SBFspot to fetch the inverter data from a SMA Sunny Boy 4000TL-21 inverter. The data points are stored in a SQLite database which I query by means of a Python script, and then I post the relevant parameters to openHAB over the REST API.
Details: Example on how to access data of a Sunny Boy SMA solar inverter - #69 by shutterfreak