-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add solar assistant to predbat #1723
Add solar assistant to predbat #1723
Conversation
Nice one :) Any chance of you adding it to the documentation too? |
Sure thing, will do as soon as I get home.
|
Any chance this can be enhanced to enable more features via Solar-Assistant exposed MQTT entities? The Mode works fine now, but SOC Target and Discharge rate has no effect from what I can see as setting the discharge rate to 0 doesn’t stop the battery discharging. Maybe if more of the batpred variables which can be tied to HA entities were known and documented in the apps.yaml file? |
@sparkyhughes Not sure if you can set that on Solar Assistant, I went through the MQTT topics and I can't see anywhere to set a SOC target. For charge/discharge rate, I can see topics but they are in percentage for Solar Assistant and looks like they are in watts in batpred. Have you tried to play with those topics and see what happened? |
I've managed to get Batpred setting the Battery First Stop Charge value by using the charge_limit setting:
I've also managed to get charge freeze working by modifying the start/stop/freeze service settings
I needed to enable charge freeze and charge limit in the config.py file, which will be overwritten I presume when Batpred is next upgraded? I set "has_target_soc" to True |
Nice one, @sparkyhughes, I have added on mine and will see what happens.
And on the logs: ` 2024-12-19 10:15:21.237717: Info: record_status Error: Exception raised 'NoneType' object has no attribute 'split' Do you get that as well @sparkyhughes ? Edit: Yes, I did add your modifications to mine but it is not setting number.growatt_sph_battery_first_stop_charge (mine is an SPA so I changed to spa) to the percentage chosen so we will probably have to wait for @springfall2008 to chime in on this. |
No I don't get that error. Is that in the Predbat log (on the HA Add-ons page -> Log) ? There's another useful log in File Editor in the same directory as apps.yaml called predbat.log which has quite verbose stuff logged. |
I think because Solar-Assistant supports so many different inverters, it's almost like a separate version for each inverter type is needed. Luckily you and I have Growatt albeit slightly different inverter model I have also emailed solar-assistant support to try and get them to make more features that Batpred can do available |
Yes, there or in the predbat page - logs but then you have to set it to All to see all errors. |
Opened #1761 , we can continue there. |
@springfall2008 any chance you can have a look at #1761 ? |
Added Solar Assistant to PredBat.
I believe this will help whoever wants to use PredBat with Solar Assistant and would allow people (like me) to upgrade to new versions without modifying the config.py.
This resolves #786