-
Notifications
You must be signed in to change notification settings - Fork 7
Remove artificial limit to threshold_p_max
#14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: stefan <stefan@whocares.de>
Signed-off-by: stefan <stefan@whocares.de>
Signed-off-by: stefan <stefan@whocares.de>
Signed-off-by: stefan <stefan@whocares.de>
|
could this be "inverter_capacity" in battery_system/system? |
|
Not on my system. There the inverter capacity is 8.000 whereas the threshold_p_max limit accepted is 46.000. On another system I have access to the inverter_capacity is 3.300 and the threshold_p_max limit is 11.000. So it's not even a multiplicator or something like that. Either way, I haven't found any value in API v1 or API v2 that would somehow match the limits for threshold_p_max on either site or lend itself to an automatic calculation. And being obviously unable to query the main fuse amperage I decided to just drop the limit. Since the Sonnenbatterie will refuse to accept any value above its configured limit anyway there should be no harm in skipping the check. |
|
While typing I hade an idea: It looks like the calculation actually is:
Still doesn't help much since we have no way to determine the value for <main fuse amperage> through the APIs provided. |
…JSON-API Thanks to @Prythi for reminding me. Bump version to 0.6.0 Signed-off-by: stefan <stefan@whocares.de>
|
Another Idea: in my case that would be 200A*48V~9600W (I should wait for you to tell me how to KNOW my 'threshold_p_max'...) |
|
Nice find, congrats! I'll check with my different batteries and will integrate that one if it's the one we were looking for on those as well. That said, I'd like to be able to change that one for 11000 at my parents house seems a bit low for a 22kW charger ... any hint on that? |
Just send in a ToU schedule with a valid start and stop time and play with the |
I dont know how the value is calculated at the moment.. |
My guess is that there are two methods:
|
…s the configured limit for `threshold_p_max` when setting a ToU schedule. Still, this library won't enforce the setting since this would require an additional call on each invocation. Instead the checking / enforcing of the configured limit is left to higher level routines in the calling code. Signed-off-by: stefan <stefan@whocares.de>
|
This works for me. Ready to publish as 0.6? |
|
Go for it! ;) |





On testing with different Sonnenbatterie instances I found that each of those had a different limit of what is accepted as
threshold_p_maxwhen using ToU schedules. The range I found is from 11.000 (W) on a Sonnenbatterie eco 9 to 46.000 (W) on a Sonnenbatterie 10p.Thus it makes no sense to set an artificial limit of 22.000 here but rather have the software using the lib decide. That said, I haven't as of yet found a way to calculate the actual threshold from the sensor values offered by the Sonnenbatterie API. Hints are welcome ;)