-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Charge hold doesn't work on Growatt SPH via Solar Assistant #1881
Comments
Update - I think I've worked around the issue with a pair of automations: One that fixes it by mirroring the charge limit: alias: Mirror charge limit SOC (predbat)
description: ""
triggers:
- entity_id:
- sensor.predbat_sa_0_charge_limit
trigger: state
conditions:
- condition: not
conditions:
- condition: state
entity_id: select.predbat_mode
state: Monitor
- condition: state
entity_id: switch.predbat_set_read_only
state: "off"
actions:
- action: number.set_value
metadata: {}
data:
value: "{{ states('sensor.predbat_sa_0_charge_limit') }}"
target:
entity_id: number.growatt_sph_battery_first_stop_charge
mode: single And another one to mirror the discharge rate (that isn't needed to solve this problem but I think may be needed in some scenarios?): alias: Mirror discharge rate (predbat)
description: ""
triggers:
- entity_id:
- sensor.predbat_sa_0_discharge_rate
trigger: state
conditions:
- condition: not
conditions:
- condition: state
entity_id: select.predbat_mode
state: Monitor
- condition: state
entity_id: switch.predbat_set_read_only
state: "on"
actions:
- action: number.set_value
metadata: {}
data:
value: "{{ states('sensor.predbat_sa_0_discharge_rate') / 3000 * 100 }}"
target:
entity_id: number.growatt_sph_free_mode_discharge_rate
- action: number.set_value
metadata: {}
data:
value: "{{ states('sensor.predbat_sa_0_discharge_rate') / 3000 * 100 }}"
target:
entity_id: number.growatt_sph_grid_first_discharge_rate
mode: single |
I had also added these fields to apps.yaml in addition to the ones in the solar_assistant_growatt.yaml template, but I don't think they fixed the issue (unless maybe they would've, if it hadn't been for predbat's charge/discharge rates being in W but the Solar Assistant versions wanting a percentage?): charge_limit:
- number.growatt_sph_battery_first_stop_charge
charge_rate:
- number.growatt_sph_battery_first_charge_rate
discharge_rate:
- number.growatt_sph_grid_first_discharge_rate
load_power:
- sensor.growatt_sph_load_power |
Looking at the documentation on the inverter settings and the Solar Assistant settings I've spotted that the "SA" inverter type used by this template has charge_limit:
- number.growatt_sph_battery_first_stop_charge Edit - the downside is that |
Describe the bug
In charge hold mode, the inverter carries on charging the battery past Predbat's target SOC
Expected behaviour
The Growatt SPH inverter would be put into "Battery first" mode, with "number.growatt_sph_battery_first_stop_charge" set to the max target SOC (or potentially instead have battery first mode and "number.growatt_sph_battery_first_charge_rate" set to 0W, but that may stop solar charging too, I'm unsure).
Predbat version
v8.11.1
Environment details
The text was updated successfully, but these errors were encountered: