# Example on how to access data of a Sunny Boy SMA solar inverter

**URL:** <https://community.openhab.org/t/example-on-how-to-access-data-of-a-sunny-boy-sma-solar-inverter/50963>\
**Category:** Tutorials & Examples\
**Tags:** solar\
**Created:** [September 6, 2018, 9:54pm UTC](https://community.openhab.org/t/example-on-how-to-access-data-of-a-sunny-boy-sma-solar-inverter/50963 "2018-09-06T21:54:12Z")\
**Posts on this page:** 1\
**Showing post:** 69

<div class="post-metadata">

**Author:** ![shutterfreak](https://community.openhab.org/user_avatar/community.openhab.org/shutterfreak/32/74067_2.png) [@shutterfreak](https://community.openhab.org/u/shutterfreak)\
**Post date:** [March 28, 2023, 7:20pm UTC](https://community.openhab.org/t/example-on-how-to-access-data-of-a-sunny-boy-sma-solar-inverter/50963/69 "2023-03-28T19:20:25Z")

</div>

I missed this thread.

Here’s how I approiached this issue by means of SBFspot and the openHAB REST API:

> [@Integrate solar inverter data through SBFspot](https://community.openhab.org/t/integrate-solar-inverter-data-through-sbfspot/145640/1):
>
> Some people use SBFspot to log the data from their inverters and possibly also export them to [PVOutput.org](http://PVOutput.org). When you have an older SMA inverter (lacking the IP interface), you may access the inverter by means of Bluetooth, e.g. from a Raspberry Pi running SBFspot and openHAB. I wrote a simple Python script that reads the data from the SQLite database managed by SBFspot and posts the relevant values to openHAB by means of the REST API. Make sure to create the relevant Items first. I assign the …

In essence, I rely on SBFspot to get the inverter data through bluetooth and store it in a SQLite database. Then I query this SQLite database and post relevant data to openHAB through the REST API.

---

_[View the full topic](https://community.openhab.org/t/example-on-how-to-access-data-of-a-sunny-boy-sma-solar-inverter/50963)._
