Skip to content
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

Currently predbat does not work via GivTCP on GivEnergy 3 phase Inverters #1607

Open
LeeFarm11 opened this issue Nov 9, 2024 · 17 comments
Open
Labels
AC3 enhancement New feature or request

Comments

@LeeFarm11
Copy link

Brought here from britkat1980/giv_tcp#286

Is your feature request related to a problem? Please describe.
GivEnergy 3 phase Inverters appear to be very different in controls to previous Inverters. The controls which predbat uses to control the Inverters are not available on the 3 phase. There are some controls which predbat uses which might be fixable within GivTCP, but there are some controls which predbat relies on which (I think) are simply not available on the Inverter.

Summary problem -
3 phase Inverter does not have any modes. You cannot 'set' Eco or Timed_Export etc.
The GivTCP control of mode does not work, because it does not exist.
If I try setting to any of the other settings, it just reverts back to Eco (paused) next time the inverter is read.
But predbat relies on it.
image

There are only 3 main controls on the 3 phase Inverter (other than % and Times)
Force AC Charge Enable
Force Charge Enable
Force Discharge Enable

To charge from the grid, the 2 charge switches are set to On.
To discharge to the grid, the Discharge switch is set to On.

The relevant time slots and %s then become active.

I have not found any useful functionality to only using Force AC Charge Enable or Force Charge Enable. They do have an impact but I have not found any useful functionality. In my world so far, they may as well be a single switch.

One of the controls which predbat relies on in apps.yaml is

  scheduled_charge_enable:
    - switch.givtcp_{geserial}_enable_charge_schedule

But switch.givtcp_{geserial}_enable_charge_schedule does not do anything (yet).

With help from @gcoan I have created some helpers/ automations which I think are now working for me.

First improvement - scheduled_charge_enable

Setting up a helper and automation for scheduled_charge_enable was the first big step forward -

I created a helper toggle switch. I called it helper_predbat_enable_charge_schedule.

I then created an automation -

alias: predbat_force_charge_automation
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.helper_predbat_enable_charge_schedule
    to: null
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_boolean.helper_predbat_enable_charge_schedule
            state: "on"
        sequence:
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
      - conditions:
          - condition: state
            entity_id: input_boolean.helper_predbat_enable_charge_schedule
            state: "off"
        sequence:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
mode: single

I have commented out REST in apps.yaml -

  # When set use the REST API rather than HA entity for control, should be more reliable/faster to control
  # Set one per inverter
  # If using Docker then change homeassistant.local to the Docker IP address
  #givtcp_rest:
  #  - 'http://192.168.1.204:6345'

and I set this is apps.yaml

  scheduled_charge_enable:
  #  - switch.givtcp_{geserial}_enable_charge_schedule
    - input_boolean.helper_predbat_enable_charge_schedule

This works well, except that predbat turns off scheduled_charge_enable during Hold Charging or Freeze Charging.

This results in strange behaviour. I have cheap rate 13:00 - 16:00. This happens -
image

Further testing with inverter_mode

Because predbat is setting inverter mode via this -

  inverter_mode:
    - select.givtcp_{geserial}_mode

I did set up another helper and automation to set the 3 Inverter controls via the predbat inverter_mode. Unfortunately the predbat inverter mode stays in Eco unless Discharging, so it does not help too much.

Further development using predbat.status

I have now added another automation which takes the predbat.status and updates the 3 switches depending on predbat.status. predbat populates the Timeslots and percentages in advance of the Charge or Discharge periods, so potentially, this might delay the start of those periods by a couple of minutes, but they will end on time because the end slot times are populated.

alias: PredbatStatusChangeAutomation
description: Modify Inverter Settings depending on predbat.status
trigger:
  - platform: state
    entity_id:
      - predbat.status
    to: null
condition: []
action:
  - choose:
      - conditions:
          - condition: or
            conditions:
              - condition: state
                entity_id: predbat.status
                state: Charging
              - condition: state
                entity_id: predbat.status
                state: Hold charging
              - condition: state
                entity_id: predbat.status
                state: Freeze charging
              - condition: state
                entity_id: predbat.status
                state: No charge
        sequence:
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
      - conditions:
          - condition: or
            conditions:
              - condition: state
                entity_id: predbat.status
                state: Idle
              - condition: state
                entity_id: predbat.status
                state: Error
              - condition: state
                entity_id: predbat.status
                state: Calibration
        sequence:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
      - conditions:
          - condition: or
            conditions:
              - condition: state
                entity_id: predbat.status
                state: Discharging
              - condition: state
                entity_id: predbat.status
                state: Freeze discharging
        sequence:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
mode: single

Only been using this for a couple of hours and looks positive.

But I think I do now see another issue already.

In the GivTCP thread I said this -
I note that the Charge Slot SOC target was not changed (it was previously set at and remains at 4%), but the (global) Charge Up To % was changed by predbat/GivTCP (in this case to 98%). I assume that individual slots SOC targets are therefore not used by predbat, and therefore I have now set Slot 1 SOC to 100%. (I have also set Discharge Slot 1 SOC to 4% making the same assumption).

@gcoan replied with this -
On your question r/e charge slots, Predbat only ever uses slot 1 for charging and discharging and sets the global charge-to limit. So you need to make sure that the other slots are all cleared as otherwise the inverter will start obey those other charge/discharge instructions and Predbat won't know about them.

What I now see is predbat aiming for 90% or 93% or whatever. It sets the global Charge Up To %. But overshoots. I think that global Charge Up to % is not being respected by the Inverter when Force Charge/ Force AC Charge is being used. Will try some more tests when time permits.

@Ryuisnod
Copy link

Ryuisnod commented Nov 9, 2024

I'm midway through trying to set this up myself so interesting to see it works in a limited fashion. I hope to get my battery to charge up during "octopus intelligent go" smart sessions and stop my Zappi from using the battery to charge the EV during this time! (expect having the battery on charge mode will just sort this tbh) hopefully, your helpers here will help on that road as I'm a relative novice. I'm following your threads on here, givenergy and givtcp as it seems we are in the same boat. I'm going to give the givenergy cloud template a go as it might give better results.

@springfall2008
Copy link
Owner

Hmm, it maybe better to add a new AC3 mode to Predbat to control in this way.

Is it just the three switches replacing the Battery mode that is needed, is everything else the same?

