GS_fb00: timed_charge_current not written to TOU slot register
PredBat version: v8.38.0 Inverter type: GS_fb00 Inverter: Solis RHI-3P-10K-HVES-5G
Problem: PredBat does not write the calculated charge current to the TOU charge slot current register (number.solis_rhi_3p_grid_time_of_use_charge_battery_current_slot_1).
The timed_discharge_current IS correctly written to the discharge slot register and works as expected.
Only timed_charge_current is not being written by PredBat to the inverter entity.
Workaround currently used: Pointing timed_charge_current to a helper (input_number.predbat_charge_current_helper) with a converter automation. But PredBat doesn't write to this either.
Question: Is timed_charge_current supported for GS_fb00 inverter type?
Update: Solved!
I managed to figure this out. PredBat does fully support calculating and writing timed_charge_current for the GS_fb00 inverter type. The issue was a configuration error in my apps.yaml that caused PredBat to fail its internal validation and stop writing to the entity.
The Solution:
- Validation Error: I initially pointed
inverter_limit_chargeandinverter_limit_dischargeto my Home Assistant helper entities. PredBat expects these specific fields to be strict integers (in Watts, e.g.,10000). When pointing them to entities, PredBat throws a validation error (is not a valid type integerin the logs) and silently halts the writing process for the slot currents. - Correct Mapping: You must keep the absolute hardware limits as integers, and point ONLY the
timed_...variables to your entities or helpers.
Here is the apps.yaml snippet that works perfectly:
# These MUST be integers (Watts), not HA entities!
inverter_limit_charge: 10000
inverter_limit_discharge: 10000
# Point the calculated current to your inverter's slot entity (or a HA helper)
charge_rate:
- input_number.predbat_charge_current_helper
timed_charge_current:
- input_number.predbat_charge_current_helper
timed_discharge_current:
- input_number.predbat_discharge_current_helper
Tip for other Solis RHI-3P (High Voltage) users:
Because the 3-phase Solis uses a high voltage battery (e.g. ~480V), PredBat's internal math often struggles with the conversion to Amps, hitting hardcoded caps meant for low voltage systems.
To fix this, you can trick the system: Set battery_voltage: 52 in your apps.yaml, map the outputs to a Home Assistant input_number helper (as shown above), and run a simple HA automation that divides the helper's value by 9.2 (the ratio of 52V to 480V) before sending it to the actual Solis TOU Slot register. This bypasses the HV Amp limits entirely and makes PredBat control the Solis flawlessly.
I will close this issue as it is resolved. Thanks!
if you can share the automation I can add it to the documentation, or feel free to raise a PR with the documentation changes for others
Definitive Workaround/Solution for GS_fb00 with HV Battery (Solis)
After extensive testing, we have implemented a stable workaround that allows PredBat to dynamically control both charge and discharge slots, while keeping external grid load balancers fully functional and safe.
The core issue with the GS_fb00 template:
Because GS_fb00 uses charge_control_immediate=True, PredBat ignores the timed_charge_current parameter and writes directly to the inverter's battery_max_charge_current. This is dangerous for setups with a dynamic load balancer, as the load balancer needs exclusive control over the main max charge current to prevent tripping the physical main fuses.
The "52V Dummy Helper" Solution: We trick PredBat into calculating low-voltage standard amps into dummy helpers. We then use a Home Assistant automation to convert and write the correct HV amps strictly to the Solis TOU slots.
1. apps.yaml configuration:
By assigning charge_rate to a dummy helper, we safely catch PredBat's immediate control output.
# Trick PredBat into calculating within standard limits
battery_voltage: 52
battery_rate_max:
- 10000
# DISCHARGE: Route to dummy helper
timed_discharge_current:
- input_number.predbat_discharge_current_helper
# CHARGE: Use charge_rate to catch immediate control output for GS_fb00
charge_rate:
- input_number.predbat_charge_current_helper
2. Home Assistant Automation (The Converter):This automation takes the PredBat (52V) value, converts it to the real HV value (factor 9.2), caps it at 25A, and writes it to Solis TOU Slot 1.
alias: PredBat HV Current Converter
mode: queued
max: 10
triggers:
- trigger: state
entity_id: input_number.predbat_charge_current_helper
id: charging
- trigger: state
entity_id: input_number.predbat_discharge_current_helper
id: discharging
actions:
- choose:
- conditions:
- condition: trigger
id: charging
sequence:
- action: number.set_value
target:
entity_id: number.solis_rhi_3p_grid_time_of_use_charge_battery_current_slot_1
data:
value: >
{% set pb_val = states('input_number.predbat_charge_current_helper') | float(0) %}
{% set real_amps = (pb_val / 9.2) | round(0) | int %}
{{ [[real_amps, 0] | max, 25] | min }}
- conditions:
- condition: trigger
id: discharging
sequence:
- action: number.set_value
target:
entity_id: number.solis_rhi_3p_grid_time_of_use_discharge_battery_current_slot_1
data:
value: >
{% set pb_val = states('input_number.predbat_discharge_current_helper') | float(0) %}
{% set real_amps = (pb_val / 9.2) | round(0) | int %}
{{ [[real_amps, 0] | max, 25] | min }}
Conclusion:
This circumvents the charge_control_immediate limitation. PredBat dictates the current into the TOU slots via the automation, while the external load balancer retains full authority over battery_max_charge_current to safely intervene during household demand spikes.