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

I am redoing my Sonnen flow for the new app, what I want to do is set a variable TOU to when I detect so does the Set Time of Use Cards accept @time variable , I believe the old version did ??

While separating into individual devices, some flow cards that were registered to the application before, got moved to the devices. Did you look into the “sonnenBatterie” device for the “then”-cards for time-of-use functionality?

There should be cards for with a time picker as well as string-based cards

Regards, Michael

Hi all.

New version is in TEST. Version 2.0.

A fellow developer Michael has been a big bows and created a lot of updates - making the app even better.

If any of you have a contact at Sonnen or have an installer who can reach out to Sonnen please let us know.

Hi. I’ve had some incident reports regarding autodiscovery of ip.

Please go to the device > Settings > Auto-discovery: switch to off, save. Switch to on, save. Perhaps restart app.

Hi
Nice new version, I had to re-add my device and fix my flows but it worked out fine.

Is there any plans to add support for “Charge/Discharge battery” that is documented in “sonnenBatterie JSON API v2 documentation”, that would be really nice.

/Rikard

Please look at the options available in this release:

Check settings on device.

You can use the manual charge/discharge actions cards as of v2.1.0. Might need to switch to manual operating mode as otherwise any other setpoint update might overrule when in e.g. self-consumption.

I might have overlooked or missed something, but is there any way of getting the buffer level of the battery using the app cards or do I need to use the API calls to retrieve that value?

Hi @Jorgen_Holmsbo

What is the buffer level? What is it good for?
Just to know if it an addon/specific version goodie.

In the JSON returned by /api/v2/status you have BackupBuffer, the percentage the battery will never discharge below to have a buffer of at least this energy in the case of a power outage.
You can set it in the /api/v2/configurations call and key EM_USOC.

I would like to automate setting a high backup buffer if I get a weather warning with a higher risk of a power outage and lower it back again if weather is ok.

Hi,

did you try reading and setting the values using curl already? So does it work as expected? - If so I think it should not be easy to do it. Might just create a Github issue for this feature request.
Cheers, Michael

Hi, had 30mins to let my GLM 5.3. Flash ponder on the feature request and come up with some implementation.
It’s not yet human reviewed, so if you wish vibe-coded yet with my feature plan ideas in mind, I’ll have a more thorough test and review as soon as I find time for.

Work-in-progress, so might get force pushes anytime, no PR yet, not ready for prime-time.

What I’ve seen so far… Just having 2% battery because dark/cloudy, I set to 5% backup buffer and battery is slowly loading. Would expect it to stop at 5% before maybe actual solar energy pushes beyond later the day. For all the rest… Needs more testing and actual review, not a quick glance. Will create a github issue, if not yet done, later, too. Then we can move commenting to that issue.

I can confirm that I have used those keys and endpoints

Thx. I’ll let you know when I’ve something on testing to try out.
BTW: I’ve seen that there is a similar number of installation in Sweden compared to Germany. I was hence thinking about adding swedish localizations to the application. Obviously it’ll be AI generated and like the Dansk and Dutch flavors I’d have no clue if that’s an awkward translation, but luckily Kim can check at least Dansk. In case I ever add Swedish, assuming that you speak it, would you want such a localization over English default and probably even review to allow fixes if AI didn’t do idiomatic translations?

Hej @Michael_E , Jag pratar också svenska. Not that well :slight_smile:

Danish and Swedish are quite similar.
You try this:

On the other hand, we did start supporting Danish, German, and English to keep maintenance simple. I imagine that most Danish and Swedish users would prefer apps in English. Our Norwegian friends, however, might disagree.

English is all good for me, but if you ever decide to add Swedish I could review the translation.

Well, given AI, i did not have to think a second about localisation for the current branch. It was just produced alongside with all the rest. Don’t even need the homey tool support. So maintenance of i18n has gotten kind of a no-brainer, I am rather asking because i cannot do any sanity check and have to trust the translation and secondly there might be users around being happy with English even over localised apps.

But let’s try it… The new features as well as localization are on test stage: Sonnen Batterie | Homey

Let me know if too long labels could be shortend or similar and if the new buffer feature works as expected.

Note that due to missing apis the new meter for the buffer is added to the bottom of the UI widgets. No way to change that without recreating the device.

Flow cards seem to be working as expected. When it comes to translation I have so far not seen any length related issue.

v2.8.0 is now live in prod, a few minor updates will follow soon