@springfall2008 springfall2008 added enhancement New feature or request AC3 labels Nov 10, 2024
@LeeFarm11
Copy link
Author

Hmm, it maybe better to add a new AC3 mode to Predbat to control in this way.

Is it just the three switches replacing the Battery mode that is needed, is everything else the same?

Not sure if everything else ids the same yet. @britkat1980 might be able to give you better behind-the-scenes information. I was told by GivEnergy just after my install when I complained about how lacking the available control is that they work very closely with him..... (passing the buck?)

I can send details of all the available settings in the Portal, but as you can see I'm not 100% certain what they all really do. I have posted those details before somewhere in GitHub. I can find them if they would help.

There are too many predbat modes. Haha.

Many "Warn:....." statuses, Read-Only etc. Too many statuses to be explicit. I have modified my automation as below -
If Charging, do charging stuff and turn discharging stuff off, otherwise if Discharging do discharging stuff and turn charging stuff off, otherwise turn all off.

alias: PredbatStatusChangeAutomation
description: Modify Inverter Settings depending on predbat.status
trigger:
  - platform: state
    entity_id:
      - predbat.status
    to: null
condition: []
action:
  - if:
      - condition: or
        conditions:
          - condition: state
            entity_id: predbat.status
            state: Charging
          - condition: state
            entity_id: predbat.status
            state: Hold charging
          - condition: state
            entity_id: predbat.status
            state: Freeze charging
          - condition: state
            entity_id: predbat.status
            state: No charge
    then:
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_charge_enable
      - action: switch.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_discharge_enable
    else:
      - if:
          - condition: or
            conditions:
              - condition: state
                entity_id: predbat.status
                state: Discharging
              - condition: state
                entity_id: predbat.status
                state: Freeze discharging
        then:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
        else:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
mode: single

@LeeFarm11
Copy link
Author

My automation is not picking up when predbat.status moves to or from "Warn: Inverter 0 Write to .......".

In theory the automation is triggering any time there is a change in status, but I wonder if these Warn statuses are not really a status and therefore the trigger is missed?

At the highlighted time when Idle changed to Warn, and also when Warn changed to Idle the automation should have triggered, but it seems it did not.

image

@gcoan
Copy link
Collaborator

gcoan commented Nov 13, 2024

Yes they are real state changes to predbat.status, that's why you can see them in the sensor history

The warn: statii are usually transient, the next predbat run usually predbat works OK

@LeeFarm11
Copy link
Author

If they are real Statuses, why does the automation (above) not fire when it changes to Warn:... and when it changes from Warn: ...

Anyway, I have now changed the automation to fire each time the attribute 'last updated' changes. This fires every time predbat recalculates even if there is no change of state. Hopefully this will work round the issue.

The real problem is how to get predbat to work natively with the Inverter settings.

Freeze Discharge seems an odd one. Freeze Discharge does not appear to ever set any Discharge Timeslot times, so not sure how it is going to do any discharging. Maybe this is a fundamental difference between AC3 and previous Inverters?

Here is my newly modified automation in case @Ryuisnod or anyone else is following.

alias: PredbatStatusChangeAutomation2
description: Modify Inverter Settings depending on predbat.status
triggers:
  - trigger: state
    entity_id:
      - predbat.status
    attribute: last_updated
conditions: []
actions:
  - if:
      - condition: or
        conditions:
          - condition: state
            entity_id: predbat.status
            state: Charging
          - condition: state
            entity_id: predbat.status
            state: Hold charging
          - condition: state
            entity_id: predbat.status
            state: Freeze charging
          - condition: state
            entity_id: predbat.status
            state: No charge
    then:
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
      - action: switch.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_discharge_enable
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.givtcp_td2343g049_force_charge_enable
    else:
      - if:
          - condition: or
            conditions:
              - condition: state
                entity_id: predbat.status
                state: Discharging
              - condition: state
                entity_id: predbat.status
                state: Freeze discharging
        then:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
        else:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_ac_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_charge_enable
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              entity_id: switch.givtcp_td2343g049_force_discharge_enable
mode: single

@Ryuisnod
Copy link

Ryuisnod commented Nov 14, 2024 via email

@gcoan
Copy link
Collaborator

gcoan commented Nov 14, 2024

Freeze Discharge seems an odd one. Freeze Discharge does not appear to ever set any Discharge Timeslot times, so not sure how it is going to do any discharging

I think you are misunderstanding the Freeze Discharge status.

Freeze Discharge is NOT a discharge, it is 'freeze the current SoC level and stop it increasing (by solar charging), but allow the battery to discharge if house demand requires it'

So effectively it's a capped version of the default Eco mode - Eco mode but don't let the SoC increase from solar generation.

It therefore doesn't need any start or end times.

@LeeFarm11
Copy link
Author

That script is not good when in Read-Only mode. The status continues to be updated each 5 minutes, so while in Read-Only mode (so that user can control the Inverter manually) the automation continues to turn off all the switches each 5 minutes. Now testing another version.

@gcoan
Copy link
Collaborator

gcoan commented Nov 15, 2024

That script is not good when in Read-Only mode. The status continues to be updated each 5 minutes, so while in Read-Only mode (so that user can control the Inverter manually) the automation continues to turn off all the switches each 5 minutes. Now testing another version.

You just need to add a condition to the automation to check that Predbat read only mode is not set. If it is, the condition will stop the automation

@LeeFarm11
Copy link
Author

That script is not good when in Read-Only mode. The status continues to be updated each 5 minutes, so while in Read-Only mode (so that user can control the Inverter manually) the automation continues to turn off all the switches each 5 minutes. Now testing another version.

You just need to add a condition to the automation to check that Predbat read only mode is not set. If it is, the condition will stop the automation

Yes. I am now testing a new version which does something like that. When I am happy with it I will post it here.

@LeeFarm11
Copy link
Author

I seem to have a problem with the Load prediction. Not sure if this relates to 3 phase.
apps.yaml is set to use last 2 days of data (due the issue with corrupt database a few days ago).
image

Between 20:30 and 21:00 yesterday and day before we were using around 9kW.
image
image

But predbat is predicting that today we will run at about 3.5kW during that time.
image

Maybe only picking up one phase? Or average of 3 phases? Or?
Here is the log for 16:25 calculation

