NoCharge drawing from grid and not reducing current SOC to target
Describe the bug NoCharge gets set when the current SOC is above the target SOC. The plan indicates that a NoCharge costs nothing as it expects the battery to discharge down to the target SOC rather than pull from the grid. This is does not happen and the house pulls from the grid which increases the cost rather than costing zero, and the SOC remains above target.
The cause of this issues is that PauseDischarge is enabled which prevents the SOC from reducing.
Expected behavior A NoCharge state should not set a Pause Discharge as it achieves the opposite of what is needed to reduce the SOC down to target.
Predbat version
7.19.1
Environment details
- GE AIO
- Standard HAOS installer
Screenshots
You can see in the attached screenshot that the plan is to reduce SOC from 31% to target of 30%, but this can never happen as the PausedDischarge has been set.
Log file
2024-05-18 01:40:35.403129 INFO pred_bat: Inverter 0: Type GE GivEnergy 2024-05-18 01:40:35.404040 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345 2024-05-18 01:40:36.630509 INFO pred_bat: Inverter 0 has timed pause support enabled 2024-05-18 01:40:36.632093 INFO pred_bat: Invertor time 2024-05-18 01:40:18+01:00 AppDaemon time 2024-05-18 01:40:36.630752+01:00 difference -0.32 minutes 2024-05-18 01:40:36.633551 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0% 2024-05-18 01:40:36.635019 INFO pred_bat: Inverter 0 with soc_max 13.57 kWh nominal_capacity 2.66 kWh battery rate raw 6000 w charge rate 6.0 kW discharge rate 6.0 kW battery_rate_min 30.0 w ac limit 10.35 kW export limit 6.0 kW reserve 4.0 % current_reserve 4.0 % 2024-05-18 01:40:37.868587 INFO pred_bat: Inverter 0 SOC: 4.21 kW 31 % Current charge rate 6000.0 w Current discharge rate 5700.0 w Current power 30.0 w Current voltage 52.0 2024-05-18 01:40:37.869794 INFO pred_bat: Inverter 0 scheduled charge enable is False 2024-05-18 01:40:37.870884 INFO pred_bat: Inverter 0 charge windows currently [] 2024-05-18 01:40:37.872024 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 6.0 kW 2024-05-18 01:40:37.874059 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off 2024-05-18 01:40:37.875189 INFO pred_bat: Inverter 0 sensor.predbat_GE_0_scheduled_discharge_enable set to False 2024-05-18 01:40:37.876792 INFO pred_bat: Inverter 0 scheduled discharge enable is False 2024-05-18 01:40:37.878599 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}] 2024-05-18 01:40:37.879469 INFO pred_bat: Found 1 inverters totals: min reserve 0.54 current reserve 0.54 soc_max 13.57 soc 4.21 charge rate 6.0 kW discharge rate 5.7 kW battery_rate_min 30.0 w ac limit 10.35 export limit 6.0 kW loss charge 1 % loss discharge 6 % inverter loss 4 % 2024-05-18 01:40:37.906647 INFO pred_bat: Base charge window [ ] 2024-05-18 01:40:37.908021 INFO pred_bat: Base discharge window [ 18-05 00:00:00 - 18-05 00:00:00 @ 0p 100.0%, 19-05 00:00:00 - 19-05 00:00:00 @ 0p 100.0% ] 2024-05-18 01:40:37.909175 INFO pred_bat: Charge window will be: 2024-05-18 01:30:00+01:00 - 2024-05-18 08:00:00+01:00 - current soc 31 target 30 2024-05-18 01:40:37.910466 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00 2024-05-18 01:40:37.911866 INFO pred_bat: Adjust idle time computed idle is 01:40:00-23:59:00 2024-05-18 01:40:37.915341 INFO pred_bat: Setting ECO mode as no discharge window planned 2024-05-18 01:40:37.916816 INFO pred_bat: Inverter 0 Adjust force discharge to False, change times from 00:00:00 - 00:00:00 to 00:00:00 - 00:00:00 2024-05-18 01:40:37.918093 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00 2024-05-18 01:40:37.919286 INFO pred_bat: Adjust idle time computed idle is 01:40:00-23:59:00 2024-05-18 01:40:37.921128 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off 2024-05-18 01:40:37.922370 INFO pred_bat: Inverter 0 Turning off scheduled discharge 2024-05-18 01:40:37.923360 INFO pred_bat: Resetting charging SOC as we are not within the window or charge is disabled and inverter_soc_reset is enabled (now 05-18 01:40:00 target set_soc_minutes 30 charge start time 05-18 01:30:00) 2024-05-18 01:40:37.924407 INFO pred_bat: Inverter 0 Current Target SOC is 100 already at target 2024-05-18 01:40:37.925398 INFO pred_bat: Adjust reserve to default as SOC 31 % is above target 30 % or charging active 2024-05-18 01:40:37.926653 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target 2024-05-18 01:40:37.952041 INFO pred_bat: Completed run status Hold charging