# \[APP\]\[Pro\] Sonnen Batterie - Clean and affordable energy for everyone

**URL:** <https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052>\
**Category:** Apps\
**Tags:** app, energy, homey-pro\
**Created:** [November 27, 2023, 9:46pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052 "2023-11-27T21:46:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [November 27, 2023, 9:46pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/1 "2023-11-27T21:46:10Z")

</div>

Hi all

I’ve just released an app for Sonnen Batterie with foucs on Time-of-Use (ToU).

[Sonnen Batterie App for Homey | Homey](https://homey.app/a/com.sonnen.battery)

> **[Sonnen Batterie](https://homey.app/en-us/app/com.sonnen.battery/Sonnen-Batterie/)**
>
> Clean and affordable energy for everyone.

A new release is in the press, with some breaking changes due to new capabilities (which offers more funcationality).

For those who are not familiar with Time-of-Use with Sonnen Batterie:

- Add possible schedule (from - to) where the battery is paused.
- Add possible schedule (from - to) where the battery is charging (winter = hight tariff, charge your battery when low tariff).
- Reset schedule.

Yes, then added a bunch of capabilities as well.

Love your feedback. If you have previous version install, please remove your device and add again - changing capabilities for devices are not handled very well.

Constructive feedback appreciated.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [December 10, 2023, 11:24am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/2 "2023-12-10T11:24:36Z")

</div>

Hi @Kim_Kokholm I just released support for SonnenBatterie in Power By The Hour, but it is based on the Sonnen app by @bogguard.

If your app has live battery SoC, and live charge/discharge power to/from the battery, I could add your app to be supported too. Do you have these capabilities? And if so, what are their names?

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1948):
>
> Thx! Sucking up or donating always helps getting a feature request implemented kissing_heart So I just released v5.9.1 for you: Battery: Added support for SonnenBatterie. homey-api@3.4.2 I based my code on the screenshot you posted. I’m using measure\_power.batt\_in as the power when the battery is discharging, and measure\_power.batt\_out when the battery is charging. The naming is confusing however, so I hope it is correct. Please test and let us know if it works! (PS: you do need to fill…

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [December 27, 2023, 12:40pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/3 "2023-12-27T12:40:34Z")

</div>

> [@Gruijter](#):
>
> rge power to/from the ba

Hi @Gruijter

FROM batterie: from\_battery\_capability  
TO batterie: to\_battery\_capability

This will be available in next version (1.0.5), this is currently in the verification process.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [December 27, 2023, 1:14pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/4 "2023-12-27T13:14:21Z")

</div>

super! I will add it to PBTH version 6.0.1  
Note that from version 6.0.0 PBTH supports very advanced Return On Investment (ROI) strategies for supported batteries in combination with Day Ahead energy Pricing (DAP)

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2001):
>
> New version 6.0.1 is available as test: [Power by the Hour | Homey](https://homey.app/a/com.gruijter.powerhour/test/) BAT: added support for Sonnen Batterie app. BAT: Added new ROI strategy trigger card. The new ROI trigger card makes running an ROI flow even simpler. Just 2 cards required! Also, this card is available for non-advanced flows as well tada The card gets triggered automatically when a new hour starts. Off course it will only be triggered if you have coupled Day Ahead Pricing to the PBTH battery.

To make optimum use of the ROI calculations you can add a number of charge/discharge power points with the efficiency of that point. So e.g. there is a maximum charging speed, but there is also a most efficient charging speed that has a better power conversion ratio. You can enter those numbers of the Sonnen Batterie yourself in the PBTH battery device.

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [December 29, 2023, 2:19pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/5 "2023-12-29T14:19:32Z")

</div>

Hi all, recent app-update introduces new capabilities like: to/from battery.  
Unfortunately this will cause version incompatibility and you will have to remove/add the SonnenBatterie again. I’ve not yet found a solution for handling change of capability without remove/add device again.

Sorry for the troubles this may cause.

---

<div class="post-metadata">

**Author:** ![Michael\_von\_Barner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_von_barner/32/79082_2.png) [@Michael\_von\_Barner](https://community.homey.app/u/Michael_von_Barner)\
**Post date:** [April 18, 2024, 8:08pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/6 "2024-04-18T20:08:02Z")

</div>

Hi Kim

Is it correct that there are some problems with the app at the moment in Homey Pro?

Best regards  
Michael von Barner/Denmark

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [April 18, 2024, 8:31pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/7 "2024-04-18T20:31:22Z")

</div>

Please re-add the device. Sorry for the inconveinence (or however its spelled)  
I did an update, but try and remove the device and add again - maybe it will solved it.

---

<div class="post-metadata">

**Author:** ![Michael\_von\_Barner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_von_barner/32/79082_2.png) [@Michael\_von\_Barner](https://community.homey.app/u/Michael_von_Barner)\
**Post date:** [April 20, 2024, 6:04am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/8 "2024-04-20T06:04:58Z")

</div>

Hi Kim

It works now, but is it correct that no data comes from “to grid”?

Michael

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [April 22, 2024, 7:42pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/9 "2024-04-22T19:42:26Z")

</div>

Hi @Michael_von_Barner

New version is verification process.  
Test version is available here: [Sonnen Batterie App for Homey | Homey](https://homey.app/a/com.sonnen.battery/test/)

This version addresses this issue. Something is wrong with the api, the value is read elsewhere to fix this.

---

<div class="post-metadata">

**Author:** ![Michael\_von\_Barner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_von_barner/32/79082_2.png) [@Michael\_von\_Barner](https://community.homey.app/u/Michael_von_Barner)\
**Post date:** [April 22, 2024, 8:02pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/10 "2024-04-22T20:02:18Z")

</div>

Hi Kim

Thanks for reply and answer 😊

Michael

---

<div class="post-metadata">

**Author:** ![Mr\_Meri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_meri/32/66733_2.png) [@Mr\_Meri](https://community.homey.app/u/Mr_Meri)\
**Post date:** [July 12, 2024, 11:44am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/11 "2024-07-12T11:44:18Z")

</div>

Hello Kim

First off, great app! I’ve been using my own API scripting before you got here.

I am a little curious to how you are able to make the app read the summarized daily consumption/production, from own solar system, from grid etc.

Have you been able to get reading directly from their app or is it calculated from each update to homey?

Its not so much the current readings that im asking about since i know how to get those myself.

IF they are directly from the their own app, then i would be very curious to know what endpoints you are using.

Kind regards  
Mathias

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [August 7, 2024, 9:09am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/12 "2024-08-07T09:09:40Z")

</div>

Hi @Mr_Meri

The summaries have been developed by mech87, a user on Github. Don’t know if this bows is in this forum 🙂

---

<div class="post-metadata">

**Author:** ![Oscar\_Wannfors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_wannfors/32/114441_2.png) [@Oscar\_Wannfors](https://community.homey.app/u/Oscar_Wannfors)\
**Post date:** [September 16, 2024, 3:55pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/13 "2024-09-16T15:55:40Z")

</div>

Hi Kim,

I am a new owner of a sonnen battery and got aware about how unsmart the device is itself.

What I want is the battery to charge on low price hours and then to use during high price hours. As well, when price is low and battery is fully charged, I want the consumption to go directly from grid.

Before buying a homey pro, will all above be possible with your app?  
Secondly, is price Information for SE4 Sweden possible as well?

Oscar

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [September 17, 2024, 5:58am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/14 "2024-09-17T05:58:08Z")

</div>

Hi @Oscar_Wannfors

I do not know the availability of the tariff prices for sweden.

With the app, you can charge on demand and you can pause the battery. I do this in some extend for my setup - with charging my car.

If your are technical, I can share some postman/REST endpoints for doing the same if you would like to manage without Homey.

---

<div class="post-metadata">

**Author:** ![Oscar\_Wannfors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_wannfors/32/114441_2.png) [@Oscar\_Wannfors](https://community.homey.app/u/Oscar_Wannfors)\
**Post date:** [September 17, 2024, 6:34am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/15 "2024-09-17T06:34:35Z")

</div>

Hi @Kim_Kokholm

Thanks for your answer.  
For other scenarios in homey (not pro) I use the spot price from the Tibber app. Otherwise, maybe power by the hour works?

I am kind of technical but never been doing this before. How does that work? 🙂

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [September 17, 2024, 7:58am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/16 "2024-09-17T07:58:41Z")

</div>

I don’t use power by hour, I know a lot of people are fan of that app.

REST is just the way the app/homey is communicating with Sonnen. Just saying that it can be handled outside of Homey - used that before I’ve started using Homey.

---

<div class="post-metadata">

**Author:** ![Oscar\_Wannfors](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_wannfors/32/114441_2.png) [@Oscar\_Wannfors](https://community.homey.app/u/Oscar_Wannfors)\
**Post date:** [September 18, 2024, 8:08pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/17 "2024-09-18T20:08:28Z")

</div>

Will read more about rest.  
But just to make sure about the homey app. If I use tibber spot price information to control my Shelly devices - can I then use the same info to control the card for sonnen (charging, paus, discharge etc)

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [September 19, 2024, 6:05am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/18 "2024-09-19T06:05:35Z")

</div>

Yes, I believe so.

---

<div class="post-metadata">

**Author:** ![Gabriel\_Kreutzer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gabriel_kreutzer/32/113628_2.png) [@Gabriel\_Kreutzer](https://community.homey.app/u/Gabriel_Kreutzer)\
**Post date:** [September 20, 2024, 2:14pm UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/19 "2024-09-20T14:14:02Z")

</div>

Hallo, ich kann kein Verbindung zur Sonnenbatterie aufbauen. IP und Api sind eingetragen. Wird diese Projekt überhaupt noch weiter gemacht? Oder ist gestorben?

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [September 21, 2024, 8:14am UTC](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052/20 "2024-09-21T08:14:57Z")

</div>

Hi @Gabriel_Kreutzer

Can you please somehow verify that your homey can reach the local ip of your Sonnen batterie. I did some remote debugging with other users for my other apps, where their homey could not reach the local ip of the sonnen batterie.

You will to verify this. Fine you can reach Sonnen batterie dashboard from your phone/pc/browser - but you will have to make sure that your homey (where the app is running) can reach your Sonnen.

I did installed Net Scan and setup a new device:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/13e88d189b2a302d47984fafe9028a47c50a8b95.png)

Use your local sonnen ip and port: 80 - that works for my case.

[Next page](https://community.homey.app/t/app-pro-sonnen-batterie-clean-and-affordable-energy-for-everyone/96052.md?page=2)