2024-11-15 16:25:00.905381: --------------- PredBat - update at 2024-11-15 16:25:00+00:00 with clock skew 0 minutes, minutes now 985
2024-11-15 16:25:00.906791: Saved current settings to /addon_configs/6adb4f0d_predbat/predbat_config.json
2024-11-15 16:25:00.944121: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 80.0 minutes
2024-11-15 16:25:00.944391: Predbat /config/predbat.py version v8.6.0 currently running, latest version is v8.6.0 latest beta v8.6.0
2024-11-15 16:25:00.944510: Autoupdate: Currently up to date
2024-11-15 16:25:01.027646: Configuration: forecast_hours 48 num_cars 0 debug enable is False calculate_plan_every 10
2024-11-15 16:25:01.028321: Predbat mode is set to Control charge & discharge
2024-11-15 16:25:01.028578: NOTE: Read-only mode is enabled, the inverter controls will not be used!!
2024-11-15 16:25:01.983827: Found 4321 load_today datapoints going back 3 days
2024-11-15 16:25:02.807967: Car charging hold True threshold 6.0
2024-11-15 16:25:02.808080: Current data so far today: load 46.5 kWh import 56.1 kWh export 2.9 kWh pv 10.4 kWh
2024-11-15 16:25:02.809377: Adding rate rates_import: {'start': '00:05:00', 'end': '04:59:59', 'rate': 11.84} => 11-15 00:05:00 to 11-15 04:59:00 @ 11.84 date None increment False
2024-11-15 16:25:02.810373: Adding rate rates_import: {'start': '05:00:00', 'end': '13:04:59', 'rate': 26.55} => 11-15 05:00:00 to 11-15 13:04:00 @ 26.55 date None increment False
2024-11-15 16:25:02.812006: Adding rate rates_import: {'start': '13:05:00', 'end': '15:59:59', 'rate': 11.84} => 11-15 13:05:00 to 11-15 15:59:00 @ 11.84 date None increment False
2024-11-15 16:25:02.812747: Adding rate rates_import: {'start': '16:00:00', 'end': '20:04:59', 'rate': 26.55} => 11-15 16:00:00 to 11-15 20:04:00 @ 26.55 date None increment False
2024-11-15 16:25:02.813784: Adding rate rates_import: {'start': '20:05:00', 'end': '21:59:59', 'rate': 11.84} => 11-15 20:05:00 to 11-15 21:59:00 @ 11.84 date None increment False
2024-11-15 16:25:02.814348: Adding rate rates_import: {'start': '22:00:00', 'end': '00:04:59', 'rate': 26.55} => 11-15 22:00:00 to 11-15 00:04:00 @ 26.55 date None increment False
2024-11-15 16:25:02.940012: Adding rate rates_export: {'rate': 12} => 11-15 00:00:00 to 11-15 00:00:00 @ 12.0 date None increment False
2024-11-15 16:25:02.944394: Standing charge is set to 53.66 p
2024-11-15 16:25:03.006616: Adding rate rates_import_override: {'start': '13:05:00', 'end': '13:59:59', 'rate': 20} => 11-15 13:05:00 to 11-15 13:59:00 @ 20.0 date None increment False
2024-11-15 16:25:05.538676: Rate min forward looking: now 0 at end of forecast 0.0
2024-11-15 16:25:05.539147: Import rates min 0 max 26.55 average 20.8
2024-11-15 16:25:05.608324: Export rates min 12.0 max 12.0 average 12.0
2024-11-15 16:25:05.608549: Rate thresholds (for charge/discharge) are import 26.05p (0.0) export 12.0p (0.0)
2024-11-15 16:25:05.629115: High export rate found rates in range 12.0 to 12.0
2024-11-15 16:25:05.640695: Low Import rate found rates in range 11.84 to 20.0
2024-11-15 16:25:05.640836: Battery level now 15.77 -1hr 9.4 midnight 0.7 battery value change hour 71.18 day 168.4 rate_forward 11.17
2024-11-15 16:25:05.641818: Hour energy 8.9 import 8.9 export 0.0 car 0 load 3.35 cost 106.24 import 106.24 export 0.0 car 0.0 carbon 0.0 kG
2024-11-15 16:25:05.899735: Today's energy import 56.1 kWh export 2.9 kWh total 53.2 kWh cost 783.1 p import 764.24 p export -34.8 p carbon 0.0 kg
2024-11-15 16:25:05.899851: Using Solcast integration from inside HA for solar forecast
2024-11-15 16:25:05.900049: PV Data for pv_forecast_today total 15.76 kWh
2024-11-15 16:25:05.900248: PV Data for pv_forecast_tomorrow total 15.42 kWh
2024-11-15 16:25:05.900374: PV Data for pv_forecast_d3 total 32.56 kWh
2024-11-15 16:25:05.900534: PV Data for pv_forecast_d4 total 6.4 kWh
2024-11-15 16:25:05.923017: PV Forecast for today is 15.76 (9.12 10% 25.59 90%) kWh and left today is 0.0 (0.0 10% 0.0 90%) kWh
2024-11-15 16:25:05.985062: PV Forecast for day tomorrow is 15.42 (6.08 10% 42.42 90%) kWh
2024-11-15 16:25:06.015836: PV Forecast for day d2 is 32.56 (5.45 10% 50.7 90%) kWh
2024-11-15 16:25:06.057894: PV Forecast for day d3 is 6.4 (0.58 10% 45.23 90%) kWh
2024-11-15 16:25:06.219170: Historical data totals for days [1, 2] are [38.46, 42.16] - min 38.46
2024-11-15 16:25:06.220301: Historical days now [1, 2] weight [1, 0.75]
2024-11-15 16:25:06.320210: Today's load divergence 90.07 % in-day adjustment 90.57 % damping 0.95x
2024-11-15 16:25:06.320309: Today's predicted so far 20.34 kWh with 18.65 kWh car/iBoost excluded and 11.3 kWh import ignored and 0 forecast extra.
2024-11-15 16:25:06.320362: Today's actual load so far 17.39 kWh with 19.58 kWh Car/iBoost excluded and 9.43 kWh import ignored.
2024-11-15 16:25:06.480853: Inverter 0: Type GE GivEnergy
2024-11-15 16:25:06.481196: Inverter 0 does not have timed pause support enabled
2024-11-15 16:25:06.481727: Invertor time 2024-11-15 16:24:32+00:00, Predbat computer time 2024-11-15 16:25:06.481633+00:00, difference -0.58 minutes
2024-11-15 16:25:06.481845: Reserve min: 4.0% Battery_min:4.0%
2024-11-15 16:25:06.482301: Inverter 0 with soc_max 21.06 kWh nominal_capacity 21.06 kWh battery rate raw 11000.0 w charge rate 11.0 kW discharge rate 11.0 kW battery_rate_min 200.0 w ac limit 11.5 kW export limit 11.5 kW reserve 4.0 % current_reserve 4.0 %
2024-11-15 16:25:06.482679: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-11-15 16:25:06.483025: Inverter 0 SOC: 15.5kW 74% Current charge rate 11000W Current discharge rate 11000W Current power 0.0W Current voltage 52.0V
2024-11-15 16:25:06.483373: Inverter 0 scheduled charge enable is True
2024-11-15 16:25:06.483438: Inverter 0 charge windows currently [{'start': 2285, 'end': 2399, 'average': 0}, {'start': 3725, 'end': 3839, 'average': 0}]
2024-11-15 16:25:06.483563: Inverter 0 Charge settings: 11-16 14:05:00-11-16 15:59:00 limit 100.0 power 11.0 kW
2024-11-15 16:25:06.483780: Inverter 0 No write needed for scheduled_discharge_enable as False == False
2024-11-15 16:25:06.483820: Inverter 0 sensor.predbat_GE_0_scheduled_discharge_enable set to False
2024-11-15 16:25:06.484052: Inverter 0 scheduled discharge enable is False
2024-11-15 16:25:06.484275: Inverter 0 idle time is 11-15 20:25:00-11-15 23:59:00
2024-11-15 16:25:06.484314: Inverter 0 discharge windows currently []
2024-11-15 16:25:06.484552: Found 1 inverters totals: min reserve 0.84 current reserve 0.84 soc_max 21.06 soc 15.5 charge rate 11.0 kW discharge rate 11.0 kW battery_rate_min 200.0 w ac limit 11.5 export limit 11.5 kW loss charge 3 % loss discharge 3 % inverter loss 4 %
2024-11-15 16:25:06.635806: Base charge    window [ 16-11 14:05:00 - 16-11 15:59:00 @ 0p 100%, 17-11 14:05:00 - 17-11 15:59:00 @ 0p 100% ]
2024-11-15 16:25:06.635903: Base discharge window [  ]
2024-11-15 16:25:06.635989: Plan was last updated on 2024-11-15 16:20:00+00:00 and is now 5.0 minutes old
2024-11-15 16:25:06.636450: Best charge    window [ 15-11 20:05:00 - 15-11 21:59:00 @ 11.84p 58%, 16-11 00:05:00 - 16-11 04:59:00 @ 11.84p 64%, 16-11 20:05:00 - 16-11 21:59:00 @ 11.84p 100%, 17-11 14:30:00 - 17-11 15:59:00 @ 11.84p 100% ]
2024-11-15 16:25:06.636578: Best discharge window [ 16-11 22:30:00 - 17-11 14:30:00 @ 12.0p 99% ]
2024-11-15 16:25:06.645609: PV Forecast 48.0 kWh and 10% Forecast 11.5 kWh pv cloud factor 0.4
2024-11-15 16:25:06.662758: Load divergence over 8.0 hours mean 1617.37 W, min 0.0 W, max 5828.57 W, std dev 1120.78 W, divergence 34.65%
2024-11-15 16:25:06.807894: Creating pool of 2 processes to match your CPU count
2024-11-15 16:25:06.952128: predict base end_record 11-16 20:10:00 final soc 15.24 kWh metric 1277.97 p metric_keep 94.21 min_soc 15.24 @ 11-16 20:05:00 kWh load 91.42 pv 25.82
2024-11-15 16:25:06.955773:          [   16:25,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30,    21:00,    21:30,    22:00,    22:30,    23:00,    23:30,    00:00,    00:30,    01:00,    01:30,    02:00,    02:30,    03:00,    03:30,    04:00,    04:30,    05:00,    05:30,    06:00,    06:30,    07:00,    07:30,    08:00,    08:30,    09:00,    09:30,    10:00,    10:30,    11:00,    11:30,    12:00,    12:30,    13:00,    13:30,    14:00,    14:30,    15:00,    15:30,    16:00,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30]
2024-11-15 16:25:06.958412:     SOC: [    15.5,    15.31,     14.4,    13.57,    12.68,    11.96,    11.25,    10.59,     9.93,      8.7,     7.54,     5.66,     4.79,     4.38,     3.96,      3.7,     3.44,     2.74,      2.0,     1.39,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.95,     1.53,     2.36,     3.27,     4.14,     4.98,     5.36,     5.15,     4.25,     8.55,    13.88,    19.22,    21.06,    19.91,    19.01,    18.26,    17.56,    17.11,    16.57,    15.97,    15.38,    14.33]
2024-11-15 16:25:06.960618:     BAT: [   g>be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g>be-,    g~be-,    g<be-,    g<bf+,    g<bf+,    g<bf+,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-]
2024-11-15 16:25:06.963216:    LOAD: [    46.5,    46.68,    47.52,     48.3,    49.12,    49.79,    50.46,    51.07,    51.69,    52.83,    53.92,    55.66,    56.48,    56.85,    57.25,    57.49,    57.74,    58.39,    59.07,    59.64,    60.25,    61.34,    62.58,    63.53,     64.2,     65.5,    66.15,    66.41,    66.67,    67.02,    67.46,    68.04,    68.65,    69.42,    70.32,    71.23,    72.18,    73.06,    73.96,    74.91,    75.93,    76.78,    77.69,    78.87,    80.42,    81.28,    81.58,    83.93,     86.0,    87.07,    87.91,     88.6,    89.26,    89.68,    90.18,    90.74,    91.29,    92.27]
2024-11-15 16:25:06.965758:      PV: [    10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,    10.46,    10.65,    11.02,     11.7,     12.8,    14.32,    16.11,    18.04,     20.0,    21.74,     23.1,    24.13,    24.88,    25.35,     25.6,    25.75,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82]
2024-11-15 16:25:06.968157:  IMPORT: [    56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.2,    57.29,    58.52,    59.48,    60.15,    61.45,    62.09,    62.36,    62.61,    62.96,    63.41,    63.98,    64.55,    65.13,    65.67,    65.93,    65.93,    65.93,    65.93,    65.93,    65.93,    65.93,    65.93,    65.93,    65.93,    70.93,     76.7,    84.62,     88.6,     88.6,     88.6,     88.6,     88.6,     88.6,     88.6,     88.6,     88.6,     88.6]
2024-11-15 16:25:06.970694:  EXPORT: [     2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9]
2024-11-15 16:25:06.973220:  METRIC: [   783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,   836.76,   836.76,   836.76,   837.97,   850.83,   865.47,   876.81,   884.74,   900.08,   907.74,   914.71,   921.49,   930.84,    942.7,   957.92,   972.81,   988.24,  1002.78,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,   1009.5,  1068.68,  1137.04,  1230.86,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97,  1277.97]
2024-11-15 16:25:10.126780: Battery has 9.5 hours left - now at 15.5
2024-11-15 16:25:10.292980: predict base10 end_record 11-16 20:10:00 final soc 14.83 kWh metric 1516.05 p metric_keep 187.77 min_soc 14.83 @ 11-16 20:05:00 kWh load 95.91 pv 16.48
2024-11-15 16:25:10.296168:          [   16:25,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30,    21:00,    21:30,    22:00,    22:30,    23:00,    23:30,    00:00,    00:30,    01:00,    01:30,    02:00,    02:30,    03:00,    03:30,    04:00,    04:30,    05:00,    05:30,    06:00,    06:30,    07:00,    07:30,    08:00,    08:30,    09:00,    09:30,    10:00,    10:30,    11:00,    11:30,    12:00,    12:30,    13:00,    13:30,    14:00,    14:30,    15:00,    15:30,    16:00,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30]
2024-11-15 16:25:10.298880:     SOC: [    15.5,    15.21,    14.22,    13.28,    12.34,    11.54,    10.77,    10.04,     9.31,     7.89,      6.7,     4.59,     3.65,     3.26,     2.79,     2.51,     2.23,     1.46,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     5.29,    10.62,    15.96,    21.04,    19.88,     18.9,     18.1,    17.34,    16.83,    16.25,    15.58,    14.94,    13.66]
2024-11-15 16:25:10.301097:     BAT: [   g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<be-,    g~be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g~be+,    g~be+,    g~be+,    g~be+,    g<be+,    g>be+,    g~be+,    g~be+,    g<be-,    g<be-,    g<be-,    g<bf+,    g<bf+,    g<bf+,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-]
2024-11-15 16:25:10.303736:    LOAD: [    46.5,    46.77,    47.69,    48.57,    49.45,    50.19,     50.9,    51.59,    52.27,    53.59,    54.69,    56.68,    57.55,    57.91,    58.35,    58.61,    58.87,    59.59,     60.4,    60.98,    61.73,    62.92,    64.33,    65.31,     66.1,    67.43,    68.14,    68.42,     68.7,    69.11,     69.6,    70.24,     70.9,    71.79,    72.78,    73.78,    74.83,     75.8,    76.78,    77.82,    78.95,    79.87,     80.9,    82.23,    83.92,     84.8,    85.09,    87.88,    90.13,    91.21,    92.12,    92.87,    93.58,    94.04,    94.58,    95.21,     95.8,     97.0]
2024-11-15 16:25:10.306173:      PV: [    10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,    10.42,     10.5,    10.65,    10.91,    11.31,    11.87,    12.55,    13.32,    14.11,    14.83,    15.41,    15.83,     16.1,    16.28,    16.39,    16.45,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48]
2024-11-15 16:25:10.308769:  IMPORT: [    56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,    56.12,    56.12,    56.12,    56.12,    56.12,    56.12,    56.12,    56.35,    56.93,    57.68,    58.87,    60.28,    61.25,    62.05,    63.38,    64.08,    64.37,    64.65,    65.06,    65.55,    66.19,    66.83,    67.64,    68.48,    69.23,    69.91,    70.34,    70.67,    70.98,    71.35,    71.58,    72.06,    72.99,    74.42,    79.89,     85.8,    94.25,   101.92,   101.92,   101.92,   101.92,   101.92,   101.92,   101.92,   101.92,   101.92,   101.92]
2024-11-15 16:25:10.311378:  EXPORT: [     2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9]
2024-11-15 16:25:10.313972:  METRIC: [   783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,   783.28,   783.28,   783.28,   783.28,   783.28,   783.28,   836.94,   839.76,    846.6,   855.45,   869.54,   886.28,    897.8,    907.2,   922.94,   931.29,   938.91,    946.4,   957.19,   970.09,   987.27,  1004.29,  1025.71,  1048.09,   1068.0,  1085.94,  1097.38,  1106.22,  1114.38,  1124.23,  1130.32,  1143.02,  1161.88,  1190.36,  1255.13,   1325.1,   1425.2,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05,  1516.05]
2024-11-15 16:25:10.761908: predict best10 end_record 11-16 20:10:00 final soc 1.73 kWh metric 1296.44 p metric_keep 108.99 min_soc 0.84 @ 11-16 15:05:00 kWh load 95.91 pv 16.48
2024-11-15 16:25:10.765968:          [   16:25,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30,    21:00,    21:30,    22:00,    22:30,    23:00,    23:30,    00:00,    00:30,    01:00,    01:30,    02:00,    02:30,    03:00,    03:30,    04:00,    04:30,    05:00,    05:30,    06:00,    06:30,    07:00,    07:30,    08:00,    08:30,    09:00,    09:30,    10:00,    10:30,    11:00,    11:30,    12:00,    12:30,    13:00,    13:30,    14:00,    14:30,    15:00,    15:30,    16:00,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30]
2024-11-15 16:25:10.768597:     SOC: [    15.5,    15.21,    14.22,    13.28,    12.34,    11.54,    10.77,    10.04,     9.31,    12.31,    12.31,    12.31,    12.31,    11.92,    11.46,    11.17,    10.89,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.25,    12.95,    12.51,    11.99,     11.3,    10.61,     9.74,     8.84,     8.03,      7.3,     6.84,     6.48,     6.16,     5.76,     5.51,      5.0,     3.99,     2.46,      1.7,      1.5,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     0.84,     5.29]
2024-11-15 16:25:10.770993:     BAT: [   g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<bf+,    g~be-,    g<bf+,    g~be-,    g~be-,    g~be-,    g~be-,    g<be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<be-,    g~be-,    g~be-,    g~be+,    g~be+,    g~be+,    g~be+,    g<be+,    g>be+,    g~be+,    g~be+,    g~be-,    g>be-,    g<be-,    g>be-,    g>be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<be-,    g<bf+]
2024-11-15 16:25:10.773743:    LOAD: [    46.5,    46.77,    47.69,    48.57,    49.45,    50.19,     50.9,    51.59,    52.27,    53.59,    54.69,    56.68,    57.55,    57.91,    58.35,    58.61,    58.87,    59.59,     60.4,    60.98,    61.73,    62.92,    64.33,    65.31,     66.1,    67.43,    68.14,    68.42,     68.7,    69.11,     69.6,    70.24,     70.9,    71.79,    72.78,    73.78,    74.83,     75.8,    76.78,    77.82,    78.95,    79.87,     80.9,    82.23,    83.92,     84.8,    85.09,    87.88,    90.13,    91.21,    92.12,    92.87,    93.58,    94.04,    94.58,    95.21,     95.8,     97.0]
2024-11-15 16:25:10.776978:      PV: [    10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,    10.42,     10.5,    10.65,    10.91,    11.31,    11.87,    12.55,    13.32,    14.11,    14.83,    15.41,    15.83,     16.1,    16.28,    16.39,    16.45,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48,    16.48]
2024-11-15 16:25:10.780302:  IMPORT: [    56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,    60.65,    61.76,    63.74,    64.62,    64.62,    64.62,    64.62,    64.62,    68.21,    69.03,    69.61,    70.36,    71.55,    72.97,    73.95,    74.74,    76.07,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,    76.78,     78.9,    81.12,     82.2,    83.12,    83.86,    84.57,    85.04,    85.58,     86.2,     86.8,    92.77]
2024-11-15 16:25:10.783977:  EXPORT: [     2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9]
2024-11-15 16:25:10.788112:  METRIC: [   783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,   836.92,   850.06,   873.62,    884.0,    884.0,    884.0,    884.0,    884.0,   980.12,    989.8,   996.69,  1005.57,  1019.72,  1036.49,  1048.05,  1057.48,  1073.27,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1081.65,  1106.75,   1133.0,  1161.65,  1185.98,   1205.8,  1224.57,  1237.02,  1251.39,  1268.01,  1283.72,  1354.56]
2024-11-15 16:25:11.215607: predict best end_record 11-16 20:10:00 final soc 2.99 kWh metric 1069.42 p metric_keep 0 min_soc 2.1 @ 11-16 20:00:00 kWh load 91.42 pv 25.82
2024-11-15 16:25:11.218703:          [   16:25,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30,    21:00,    21:30,    22:00,    22:30,    23:00,    23:30,    00:00,    00:30,    01:00,    01:30,    02:00,    02:30,    03:00,    03:30,    04:00,    04:30,    05:00,    05:30,    06:00,    06:30,    07:00,    07:30,    08:00,    08:30,    09:00,    09:30,    10:00,    10:30,    11:00,    11:30,    12:00,    12:30,    13:00,    13:30,    14:00,    14:30,    15:00,    15:30,    16:00,    16:30,    17:00,    17:30,    18:00,    18:30,    19:00,    19:30,    20:00,    20:30]
2024-11-15 16:25:11.221610:     SOC: [    15.5,    15.31,     14.4,    13.57,    12.68,    11.96,    11.25,    10.59,     9.93,    12.31,    12.31,    12.31,    12.31,    11.91,    11.48,    11.22,    10.96,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.56,    13.28,     13.0,    12.63,    12.15,    11.53,    10.93,     10.3,     9.72,     9.44,     9.55,    10.13,    10.96,    11.87,    12.74,    13.58,    13.97,    13.75,    12.86,    12.43,    12.35,     9.98,     7.83,     6.68,     5.77,     5.03,     4.32,     3.87,     3.34,     2.74,     2.15,     6.55]
2024-11-15 16:25:11.223797:     BAT: [   g>be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<bf+,    g<be-,    g<bf+,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g<be-,    g<bf+,    g~be-,    g~be-,    g~be-,    g>be-,    g~be-,    g<be-,    g~be-,    g>be-,    g>be-,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g~be+,    g>be-,    g~be-,    g<be-,    g<be-,    g<be-,    g>be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g~be-,    g<bf+]
2024-11-15 16:25:11.226809:    LOAD: [    46.5,    46.68,    47.52,     48.3,    49.12,    49.79,    50.46,    51.07,    51.69,    52.83,    53.92,    55.66,    56.48,    56.85,    57.25,    57.49,    57.74,    58.39,    59.07,    59.64,    60.25,    61.34,    62.58,    63.53,     64.2,     65.5,    66.15,    66.41,    66.67,    67.02,    67.46,    68.04,    68.65,    69.42,    70.32,    71.23,    72.18,    73.06,    73.96,    74.91,    75.93,    76.78,    77.69,    78.87,    80.42,    81.28,    81.58,    83.93,     86.0,    87.07,    87.91,     88.6,    89.26,    89.68,    90.18,    90.74,    91.29,    92.27]
2024-11-15 16:25:11.229297:      PV: [    10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,     10.4,    10.46,    10.65,    11.02,     11.7,     12.8,    14.32,    16.11,    18.04,     20.0,    21.74,     23.1,    24.13,    24.88,    25.35,     25.6,    25.75,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82,    25.82]
2024-11-15 16:25:11.232156:  IMPORT: [    56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,     56.1,    59.81,     60.9,    62.65,    63.47,    63.47,    63.47,    63.47,    63.47,    66.92,    67.61,    68.18,    68.79,    69.88,    71.12,    72.09,    72.76,    74.06,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    74.71,    80.42]
2024-11-15 16:25:11.234787:  EXPORT: [     2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9,      2.9]
2024-11-15 16:25:11.237964:  METRIC: [   783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,    783.1,   827.05,   839.91,   860.64,   870.32,   870.32,   870.32,   870.32,   870.32,   964.83,    973.0,   979.76,   987.06,   999.96,  1014.64,  1026.03,   1034.0,  1049.38,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1057.08,  1124.69]
2024-11-15 16:25:11.243379:  STATE:  [        ,         ,         ,         ,         ,         ,         ,         ,     Chrg,     Chrg,     Chrg,     Chrg,         ,         ,         ,         ,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,     Chrg,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,         ,     Chrg]
2024-11-15 16:25:12.378320: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0.0
2024-11-15 16:25:12.407166: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0.0
2024-11-15 16:25:12.439777: Best charging limit socs [12.31, 13.56, 21.06, 21.06] export [99] gives import battery 60.53 house 0.0 export 21.87 metric 1069.42 metric10 1296.44
2024-11-15 16:25:13.022371: Web interface history update
2024-11-15 16:25:13.469214: Export threshold used for optimisation was 21.5p
2024-11-15 16:25:13.749999: High export rate windows [0: 11-15 16:00:00 - 11-15 16:30:00 @ 12.0, 1: 11-15 16:30:00 - 11-15 17:00:00 @ 12.0, 2: 11-15 17:00:00 - 11-15 17:30:00 @ 12.0, 3: 11-15 17:30:00 - 11-15 18:00:00 @ 12.0, 4: 11-15 18:00:00 - 11-15 18:30:00 @ 12.0, 5: 11-15 18:30:00 - 11-15 19:00:00 @ 12.0, 6: 11-15 19:00:00 - 11-15 19:30:00 @ 12.0, 7: 11-15 19:30:00 - 11-15 20:00:00 @ 12.0, 8: 11-15 20:00:00 - 11-15 20:30:00 @ 12.0, 9: 11-15 20:30:00 - 11-15 21:00:00 @ 12.0, 10: 11-15 21:00:00 - 11-15 21:30:00 @ 12.0, 11: 11-15 21:30:00 - 11-15 22:00:00 @ 12.0, 12: 11-15 22:00:00 - 11-15 22:30:00 @ 12.0, 13: 11-15 22:30:00 - 11-15 23:00:00 @ 12.0, 14: 11-15 23:00:00 - 11-15 23:30:00 @ 12.0, 15: 11-15 23:30:00 - 11-16 00:00:00 @ 12.0, 16: 11-16 00:00:00 - 11-16 00:30:00 @ 12.0, 17: 11-16 00:30:00 - 11-16 01:00:00 @ 12.0, 18: 11-16 01:00:00 - 11-16 01:30:00 @ 12.0, 19: 11-16 01:30:00 - 11-16 02:00:00 @ 12.0, 20: 11-16 02:00:00 - 11-16 02:30:00 @ 12.0, 21: 11-16 02:30:00 - 11-16 03:00:00 @ 12.0, 22: 11-16 03:00:00 - 11-16 03:30:00 @ 12.0, 23: 11-16 03:30:00 - 11-16 04:00:00 @ 12.0, 24: 11-16 04:00:00 - 11-16 04:30:00 @ 12.0, 25: 11-16 04:30:00 - 11-16 05:00:00 @ 12.0, 26: 11-16 05:00:00 - 11-16 05:30:00 @ 12.0, 27: 11-16 05:30:00 - 11-16 06:00:00 @ 12.0, 28: 11-16 06:00:00 - 11-16 06:30:00 @ 12.0, 29: 11-16 06:30:00 - 11-16 07:00:00 @ 12.0, 30: 11-16 07:00:00 - 11-16 07:30:00 @ 12.0, 31: 11-16 07:30:00 - 11-16 08:00:00 @ 12.0, 32: 11-16 08:00:00 - 11-16 08:30:00 @ 12.0, 33: 11-16 08:30:00 - 11-16 09:00:00 @ 12.0, 34: 11-16 09:00:00 - 11-16 09:30:00 @ 12.0, 35: 11-16 09:30:00 - 11-16 10:00:00 @ 12.0, 36: 11-16 10:00:00 - 11-16 10:30:00 @ 12.0, 37: 11-16 10:30:00 - 11-16 11:00:00 @ 12.0, 38: 11-16 11:00:00 - 11-16 11:30:00 @ 12.0, 39: 11-16 11:30:00 - 11-16 12:00:00 @ 12.0, 40: 11-16 12:00:00 - 11-16 12:30:00 @ 12.0, 41: 11-16 12:30:00 - 11-16 13:00:00 @ 12.0, 42: 11-16 13:00:00 - 11-16 13:30:00 @ 12.0, 43: 11-16 13:30:00 - 11-16 14:00:00 @ 12.0, 44: 11-16 14:00:00 - 11-16 14:30:00 @ 12.0, 45: 11-16 14:30:00 - 11-16 15:00:00 @ 12.0, 46: 11-16 15:00:00 - 11-16 15:30:00 @ 12.0, 47: 11-16 15:30:00 - 11-16 16:00:00 @ 12.0, 48: 11-16 16:00:00 - 11-16 16:30:00 @ 12.0, 49: 11-16 16:30:00 - 11-16 17:00:00 @ 12.0, 50: 11-16 17:00:00 - 11-16 17:30:00 @ 12.0, 51: 11-16 17:30:00 - 11-16 18:00:00 @ 12.0, 52: 11-16 18:00:00 - 11-16 18:30:00 @ 12.0, 53: 11-16 18:30:00 - 11-16 19:00:00 @ 12.0, 54: 11-16 19:00:00 - 11-16 19:30:00 @ 12.0, 55: 11-16 19:30:00 - 11-16 20:00:00 @ 12.0, 56: 11-16 20:00:00 - 11-16 20:30:00 @ 12.0, 57: 11-16 20:30:00 - 11-16 21:00:00 @ 12.0, 58: 11-16 21:00:00 - 11-16 21:30:00 @ 12.0, 59: 11-16 21:30:00 - 11-16 22:00:00 @ 12.0, 60: 11-16 22:00:00 - 11-16 22:30:00 @ 12.0, 61: 11-16 22:30:00 - 11-16 23:00:00 @ 12.0, 62: 11-16 23:00:00 - 11-16 23:30:00 @ 12.0, 63: 11-16 23:30:00 - 11-17 00:00:00 @ 12.0, 64: 11-17 00:00:00 - 11-17 00:30:00 @ 12.0, 65: 11-17 00:30:00 - 11-17 01:00:00 @ 12.0, 66: 11-17 01:00:00 - 11-17 01:30:00 @ 12.0, 67: 11-17 01:30:00 - 11-17 02:00:00 @ 12.0, 68: 11-17 02:00:00 - 11-17 02:30:00 @ 12.0, 69: 11-17 02:30:00 - 11-17 03:00:00 @ 12.0, 70: 11-17 03:00:00 - 11-17 03:30:00 @ 12.0, 71: 11-17 03:30:00 - 11-17 04:00:00 @ 12.0, 72: 11-17 04:00:00 - 11-17 04:30:00 @ 12.0, 73: 11-17 04:30:00 - 11-17 05:00:00 @ 12.0, 74: 11-17 05:00:00 - 11-17 05:30:00 @ 12.0, 75: 11-17 05:30:00 - 11-17 06:00:00 @ 12.0, 76: 11-17 06:00:00 - 11-17 06:30:00 @ 12.0, 77: 11-17 06:30:00 - 11-17 07:00:00 @ 12.0, 78: 11-17 07:00:00 - 11-17 07:30:00 @ 12.0, 79: 11-17 07:30:00 - 11-17 08:00:00 @ 12.0, 80: 11-17 08:00:00 - 11-17 08:30:00 @ 12.0, 81: 11-17 08:30:00 - 11-17 09:00:00 @ 12.0, 82: 11-17 09:00:00 - 11-17 09:30:00 @ 12.0, 83: 11-17 09:30:00 - 11-17 10:00:00 @ 12.0, 84: 11-17 10:00:00 - 11-17 10:30:00 @ 12.0, 85: 11-17 10:30:00 - 11-17 11:00:00 @ 12.0, 86: 11-17 11:00:00 - 11-17 11:30:00 @ 12.0, 87: 11-17 11:30:00 - 11-17 12:00:00 @ 12.0, 88: 11-17 12:00:00 - 11-17 12:30:00 @ 12.0, 89: 11-17 12:30:00 - 11-17 13:00:00 @ 12.0, 90: 11-17 13:00:00 - 11-17 13:30:00 @ 12.0, 91: 11-17 13:30:00 - 11-17 14:00:00 @ 12.0, 92: 11-17 14:00:00 - 11-17 14:30:00 @ 12.0, 93: 11-17 14:30:00 - 11-17 15:00:00 @ 12.0, 94: 11-17 15:00:00 - 11-17 15:30:00 @ 12.0, 95: 11-17 15:30:00 - 11-17 16:00:00 @ 12.0, 96: 11-17 16:00:00 - 11-17 16:30:00 @ 12.0]
2024-11-15 16:25:13.782082: Import threshold used for optimisation was 12.7p
2024-11-15 16:25:14.058266: Low import rate windows [0: 11-15 20:05:00 - 11-15 21:59:00 @ 11.84, 1: 11-16 00:05:00 - 11-16 04:59:00 @ 11.84, 2: 11-16 13:05:00 - 11-16 13:59:00 @ 20.0, 3: 11-16 13:59:00 - 11-16 15:59:00 @ 11.84, 4: 11-16 20:05:00 - 11-16 21:59:00 @ 11.84, 5: 11-17 00:05:00 - 11-17 04:59:00 @ 11.84, 6: 11-17 13:05:00 - 11-17 13:59:00 @ 20.0, 7: 11-17 13:59:00 - 11-17 15:59:00 @ 11.84]
2024-11-15 16:25:14.150018: Will not recompute the plan, it is 5.0 minutes old and max age is 10 minutes
2024-11-15 16:25:14.292920: Completed run status Read-Only
2024-11-15 16:25:14.332900: Info: record_status Read-Only
2024-11-15 16:25:14.374833: Saved current settings to /addon_configs/6adb4f0d_predbat/predbat_config.json

