Hi Bogguard,
I’ve just got my system installed (finally!) and now have the opportunity to check and test different things. Some of the things I wrote earlier is already solved! =)
I will also post this in the open forum.
The suggestions of three vital features I have now is the following:
- Create a “Then”-card for “Change Operating mode” to Manual, Self-consumption or Time of Use (ToU)
- Create a “Then”-card for “Discharge X (add tag here) watts”:
- Create a “Then”-card for “Charge X (add tag here) watts”.
if possible there is a fourth suggestions and it is in regards to the mode of Time of Use:
- Create a “Then”-card that “Set schedule for Time of Use”
I don’t know how this works yet though… 
let me know if I can be of any help!
Best regards
Rikard
Hi,
So far I have solved point 1, 2 and 3 above via sending a HTTP-request using Homey Logic:
Example of “discharge” command wanting to discharge 2000 watts:

keep in mind to change to your correct IP number as well as copy/pasting your unique API-token where I’ve written “PASTETOKENHERE”
1 Like
Hi Fellow-Homey-users
I’ve just pushed an app: Sonnen Batterie App til Homey | Homey
I’ve been adressing ToC (Time Of Consumption), with the ability to Pause ToC, Reset ToC and create Schedule for ToC.
Feedback appreciated.
1 Like
I’ve been trying to solve/address this, excatly this.
1 Like
Hi,
Great app!
One thing I notice is that if I create a ToU schedule, it removed whatever schedule I have previously set. In the Sonnen dashboard it is possible to have more schedules for a day. Is this possible to have support for setting more schedules in the Homey app?
/Martin
Hi, van I use your App also with my Sonnenbatterie Ver. 6. I also use the actual sonnen App . Thanks
Hi Kim,
I’ve been using your App for a while now and it works great.
I’ve a feature request: is it possible to create a command to set TOU with also the starting time configurable by tag.
This would alow to schedule at variable hours, when needed.
It’s quite similar with already existing command.
Thanks.
Hi, I am looking for a way add apply hours as a parameter. I did not succeed.
I think I did a variant with +hours instead of hour-format.
Do you by chance know of a app/flow, that allows input for “hour-format”?
Hi Kim.
I did some research through google. Seems the api works like this:
curl -X PUT http://192.168.0.130/api/v2/configurations -d “{"EM_ToU_Schedule":[{"start":"11:51","stop":"12:45","threshold_p_max": 46000}]}” -H “Auth-Token: xxx” -H “Content-Type: application/json”
What works on my SB10 from my win10 laptop.
Why not provide the hour-format as simple string, where user can provide “11:51” for start parameter in the sample above? This way you can use a homey time tag to set the string value. Combine this with the +hours variant and you can easily set the SB10 to load for 1 or more hours when grid prices are low.
You might ask why I’m asking for this functionality. It seems my SB10 only gets high charge when TOU start/stop period is small. When TOU configuration spans all day the charging goes very slow.
Diving deeper into your app today, I see I can solve this by creating 24h flows that have hardcoded hours and look for some app logic to select the correct flow, but I think this complicates things as my string solution covers all.
Regards,
Marc.
Hi @Marc_Iven
I can make a flow with string as input, where you put in 24-hour formatted values.
Homey supports time as a parameter, and of my know-abouts it is not possible to provide a parameter without using the UI - if that makes sense.
Strings is possible.
What do you have in mind: start, stop and threshold right?
Hi Kim,
Most easy would be to have
- start (string)
- hours (number)
- threshold (number)
You have already implemented a function like that, but not with start as string instead hour/min sliders.
Greetz,
Marc.
Hi @Marc_Iven
For further assistance, please use the thread: [APP][Pro] Sonnen Batterie