# Sonnen Battery API

**URL:** <https://community.homey.app/t/sonnen-battery-api/54658>\
**Category:** Questions & Help\
**Tags:** app\
**Created:** [November 11, 2021, 10:28am UTC](https://community.homey.app/t/sonnen-battery-api/54658 "2021-11-11T10:28:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [November 11, 2021, 10:28am UTC](https://community.homey.app/t/sonnen-battery-api/54658/1 "2021-11-11T10:28:41Z")

</div>

Hi,

I was wondering if someone has experience with the API of Sonnen Battery to connect this to Homey?

Best regards  
Jan Wynen

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 12, 2021, 1:47am UTC](https://community.homey.app/t/sonnen-battery-api/54658/2 "2021-11-12T01:47:08Z")

</div>

Not sure what you mean. Please provide for a link to the product in the app store, and specify your Homey. Cloud/bridge or Pro?

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [November 12, 2021, 7:11am UTC](https://community.homey.app/t/sonnen-battery-api/54658/3 "2021-11-12T07:11:47Z")

</div>

Hi,

I Have a Homey Pro. There is no App for this battery brand.

I know it has API JSON & Webhook capabilities and also KNX if you get an extra module.  
Normally you can read out the capacity and the solar input of the battery.  
Then I could turn on the Heatpump of something else for example when the battery is full.

But I don’t know how to work with an API JSon or Webhook.

I was hoping that someone could help me with it or give me some info how to start with it.

Best regards  
Jan

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 12, 2021, 3:09pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/4 "2021-11-12T15:09:38Z")

</div>

Hi Jan,

Maybe this gets you going! Seems very related.

> [@Weatherdata in variables (openweather and meteoserver) with Homeyscript](https://community.homey.app/t/weatherdata-in-variables-openweather-and-meteoserver-with-homeyscript/36890):
>
> When making a api call for weather data I experienced that I had to make many flows to get the weatherdata for the upcoming 24 hours. 24 flows for a call every hour and 24 flows for processing the json data. And this is only for 1 forecast e.g rain. Therefore I made a little script to get the weatherdata from openweather and meteoserver. Special thx to @robertklep for his great help. Just make 1 flow running this script with Homeyscript. Run it e.g every hour. Do not exceed your maximum of api …

---

<div class="post-metadata">

**Author:** ![Gibbi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gibbi/32/56876_2.png) [@Gibbi](https://community.homey.app/u/Gibbi)\
**Post date:** [July 3, 2022, 8:48am UTC](https://community.homey.app/t/sonnen-battery-api/54658/5 "2022-07-03T08:48:10Z")

</div>

I am looking for the same thing as Jan.

I have a Sonnen hybrid that I would love to get tied into Homey, so when the Battery is full it can send to the Tesla Smart Charger App to start charging our car.

Any ideas or input would be much appriciated.

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [July 23, 2022, 12:29pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/6 "2022-07-23T12:29:03Z")

</div>

Hi,

I’m still working on this.

I’m trying to program an api for this, but I don’t have much time for it because of work.

When I have more info I will post it here.

Best regard  
Jan

---

<div class="post-metadata">

**Author:** ![Gibbi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gibbi/32/56876_2.png) [@Gibbi](https://community.homey.app/u/Gibbi)\
**Post date:** [July 25, 2022, 4:23pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/7 "2022-07-25T16:23:42Z")

</div>

Yeah I trying to make a Flow where I use the Webhook API to send when the Battery is full.

So far I used the Webhook Manager in order to recieve an event called charge, but I am lacking the knowledge on how to get it show/react only to the Battery level.

Guessing it would be these two:

_“BatteryCharging”: false,_  
_“BatteryDischarging”: false,_

or

_“FullChargeCapacity”:_

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/1/a17b08dd3f50ff153371956e584ebda797aaf01e.png)

The Rest of the Flow works like a charm with the Tesla Smart App

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [August 28, 2022, 3:39pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/8 "2022-08-28T15:39:05Z")

</div>

Hi,

Did you manage to get it working?

Best regards  
Jan

---

<div class="post-metadata">

**Author:** ![Till](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/till/32/33841_2.png) [@Till](https://community.homey.app/u/Till)\
**Post date:** [September 25, 2022, 10:38am UTC](https://community.homey.app/t/sonnen-battery-api/54658/9 "2022-09-25T10:38:07Z")

</div>

Hello …do you only use the Sonnen battery or have the whole system installed from Sonnen??

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [September 25, 2022, 7:10pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/10 "2022-09-25T19:10:20Z")

</div>

Hi,

I only have a Battery from Sonnen.

But it would be handy when the battery is full that we then can send a message to the Car or washing machine to start

---

<div class="post-metadata">

**Author:** ![bogguard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bogguard/32/72885_2.png) [@bogguard](https://community.homey.app/u/bogguard)\
**Post date:** [May 25, 2023, 12:18pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/11 "2023-05-25T12:18:11Z")

</div>

I’ve submitted an app for review that’s supporting the SonnenBatterie.  
Will keep you posted when it’s reviewed.

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [May 25, 2023, 12:55pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/12 "2023-05-25T12:55:33Z")

</div>

Hi,  
That would be great !!

---

<div class="post-metadata">

**Author:** ![bogguard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bogguard/32/72885_2.png) [@bogguard](https://community.homey.app/u/bogguard)\
**Post date:** [May 26, 2023, 7:43am UTC](https://community.homey.app/t/sonnen-battery-api/54658/13 "2023-05-26T07:43:50Z")

</div>

App just became available. You can find it here.

> **[Sonnen](https://homey.app/nl-nl/app/io.intherealworld.sonnen/Sonnen/)**
>
> Intelligent home energy storage

Feel free to add suggestions and don’t forget to put your API key in the settings screen as otherwise you won’t get measurements in.

---

<div class="post-metadata">

**Author:** ![JanWynen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janwynen/32/33967_2.png) [@JanWynen](https://community.homey.app/u/JanWynen)\
**Post date:** [May 26, 2023, 10:16am UTC](https://community.homey.app/t/sonnen-battery-api/54658/14 "2023-05-26T10:16:40Z")

</div>

Hi,

I’ve just added it, I have a dual Sonnen a Master and a Slave.  
Homey already finds them both.

But what with the API key, i Only have 1 ?  
Or am i doing something wrong ?

---

<div class="post-metadata">

**Author:** ![bogguard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bogguard/32/72885_2.png) [@bogguard](https://community.homey.app/u/bogguard)\
**Post date:** [May 28, 2023, 7:44am UTC](https://community.homey.app/t/sonnen-battery-api/54658/15 "2023-05-28T07:44:16Z")

</div>

Hi Jan,

I personally don’t have experience with a master/slave setup so unsure if it’s a different API key per battery.  
Normally you should find your API key for your battery through [https://find-my.sonnen-batterie.com/](https://find-my.sonnen-batterie.com/)  
Go to configure Assistant 2.0, log in with User and your password (you can find that on your battery)  
Then go to the menu \> Software-Integration \>cop y your API key and fill it in in your homey battery settings screen.

Make sure the ‘read-API’ is activated.

---

<div class="post-metadata">

**Author:** ![Rikard\_Lundgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikard_lundgren/32/49501_2.png) [@Rikard\_Lundgren](https://community.homey.app/u/Rikard_Lundgren)\
**Post date:** [June 26, 2023, 8:16am UTC](https://community.homey.app/t/sonnen-battery-api/54658/16 "2023-06-26T08:16:52Z")

</div>

You’re my hero and I definitely love you for doing this! 😃😃 😃

I have my Sonnenbatterie 10 Performance and Sonnenprotect 8000 waiting outside the house for installation since a week back. Can’t wait to get it online and try this app.

@bogguard please let me know if I can be of any help testing, validating or just trying new things out in order to facilitate the development of your app. I would really like to help you in the ways I can.

update: Check your donation account. 😉

---

<div class="post-metadata">

**Author:** ![bogguard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bogguard/32/72885_2.png) [@bogguard](https://community.homey.app/u/bogguard)\
**Post date:** [June 26, 2023, 3:24pm UTC](https://community.homey.app/t/sonnen-battery-api/54658/17 "2023-06-26T15:24:29Z")

</div>

Thanks Rikard,

Feel free to share your feedback when using it.  
Good to know you’re available to test in case of new features. Feel free to do suggestions as well if you miss any flow cards.

---

<div class="post-metadata">

**Author:** ![Rikard\_Lundgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikard_lundgren/32/49501_2.png) [@Rikard\_Lundgren](https://community.homey.app/u/Rikard_Lundgren)\
**Post date:** [June 27, 2023, 9:01am UTC](https://community.homey.app/t/sonnen-battery-api/54658/18 "2023-06-27T09:01:40Z")

</div>

No worries, my pleasure.

When it comes to feature suggestions, do you want that to be submitted in this thread or somewhere else?

---

<div class="post-metadata">

**Author:** ![bogguard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bogguard/32/72885_2.png) [@bogguard](https://community.homey.app/u/bogguard)\
**Post date:** [June 27, 2023, 10:46am UTC](https://community.homey.app/t/sonnen-battery-api/54658/19 "2023-06-27T10:46:12Z")

</div>

In this thread is perfect.

---

<div class="post-metadata">

**Author:** ![Rikard\_Lundgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rikard_lundgren/32/49501_2.png) [@Rikard\_Lundgren](https://community.homey.app/u/Rikard_Lundgren)\
**Post date:** [June 28, 2023, 6:31am UTC](https://community.homey.app/t/sonnen-battery-api/54658/20 "2023-06-28T06:31:26Z")

</div>

I will probably have more concrete suggestions once the equipment is installed and online.

However already now I know I want to do the following things and you are more than welcome to comment on them given your current good knowledge about Sonnen and their APIs:

**1. Want to read out the actual production power in watts from the PV-system.**  
This one is important as a source of data to automate many other things)

**2. Be able to read out the status of the SonnenProtect 8000.**  
This will be used to e.g. have a trigger for when the external power grid goes offline and therefore automate various controlled shut down of unneccessary and peripheral equipment etc.

**3. Changing modes and settings.**  
In order to automate the charge and discharge in relation to the spot prices and availability of solar power. From what I’ve seen from the “outside” of the Sonnen community there are no modes to do this automatically (ToU or self dependance does not really fulfill this) This probably means changing modes etc. Does the API support this?

Thanks for the dialogue! 🙂

[Next page](https://community.homey.app/t/sonnen-battery-api/54658.md?page=2)