@LeeFarm11
Copy link
Author

I don't have Car or iBoost. But I do have EVC but it is not used. But log says 20kWh of car/iBoost excluded. Looks like maybe something related and not related to 3 phase. But I have no idea why.

2024-11-15 16:25:06.320309: Today's predicted so far 20.34 kWh with 18.65 kWh car/iBoost excluded and 11.3 kWh import ignored and 0 forecast extra.
2024-11-15 16:25:06.320362: Today's actual load so far 17.39 kWh with 19.58 kWh Car/iBoost excluded and 9.43 kWh import ignored.

I did disable GivEVC within GivTCP settings a couple of days ago. But that should not be relevant?

image

@LeeFarm11
Copy link
Author

I think I must have accidentally turned on 'Car charging hold' at some point. I turned it off and the load predictions now look more sensible. But since I have never used the car charger except once back in April, I don't understand how it could have such a large impact.

@gcoan
Copy link
Collaborator

gcoan commented Nov 16, 2024

It's generally not advised to set days_previous to 1, see https://springfall2008.github.io/batpred/apps-yaml/#understanding-how-days_previous-works so this will have an effect on your prior load history. It's better to look further back (as far as you can without your load history). Do turn switch.predbat_load_filter_modal on to exclude the part-day that you will get in your broken load history.

Have a look at the car charging config https://springfall2008.github.io/batpred/apps-yaml/#car-charging-filtering
Predbat was removing whatever you have car_charging_energy set to, so might be worth checking the history on that sensor and whether it is correct?

@LeeFarm11
Copy link
Author

It's generally not advised to set days_previous to 1, see https://springfall2008.github.io/batpred/apps-yaml/#understanding-how-days_previous-works so this will have an effect on your prior load history. It's better to look further back (as far as you can without your load history). Do turn switch.predbat_load_filter_modal on to exclude the part-day that you will get in your broken load history.

Thanks for the pointer. switch.predbat_load_filter_modal was already switched on.

@LeeFarm11
Copy link
Author

Have a look at the car charging config https://springfall2008.github.io/batpred/apps-yaml/#car-charging-filtering Predbat was removing whatever you have car_charging_energy set to, so might be worth checking the history on that sensor and whether it is correct?

Thanks.
car_charging_energy is set as default in apps.yaml. Not commented out -

car_charging_energy: 're:(sensor.myenergi_zappi_[0-9a-z]+_charge_added_session|sensor.wallbox_portal_added_energy)'

I do not have zappi or Wallbox. I only have a GivEnergy EVC so therefore car_charging_energy presumably finds nothing.
input_number.predbat_car_charging_threshold is set at 6kW and input_number.predbat_car_charging_rate is set at 7.4kW
Not sure which of these takes precedent but it seems one or both were being used while Car charging hold was On.

The documentation suggests that these alternate figures will only be used if car_charging_energy is commented out. But it is not commented out. So it seems they are also used if car_charging_energy is not valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AC3 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants