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

Solar Edge Integration #181

Open
Londonlad95 opened this issue Oct 14, 2023 · 87 comments
Open

Solar Edge Integration #181

Londonlad95 opened this issue Oct 14, 2023 · 87 comments
Labels
enhancement New feature or request

Comments

@Londonlad95
Copy link

Hi Trefor,

As discussed, here are the list of entities etc of the solar edge mod bus multi-integration.

`

<style> </style>
Name Full Name
Solaredge B1 Maximum Energy sensor.solaredge_b1_maximum_energy
Solaredge B1 State of Energy sensor.solaredge_b1_state_of_energy
Solaredge B1 State of Health sensor.solaredge_b1_state_of_health
Solaredge B1 Status sensor.solaredge_b1_status
Solaredge B1 Version sensor.solaredge_b1_version
Solaredge I2 AC Charge Limit number.solaredge_i2_ac_charge_limit
Solaredge I2 AC Charge Policy select.solaredge_i2_ac_charge_policy
Solaredge I2 AC Current sensor.solaredge_i2_ac_current
Solaredge I2 AC Energy kWh sensor.solaredge_i2_ac_energy_kwh
Solaredge I2 AC Frequency sensor.solaredge_i2_ac_frequency
Solaredge I2 AC Power sensor.solaredge_i2_ac_power
Solaredge I2 AC Voltage AB sensor.solaredge_i2_ac_voltage_ab
Solaredge I2 Active Power Limit sensor.solaredge_i2_active_power_limit
Solaredge I2 Active Power Limit number.solaredge_i2_active_power_limit
Solaredge I2 Advanced Power Control binary_sensor.solaredge_i2_advanced_power_control
Solaredge I2 Backup Reserve number.solaredge_i2_backup_reserve
Solaredge I2 DC Current sensor.solaredge_i2_dc_current
Solaredge I2 DC Power sensor.solaredge_i2_dc_power
Solaredge I2 DC Voltage sensor.solaredge_i2_dc_voltage
Solaredge I2 Device sensor.solaredge_i2_device
Solaredge I2 Grid Control switch.solaredge_i2_grid_control
Solaredge I2 Refresh button.solaredge_i2_refresh
Solaredge I2 RRCR Status sensor.solaredge_i2_rrcr_status
Solaredge I2 Status sensor.solaredge_i2_status
Solaredge I2 Status Vendor sensor.solaredge_i2_status_vendor
Solaredge I2 Storage Charge Limit number.solaredge_i2_storage_charge_limit
Solaredge I2 Storage Command Mode select.solaredge_i2_storage_command_mode
Solaredge I2 Storage Command Timeout number.solaredge_i2_storage_command_timeout
Solaredge I2 Storage Control Mode select.solaredge_i2_storage_control_mode
Solaredge I2 Storage Default Mode select.solaredge_i2_storage_default_mode
Solaredge I2 Storage Discharge Limit number.solaredge_i2_storage_discharge_limit
Solaredge I2 Temp Sink sensor.solaredge_i2_temp_sink
Solaredge I2 Version sensor.solaredge_i2_version
Solaredge M1 AC Current sensor.solaredge_m1_ac_current
Solaredge M1 AC Current A sensor.solaredge_m1_ac_current_a
Solaredge M1 AC Current B sensor.solaredge_m1_ac_current_b
Solaredge M1 AC Current C sensor.solaredge_m1_ac_current_c
Solaredge M1 AC Frequency sensor.solaredge_m1_ac_frequency
Solaredge M1 AC Power sensor.solaredge_m1_ac_power
Solaredge M1 AC Power A sensor.solaredge_m1_ac_power_a
Solaredge M1 AC Power B sensor.solaredge_m1_ac_power_b
Solaredge M1 AC Power C sensor.solaredge_m1_ac_power_c
Solaredge M1 AC Voltage AB sensor.solaredge_m1_ac_voltage_ab
Solaredge M1 AC Voltage AN sensor.solaredge_m1_ac_voltage_an
Solaredge M1 AC Voltage BC sensor.solaredge_m1_ac_voltage_bc
Solaredge M1 AC Voltage BN sensor.solaredge_m1_ac_voltage_bn
Solaredge M1 AC Voltage CA sensor.solaredge_m1_ac_voltage_ca
Solaredge M1 AC Voltage CN sensor.solaredge_m1_ac_voltage_cn
Solaredge M1 AC Voltage LL sensor.solaredge_m1_ac_voltage_ll
Solaredge M1 AC Voltage LN sensor.solaredge_m1_ac_voltage_ln
Solaredge M1 Device sensor.solaredge_m1_device
Solaredge M1 Exported A kWh sensor.solaredge_m1_exported_a_kwh
Solaredge M1 Exported B kWh sensor.solaredge_m1_exported_b_kwh
Solaredge M1 Exported C kWh sensor.solaredge_m1_exported_c_kwh
Solaredge M1 Exported kWh sensor.solaredge_m1_exported_kwh
Solaredge M1 Imported A kWh sensor.solaredge_m1_imported_a_kwh
Solaredge M1 Imported B kWh sensor.solaredge_m1_imported_b_kwh
Solaredge M1 Imported C kWh sensor.solaredge_m1_imported_c_kwh
Solaredge M1 Imported kWh sensor.solaredge_m1_imported_kwh
Solaredge M1 Meter Events sensor.solaredge_m1_meter_events
Solaredge M1 Version sensor.solaredge_m1_version
`

2023-10-14 15_47_48-Settings – Home Assistant and 114 more pages - Personal - Microsoft​ Edge
2023-10-14 15_49_37-Settings – Home Assistant and 114 more pages - Personal - Microsoft​ Edge
2023-10-14 15_49_52-Settings – Home Assistant and 114 more pages - Personal - Microsoft​ Edge

@Londonlad95
Copy link
Author

I forgot to include the modbus device entities on the front end; here they are.

2023-10-14 15_53_50-Settings – Home Assistant and 114 more pages - Personal - Microsoft​ Edge
2023-10-14 15_54_15-

@springfall2008
Copy link
Owner

Thanks, I'll try to work up a configuration for a read-only version at first

Do you know how you set the charge time?

@Londonlad95
Copy link
Author

In order to charge from the Grid, I have to set the AC charge policy to "Always Allowed", and then set the storage command mode to "Charge from Solar Power and Grid" Then it charges from the grid. I don't have a way of setting a time on that apart from the automation running and looking at the octopus target and then updating those statuses.

@springfall2008
Copy link
Owner

I'm having trouble tallying some of the pictures to the table, not all seem to match.

Do you have the name for 'Available Energy' as shown in the picture?

I also need two sensors I can't see here:

  1. The house consumption in kWh - Givenergy calls that 'load'. This is used to predict future consumption in Predbat.
  2. The amount of Solar energy produced in kWh so far.

If you can find these I'll do the updates and we can give it a try.

I've created a branch here with a few minor updates to Predbat and an example configuration (solaredge.yaml) which would be used instead of the default apps.yaml

The code from Predbat with the update and the template configuration is on this branch:

https://github.com/springfall2008/batpred/tree/solar_edge

@Londonlad95
Copy link
Author

Hi,

So the available energy as seen above, is from: sensor.solaredge_b1_available_energy

As for the house load, I believe it's sensor.solaredge_i2_ac_power

Now as for the Solar Energy produced, that's a tricky one, I think. I had to create custom sensor of that from memory, as I use this sensor for that which is an accumulative total ever produced; solar_panel_production_kwh. I got that from one of the guides on how to use the Solare edge multi-integration on the home assistant forums.

@springfall2008
Copy link
Owner

Okay great, I think I have something to test.

Can you go through the normal Predbat install as if it was a GE inverter (install AppDaemon, enable AppDaemon in HACS, installed Predbat). Then rather than changing the template configuration it installs:

And have a look at the appdaemon log file to see what happens.

I'd recommended in appdaemon.yaml to point your logs to a separate file so that you can copy/paste them easily, just add this to the bottom on appdaemon.yaml:

logs:
  main_log: 
    filename: /config/appdaemon.log
    log_size: 10000000

@RobinXe
Copy link

RobinXe commented Nov 5, 2023

For info, the B1 'available energy' sensor doesn't seem to be indicative of the live state of charge. Instead, it appears to be an indicator of what the BMS thinks 100% is, so the live charge level of the battery, in kWh, would be B1 available energy * ( B1 state of energy/100).

M1's 'AC power', positive or negative, indicates the flow out/in at the grid feed (normally). It does not distinguish, on its own, whether the import is to the house or to the battery, if it's being charged from the grid. I1's 'AC power' sensor would be negative in that case, however.

Hope that all makes sense.

@fboundy
Copy link
Collaborator

fboundy commented Nov 7, 2023

Hi - I'm helping Trefor out with adding additional inverter brands. In addition to the above can you answer the following please?

  • What format are the charge/discharge start/end entities? (i.e to they take a string as HH:MM(Givenerrgy) or are there separate entities for Hours and Minutes (Solis)
  • Once you have set the start/end time entities, do they automatically get written to the inverter or do you have to press a button?
  • Do you set Power or Current during a timed Charge/Discharge?
  • Can you set a Target SOC for a timed charge or discharge period?
  • Does the inverter report SOC in kWh or Percent?
  • Is there a specific boolean entity to toggle to enable Timed Charge and/or Discharge?
  • Can you set a Reserve or Backup SOC?
  • Does the inverter have a specific Mode that needs setting for Timed Charge, Discharge or Backup?

@RobinXe
Copy link

RobinXe commented Nov 7, 2023

Hi! Let's see:

There isn't the ability to write timed slots to the inverter. The process for triggering a grid charge/discharge is as follows:

One time only, unless reverted:

  • Set 'Storage Control Mode' to 'Remote Control'.

At slot time:

  • Set 'Storage Command Timeout' to length of slot, in seconds.
  • Set 'Storage Command Mode' to 'Charge from Solar Power and Grid' or 'Discharge to Maximise Export'.

You can set 'Storage Charge Limit'/'Storage Discharge Limit', both in watts. These are not specific to any slot, and will persist until midnight-ish, when they'll revert to 11400W, which I believe is just the maximum value of the register, as the max for the battery is 5000W.

You cannot set a target SoC, just the power limit and duration.

The inverter reports SoC as a %age, but an energy can be derived using that and the 'available energy'.

You can set a backup reserve, in %age.

Hopefully that covers all your queries, happy to expand/clarify as required. It sounds like, if other inverters manage timed charging/discharging onboard, then SolarEdge might require an additional control component too keep track of slots within HA, and trigger them at the appropriate time.

@fboundy
Copy link
Collaborator

fboundy commented Nov 7, 2023 via email

@Arachnid
Copy link

Any progress on this? I'll soon have an installation with a SolarEdge inverter, and would be happy to help debug this and try it out.

@springfall2008
Copy link
Owner

@Arachnid if you want to try then maybe get together a predbat config using one of the templates from something like Sofar and see what you can get working, then come back with the bits you are stuck on?

@LupoLoopy
Copy link

Hi

I've tried to set this up on my install, renaming sensors and creating the required Solar_Panel_Energy sensor.

I'm currently facing this error in the AppDaemon log.

2024-02-12 23:43:53.879437 WARNING pred_bat: ------------------------------------------------------------
2024-02-12 23:45:09.618585 WARNING pred_bat: ------------------------------------------------------------
2024-02-12 23:45:09.618916 WARNING pred_bat: Unexpected error in worker for App pred_bat:
2024-02-12 23:45:09.619220 WARNING pred_bat: Worker Ags: {'id': 'ef2f4d5f90f64a03b5644ab5fb85f01d', 'name': 'pred_bat', 'objectid': '33dccc4036124d8fba34c5e3b1505d40', 'type': 'scheduler', 'function': <bound method PredBat.run_time_loop of <predbat.PredBat object at 0x7f04675b5a50>>, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'interval': 300, 'random_start': 0, 'random_end': 0, '__thread_id': 'thread-0'}}
2024-02-12 23:45:09.619443 WARNING pred_bat: ------------------------------------------------------------
2024-02-12 23:45:09.621130 WARNING pred_bat: Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/appdaemon/threading.py", line 1022, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/usr/lib/python3.11/site-packages/appdaemon/adbase.py", line 35, in f_app_lock
return f(*args, **kw)
^^^^^^^^^^^^^^
File "/homeassistant/appdaemon/apps/batpred/predbat.py", line 12119, in run_time_loop
raise e
File "/homeassistant/appdaemon/apps/batpred/predbat.py", line 12115, in run_time_loop
self.update_pred(scheduled=True)
File "/usr/lib/python3.11/site-packages/appdaemon/adbase.py", line 35, in f_app_lock
return f(*args, **kw)
^^^^^^^^^^^^^^
File "/homeassistant/appdaemon/apps/batpred/predbat.py", line 11122, in update_pred
self.fetch_inverter_data()
File "/homeassistant/appdaemon/apps/batpred/predbat.py", line 10694, in fetch_inverter_data
inverter = Inverter(self, id)
^^^^^^^^^^^^^^^^^^
File "/homeassistant/appdaemon/apps/batpred/predbat.py", line 1081, in init
self.inv_has_rest_api = INVERTER_DEF[self.inverter_type]["has_rest_api"]
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'SE'

The log file seems to be demonstrating generally good discoveries being performed, but ultimately no plan is being generated, the plan card outputting NULL.

I'm happy to keep plugging away at this over the next few weeks as a platform tester, as I'm 99% sure my config file and install are correct.

I'll disable AppDaemon for tonight (revert to crude NodeRed battery management). If I can get past this bit, I'm sure I can help you guys generalise your code.

@LupoLoopy
Copy link

You can set a backup reserve, in %age.

You can but it doesn't appear to anything on my ModBus install! If you set the value, it invariably resets to its default. This makes me question if it's a universibly reliable element.

@RobinXe
Copy link

RobinXe commented Feb 13, 2024

You can set a backup reserve, in %age.

You can but it doesn't appear to anything on my ModBus install! If you set the value, it invariably resets to its default. This makes me question if it's a universibly reliable element.

Yes, I've found that my SE inverter resets itself at least once a day, restoring defaults to all the settings. My solution to this has been a watchdog component to any automations, that is triggered by a change in that setting, to ensure it gets reset as desired following a reversion.

@duckfullstop
Copy link

duckfullstop commented Mar 4, 2024

I have a semi-working, read-only installation up and running - I'll post the relevant config snippets below for those that it helps. Note that some of the sensors (namely sensor.solar_panel_production_w, sensor.solar_panel_production_daily, and sensor.solar_house_consumption_w) are calculated using template sensors, available here: https://github.com/ryanm101/hasolarcfg. Note that the aforementioned beta branch has been removed, so this uses the current stable build.

I'm only classing this as semi-working as for some reason my 24h battery depletion forecast is woefully pessimistic - I'm presuming I've probably just screwed up somewhere and not implemented either my iboost or EV charging scenario properly, but if you see similar (past 24h is fine!) please do chime in.

  load_today:
    - sensor.solaredge_i1_ac_energy_kwh
  import_today:
    - sensor.solaredge_m1_imported_kwh
  export_today:
    - sensor.solaredge_m1_exported_kwh
  pv_today:
    - sensor.solar_panel_production_daily  # Custom template sensor
  
  num_inverters: 1
  # Inverter type stubbed to SX4 to allow execution - SE is an invalid type in current head version
  inverter_type: "SX4"
  # inverter_type: "SE"

  # auto_restart:
  # - service: homeassistant.reload_config_entry
  #   entity_id: sensor.solaredge_i1_status

  battery_rate_max:
    - sensor.solaredge_b1_max_charge_power
  charge_rate:
    - number.solaredge_i1_storage_charge_limit
  discharge_rate:
    - number.solaredge_i1_storage_discharge_limit
  battery_power:
    - sensor.solaredge_b1_dc_power
  pv_power:
    - sensor.solar_panel_production_w # Custom template sensor
  load_power:
    - sensor.solar_house_consumption_w # Custom template sensor
  soc_kw:
    - sensor.solaredge_b1_available_energy
  soc_percent:
    - sensor.solaredge_b1_state_of_energy
  soc_max:
    - sensor.solaredge_b1_maximum_energy
  reserve:
    - number.solaredge_i1_backup_reserve

Control will require changes to predbat's codebase, but as previously discussed, should be relatively trivial to implement and can probably (I'm guessing!) be implemented by extending off the Home Assistant entity control that already exists.

@marlon89br
Copy link

I'm having a SolarEdge system installed in the next few weeks, so I'll follow this thread and I'm also happy to help once I have the system in place.

@springfall2008 springfall2008 added the enhancement New feature or request label Mar 4, 2024
@springfall2008
Copy link
Owner

Looking at the template here:

https://github.com/springfall2008/batpred/blob/main/templates/solaredge.yaml

There's a couple of differences, this is probably another template:

  pv_today:
    - sensor.solar_panel_production_kwh   # This is a custom sensor - documentation TBD

And this stuff you may want to add:

  charge_start_time:
   - "00:00:00"
  charge_end_time:
   - "00:01:00"
  charge_limit:
   - number.solaredge_i2_ac_charge_limit
  scheduled_charge_enable:
   - off
  scheduled_discharge_enable:
   - off
  discharge_start_time:
   - "00:00:00"
  discharge_end_time:
   - "00:01:00"

I've re-created the branch : https://github.com/springfall2008/batpred/tree/solar_edge and added the missing 'SE' configuration table, however I don't know how to control the inverter. How can Predbat start a charge and how can it start a discharge? Can you provide an example automation in HA to show how this is done and then I can add it to the code?

@duckfullstop
Copy link

duckfullstop commented Mar 4, 2024

I've re-created the branch : https://github.com/springfall2008/batpred/tree/solar_edge and added the missing 'SE' configuration table, however I don't know how to control the inverter. How can Predbat start a charge and how can it start a discharge? Can you provide an example automation in HA to show how this is done and then I can add it to the code?

Here you go!

choose:
  - conditions:
      - condition: state
        entity_id: binary_sensor.octopus_energy_a_<redacted>_intelligent_dispatching
        state: "on"
        alias: Intelligent Octopus block / Off-Peak
    sequence:
      - device_id: a0f1da08c6f00368315c3c7bed85f2db
        domain: select
        entity_id: bb33d53355844f55e69380b2f11b4ed5
        type: select_option
        option: Charge from Solar Power and Grid
        alias: Charge from Grid
    alias: Intelligent Boost
  - conditions:
      - alias: Zappi charging from PV
        condition: state
        entity_id: sensor.myenergi_zappi_status
        state: Charging
        enabled: true
    sequence:
      - device_id: a0f1da08c6f00368315c3c7bed85f2db
        domain: select
        entity_id: bb33d53355844f55e69380b2f11b4ed5
        type: select_option
        option: Charge from Solar Power
        alias: Charge from Solar only
    alias: Inhibit discharging house battery for EVSE load
default:
  - device_id: a0f1da08c6f00368315c3c7bed85f2db
    domain: select
    entity_id: bb33d53355844f55e69380b2f11b4ed5
    type: select_option
    option: Maximize Self Consumption
    alias: Maximise Self Consumption

All commands are targetted at the i1 device (the inverter).

Here are the valid modes for select.solaredge_i1_storage_command_mode / select.solaredge_i1_storage_default_mode, defined in the solaredge specification:

options:
  - Solar Power Only (Off)
  - Charge from Clipped Solar Power
  - Charge from Solar Power
  - Charge from Solar Power and Grid
  - Discharge to Maximize Export
  - Discharge to Minimize Import
  - Maximize Self Consumption
friendly_name: Solaredge I1 Storage Command Mode

The control flow as discussed in #181 (comment) is correct as far as I'm aware. storage_default_mode stays active until otherwise changed, storage_command_mode applies for number.solaredge_i1_storage_command_timeout seconds.

There's a couple of differences, this is probably another template:

 pv_today:
   - sensor.solar_panel_production_kwh   # This is a custom sensor - documentation TBD

This is likely https://gist.github.com/Ashpork/f80fb0d3cb22356a12ed24734065061c


One other thing: your extra config calls out number.solaredge_i2_ac_charge_limit - it may be pertinent to change to i1 as most setups use one inverter. See https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Power-Control-Options-%E2%80%90-Configuration#ac-charge-policy for more information on this functionality.

@Londonlad95
Copy link
Author

The reason the i2 is called out is because my inverter for some bizarre reason that I cannot resolve is that it’s i2 and not i1. I have tried changing it to i1 but to no avail.

@springfall2008
Copy link
Owner

Please find on the branch an updated template with the charge/discharge service settings and an updated predbat.py to support this. Can you give it a try please?

@duckfullstop
Copy link

duckfullstop commented Mar 5, 2024

I've just switched to the branch and command seems to be working as expected: I'll observe it over the next 24-48h and report back if there's any serious issues.

Initial observations:

  • INFO pred_bat: WARN: Inverter 0 Trying to write 4.0 to reserve didn't complete got 0 (where reserve is number.solaredge_i1_backup_reserve)
    • presumably this is an issue with the backup reserve setting as previously discussed, if I had to guess this is because we don't have a backup interface available on the modbus, so the inverter just ignores related commands.
    • Disabled by setting has_reserve_soc on the appropriate object to False for the interim.
    • This appears to potentially be affecting the charge / discharge rate registers too - requires investigation.
  • Maximize Self Consumption may be a better default mode than Charge from Solar Power, which inhibits discharge for house load.
    • MSC allows charge and discharge as appropriate based on house load / PV production
    • Charge from Solar Power is the effective equivalent of Freeze Charge mode
    • Discharge to Minimize Import is the effective equivalent of Freeze Discharge mode
  • discharge_stop_service - should we be setting this in config?
  • Services call storage_command_mode by default, which is probably a good move as after the timeout it'll revert to the default mode - which means if predbat stops talking to the inverter for some reason it can use a sane default (like Maximize Self Consumption).
    • May be worth calling out an appropriate change to number.solaredge_i1_storage_command_timeout(3600 seconds is default, sounds sane?) in the documentation if this behaviour is indeed desired.
  • Power Control Options, as well as Enable Battery Control, must be enabled in the Solaredge Modbus Multi integration configuration, and switch.solaredge_i1_advanced_power_control must be on.

Happy to contribute / flesh out setup documentation if it'd help!

@springfall2008
Copy link
Owner

Great news, please review my pull request that is now updated: https://github.com/springfall2008/batpred/pull/817/files

  • I change the i2 to i1 in the template and cleaned it up a little
  • I added documentation, please review and comment
  • I changed the stop method to Maximise Self Consumption
  • I also updated predbat so the inverter configuration options inside predbat.py can be overridden inside apps.yaml if need be, this can allow others to create new integrations quickly

Once we are happy with this and its merged I can look at charge and discharge freeze modes.

@duckfullstop
Copy link

Sorry for the delay, life's been happening 😵‍💫 The functionality in #817 seems to be working perfectly after a week's testing (still getting strange expected load but that's out of scope for this issue and I'll tackle it another time) 🎉

I guess just charge / discharge freeze to consider now?

@Noodleyman
Copy link

Noodleyman commented Mar 14, 2024

Morning All,

firstly a thank you for your efforts! loving the way this is coming along and I am very much looking forward to using it in anger :)

I have been trying to get it up and running this week and I am mostly there, but had a couple issues that I couldn't find the solution to. I was hoping that somebody may be able to kindly offer some advice on what I should review next.

PredBat status shows errors:

  • Return bad float value unavailable from charge_rate

I have the following setup in my apps.yaml config (note, I added a "modbus" prefix to the solaredge-modbus-multi install rather than leave it default.

  charge_rate:
    - number.solaredgemodbus_i1_storage_charge_limit
  discharge_rate:
    - number.solaredgemodbus_i1_storage_discharge_limit

Checking those entities in HA, I see both report a value of undefined which explains the error.

solaredge-modbus-multi is setup per the guides, with power control options enabled, butI did not check "allow battery energy to reset". Storage control and site limit control are also enabled. I suspect this question should likely be directed to the solaredge-modbus-multi issues instead, but wanted to raise it here first in case the entity being referenced needs to be revised/reviewed.

I'm using a SE6000H (soon to be upgraded to SE1000H), with 11kWp and a home battery.

@gcoan
Copy link
Collaborator

gcoan commented Mar 14, 2024

charge_rate and discharge_rate should be configured in apps.yaml to an HA control that allows you to control the inverter charge and discharge rate.

e.g. on my givenergy inverter it points to a control that can be set to a value between 2600 and zero, representing full rate charge/discharge down to no charge/discharge.

Predbat uses this to control the rate of battery charge and discharge.

So yes, it does sound like a question for the Solaredge modbus integration. If the answer is that there is no equivalent of charge/discharge rate for your inverter type then will need to find a different way of turning the inverter charge/discharge on/off and Trefor will have to adapt the code. But if you can ask the question first

@Noodleyman
Copy link

Noodleyman commented Mar 14, 2024

charge_rate and discharge_rate should be configured in apps.yaml to an HA control that allows you to control the inverter charge and discharge rate.

e.g. on my givenergy inverter it points to a control that can be set to a value between 2600 and zero, representing full rate charge/discharge down to no charge/discharge.

Predbat uses this to control the rate of battery charge and discharge.

So yes, it does sound like a question for the Solaredge modbus integration. If the answer is that there is no equivalent of charge/discharge rate for your inverter type then will need to find a different way of turning the inverter charge/discharge on/off and Trefor will have to adapt the code. But if you can ask the question first

Good Morning, thank you for the feedback, very helpful. as you hit reply I had just finished opening a bug for this here:
WillCodeForCats/solaredge-modbus-multi#561

I am suspecting that the entities are correct, but the modbus integration seems to not populate them. The debug log shows it is pulling the values which the entities should be populated with. It may be an issue due to me using a prefix rather than standard config. I shall see what feedback that gets.

I am curious what values others have for the entities from their SE inverter via modbus.

I'll hard code the values for now to 5000, which are the correct values for the battery charge rates.

@Noodleyman
Copy link

Further updates. would appreciate if anybody could offer some guidance on what else I should review?

From the Predbat AppDaemon v4.4.2 engine (on port 5051), this is likley showing the issue with the never ending charge issue.

2024-04-09 11:36:59.633857 WARNING HASS: Code: 500, error: 500 Internal Server Error Server got itself in trouble
2024-04-09 11:36:59.632962 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:56.632681 WARNING HASS: Code: 500, error: 500 Internal Server Error Server got itself in trouble
2024-04-09 11:36:56.630839 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:53.632666 WARNING HASS: Code: 500, error: 500 Internal Server Error Server got itself in trouble
2024-04-09 11:36:53.631869 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:53.326859 INFO pred_bat: Creating predbat dashboard at /homeassistant/predbat_dashboard.yaml
2024-04-09 11:36:53.299003 INFO pred_bat: Completed run status Hold charging with Errors reported (check log)
2024-04-09 11:36:53.229479 INFO pred_bat: WARN: Inverter 0 Trying to write 86 to reserve didn't complete got 83
2024-04-09 11:36:50.625042 WARNING HASS: Code: 500, error: 500 Internal Server Error Server got itself in trouble
2024-04-09 11:36:50.624229 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:47.656922 WARNING HASS: Code: 500, error: 500 Internal Server Error Server got itself in trouble
2024-04-09 11:36:47.645699 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:46.817616 INFO AppDaemon: New client Admin Client connected
Server got itself in trouble
2024-04-09 11:36:44.618788 WARNING HASS: Code: 500, error: 500 Internal Server Error
2024-04-09 11:36:44.616337 WARNING HASS: Error calling Home Assistant service default/number/set_value
2024-04-09 11:36:41.041656 INFO pred_bat: Inverter 0 Current Reserve is 83.0 % and new target is 86 %
2024-04-09 11:36:41.034707 INFO pred_bat: Adjust reserve to target charge 85 % (set_reserve_enable is true)
**2024-04-09 11:36:41.029908 INFO pred_bat: Current SOC 84% is greater than Target SOC 0. Grid Charge disabled.**
2024-04-09 11:36:41.022590 INFO pred_bat: Adjust idle time computed idle is 11:35:00-23:59:00
2024-04-09 11:36:41.015792 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-09 11:36:41.009629 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-04-09 11:36:40.986641 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-09 16:05:00 - 04-09 16:30:00
2024-04-09 11:36:40.981558 INFO pred_bat: Next discharge window will be: 2024-04-09 16:05:00+01:00 - 2024-04-09 16:31:00+01:00 at reserve 87
2024-04-09 11:36:40.973800 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
**2024-04-09 11:36:40.969558 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}**
2024-04-09 11:36:40.965996 INFO pred_bat: Adjust idle time computed idle is 11:35:00-23:59:00
2024-04-09 11:36:40.961851 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-09 11:36:40.956257 INFO pred_bat: Charge window will be: 2024-04-09 11:00:00+01:00 - 2024-04-09 13:00:00+01:00 - current soc 84 target 85
2024-04-09 11:36:40.952503 INFO pred_bat: Base discharge window [ 09-04 00:00:00 - 09-04 00:00:00 @ 0p 100.0%, 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0% ]
2024-04-09 11:36:40.948059 INFO pred_bat: Base charge window [ ]
2024-04-09 11:36:40.846901 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 8.05 soc_max 9.7 soc 8.17 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 3 % loss discharge 4 % inverter loss 4 %
**2024-04-09 11:36:40.843547 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-09 11:36:40.840616 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled**
2024-04-09 11:36:40.837606 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-09 11:36:40.832373 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-09 11:36:40.827136 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-09 11:36:40.822232 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-09 11:36:40.813950 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-09 11:36:40.809884 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-09 11:36:40.805807 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-09 11:36:40.800409 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-09 11:36:40.795426 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
**2024-04-09 11:36:40.786275 INFO pred_bat: Inverter 0 SOC: 8.17 kW 84 % Current charge rate 5000.0 w Current discharge rate 5000.0 w Current power 4998.0 w Current voltage 52.0**
2024-04-09 11:36:40.775452 INFO pred_bat: Inverter 0 scheduled_charge_enable off scheduled_discharge_enable off
2024-04-09 11:36:40.764389 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve **83.0 %**
2024-04-09 11:36:40.758706 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-09 11:36:40.745636 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-09 11:36:40.740988 INFO pred_bat: Inverter 0: Type SE SolarEdge)

Firstly, the charge_rate and discharge_rate entities always show 5000w or 11400w, never any other numerical value. I am curios if this is part of the issue. I suspect this should be showing more real time data about the actual rate of charge, or rate of discharge of the battery?

The other bit that stands out is the charge & discharge freeze is listed as not supported thus disabled.I'm assuming this is why it won't actually hold properly. In this scenario I would assume it should set Max Self Consumption mode instead, but perhaps it isn't able to do that?

@duckfullstop
Copy link

Could you check the logs on the Home Assistant side? A 500 response implies something's going wrong on that side.

@Noodleyman
Copy link

Ah, good shout. Checking those logs and there are a few issues.

Failed to connect errors to the modbus around the same time as the 500 errors

image

This is an interesting one, although all of those entities are avilable and have values.

Logger: homeassistant.helpers.service
Source: helpers/service.py:251
First occurred: 8 April 2024 at 19:37:31 (15 occurrences)
Last logged: 11:35:51

Referenced entities input_number.predbat_pv_scaling are missing or not currently available
Referenced entities input_number.predbat_set_reserve_min are missing or not currently available
Referenced entities input_number.predbat_load_scaling are missing or not currently available
Referenced entities switch.predbat_set_read_only are missing or not currently available
Referenced entities switch.predbat_debug_enable are missing or not currently available

It seems the comms to the inverter reports as unstable, although cross checking the UniFi network logs I can see the connection looks stable so I don't think it's a network issue. Given that "SolarEdge inverters only support one Modbus/TCP connection at a time. Additional attempts to connect to the inverter will fail until the last connection is closed", it could just be unfortunate timing with the online platform checking in. I'm tempted to block the inverters internet access to see if that improves things on this front.

@duckfullstop
Copy link

duckfullstop commented Apr 9, 2024

cross checking the UniFi network logs I can see the connection looks stable so I don't think it's a network issue

This is going to sound like I'm going crazy, but are you using a PoE switch (unifi or otherwise), and is the inverter connected directly to it?

The online platform doesn't use Modbus so it won't be that conflicting.

@Noodleyman
Copy link

Happy to explore any and all options :) No PoE switches in my network, although I am using PoE injectors for 3 access points which are in the roof of the building. I am connecting directly over WiFi to the Inverter. Ah, good to know about theonline platform, thank you. I can cross that thought off the list.

@duckfullstop
Copy link

Sounds like your issue is more with the Modbus implementation than batpred in that case, so you might want to try jumping into their support channels for further thoughts. Do triple check that you don't have any other software running that might be trying to talk to the inverter locally (EVCC, for example).

If you're connecting to the inverter over WiFi, is there any way you can hardwire for a while just to rule out wireless issues?

@Noodleyman
Copy link

Unfortunately there is no method to connect via ethernet. I'll do some more monitoring and see if I can gather some more useful information from logs so I can make sure whatever story they tell ends up in the appropriate place. I don't have anything else on the network that will talk to the SE kit.

Thanks for the feedback, appreciated as always. I'm still learning how the solution works, and thus where to gather various data and logs from the combined solutions, so will get there eventually

@Noodleyman
Copy link

I'm making an assumption, because I can't seem to find it documented clearly. I've set the following extra config in apps.yaml based upon the example "other inverter" config.

    support_charge_freeze: False
    support_discharge_freeze: False	

I've set it on the assumption that with those lines defined, PredBat will no longer consider Hold/Freeze as viable options, thus not attempt them.

With a SE inverter, Freeze/Hold seems to set the storage command as "Charge from Solar Power and Grid", but this forces battery charging from grid in real time, rather than for any shortfall.

Thus, there is no concept of "freeze" for SolarEdge kit per the definitions (https://springfall2008.github.io/batpred/what-does-predbat-do/#predbat-status), Freeze/Hold won't work on SolarEdge kit.

The closest the SolarEdge offers, will be the "Charge from clipped solar power". I've used this setting before, and essentialy it will first cover the home consumption from PV, then export to the limit, and anything above export+usage goes into the battery.

Does anybody know for sure if setting the above config will disable freeze and hold functionality?

@Noodleyman
Copy link

I've decide to disable control for the time being until the charging concerns are isolated and resolved. I caught it again attempting to "Hold Charge", however, Hold Charge means it sets the mode to "Charge from Solar Power and Grid", thus it doesn't hold anything, it instead just pulls power from the grid to charge the battery to full when it shouldn't be using the grid at all.

Here is a more refined example.
From the PredBat status history
image

Storage Command Mode history:
This shows it started to do the 10 minute charge, but the hold charge never kicked in, thus it just continues to charge until I stopped it manually.
image

The log shows the problem below, it should't be setting "Charge from Solar Power and Grid" for any holds, since this tells it to charge from the grid at whatever rate is needed to hit the max charge rate of 5kWh (IE, that's not a hold). I'm assuming there are some other refinements required for wider support for the SE kit? I would appreciate if those with more knowledge in this area would be able to case an eye over the log below and offer an opinion.

My guess, it thinks charging is no longer active, for example, "Current SOC 55% is greater than Target SOC 0. Grid Charge disabled.", but it writes this to the log right after telling it to charge from the grid.

2024-04-10 11:30:47.431051 INFO pred_bat: Completed run status Hold charging
2024-04-10 11:30:47.390537 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target
2024-04-10 11:30:47.384060 INFO pred_bat: Adjust reserve to default as SOC 59 % is above target 56 % or charging active
2024-04-10 11:30:47.379401 INFO pred_bat: Current SOC 59% is greater than Target SOC 0. Grid Charge disabled.
2024-04-10 11:30:47.372767 INFO pred_bat: Adjust idle time computed idle is 11:30:00-23:59:00
2024-04-10 11:30:47.366137 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:30:47.360702 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-04-10 11:30:47.353027 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-11 18:10:00 - 04-11 18:30:00
2024-04-10 11:30:47.330912 INFO pred_bat: Next discharge window will be: 2024-04-11 18:10:00+01:00 - 2024-04-11 18:31:00+01:00 at reserve 74
2024-04-10 11:30:47.311981 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:30:47.307742 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:30:47.304046 INFO pred_bat: Adjust idle time computed idle is 11:30:00-23:59:00
2024-04-10 11:30:47.299881 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:30:47.292919 INFO pred_bat: Charge window will be: 2024-04-10 11:00:00+01:00 - 2024-04-10 13:00:00+01:00 - current soc 59 target 56
2024-04-10 11:30:47.288965 INFO pred_bat: Base discharge window [ 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0%, 11-04 00:00:00 - 11-04 00:00:00 @ 0p 100.0% ]
2024-04-10 11:30:47.284242 INFO pred_bat: Base charge window [ ]
2024-04-10 11:30:47.185558 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 5.72 charge rate 5.0 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 4 % loss discharge 4 % inverter loss 4 %
2024-04-10 11:30:47.182226 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-10 11:30:47.179312 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-10 11:30:47.176041 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-10 11:30:47.170695 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-10 11:30:47.165664 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-10 11:30:47.159737 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-10 11:30:47.146375 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-10 11:30:47.139120 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-10 11:30:47.134523 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-10 11:30:47.129969 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-10 11:30:47.126135 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-10 11:30:47.118765 INFO pred_bat: Inverter 0 SOC: 5.72 kW 59 % Current charge rate 5000.0 w Current discharge rate 0.0 w Current power 4998.0 w Current voltage 52.0
2024-04-10 11:30:47.107778 INFO pred_bat: Inverter 0 scheduled_charge_enable off scheduled_discharge_enable off
2024-04-10 11:30:47.098212 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve 4.0 %
2024-04-10 11:30:47.092621 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-10 11:30:47.084807 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-10 11:30:47.081420 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-10 11:30:46.771868 INFO pred_bat: Best charging limit socs [5.45, 5.95, 8.45, 3.95, 9.7, 9.7] export [74] gives import battery 19.0 house 0.7 export 15.0 metric 500.08 metric10 818.89
2024-04-10 11:30:46.744385 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-04-10 11:30:46.714882 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-04-10 11:30:46.147776 INFO pred_bat: METRIC: [ 289.44, 318.99, 325.89, 325.89, 328.07, 325.89, 323.09, 322.91, 322.91, 322.91, 322.91, 322.91, 322.91, 388.04, 388.04, 388.04, 437.99, 465.24, 465.24, 465.24, 465.24, 472.47, 472.73, 472.73, 472.73, 472.32, 449.05, 408.16, 371.11, 344.88, 326.94, 295.31, 295.31, 295.31, 295.31, 295.31, 295.31, 360.43, 360.43, 404.99, 496.84, 535.99, 541.81, 541.81, 541.81, 541.81, 541.81, 521.7]
2024-04-10 11:30:46.137030 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.36, 0.47, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.48, 0.51, 2.08, 4.83, 7.33, 8.76, 9.49, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 10.78, 12.14]
2024-04-10 11:30:46.125679 INFO pred_bat: IMPORT: [ 13.99, 15.21, 15.5, 15.5, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 15.59, 19.03, 20.9, 20.9, 20.9, 20.9, 21.2, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 21.21, 24.28, 30.61, 33.3, 33.7, 33.7, 33.7, 33.7, 33.7, 33.7]
2024-04-10 11:30:46.118773 INFO pred_bat: PV: [ 4.95, 6.2, 7.82, 10.72, 13.51, 15.88, 17.75, 18.85, 19.24, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.45, 20.28, 22.07, 25.0, 29.04, 33.83, 38.84, 43.45, 47.41, 50.44, 52.73, 54.13, 54.63, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.94, 56.45, 59.31, 63.65]
2024-04-10 11:30:46.112276 INFO pred_bat: LOAD: [ 15.82, 17.55, 19.23, 20.59, 21.76, 23.36, 25.02, 26.56, 27.95, 29.14, 30.29, 31.3, 32.29, 33.18, 34.01, 34.8, 35.88, 37.0, 37.81, 38.61, 39.79, 41.04, 42.39, 43.96, 45.21, 46.47, 47.71, 48.77, 49.91, 51.38, 52.84, 54.4, 55.58, 56.59, 57.56, 58.42, 59.31, 60.12, 60.99, 61.85, 62.96, 64.08, 64.9, 65.75, 66.87, 68.11, 69.52, 71.53]
2024-04-10 11:30:46.105794 INFO pred_bat: STATE: [ 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g~be-, g~be+, g~be+, g>be+]
2024-04-10 11:30:46.099728 INFO pred_bat: SOC: [ 5.29, 5.95, 6.1, 7.53, 9.13, 9.7, 9.7, 9.16, 8.07, 6.8, 5.55, 4.46, 3.38, 2.42, 1.52, 0.66, 2.79, 3.4, 2.53, 1.66, 0.57, 0.4, 0.77, 2.02, 4.64, 7.95, 9.7, 9.7, 9.7, 9.7, 9.7, 8.06, 7.3, 6.24, 5.19, 4.26, 3.29, 2.41, 1.47, 3.44, 8.24, 9.7, 9.24, 8.32, 7.38, 7.59, 8.92, 9.7]
2024-04-10 11:30:46.093129 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:46.085852 INFO pred_bat: predict best end_record 04-12 11:00:00 final soc 9.7 kWh metric 500.08 p metric_keep 19.46 min_soc 0.39 @ 04-11 02:40:00 kWh load 72.14 pv 66.35
2024-04-10 11:30:45.807215 INFO pred_bat: METRIC: [ 289.44, 337.14, 353.85, 353.85, 398.49, 400.18, 400.18, 400.18, 400.18, 400.18, 400.18, 400.18, 400.18, 479.44, 499.53, 514.73, 568.33, 595.58, 595.58, 595.58, 595.58, 606.88, 609.98, 609.98, 609.98, 609.98, 609.98, 589.35, 569.44, 565.74, 565.74, 550.74, 550.74, 550.74, 550.74, 550.74, 550.74, 615.86, 617.74, 671.76, 763.61, 813.07, 818.89, 818.89, 818.89, 818.89, 818.89, 818.89]
2024-04-10 11:30:45.800216 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 1.75, 3.09, 3.34, 3.34, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96]
2024-04-10 11:30:45.793543 INFO pred_bat: IMPORT: [ 13.99, 15.96, 16.65, 16.65, 18.55, 18.62, 18.62, 18.62, 18.62, 18.62, 18.62, 18.62, 18.62, 19.21, 20.04, 20.83, 24.52, 26.4, 26.4, 26.4, 26.4, 26.86, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 26.99, 27.07, 30.53, 36.85, 40.26, 40.66, 40.66, 40.66, 40.66, 40.66, 40.66]
2024-04-10 11:30:45.787142 INFO pred_bat: PV: [ 4.95, 5.6, 6.39, 8.41, 10.59, 12.5, 14.02, 14.89, 15.23, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.42, 16.08, 17.53, 19.94, 23.31, 27.42, 31.64, 35.16, 37.74, 39.38, 40.43, 40.93, 41.16, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.29, 41.73, 42.79, 44.7]
2024-04-10 11:30:45.780096 INFO pred_bat: LOAD: [ 15.82, 17.72, 19.57, 21.06, 22.36, 24.12, 25.94, 27.63, 29.16, 30.47, 31.74, 32.85, 33.94, 34.88, 35.71, 36.5, 37.58, 38.7, 39.51, 40.31, 41.49, 42.75, 44.09, 45.66, 46.92, 48.18, 49.41, 50.47, 51.61, 53.09, 54.54, 56.1, 57.28, 58.29, 59.27, 60.12, 61.01, 61.83, 62.69, 63.55, 64.66, 65.78, 66.6, 67.45, 68.57, 69.81, 71.22, 73.23]
2024-04-10 11:30:45.773228 INFO pred_bat: STATE: [ 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g<be-, g~be-, g~be-, g~be+]
2024-04-10 11:30:45.766641 INFO pred_bat: SOC: [ 5.29, 5.95, 5.51, 5.95, 8.45, 8.57, 8.17, 7.24, 5.94, 4.54, 3.17, 1.96, 0.77, 0.39, 0.39, 0.39, 2.79, 3.4, 2.53, 1.66, 0.55, 0.39, 0.56, 1.29, 3.28, 5.96, 8.77, 9.7, 9.7, 9.53, 9.04, 7.21, 6.16, 5.08, 4.03, 3.09, 2.13, 1.25, 0.39, 2.79, 7.59, 9.7, 9.24, 8.32, 7.23, 6.35, 5.92, 5.7]
2024-04-10 11:30:45.755178 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:45.747500 INFO pred_bat: predict best10 end_record 04-12 11:00:00 final soc 6.37 kWh metric 818.89 p metric_keep 65.68 min_soc 0.39 @ 04-10 23:50:00 kWh load 73.84 pv 46.03
2024-04-10 11:30:45.535587 INFO pred_bat: METRIC: [ 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 298.66, 329.3, 356.21, 382.68, 470.47, 490.57, 505.77, 521.54, 537.8, 553.49, 572.84, 597.57, 612.51, 615.61, 615.61, 615.61, 615.61, 615.61, 594.98, 575.07, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 636.49, 636.49, 641.14, 657.35, 673.55, 689.61, 710.1, 734.45, 754.17, 763.8, 769.74]
2024-04-10 11:30:45.526691 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.66, 3.0, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25]
2024-04-10 11:30:45.520189 INFO pred_bat: IMPORT: [ 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 14.37, 15.64, 16.75, 17.84, 18.78, 19.61, 20.4, 21.49, 22.61, 23.42, 24.21, 25.24, 25.85, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 26.3, 27.42, 28.53, 29.36, 30.2, 31.21, 32.02, 32.42, 32.67]
2024-04-10 11:30:45.513745 INFO pred_bat: PV: [ 4.95, 5.6, 6.39, 8.41, 10.59, 12.5, 14.02, 14.89, 15.23, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.42, 16.08, 17.53, 19.94, 23.31, 27.42, 31.64, 35.16, 37.74, 39.38, 40.43, 40.93, 41.16, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.29, 41.73, 42.79, 44.7]
2024-04-10 11:30:45.507381 INFO pred_bat: LOAD: [ 15.82, 17.72, 19.57, 21.06, 22.36, 24.12, 25.94, 27.63, 29.16, 30.47, 31.74, 32.85, 33.94, 34.88, 35.71, 36.5, 37.58, 38.7, 39.51, 40.31, 41.49, 42.75, 44.09, 45.66, 46.92, 48.18, 49.41, 50.47, 51.61, 53.09, 54.54, 56.1, 57.28, 58.29, 59.27, 60.12, 61.01, 61.83, 62.69, 63.55, 64.66, 65.78, 66.6, 67.45, 68.57, 69.81, 71.22, 73.23]
2024-04-10 11:30:45.500724 INFO pred_bat: STATE: [ 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<be-, g<be-, g~be+]
2024-04-10 11:30:45.494406 INFO pred_bat: SOC: [ 5.29, 3.91, 2.72, 3.16, 3.96, 4.01, 3.6, 2.68, 1.38, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.56, 1.29, 3.28, 5.96, 8.77, 9.7, 9.7, 9.53, 9.04, 7.87, 6.82, 5.75, 4.69, 3.76, 2.8, 1.91, 0.97, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.44]
2024-04-10 11:30:45.488081 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:45.481419 INFO pred_bat: predict base10 end_record 04-12 11:00:00 final soc 1.11 kWh metric 769.74 p metric_keep 214.96 min_soc 0.39 @ 04-10 20:10:00 kWh load 73.84 pv 46.03
2024-04-10 11:30:45.364679 INFO pred_bat: Battery has 13.67 hours left - now at 5.29
2024-04-10 11:30:44.877295 INFO pred_bat: METRIC: [ 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 354.56, 361.06, 376.26, 392.03, 408.29, 423.98, 443.33, 467.62, 478.93, 479.19, 479.19, 479.19, 478.78, 455.51, 414.62, 377.57, 351.34, 333.4, 331.77, 331.77, 331.77, 331.77, 331.77, 331.77, 396.89, 396.89, 396.89, 396.89, 409.51, 425.58, 446.06, 466.98, 468.18, 468.18, 468.18]
2024-04-10 11:30:44.870764 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.3, 1.87, 4.62, 7.12, 8.55, 9.28, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35]
2024-04-10 11:30:44.864388 INFO pred_bat: IMPORT: [ 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 14.26, 15.05, 16.14, 17.26, 18.07, 18.86, 19.87, 20.34, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 21.21, 22.04, 22.89, 23.75, 23.8, 23.8, 23.8]
2024-04-10 11:30:44.856914 INFO pred_bat: PV: [ 4.95, 6.2, 7.82, 10.72, 13.51, 15.88, 17.75, 18.85, 19.24, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.45, 20.28, 22.07, 25.0, 29.04, 33.83, 38.84, 43.45, 47.41, 50.44, 52.73, 54.13, 54.63, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.94, 56.45, 59.31, 63.65]
2024-04-10 11:30:44.850645 INFO pred_bat: LOAD: [ 15.82, 17.55, 19.23, 20.59, 21.76, 23.36, 25.02, 26.56, 27.95, 29.14, 30.29, 31.3, 32.29, 33.18, 34.01, 34.8, 35.88, 37.0, 37.81, 38.61, 39.79, 41.04, 42.39, 43.96, 45.21, 46.47, 47.71, 48.77, 49.91, 51.38, 52.84, 54.4, 55.58, 56.59, 57.56, 58.42, 59.31, 60.12, 60.99, 61.85, 62.96, 64.08, 64.9, 65.75, 66.87, 68.11, 69.52, 71.53]
2024-04-10 11:30:44.844182 INFO pred_bat: STATE: [ 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~be+, g~be+, g~be+]
2024-04-10 11:30:44.838328 INFO pred_bat: SOC: [ 5.29, 4.72, 4.56, 5.99, 7.5, 8.16, 8.27, 7.74, 6.65, 5.38, 4.13, 3.03, 1.96, 1.0, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.4, 0.77, 2.02, 4.64, 7.95, 9.7, 9.7, 9.7, 9.7, 9.7, 9.38, 8.63, 7.57, 6.51, 5.58, 4.62, 3.74, 2.79, 1.87, 0.66, 0.39, 0.39, 0.39, 0.39, 0.65, 1.98, 4.13]
2024-04-10 11:30:44.832111 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:44.825411 INFO pred_bat: predict base end_record 04-12 11:00:00 final soc 5.92 kWh metric 465.41 p metric_keep 111.84 min_soc 0.39 @ 04-11 01:10:00 kWh load 72.14 pv 66.35
2024-04-10 11:30:44.774471 INFO pred_bat: Filtered charge windows [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 56%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 61%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 12-04 02:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ] reserve 0.39
2024-04-10 11:30:44.770102 INFO pred_bat: Clip off charge window 7 from 1680 - 1740 from limit 2.95 to new limit 0.0
2024-04-10 11:30:44.766096 INFO pred_bat: Clip off charge window 5 from 1560 - 1620 from limit 0.45 to new limit 0.0
2024-04-10 11:30:44.762199 INFO pred_bat: Clip off charge window 3 from 840 - 900 from limit 6.7 to new limit 0.0
2024-04-10 11:30:44.757781 INFO pred_bat: Clip off charge window 2 from 780 - 840 from limit 3.2 to new limit 0.0
2024-04-10 11:30:44.712728 INFO pred_bat: Discharge windows filtered [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 74% ]
2024-04-10 11:30:44.667433 INFO pred_bat: Best discharge windows best_metric 294.02 best_cost 366.73 metric_keep 0 end_record 04-12 11:00:00 windows [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 4% ]
2024-04-10 11:30:44.662303 INFO pred_bat: Best charge windows best_metric 294.02 best_cost 366.73 metric_keep 0 end_record 04-12 11:00:00 windows [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 56%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 61%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 33%, 10-04 14:00:00 - 10-04 15:00:00 @ 24.21p 69%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 5%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 30%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:30:23.721941 INFO pred_bat: Optimise price set 26.8 start_at_low True best_price 16.3 best_metric 303.27 best_cost 360.36
2024-04-10 11:30:20.609402 INFO pred_bat: Optimise price set 16.3 start_at_low True best_price 16.3 best_metric 319.54 best_cost 377.67
2024-04-10 11:30:20.603260 INFO pred_bat: Best discharge windows best_metric 319.54 best_cost 377.67 metric_keep 15.5 end_record 04-12 11:00:00 windows [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 4% ]
2024-04-10 11:30:20.595923 INFO pred_bat: Best charge windows best_metric 319.54 best_cost 377.67 metric_keep 15.5 end_record 04-12 11:00:00 windows [ 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 5%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 87%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:30:17.878847 INFO pred_bat: Optimise price set 16.3 start_at_low False best_price 16.3 best_metric 323.16 best_cost 381.38
2024-04-10 11:30:16.133156 INFO pred_bat: Optimise price set 22.1 start_at_low False best_price 16.3 best_metric 329.75 best_cost 390.46
2024-04-10 11:30:15.498576 INFO pred_bat: Optimise price set 26.8 start_at_low False best_price 16.3 best_metric 234.63 best_cost 349.45
2024-04-10 11:30:15.493683 INFO pred_bat: Best discharge windows best_metric 234.63 best_cost 349.45 metric_keep 111.84 end_record 04-12 11:00:00 windows [ ]
2024-04-10 11:30:15.488497 INFO pred_bat: Best charge windows best_metric 234.63 best_cost 349.45 metric_keep 111.84 end_record 04-12 11:00:00 windows [ 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 100%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 100%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 100%, 11-04 12:00:00 - 11-04 13:00:00 @ 24.21p 100%, 11-04 14:00:00 - 11-04 15:00:00 @ 24.21p 100%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 10:00:00 - 12-04 11:00:00 @ 24.21p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:30:15.482570 INFO pred_bat: Starting second optimisation best_price 16.3 best_price_discharge 26.8 lowest_price_charge 16.3 with charge limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 9.7] based on
2024-04-10 11:30:15.476324 INFO pred_bat: Calculated end_record as 04-12 11:00:00
2024-04-10 11:30:15.472041 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:15.350519 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:15.229313 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:15.089175 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.925907 INFO pred_bat: Optimise all charge for all bands best price threshold 16.3 charges at 13.2 at metric 232.91 keep 24.6 cost 335.83 soc_min 0.42 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.674988 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.524122 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.377566 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.259344 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:14.142965 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:13.989746 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:13.744131 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 230.84 keep 0 cost 359.7 soc_min 1.12 limits [0, 0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:13.604446 INFO pred_bat: >> Region optimisation pass width 240
2024-04-10 11:30:13.600704 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:13.428627 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:13.217169 INFO pred_bat: Optimise all charge for all bands best price threshold 16.3 charges at 13.2 at metric 232.91 keep 24.6 cost 335.83 soc_min 0.42 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:12.896515 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:12.715510 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:12.510040 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:12.210442 INFO pred_bat: >> Region optimisation pass width 480
2024-04-10 11:30:12.206587 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:11.922794 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:11.373810 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 234.63 keep 14.7 cost 349.45 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:10.822229 INFO pred_bat: >> Region optimisation pass width 960
2024-04-10 11:30:10.818516 INFO pred_bat: Calculated end_record as 04-12 11:00:00
2024-04-10 11:30:10.814425 INFO pred_bat: Optimise all charge for all bands best price threshold 22.1 charges at 16.3 at metric 207.4 keep 14.7 cost 322.22 soc_min 2.41 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:30:09.901419 INFO pred_bat: Optimise all windows, total charge 42 discharge 84
2024-04-10 11:30:09.894994 INFO pred_bat: Calculate Best options: mode(Control charge & discharge) calculate_discharge_oncharge(True) set_discharge_freeze_only(False) set_discharge_during_charge(False) combine_charge_slots(False) combine_discharge_slots(False) best_soc_min(0.0 kWh) best_soc_max(0.0 kWh) best_soc_keep(1.0 kWh) inverter_loss(4 %) battery_loss(4 %) battery_loss_discharge (4 %) inverter_hybrid(True) metric_min_improvement(0.0 p) metric_min_improvement_discharge(0.1 p) metric_battery_cycle(0.5 p/kWh)metric_battery_value_scaling(1.0 x)
2024-04-10 11:30:09.808064 INFO pred_bat: Creating pool of 4 processes to match your CPU count
2024-04-10 11:30:09.669854 INFO pred_bat: PV Forecast 64.2 kWh and 10% Forecast 42.6 kWh pv cloud factor 0.3
2024-04-10 11:30:09.663730 INFO pred_bat: Best discharge window [ 10-04 11:30:00 - 10-04 12:00:00 @ 14.84p 100.0%, 10-04 12:00:00 - 10-04 12:30:00 @ 14.84p 100.0%, 10-04 12:30:00 - 10-04 13:00:00 @ 14.84p 100.0%, 10-04 13:00:00 - 10-04 13:30:00 @ 14.84p 100.0%, 10-04 13:30:00 - 10-04 14:00:00 @ 14.84p 100.0%, 10-04 14:00:00 - 10-04 14:30:00 @ 14.84p 100.0%, 10-04 14:30:00 - 10-04 15:00:00 @ 14.84p 100.0%, 10-04 15:00:00 - 10-04 15:30:00 @ 14.84p 100.0%, 10-04 15:30:00 - 10-04 16:00:00 @ 14.84p 100.0%, 10-04 16:00:00 - 10-04 16:30:00 @ 24.52p 100.0%, 10-04 16:30:00 - 10-04 17:00:00 @ 24.52p 100.0%, 10-04 17:00:00 - 10-04 17:30:00 @ 24.52p 100.0%, 10-04 17:30:00 - 10-04 18:00:00 @ 24.52p 100.0%, 10-04 18:00:00 - 10-04 18:30:00 @ 24.52p 100.0%, 10-04 18:30:00 - 10-04 19:00:00 @ 24.52p 100.0%, 10-04 19:00:00 - 10-04 19:30:00 @ 14.84p 100.0%, 10-04 19:30:00 - 10-04 20:00:00 @ 14.84p 100.0%, 10-04 20:00:00 - 10-04 20:30:00 @ 14.84p 100.0%, 10-04 20:30:00 - 10-04 21:00:00 @ 14.84p 100.0%, 10-04 21:00:00 - 10-04 21:30:00 @ 14.84p 100.0%, 10-04 21:30:00 - 10-04 22:00:00 @ 14.84p 100.0%, 10-04 22:00:00 - 10-04 22:30:00 @ 14.84p 100.0%, 10-04 22:30:00 - 10-04 23:00:00 @ 14.84p 100.0%, 10-04 23:00:00 - 10-04 23:30:00 @ 14.84p 100.0%, 10-04 23:30:00 - 11-04 00:00:00 @ 14.84p 100.0%, 11-04 00:00:00 - 11-04 00:30:00 @ 14.84p 100.0%, 11-04 00:30:00 - 11-04 01:00:00 @ 14.84p 100.0%, 11-04 01:00:00 - 11-04 01:30:00 @ 14.84p 100.0%, 11-04 01:30:00 - 11-04 02:00:00 @ 14.84p 100.0%, 11-04 05:00:00 - 11-04 05:30:00 @ 14.84p 100.0%, 11-04 05:30:00 - 11-04 06:00:00 @ 14.84p 100.0%, 11-04 06:00:00 - 11-04 06:30:00 @ 14.84p 100.0%, 11-04 06:30:00 - 11-04 07:00:00 @ 14.84p 100.0%, 11-04 07:00:00 - 11-04 07:30:00 @ 14.84p 100.0%, 11-04 07:30:00 - 11-04 08:00:00 @ 14.84p 100.0%, 11-04 08:00:00 - 11-04 08:30:00 @ 14.84p 100.0%, 11-04 08:30:00 - 11-04 09:00:00 @ 14.84p 100.0%, 11-04 09:00:00 - 11-04 09:30:00 @ 14.84p 100.0%, 11-04 09:30:00 - 11-04 10:00:00 @ 14.84p 100.0%, 11-04 10:00:00 - 11-04 10:30:00 @ 14.84p 100.0%, 11-04 10:30:00 - 11-04 11:00:00 @ 14.84p 100.0%, 11-04 11:00:00 - 11-04 11:30:00 @ 14.84p 100.0%, 11-04 11:30:00 - 11-04 12:00:00 @ 14.84p 100.0%, 11-04 12:00:00 - 11-04 12:30:00 @ 14.84p 100.0%, 11-04 12:30:00 - 11-04 13:00:00 @ 14.84p 100.0%, 11-04 13:00:00 - 11-04 13:30:00 @ 14.84p 100.0%, 11-04 13:30:00 - 11-04 14:00:00 @ 14.84p 100.0%, 11-04 14:00:00 - 11-04 14:30:00 @ 14.84p 100.0%, 11-04 14:30:00 - 11-04 15:00:00 @ 14.84p 100.0%, 11-04 15:00:00 - 11-04 15:30:00 @ 14.84p 100.0%, 11-04 15:30:00 - 11-04 16:00:00 @ 14.84p 100.0%, 11-04 16:00:00 - 11-04 16:30:00 @ 24.52p 100.0%, 11-04 16:30:00 - 11-04 17:00:00 @ 24.52p 100.0%, 11-04 17:00:00 - 11-04 17:30:00 @ 24.52p 100.0%, 11-04 17:30:00 - 11-04 18:00:00 @ 24.52p 100.0%, 11-04 18:00:00 - 11-04 18:30:00 @ 24.52p 100.0%, 11-04 18:30:00 - 11-04 19:00:00 @ 24.52p 100.0%, 11-04 19:00:00 - 11-04 19:30:00 @ 14.84p 100.0%, 11-04 19:30:00 - 11-04 20:00:00 @ 14.84p 100.0%, 11-04 20:00:00 - 11-04 20:30:00 @ 14.84p 100.0%, 11-04 20:30:00 - 11-04 21:00:00 @ 14.84p 100.0%, 11-04 21:00:00 - 11-04 21:30:00 @ 14.84p 100.0%, 11-04 21:30:00 - 11-04 22:00:00 @ 14.84p 100.0%, 11-04 22:00:00 - 11-04 22:30:00 @ 14.84p 100.0%, 11-04 22:30:00 - 11-04 23:00:00 @ 14.84p 100.0%, 11-04 23:00:00 - 11-04 23:30:00 @ 14.84p 100.0%, 11-04 23:30:00 - 12-04 00:00:00 @ 14.84p 100.0%, 12-04 00:00:00 - 12-04 00:30:00 @ 14.84p 100.0%, 12-04 00:30:00 - 12-04 01:00:00 @ 14.84p 100.0%, 12-04 01:00:00 - 12-04 01:30:00 @ 14.84p 100.0%, 12-04 01:30:00 - 12-04 02:00:00 @ 14.84p 100.0%, 12-04 05:00:00 - 12-04 05:30:00 @ 14.84p 100.0%, 12-04 05:30:00 - 12-04 06:00:00 @ 14.84p 100.0%, 12-04 06:00:00 - 12-04 06:30:00 @ 14.84p 100.0%, 12-04 06:30:00 - 12-04 07:00:00 @ 14.84p 100.0%, 12-04 07:00:00 - 12-04 07:30:00 @ 14.84p 100.0%, 12-04 07:30:00 - 12-04 08:00:00 @ 14.84p 100.0%, 12-04 08:00:00 - 12-04 08:30:00 @ 14.84p 100.0%, 12-04 08:30:00 - 12-04 09:00:00 @ 14.84p 100.0%, 12-04 09:00:00 - 12-04 09:30:00 @ 14.84p 100.0%, 12-04 09:30:00 - 12-04 10:00:00 @ 14.84p 100.0%, 12-04 10:00:00 - 12-04 10:30:00 @ 14.84p 100.0%, 12-04 10:30:00 - 12-04 11:00:00 @ 14.84p 100.0%, 12-04 11:00:00 - 12-04 11:30:00 @ 14.84p 100.0% ]
2024-04-10 11:30:09.654648 INFO pred_bat: Best charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 0.0%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 0.0%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 0.0%, 10-04 14:00:00 - 10-04 15:00:00 @ 24.21p 0.0%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 0.0%, 10-04 19:00:00 - 10-04 20:00:00 @ 24.21p 0.0%, 10-04 20:00:00 - 10-04 21:00:00 @ 24.21p 0.0%, 10-04 21:00:00 - 10-04 22:00:00 @ 24.21p 0.0%, 10-04 22:00:00 - 10-04 23:00:00 @ 24.21p 0.0%, 10-04 23:00:00 - 11-04 00:00:00 @ 24.21p 0.0%, 11-04 00:00:00 - 11-04 01:00:00 @ 24.21p 0.0%, 11-04 01:00:00 - 11-04 02:00:00 @ 24.21p 0.0%, 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 0.0%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 0.0%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 0.0%, 11-04 05:00:00 - 11-04 06:00:00 @ 24.21p 0.0%, 11-04 06:00:00 - 11-04 07:00:00 @ 24.21p 0.0%, 11-04 07:00:00 - 11-04 08:00:00 @ 24.21p 0.0%, 11-04 08:00:00 - 11-04 09:00:00 @ 24.21p 0.0%, 11-04 09:00:00 - 11-04 10:00:00 @ 24.21p 0.0%, 11-04 10:00:00 - 11-04 11:00:00 @ 24.21p 0.0%, 11-04 11:00:00 - 11-04 12:00:00 @ 24.21p 0.0%, 11-04 12:00:00 - 11-04 13:00:00 @ 24.21p 0.0%, 11-04 13:00:00 - 11-04 14:00:00 @ 24.21p 0.0%, 11-04 14:00:00 - 11-04 15:00:00 @ 24.21p 0.0%, 11-04 15:00:00 - 11-04 16:00:00 @ 24.21p 0.0%, 11-04 19:00:00 - 11-04 20:00:00 @ 24.21p 0.0%, 11-04 20:00:00 - 11-04 21:00:00 @ 24.21p 0.0%, 11-04 21:00:00 - 11-04 22:00:00 @ 24.21p 0.0%, 11-04 22:00:00 - 11-04 23:00:00 @ 24.21p 0.0%, 11-04 23:00:00 - 12-04 00:00:00 @ 24.21p 0.0%, 12-04 00:00:00 - 12-04 01:00:00 @ 24.21p 0.0%, 12-04 01:00:00 - 12-04 02:00:00 @ 24.21p 0.0%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 0.0%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 0.0%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 0.0%, 12-04 05:00:00 - 12-04 06:00:00 @ 24.21p 0.0%, 12-04 06:00:00 - 12-04 07:00:00 @ 24.21p 0.0%, 12-04 07:00:00 - 12-04 08:00:00 @ 24.21p 0.0%, 12-04 08:00:00 - 12-04 09:00:00 @ 24.21p 0.0%, 12-04 09:00:00 - 12-04 10:00:00 @ 24.21p 0.0%, 12-04 10:00:00 - 12-04 11:00:00 @ 24.21p 0.0%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 0.0% ]
2024-04-10 11:30:09.643319 INFO pred_bat: Will recompute the plan as it is now 10.0 minutes old and will exceed the max age of 10 minutes before the next run
2024-04-10 11:30:09.599575 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target
2024-04-10 11:30:09.592718 INFO pred_bat: Adjust reserve to default as SOC 55 % is above target 46 % or charging active
2024-04-10 11:30:09.587566 INFO pred_bat: Current SOC 55% is greater than Target SOC 0. Grid Charge disabled.
2024-04-10 11:30:09.581258 INFO pred_bat: Adjust idle time computed idle is 11:30:00-23:59:00
2024-04-10 11:30:09.574512 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:30:09.567880 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-04-10 11:30:09.560104 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-11 18:10:00 - 04-11 18:30:00
2024-04-10 11:30:09.534751 INFO pred_bat: Next discharge window will be: 2024-04-11 18:10:00+01:00 - 2024-04-11 18:31:00+01:00 at reserve 74
2024-04-10 11:30:09.524330 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:30:09.519814 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:30:09.515718 INFO pred_bat: Adjust idle time computed idle is 11:30:00-23:59:00
2024-04-10 11:30:09.511038 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:30:09.503706 INFO pred_bat: Charge window will be: 2024-04-10 11:00:00+01:00 - 2024-04-10 12:00:00+01:00 - current soc 55 target 46
2024-04-10 11:30:09.478911 INFO pred_bat: Low import rate windows [0: 04-10 11:00:00 - 04-10 12:00:00 @ 24.21, 1: 04-10 12:00:00 - 04-10 13:00:00 @ 24.21, 2: 04-10 13:00:00 - 04-10 14:00:00 @ 24.21, 3: 04-10 14:00:00 - 04-10 15:00:00 @ 24.21, 4: 04-10 15:00:00 - 04-10 16:00:00 @ 24.21, 5: 04-10 19:00:00 - 04-10 20:00:00 @ 24.21, 6: 04-10 20:00:00 - 04-10 21:00:00 @ 24.21, 7: 04-10 21:00:00 - 04-10 22:00:00 @ 24.21, 8: 04-10 22:00:00 - 04-10 23:00:00 @ 24.21, 9: 04-10 23:00:00 - 04-11 00:00:00 @ 24.21, 10: 04-11 00:00:00 - 04-11 01:00:00 @ 24.21, 11: 04-11 01:00:00 - 04-11 02:00:00 @ 24.21, 12: 04-11 02:00:00 - 04-11 03:00:00 @ 14.52, 13: 04-11 03:00:00 - 04-11 04:00:00 @ 14.52, 14: 04-11 04:00:00 - 04-11 05:00:00 @ 14.52, 15: 04-11 05:00:00 - 04-11 06:00:00 @ 24.21, 16: 04-11 06:00:00 - 04-11 07:00:00 @ 24.21, 17: 04-11 07:00:00 - 04-11 08:00:00 @ 24.21, 18: 04-11 08:00:00 - 04-11 09:00:00 @ 24.21, 19: 04-11 09:00:00 - 04-11 10:00:00 @ 24.21, 20: 04-11 10:00:00 - 04-11 11:00:00 @ 24.21, 21: 04-11 11:00:00 - 04-11 12:00:00 @ 24.21, 22: 04-11 12:00:00 - 04-11 13:00:00 @ 24.21, 23: 04-11 13:00:00 - 04-11 14:00:00 @ 24.21, 24: 04-11 14:00:00 - 04-11 15:00:00 @ 24.21, 25: 04-11 15:00:00 - 04-11 16:00:00 @ 24.21, 26: 04-11 19:00:00 - 04-11 20:00:00 @ 24.21, 27: 04-11 20:00:00 - 04-11 21:00:00 @ 24.21, 28: 04-11 21:00:00 - 04-11 22:00:00 @ 24.21, 29: 04-11 22:00:00 - 04-11 23:00:00 @ 24.21, 30: 04-11 23:00:00 - 04-12 00:00:00 @ 24.21, 31: 04-12 00:00:00 - 04-12 01:00:00 @ 24.21, 32: 04-12 01:00:00 - 04-12 02:00:00 @ 24.21, 33: 04-12 02:00:00 - 04-12 03:00:00 @ 14.52, 34: 04-12 03:00:00 - 04-12 04:00:00 @ 14.52, 35: 04-12 04:00:00 - 04-12 05:00:00 @ 14.52, 36: 04-12 05:00:00 - 04-12 06:00:00 @ 24.21, 37: 04-12 06:00:00 - 04-12 07:00:00 @ 24.21, 38: 04-12 07:00:00 - 04-12 08:00:00 @ 24.21, 39: 04-12 08:00:00 - 04-12 09:00:00 @ 24.21, 40: 04-12 09:00:00 - 04-12 10:00:00 @ 24.21, 41: 04-12 10:00:00 - 04-12 11:00:00 @ 24.21, 42: 04-12 11:00:00 - 04-12 12:00:00 @ 24.21]
2024-04-10 11:30:09.309037 INFO pred_bat: Import threshold used for optimisation was 26.8p
2024-04-10 11:30:09.283069 INFO pred_bat: High export rate windows [0: 04-10 11:30:00 - 04-10 12:00:00 @ 14.84, 1: 04-10 12:00:00 - 04-10 12:30:00 @ 14.84, 2: 04-10 12:30:00 - 04-10 13:00:00 @ 14.84, 3: 04-10 13:00:00 - 04-10 13:30:00 @ 14.84, 4: 04-10 13:30:00 - 04-10 14:00:00 @ 14.84, 5: 04-10 14:00:00 - 04-10 14:30:00 @ 14.84, 6: 04-10 14:30:00 - 04-10 15:00:00 @ 14.84, 7: 04-10 15:00:00 - 04-10 15:30:00 @ 14.84, 8: 04-10 15:30:00 - 04-10 16:00:00 @ 14.84, 9: 04-10 16:00:00 - 04-10 16:30:00 @ 24.52, 10: 04-10 16:30:00 - 04-10 17:00:00 @ 24.52, 11: 04-10 17:00:00 - 04-10 17:30:00 @ 24.52, 12: 04-10 17:30:00 - 04-10 18:00:00 @ 24.52, 13: 04-10 18:00:00 - 04-10 18:30:00 @ 24.52, 14: 04-10 18:30:00 - 04-10 19:00:00 @ 24.52, 15: 04-10 19:00:00 - 04-10 19:30:00 @ 14.84, 16: 04-10 19:30:00 - 04-10 20:00:00 @ 14.84, 17: 04-10 20:00:00 - 04-10 20:30:00 @ 14.84, 18: 04-10 20:30:00 - 04-10 21:00:00 @ 14.84, 19: 04-10 21:00:00 - 04-10 21:30:00 @ 14.84, 20: 04-10 21:30:00 - 04-10 22:00:00 @ 14.84, 21: 04-10 22:00:00 - 04-10 22:30:00 @ 14.84, 22: 04-10 22:30:00 - 04-10 23:00:00 @ 14.84, 23: 04-10 23:00:00 - 04-10 23:30:00 @ 14.84, 24: 04-10 23:30:00 - 04-11 00:00:00 @ 14.84, 25: 04-11 00:00:00 - 04-11 00:30:00 @ 14.84, 26: 04-11 00:30:00 - 04-11 01:00:00 @ 14.84, 27: 04-11 01:00:00 - 04-11 01:30:00 @ 14.84, 28: 04-11 01:30:00 - 04-11 02:00:00 @ 14.84, 29: 04-11 05:00:00 - 04-11 05:30:00 @ 14.84, 30: 04-11 05:30:00 - 04-11 06:00:00 @ 14.84, 31: 04-11 06:00:00 - 04-11 06:30:00 @ 14.84, 32: 04-11 06:30:00 - 04-11 07:00:00 @ 14.84, 33: 04-11 07:00:00 - 04-11 07:30:00 @ 14.84, 34: 04-11 07:30:00 - 04-11 08:00:00 @ 14.84, 35: 04-11 08:00:00 - 04-11 08:30:00 @ 14.84, 36: 04-11 08:30:00 - 04-11 09:00:00 @ 14.84, 37: 04-11 09:00:00 - 04-11 09:30:00 @ 14.84, 38: 04-11 09:30:00 - 04-11 10:00:00 @ 14.84, 39: 04-11 10:00:00 - 04-11 10:30:00 @ 14.84, 40: 04-11 10:30:00 - 04-11 11:00:00 @ 14.84, 41: 04-11 11:00:00 - 04-11 11:30:00 @ 14.84, 42: 04-11 11:30:00 - 04-11 12:00:00 @ 14.84, 43: 04-11 12:00:00 - 04-11 12:30:00 @ 14.84, 44: 04-11 12:30:00 - 04-11 13:00:00 @ 14.84, 45: 04-11 13:00:00 - 04-11 13:30:00 @ 14.84, 46: 04-11 13:30:00 - 04-11 14:00:00 @ 14.84, 47: 04-11 14:00:00 - 04-11 14:30:00 @ 14.84, 48: 04-11 14:30:00 - 04-11 15:00:00 @ 14.84, 49: 04-11 15:00:00 - 04-11 15:30:00 @ 14.84, 50: 04-11 15:30:00 - 04-11 16:00:00 @ 14.84, 51: 04-11 16:00:00 - 04-11 16:30:00 @ 24.52, 52: 04-11 16:30:00 - 04-11 17:00:00 @ 24.52, 53: 04-11 17:00:00 - 04-11 17:30:00 @ 24.52, 54: 04-11 17:30:00 - 04-11 18:00:00 @ 24.52, 55: 04-11 18:00:00 - 04-11 18:30:00 @ 24.52, 56: 04-11 18:30:00 - 04-11 19:00:00 @ 24.52, 57: 04-11 19:00:00 - 04-11 19:30:00 @ 14.84, 58: 04-11 19:30:00 - 04-11 20:00:00 @ 14.84, 59: 04-11 20:00:00 - 04-11 20:30:00 @ 14.84, 60: 04-11 20:30:00 - 04-11 21:00:00 @ 14.84, 61: 04-11 21:00:00 - 04-11 21:30:00 @ 14.84, 62: 04-11 21:30:00 - 04-11 22:00:00 @ 14.84, 63: 04-11 22:00:00 - 04-11 22:30:00 @ 14.84, 64: 04-11 22:30:00 - 04-11 23:00:00 @ 14.84, 65: 04-11 23:00:00 - 04-11 23:30:00 @ 14.84, 66: 04-11 23:30:00 - 04-12 00:00:00 @ 14.84, 67: 04-12 00:00:00 - 04-12 00:30:00 @ 14.84, 68: 04-12 00:30:00 - 04-12 01:00:00 @ 14.84, 69: 04-12 01:00:00 - 04-12 01:30:00 @ 14.84, 70: 04-12 01:30:00 - 04-12 02:00:00 @ 14.84, 71: 04-12 05:00:00 - 04-12 05:30:00 @ 14.84, 72: 04-12 05:30:00 - 04-12 06:00:00 @ 14.84, 73: 04-12 06:00:00 - 04-12 06:30:00 @ 14.84, 74: 04-12 06:30:00 - 04-12 07:00:00 @ 14.84, 75: 04-12 07:00:00 - 04-12 07:30:00 @ 14.84, 76: 04-12 07:30:00 - 04-12 08:00:00 @ 14.84, 77: 04-12 08:00:00 - 04-12 08:30:00 @ 14.84, 78: 04-12 08:30:00 - 04-12 09:00:00 @ 14.84, 79: 04-12 09:00:00 - 04-12 09:30:00 @ 14.84, 80: 04-12 09:30:00 - 04-12 10:00:00 @ 14.84, 81: 04-12 10:00:00 - 04-12 10:30:00 @ 14.84, 82: 04-12 10:30:00 - 04-12 11:00:00 @ 14.84, 83: 04-12 11:00:00 - 04-12 11:30:00 @ 14.84]
2024-04-10 11:30:09.098108 INFO pred_bat: Export threshold used for optimisation was 26.8p
2024-04-10 11:30:08.805965 INFO pred_bat: Best charging limit socs [4.45, 5.2, 8.45, 3.95, 9.7, 9.7] export [74] gives import battery 18.87 house 0.74 export 14.84 metric 494.48 metric10 837.5
2024-04-10 11:30:08.782537 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-04-10 11:30:08.755731 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-04-10 11:30:08.139301 INFO pred_bat: METRIC: [ 289.44, 296.17, 308.05, 308.05, 324.08, 324.08, 324.08, 324.08, 324.08, 324.08, 324.08, 324.08, 324.08, 389.21, 389.21, 389.21, 439.63, 466.89, 466.89, 466.89, 466.89, 474.12, 474.37, 474.37, 474.37, 473.96, 450.7, 409.8, 372.75, 346.53, 328.58, 296.96, 296.96, 296.96, 296.96, 296.96, 296.96, 362.08, 362.08, 406.63, 498.49, 537.63, 543.46, 543.46, 543.46, 543.46, 543.46, 523.35]
2024-04-10 11:30:08.132876 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.35, 1.92, 4.67, 7.17, 8.6, 9.33, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 10.62, 11.98]
2024-04-10 11:30:08.126396 INFO pred_bat: IMPORT: [ 13.99, 14.27, 14.79, 14.79, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 15.45, 18.93, 20.8, 20.8, 20.8, 20.8, 21.1, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 21.11, 24.18, 30.5, 33.2, 33.6, 33.6, 33.6, 33.6, 33.6, 33.6]
2024-04-10 11:30:08.119738 INFO pred_bat: PV: [ 4.95, 6.2, 7.82, 10.72, 13.51, 15.88, 17.75, 18.85, 19.24, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.45, 20.28, 22.07, 25.0, 29.04, 33.83, 38.84, 43.45, 47.41, 50.44, 52.73, 54.13, 54.63, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.94, 56.45, 59.31, 63.65]
2024-04-10 11:30:08.113310 INFO pred_bat: LOAD: [ 15.82, 17.55, 19.23, 20.59, 21.76, 23.36, 25.02, 26.56, 27.95, 29.14, 30.29, 31.3, 32.29, 33.18, 34.01, 34.8, 35.88, 37.0, 37.81, 38.61, 39.79, 41.04, 42.39, 43.96, 45.21, 46.47, 47.71, 48.77, 49.91, 51.38, 52.84, 54.4, 55.58, 56.59, 57.56, 58.42, 59.31, 60.12, 60.99, 61.85, 62.96, 64.08, 64.9, 65.75, 66.87, 68.11, 69.52, 71.53]
2024-04-10 11:30:08.106791 INFO pred_bat: STATE: [ 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~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+]
2024-04-10 11:30:08.100051 INFO pred_bat: SOC: [ 5.29, 5.02, 5.32, 6.75, 8.88, 9.54, 9.66, 9.13, 8.03, 6.76, 5.52, 4.42, 3.34, 2.38, 1.48, 0.63, 2.79, 3.4, 2.53, 1.66, 0.57, 0.4, 0.77, 2.02, 4.64, 7.95, 9.7, 9.7, 9.7, 9.7, 9.7, 8.06, 7.3, 6.24, 5.19, 4.26, 3.29, 2.41, 1.47, 3.44, 8.24, 9.7, 9.24, 8.32, 7.38, 7.59, 8.92, 9.7]
2024-04-10 11:30:08.092883 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:08.085740 INFO pred_bat: predict best end_record 04-12 11:10:00 final soc 9.7 kWh metric 494.48 p metric_keep 19.96 min_soc 0.39 @ 04-11 02:40:00 kWh load 72.49 pv 67.37
2024-04-10 11:30:07.816210 INFO pred_bat: METRIC: [ 289.44, 305.28, 349.26, 351.05, 400.32, 402.05, 402.05, 402.05, 402.05, 402.05, 402.05, 402.05, 402.05, 481.3, 501.4, 516.59, 570.19, 597.44, 597.44, 597.44, 597.44, 608.74, 611.84, 611.84, 611.84, 611.84, 611.84, 591.21, 571.3, 567.6, 567.6, 552.6, 552.6, 552.6, 552.6, 552.6, 552.6, 617.72, 619.61, 673.62, 765.48, 814.93, 820.76, 820.76, 820.76, 820.76, 820.76, 820.76]
2024-04-10 11:30:07.809101 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.66, 3.0, 3.25, 3.25, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86]
2024-04-10 11:30:07.802301 INFO pred_bat: IMPORT: [ 13.99, 14.65, 16.46, 16.54, 18.57, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 19.23, 20.06, 20.85, 24.54, 26.42, 26.42, 26.42, 26.42, 26.88, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.09, 30.55, 36.87, 40.28, 40.68, 40.68, 40.68, 40.68, 40.68, 40.68]
2024-04-10 11:30:07.794898 INFO pred_bat: PV: [ 4.95, 5.6, 6.39, 8.41, 10.59, 12.5, 14.02, 14.89, 15.23, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.42, 16.08, 17.53, 19.94, 23.31, 27.42, 31.64, 35.16, 37.74, 39.38, 40.43, 40.93, 41.16, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.29, 41.73, 42.79, 44.7]
2024-04-10 11:30:07.788289 INFO pred_bat: LOAD: [ 15.82, 17.72, 19.57, 21.06, 22.36, 24.12, 25.94, 27.63, 29.16, 30.47, 31.74, 32.85, 33.94, 34.88, 35.71, 36.5, 37.58, 38.7, 39.51, 40.31, 41.49, 42.75, 44.09, 45.66, 46.92, 48.18, 49.41, 50.47, 51.61, 53.09, 54.54, 56.1, 57.28, 58.29, 59.27, 60.12, 61.01, 61.83, 62.69, 63.55, 64.66, 65.78, 66.6, 67.45, 68.57, 69.81, 71.22, 73.23]
2024-04-10 11:30:07.781806 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g<be-, g~be-, g~be-, g~be+]
2024-04-10 11:30:07.773452 INFO pred_bat: SOC: [ 5.29, 4.62, 5.2, 5.72, 8.45, 8.57, 8.17, 7.24, 5.94, 4.54, 3.17, 1.96, 0.77, 0.39, 0.39, 0.39, 2.79, 3.4, 2.53, 1.66, 0.55, 0.39, 0.56, 1.29, 3.28, 5.96, 8.77, 9.7, 9.7, 9.53, 9.04, 7.21, 6.16, 5.08, 4.03, 3.09, 2.13, 1.25, 0.39, 2.79, 7.59, 9.7, 9.24, 8.32, 7.23, 6.35, 5.92, 5.7]
2024-04-10 11:30:07.767096 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:07.760119 INFO pred_bat: predict best10 end_record 04-12 11:10:00 final soc 7.21 kWh metric 837.5 p metric_keep 65.68 min_soc 0.39 @ 04-10 23:50:00 kWh load 74.19 pv 46.58
2024-04-10 11:30:07.510093 INFO pred_bat: METRIC: [ 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 298.66, 329.3, 356.21, 382.68, 470.47, 490.57, 505.77, 521.54, 537.8, 553.49, 572.84, 597.57, 612.51, 615.61, 615.61, 615.61, 615.61, 615.61, 594.98, 575.07, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 571.37, 636.49, 636.49, 641.14, 657.35, 673.55, 689.61, 710.1, 734.45, 754.17, 763.8, 769.74]
2024-04-10 11:30:07.503594 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.66, 3.0, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25, 3.25]
2024-04-10 11:30:07.497195 INFO pred_bat: IMPORT: [ 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 14.37, 15.64, 16.75, 17.84, 18.78, 19.61, 20.4, 21.49, 22.61, 23.42, 24.21, 25.24, 25.85, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 25.98, 26.3, 27.42, 28.53, 29.36, 30.2, 31.21, 32.02, 32.42, 32.67]
2024-04-10 11:30:07.490936 INFO pred_bat: PV: [ 4.95, 5.6, 6.39, 8.41, 10.59, 12.5, 14.02, 14.89, 15.23, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.25, 15.42, 16.08, 17.53, 19.94, 23.31, 27.42, 31.64, 35.16, 37.74, 39.38, 40.43, 40.93, 41.16, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.17, 41.29, 41.73, 42.79, 44.7]
2024-04-10 11:30:07.483185 INFO pred_bat: LOAD: [ 15.82, 17.72, 19.57, 21.06, 22.36, 24.12, 25.94, 27.63, 29.16, 30.47, 31.74, 32.85, 33.94, 34.88, 35.71, 36.5, 37.58, 38.7, 39.51, 40.31, 41.49, 42.75, 44.09, 45.66, 46.92, 48.18, 49.41, 50.47, 51.61, 53.09, 54.54, 56.1, 57.28, 58.29, 59.27, 60.12, 61.01, 61.83, 62.69, 63.55, 64.66, 65.78, 66.6, 67.45, 68.57, 69.81, 71.22, 73.23]
2024-04-10 11:30:07.474684 INFO pred_bat: STATE: [ 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<be-, g<be-, g~be+]
2024-04-10 11:30:07.461412 INFO pred_bat: SOC: [ 5.29, 3.91, 2.72, 3.16, 3.96, 4.01, 3.6, 2.68, 1.38, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.56, 1.29, 3.28, 5.96, 8.77, 9.7, 9.7, 9.53, 9.04, 7.87, 6.82, 5.75, 4.69, 3.76, 2.8, 1.91, 0.97, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.44]
2024-04-10 11:30:07.454563 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:07.447155 INFO pred_bat: predict base10 end_record 04-12 11:10:00 final soc 1.28 kWh metric 769.74 p metric_keep 214.96 min_soc 0.39 @ 04-10 20:10:00 kWh load 74.19 pv 46.58
2024-04-10 11:30:07.342928 INFO pred_bat: Battery has 13.67 hours left - now at 5.29
2024-04-10 11:30:06.782190 INFO pred_bat: METRIC: [ 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 289.44, 354.56, 361.06, 376.26, 392.03, 408.29, 423.98, 443.33, 467.62, 478.93, 479.19, 479.19, 479.19, 478.78, 455.51, 414.62, 377.57, 351.34, 333.4, 331.77, 331.77, 331.77, 331.77, 331.77, 331.77, 396.89, 396.89, 396.89, 396.89, 409.51, 425.58, 446.06, 466.98, 468.18, 468.18, 468.18]
2024-04-10 11:30:06.774412 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.3, 1.87, 4.62, 7.12, 8.55, 9.28, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35, 9.35]
2024-04-10 11:30:06.768097 INFO pred_bat: IMPORT: [ 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 13.99, 14.26, 15.05, 16.14, 17.26, 18.07, 18.86, 19.87, 20.34, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 20.35, 21.21, 22.04, 22.89, 23.75, 23.8, 23.8, 23.8]
2024-04-10 11:30:06.761609 INFO pred_bat: PV: [ 4.95, 6.2, 7.82, 10.72, 13.51, 15.88, 17.75, 18.85, 19.24, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.27, 19.45, 20.28, 22.07, 25.0, 29.04, 33.83, 38.84, 43.45, 47.41, 50.44, 52.73, 54.13, 54.63, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.67, 54.94, 56.45, 59.31, 63.65]
2024-04-10 11:30:06.755390 INFO pred_bat: LOAD: [ 15.82, 17.55, 19.23, 20.59, 21.76, 23.36, 25.02, 26.56, 27.95, 29.14, 30.29, 31.3, 32.29, 33.18, 34.01, 34.8, 35.88, 37.0, 37.81, 38.61, 39.79, 41.04, 42.39, 43.96, 45.21, 46.47, 47.71, 48.77, 49.91, 51.38, 52.84, 54.4, 55.58, 56.59, 57.56, 58.42, 59.31, 60.12, 60.99, 61.85, 62.96, 64.08, 64.9, 65.75, 66.87, 68.11, 69.52, 71.53]
2024-04-10 11:30:06.749110 INFO pred_bat: STATE: [ 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~be+, g~be+, g~be+]
2024-04-10 11:30:06.743019 INFO pred_bat: SOC: [ 5.29, 4.72, 4.56, 5.99, 7.5, 8.16, 8.27, 7.74, 6.65, 5.38, 4.13, 3.03, 1.96, 1.0, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.4, 0.77, 2.02, 4.64, 7.95, 9.7, 9.7, 9.7, 9.7, 9.7, 9.38, 8.63, 7.57, 6.51, 5.58, 4.62, 3.74, 2.79, 1.87, 0.66, 0.39, 0.39, 0.39, 0.39, 0.65, 1.98, 4.13]
2024-04-10 11:30:06.736393 INFO pred_bat: [ 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30, 11:30, 12:30, 13:30, 14:30, 15:30, 16:30, 17:30, 18:30, 19:30, 20:30, 21:30, 22:30, 23:30, 00:30, 01:30, 02:30, 03:30, 04:30, 05:30, 06:30, 07:30, 08:30, 09:30, 10:30]
2024-04-10 11:30:06.729301 INFO pred_bat: predict base end_record 04-12 11:10:00 final soc 6.52 kWh metric 464.93 p metric_keep 111.84 min_soc 0.39 @ 04-11 01:10:00 kWh load 72.49 pv 67.37
2024-04-10 11:30:06.596278 INFO pred_bat: Creating pool of 4 processes to match your CPU count
2024-04-10 11:30:06.450709 INFO pred_bat: PV Forecast 64.2 kWh and 10% Forecast 42.6 kWh pv cloud factor 0.3
2024-04-10 11:30:06.445046 INFO pred_bat: Best discharge window [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 74% ]
2024-04-10 11:30:06.442043 INFO pred_bat: Best charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 46%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 54%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 12-04 02:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:30:06.437398 INFO pred_bat: Plan was last updated on 2024-04-10 11:20:00.016690+01:00 and is now 10.0 minutes old
2024-04-10 11:30:06.432695 INFO pred_bat: Base discharge window [ 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0%, 11-04 00:00:00 - 11-04 00:00:00 @ 0p 100.0% ]
2024-04-10 11:30:06.427521 INFO pred_bat: Base charge window [ ]
2024-04-10 11:30:06.325475 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 5.29 charge rate 5.0 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 4 % loss discharge 4 % inverter loss 4 %
2024-04-10 11:30:06.322323 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-10 11:30:06.319474 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-10 11:30:06.316236 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-10 11:30:06.311106 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-10 11:30:06.306066 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-10 11:30:06.301253 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-10 11:30:06.293380 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-10 11:30:06.289368 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-10 11:30:06.285059 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-10 11:30:06.279856 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-10 11:30:06.274984 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-10 11:30:06.267154 INFO pred_bat: Inverter 0 SOC: 5.29 kW 55 % Current charge rate 5000.0 w Current discharge rate 0.0 w Current power 4998.0 w Current voltage 52.0
2024-04-10 11:30:06.257668 INFO pred_bat: Inverter 0 scheduled_charge_enable off scheduled_discharge_enable off
2024-04-10 11:30:06.248759 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve 4.0 %
2024-04-10 11:30:06.243052 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-10 11:30:06.234652 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-10 11:30:06.230682 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-10 11:30:06.120270 INFO pred_bat: Today's load divergence 117.61 % in-day adjustment 116.73 % damping 0.95x, Predicted so far 8.26 kWh with 0.0 kWh car excluded and 4.51 kWh import ignored and 0 forecast extra, Actual so far 12.98 kWh with 0.0 kWh car excluded and 2.9 kWh import ignored
2024-04-10 11:30:06.036446 INFO pred_bat: Historical days now [2, 3, 4, 5, 7, 8] weight [1, 0.8, 0.7, 0.6, 0.4, 0.3]
2024-04-10 11:30:06.029906 INFO pred_bat: Model filter enabled - Discarding day 6 as it is the lowest of the 7 datapoints
2024-04-10 11:30:06.024379 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [26.87, 28.42, 23.91, 24.81, 23.02, 29.89, 30.8] - min 23.02
2024-04-10 11:30:05.961627 INFO pred_bat: PV Data for pv_forecast_d4 total 45.12 kWh
2024-04-10 11:30:05.950231 INFO pred_bat: PV Data for pv_forecast_d3 total 60.02 kWh
2024-04-10 11:30:05.938042 INFO pred_bat: PV Data for pv_forecast_tomorrow total 35.4 kWh
2024-04-10 11:30:05.925204 INFO pred_bat: PV Data for pv_forecast_today total 17.05 kWh
2024-04-10 11:30:05.911177 INFO pred_bat: Todays energy import 13.99 kWh export 0.27 kWh cost 289.44 p import 293.44 p export -4.0 p
2024-04-10 11:30:05.824835 INFO pred_bat: Low Import rate found rates in range 14.52 to 24.21
2024-04-10 11:30:05.797515 INFO pred_bat: High export rate found rates in range 14.84 to 24.52
2024-04-10 11:30:05.769772 INFO pred_bat: Rate thresholds (for charge/discharge) are import 33.39p (0.0) export 5.66p (0.0)
2024-04-10 11:30:05.764480 INFO pred_bat: Export rates min 5.16 max 24.52 average 14.84
2024-04-10 11:30:05.738702 INFO pred_bat: Import rates min 14.52 max 33.89 average 24.21
2024-04-10 11:30:05.733105 INFO pred_bat: Rate min forward looking: now 14.52 at end of forecast 14.52
2024-04-10 11:30:04.696863 INFO pred_bat: Standing charge is set to 65.121 p
2024-04-10 11:30:04.632639 INFO pred_bat: Fetching futurerate data from None
2024-04-10 11:30:04.629368 INFO pred_bat: Current data so far today: load 15.82 kWh import 13.99 kWh export 0.27 kWh pv 4.95 kWh
2024-04-10 11:30:04.626081 INFO pred_bat: Car charging hold False threshold 6.0
2024-04-10 11:30:02.072757 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-04-10 11:30:00.107928 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-04-10 11:30:00.100955 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10 calculate_fast_plan False
2024-04-10 11:30:00.057298 INFO pred_bat: Autoupdate: Currently up to date
2024-04-10 11:30:00.052912 INFO pred_bat: Predbat /config/apps/predbat.py version v7.16.11 currently running, latest version is v7.16.11 latest beta v7.16.11
2024-04-10 11:30:00.047169 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 20.0 minutes
2024-04-10 11:30:00.019691 INFO pred_bat: --------------- PredBat - update at 2024-04-10 11:30:00.016217+01:00 with clock skew 0 minutes, minutes now 690


2024-04-10 11:25:11.806245 INFO pred_bat: Completed run status Hold charging
2024-04-10 11:25:11.802754 INFO pred_bat: Will not recompute the plan, it is 5.0 minutes old and max age is 10 minutes
2024-04-10 11:25:11.757740 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target
2024-04-10 11:25:11.751326 INFO pred_bat: Adjust reserve to default as SOC 51 % is above target 46 % or charging active
2024-04-10 11:25:11.746692 INFO pred_bat: Current SOC 51% is greater than Target SOC 0. Grid Charge disabled.
2024-04-10 11:25:11.740735 INFO pred_bat: Adjust idle time computed idle is 11:25:00-23:59:00
2024-04-10 11:25:11.735624 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:25:11.730121 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-04-10 11:25:11.721456 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-11 18:10:00 - 04-11 18:30:00
2024-04-10 11:25:11.700475 INFO pred_bat: Next discharge window will be: 2024-04-11 18:10:00+01:00 - 2024-04-11 18:31:00+01:00 at reserve 74
2024-04-10 11:25:11.688155 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:25:11.684370 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:25:11.680452 INFO pred_bat: Adjust idle time computed idle is 11:25:00-23:59:00
2024-04-10 11:25:11.674587 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:25:11.665874 INFO pred_bat: Charge window will be: 2024-04-10 11:00:00+01:00 - 2024-04-10 12:00:00+01:00 - current soc 51 target 46
2024-04-10 11:25:11.639845 INFO pred_bat: Low import rate windows [0: 04-10 11:00:00 - 04-10 12:00:00 @ 24.21, 1: 04-10 12:00:00 - 04-10 13:00:00 @ 24.21, 2: 04-10 13:00:00 - 04-10 14:00:00 @ 24.21, 3: 04-10 14:00:00 - 04-10 15:00:00 @ 24.21, 4: 04-10 15:00:00 - 04-10 16:00:00 @ 24.21, 5: 04-10 19:00:00 - 04-10 20:00:00 @ 24.21, 6: 04-10 20:00:00 - 04-10 21:00:00 @ 24.21, 7: 04-10 21:00:00 - 04-10 22:00:00 @ 24.21, 8: 04-10 22:00:00 - 04-10 23:00:00 @ 24.21, 9: 04-10 23:00:00 - 04-11 00:00:00 @ 24.21, 10: 04-11 00:00:00 - 04-11 01:00:00 @ 24.21, 11: 04-11 01:00:00 - 04-11 02:00:00 @ 24.21, 12: 04-11 02:00:00 - 04-11 03:00:00 @ 14.52, 13: 04-11 03:00:00 - 04-11 04:00:00 @ 14.52, 14: 04-11 04:00:00 - 04-11 05:00:00 @ 14.52, 15: 04-11 05:00:00 - 04-11 06:00:00 @ 24.21, 16: 04-11 06:00:00 - 04-11 07:00:00 @ 24.21, 17: 04-11 07:00:00 - 04-11 08:00:00 @ 24.21, 18: 04-11 08:00:00 - 04-11 09:00:00 @ 24.21, 19: 04-11 09:00:00 - 04-11 10:00:00 @ 24.21, 20: 04-11 10:00:00 - 04-11 11:00:00 @ 24.21, 21: 04-11 11:00:00 - 04-11 12:00:00 @ 24.21, 22: 04-11 12:00:00 - 04-11 13:00:00 @ 24.21, 23: 04-11 13:00:00 - 04-11 14:00:00 @ 24.21, 24: 04-11 14:00:00 - 04-11 15:00:00 @ 24.21, 25: 04-11 15:00:00 - 04-11 16:00:00 @ 24.21, 26: 04-11 19:00:00 - 04-11 20:00:00 @ 24.21, 27: 04-11 20:00:00 - 04-11 21:00:00 @ 24.21, 28: 04-11 21:00:00 - 04-11 22:00:00 @ 24.21, 29: 04-11 22:00:00 - 04-11 23:00:00 @ 24.21, 30: 04-11 23:00:00 - 04-12 00:00:00 @ 24.21, 31: 04-12 00:00:00 - 04-12 01:00:00 @ 24.21, 32: 04-12 01:00:00 - 04-12 02:00:00 @ 24.21, 33: 04-12 02:00:00 - 04-12 03:00:00 @ 14.52, 34: 04-12 03:00:00 - 04-12 04:00:00 @ 14.52, 35: 04-12 04:00:00 - 04-12 05:00:00 @ 14.52, 36: 04-12 05:00:00 - 04-12 06:00:00 @ 24.21, 37: 04-12 06:00:00 - 04-12 07:00:00 @ 24.21, 38: 04-12 07:00:00 - 04-12 08:00:00 @ 24.21, 39: 04-12 08:00:00 - 04-12 09:00:00 @ 24.21, 40: 04-12 09:00:00 - 04-12 10:00:00 @ 24.21, 41: 04-12 10:00:00 - 04-12 11:00:00 @ 24.21, 42: 04-12 11:00:00 - 04-12 12:00:00 @ 24.21]
2024-04-10 11:25:11.472894 INFO pred_bat: Import threshold used for optimisation was 26.8p
2024-04-10 11:25:11.447492 INFO pred_bat: High export rate windows [0: 04-10 11:00:00 - 04-10 11:30:00 @ 14.84, 1: 04-10 11:30:00 - 04-10 12:00:00 @ 14.84, 2: 04-10 12:00:00 - 04-10 12:30:00 @ 14.84, 3: 04-10 12:30:00 - 04-10 13:00:00 @ 14.84, 4: 04-10 13:00:00 - 04-10 13:30:00 @ 14.84, 5: 04-10 13:30:00 - 04-10 14:00:00 @ 14.84, 6: 04-10 14:00:00 - 04-10 14:30:00 @ 14.84, 7: 04-10 14:30:00 - 04-10 15:00:00 @ 14.84, 8: 04-10 15:00:00 - 04-10 15:30:00 @ 14.84, 9: 04-10 15:30:00 - 04-10 16:00:00 @ 14.84, 10: 04-10 16:00:00 - 04-10 16:30:00 @ 24.52, 11: 04-10 16:30:00 - 04-10 17:00:00 @ 24.52, 12: 04-10 17:00:00 - 04-10 17:30:00 @ 24.52, 13: 04-10 17:30:00 - 04-10 18:00:00 @ 24.52, 14: 04-10 18:00:00 - 04-10 18:30:00 @ 24.52, 15: 04-10 18:30:00 - 04-10 19:00:00 @ 24.52, 16: 04-10 19:00:00 - 04-10 19:30:00 @ 14.84, 17: 04-10 19:30:00 - 04-10 20:00:00 @ 14.84, 18: 04-10 20:00:00 - 04-10 20:30:00 @ 14.84, 19: 04-10 20:30:00 - 04-10 21:00:00 @ 14.84, 20: 04-10 21:00:00 - 04-10 21:30:00 @ 14.84, 21: 04-10 21:30:00 - 04-10 22:00:00 @ 14.84, 22: 04-10 22:00:00 - 04-10 22:30:00 @ 14.84, 23: 04-10 22:30:00 - 04-10 23:00:00 @ 14.84, 24: 04-10 23:00:00 - 04-10 23:30:00 @ 14.84, 25: 04-10 23:30:00 - 04-11 00:00:00 @ 14.84, 26: 04-11 00:00:00 - 04-11 00:30:00 @ 14.84, 27: 04-11 00:30:00 - 04-11 01:00:00 @ 14.84, 28: 04-11 01:00:00 - 04-11 01:30:00 @ 14.84, 29: 04-11 01:30:00 - 04-11 02:00:00 @ 14.84, 30: 04-11 05:00:00 - 04-11 05:30:00 @ 14.84, 31: 04-11 05:30:00 - 04-11 06:00:00 @ 14.84, 32: 04-11 06:00:00 - 04-11 06:30:00 @ 14.84, 33: 04-11 06:30:00 - 04-11 07:00:00 @ 14.84, 34: 04-11 07:00:00 - 04-11 07:30:00 @ 14.84, 35: 04-11 07:30:00 - 04-11 08:00:00 @ 14.84, 36: 04-11 08:00:00 - 04-11 08:30:00 @ 14.84, 37: 04-11 08:30:00 - 04-11 09:00:00 @ 14.84, 38: 04-11 09:00:00 - 04-11 09:30:00 @ 14.84, 39: 04-11 09:30:00 - 04-11 10:00:00 @ 14.84, 40: 04-11 10:00:00 - 04-11 10:30:00 @ 14.84, 41: 04-11 10:30:00 - 04-11 11:00:00 @ 14.84, 42: 04-11 11:00:00 - 04-11 11:30:00 @ 14.84, 43: 04-11 11:30:00 - 04-11 12:00:00 @ 14.84, 44: 04-11 12:00:00 - 04-11 12:30:00 @ 14.84, 45: 04-11 12:30:00 - 04-11 13:00:00 @ 14.84, 46: 04-11 13:00:00 - 04-11 13:30:00 @ 14.84, 47: 04-11 13:30:00 - 04-11 14:00:00 @ 14.84, 48: 04-11 14:00:00 - 04-11 14:30:00 @ 14.84, 49: 04-11 14:30:00 - 04-11 15:00:00 @ 14.84, 50: 04-11 15:00:00 - 04-11 15:30:00 @ 14.84, 51: 04-11 15:30:00 - 04-11 16:00:00 @ 14.84, 52: 04-11 16:00:00 - 04-11 16:30:00 @ 24.52, 53: 04-11 16:30:00 - 04-11 17:00:00 @ 24.52, 54: 04-11 17:00:00 - 04-11 17:30:00 @ 24.52, 55: 04-11 17:30:00 - 04-11 18:00:00 @ 24.52, 56: 04-11 18:00:00 - 04-11 18:30:00 @ 24.52, 57: 04-11 18:30:00 - 04-11 19:00:00 @ 24.52, 58: 04-11 19:00:00 - 04-11 19:30:00 @ 14.84, 59: 04-11 19:30:00 - 04-11 20:00:00 @ 14.84, 60: 04-11 20:00:00 - 04-11 20:30:00 @ 14.84, 61: 04-11 20:30:00 - 04-11 21:00:00 @ 14.84, 62: 04-11 21:00:00 - 04-11 21:30:00 @ 14.84, 63: 04-11 21:30:00 - 04-11 22:00:00 @ 14.84, 64: 04-11 22:00:00 - 04-11 22:30:00 @ 14.84, 65: 04-11 22:30:00 - 04-11 23:00:00 @ 14.84, 66: 04-11 23:00:00 - 04-11 23:30:00 @ 14.84, 67: 04-11 23:30:00 - 04-12 00:00:00 @ 14.84, 68: 04-12 00:00:00 - 04-12 00:30:00 @ 14.84, 69: 04-12 00:30:00 - 04-12 01:00:00 @ 14.84, 70: 04-12 01:00:00 - 04-12 01:30:00 @ 14.84, 71: 04-12 01:30:00 - 04-12 02:00:00 @ 14.84, 72: 04-12 05:00:00 - 04-12 05:30:00 @ 14.84, 73: 04-12 05:30:00 - 04-12 06:00:00 @ 14.84, 74: 04-12 06:00:00 - 04-12 06:30:00 @ 14.84, 75: 04-12 06:30:00 - 04-12 07:00:00 @ 14.84, 76: 04-12 07:00:00 - 04-12 07:30:00 @ 14.84, 77: 04-12 07:30:00 - 04-12 08:00:00 @ 14.84, 78: 04-12 08:00:00 - 04-12 08:30:00 @ 14.84, 79: 04-12 08:30:00 - 04-12 09:00:00 @ 14.84, 80: 04-12 09:00:00 - 04-12 09:30:00 @ 14.84, 81: 04-12 09:30:00 - 04-12 10:00:00 @ 14.84, 82: 04-12 10:00:00 - 04-12 10:30:00 @ 14.84, 83: 04-12 10:30:00 - 04-12 11:00:00 @ 14.84, 84: 04-12 11:00:00 - 04-12 11:30:00 @ 14.84]
2024-04-10 11:25:11.282149 INFO pred_bat: Export threshold used for optimisation was 26.8p
2024-04-10 11:25:10.982179 INFO pred_bat: Best charging limit socs [4.45, 5.2, 8.45, 3.95, 9.7, 9.7] export [74] gives import battery 19.21 house 0.77 export 14.61 metric 493.55 metric10 825.84
2024-04-10 11:25:10.959911 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-04-10 11:25:10.933214 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-04-10 11:25:10.221152 INFO pred_bat: METRIC: [ 277.38, 285.07, 303.76, 304.56, 319.14, 320.26, 320.26, 320.26, 320.26, 320.26, 320.26, 320.26, 320.26, 385.38, 385.38, 385.38, 428.81, 463.45, 463.45, 463.45, 463.45, 470.0, 471.12, 471.12, 471.12, 470.73, 451.15, 409.77, 372.02, 343.65, 325.2, 299.62, 292.12, 292.12, 292.12, 292.12, 292.12, 357.24, 357.24, 394.29, 485.92, 531.52, 538.42, 538.42, 538.42, 538.42, 538.42, 521.1]
2024-04-10 11:25:10.214772 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.31, 0.31, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.36, 1.68, 4.47, 7.02, 8.6, 9.35, 10.39, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 10.7, 11.86]
2024-04-10 11:25:10.208313 INFO pred_bat: IMPORT: [ 13.5, 13.81, 14.61, 14.64, 15.26, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 15.31, 18.3, 20.68, 20.68, 20.68, 20.68, 20.95, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 23.55, 29.86, 33.0, 33.47, 33.47, 33.47, 33.47, 33.47, 33.47]
2024-04-10 11:25:10.202005 INFO pred_bat: PV: [ 4.92, 6.17, 7.73, 10.54, 13.37, 15.77, 17.68, 18.85, 19.3, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.5, 20.27, 21.97, 24.81, 28.76, 33.5, 38.5, 43.15, 47.17, 50.28, 52.63, 54.1, 54.68, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.97, 56.37, 59.11, 63.33]
2024-04-10 11:25:10.195775 INFO pred_bat: LOAD: [ 15.57, 17.26, 18.96, 20.33, 21.53, 23.07, 24.79, 26.23, 27.7, 28.92, 30.07, 31.09, 32.08, 32.98, 33.81, 34.6, 35.68, 36.8, 37.61, 38.41, 39.55, 40.81, 42.15, 43.7, 44.99, 46.24, 47.47, 48.54, 49.71, 51.11, 52.61, 54.11, 55.35, 56.38, 57.36, 58.23, 59.11, 59.93, 60.79, 61.63, 62.73, 63.87, 64.7, 65.55, 66.64, 67.85, 69.24, 71.22]
2024-04-10 11:25:10.189254 INFO pred_bat: STATE: [ 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~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~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+]
2024-04-10 11:25:10.183173 INFO pred_bat: SOC: [ 4.95, 4.77, 5.26, 6.62, 8.69, 9.5, 9.59, 9.24, 8.11, 6.84, 5.58, 4.48, 3.4, 2.43, 1.53, 0.67, 2.39, 3.48, 2.6, 1.73, 0.66, 0.39, 0.73, 1.9, 4.4, 7.67, 9.7, 9.7, 9.7, 9.7, 9.7, 8.48, 7.4, 6.34, 5.29, 4.34, 3.38, 2.49, 1.56, 3.06, 7.86, 9.7, 9.32, 8.4, 7.45, 7.57, 8.81, 9.7]
2024-04-10 11:25:10.176606 INFO pred_bat: [ 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25, 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25]
2024-04-10 11:25:10.169723 INFO pred_bat: predict best end_record 04-12 11:05:00 final soc 9.7 kWh metric 493.55 p metric_keep 20.44 min_soc 0.39 @ 04-11 02:40:00 kWh load 72.17 pv 66.94
2024-04-10 11:25:09.918183 INFO pred_bat: METRIC: [ 277.38, 294.95, 345.78, 350.66, 393.92, 400.94, 400.94, 400.94, 400.94, 400.94, 400.94, 400.94, 400.94, 478.6, 498.69, 514.48, 561.72, 596.36, 596.36, 596.36, 596.36, 606.8, 610.78, 610.78, 610.78, 610.78, 610.78, 592.63, 572.03, 566.28, 566.28, 551.28, 551.28, 551.28, 551.28, 551.28, 551.28, 616.41, 617.09, 665.27, 756.91, 813.02, 819.91, 819.91, 819.91, 819.91, 819.91, 819.91]
2024-04-10 11:25:09.911491 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 1.57, 2.96, 3.35, 3.35, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96, 3.96]
2024-04-10 11:25:09.904765 INFO pred_bat: IMPORT: [ 13.5, 14.22, 16.32, 16.52, 18.31, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 18.65, 19.17, 20.0, 20.78, 24.03, 26.42, 26.42, 26.42, 26.42, 26.85, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.01, 27.04, 30.05, 36.36, 40.23, 40.7, 40.7, 40.7, 40.7, 40.7, 40.7]
2024-04-10 11:25:09.896968 INFO pred_bat: PV: [ 4.92, 5.59, 6.34, 8.27, 10.46, 12.39, 13.94, 14.88, 15.25, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.43, 16.05, 17.43, 19.76, 23.06, 27.1, 31.33, 34.92, 37.58, 39.29, 40.39, 40.94, 41.18, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.31, 41.73, 42.72, 44.56]
2024-04-10 11:25:09.890538 INFO pred_bat: LOAD: [ 15.57, 17.43, 19.29, 20.8, 22.12, 23.82, 25.71, 27.29, 28.91, 30.25, 31.52, 32.64, 33.73, 34.69, 35.52, 36.31, 37.39, 38.51, 39.33, 40.13, 41.27, 42.53, 43.86, 45.42, 46.7, 47.95, 49.18, 50.25, 51.42, 52.83, 54.32, 55.82, 57.06, 58.1, 59.07, 59.94, 60.82, 61.64, 62.51, 63.35, 64.45, 65.59, 66.42, 67.26, 68.36, 69.57, 70.96, 72.94]
2024-04-10 11:25:09.883883 INFO pred_bat: STATE: [ g<be-, g~be-, g<be-, 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-]
2024-04-10 11:25:09.799982 INFO pred_bat: SOC: [ 4.95, 4.43, 5.2, 5.75, 8.21, 8.61, 8.17, 7.43, 6.06, 4.65, 3.27, 2.06, 0.87, 0.39, 0.39, 0.39, 2.39, 3.48, 2.6, 1.73, 0.64, 0.39, 0.54, 1.21, 3.08, 5.72, 8.55, 9.7, 9.7, 9.53, 9.05, 7.33, 6.24, 5.14, 4.09, 3.15, 2.19, 1.3, 0.39, 2.39, 7.19, 9.7, 9.32, 8.4, 7.32, 6.44, 5.96, 5.71]
2024-04-10 11:25:09.793227 INFO pred_bat: [ 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25, 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25]
2024-04-10 11:25:09.786111 INFO pred_bat: predict best10 end_record 04-12 11:05:00 final soc 6.72 kWh metric 825.84 p metric_keep 67.16 min_soc 0.39 @ 04-10 23:50:00 kWh load 73.88 pv 46.35
2024-04-10 11:25:09.509236 INFO pred_bat: METRIC: [ 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 293.33, 324.15, 351.15, 377.54, 465.96, 486.05, 501.84, 517.56, 533.83, 549.0, 568.37, 592.69, 608.75, 612.73, 612.73, 612.73, 612.73, 612.73, 594.59, 573.98, 568.24, 568.24, 568.24, 568.24, 568.24, 568.24, 568.24, 568.24, 633.36, 633.36, 637.1, 653.08, 669.63, 685.09, 705.52, 729.69, 749.33, 759.85, 765.61]
2024-04-10 11:25:09.502954 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.49, 2.88, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27, 3.27]
2024-04-10 11:25:09.496517 INFO pred_bat: IMPORT: [ 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 14.15, 15.43, 16.54, 17.63, 18.6, 19.43, 20.21, 21.29, 22.41, 23.23, 24.03, 25.03, 25.7, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 25.86, 26.12, 27.22, 28.36, 29.19, 30.03, 31.03, 31.84, 32.28, 32.51]
2024-04-10 11:25:09.490304 INFO pred_bat: PV: [ 4.92, 5.59, 6.34, 8.27, 10.46, 12.39, 13.94, 14.88, 15.25, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.29, 15.43, 16.05, 17.43, 19.76, 23.06, 27.1, 31.33, 34.92, 37.58, 39.29, 40.39, 40.94, 41.18, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.21, 41.31, 41.73, 42.72, 44.56]
2024-04-10 11:25:09.483887 INFO pred_bat: LOAD: [ 15.57, 17.43, 19.29, 20.8, 22.12, 23.82, 25.71, 27.29, 28.91, 30.25, 31.52, 32.64, 33.73, 34.69, 35.52, 36.31, 37.39, 38.51, 39.33, 40.13, 41.27, 42.53, 43.86, 45.42, 46.7, 47.95, 49.18, 50.25, 51.42, 52.83, 54.32, 55.82, 57.06, 58.1, 59.07, 59.94, 60.82, 61.64, 62.51, 63.35, 64.45, 65.59, 66.42, 67.26, 68.36, 69.57, 70.96, 72.94]
2024-04-10 11:25:09.477499 INFO pred_bat: STATE: [ 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<be-, g<be-, g<be-]
2024-04-10 11:25:09.471535 INFO pred_bat: SOC: [ 4.95, 3.64, 2.39, 2.72, 3.5, 3.64, 3.2, 2.46, 1.09, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.54, 1.21, 3.08, 5.72, 8.55, 9.7, 9.7, 9.53, 9.05, 7.99, 6.9, 5.81, 4.75, 3.81, 2.85, 1.96, 1.02, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39]
2024-04-10 11:25:09.465118 INFO pred_bat: [ 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25, 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25]
2024-04-10 11:25:09.458386 INFO pred_bat: predict base10 end_record 04-12 11:05:00 final soc 1.23 kWh metric 767.07 p metric_keep 220.87 min_soc 0.39 @ 04-10 19:55:00 kWh load 73.88 pv 46.35
2024-04-10 11:25:09.357477 INFO pred_bat: Battery has 13.33 hours left - now at 4.95
2024-04-10 11:25:08.809400 INFO pred_bat: METRIC: [ 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 277.38, 342.5, 355.33, 371.12, 386.84, 403.1, 418.27, 437.65, 461.6, 474.14, 475.26, 475.26, 475.26, 474.87, 455.29, 413.91, 376.16, 347.79, 329.34, 326.25, 326.25, 326.25, 326.25, 326.25, 326.25, 391.38, 391.38, 391.38, 391.38, 402.77, 418.22, 438.66, 459.84, 462.42, 462.42, 462.42]
2024-04-10 11:25:08.802706 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.3, 1.62, 4.4, 6.95, 8.53, 9.28, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41, 9.41]
2024-04-10 11:25:08.796165 INFO pred_bat: IMPORT: [ 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 13.5, 14.03, 14.81, 15.89, 17.01, 17.83, 18.63, 19.62, 20.14, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.18, 20.97, 21.8, 22.64, 23.52, 23.62, 23.62, 23.62]
2024-04-10 11:25:08.789716 INFO pred_bat: PV: [ 4.92, 6.17, 7.73, 10.54, 13.37, 15.77, 17.68, 18.85, 19.3, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.34, 19.5, 20.27, 21.97, 24.81, 28.76, 33.5, 38.5, 43.15, 47.17, 50.28, 52.63, 54.1, 54.68, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.74, 54.97, 56.37, 59.11, 63.33]
2024-04-10 11:25:08.781938 INFO pred_bat: LOAD: [ 15.57, 17.26, 18.96, 20.33, 21.53, 23.07, 24.79, 26.23, 27.7, 28.92, 30.07, 31.09, 32.08, 32.98, 33.81, 34.6, 35.68, 36.8, 37.61, 38.41, 39.55, 40.81, 42.15, 43.7, 44.99, 46.24, 47.47, 48.54, 49.71, 51.11, 52.61, 54.11, 55.35, 56.38, 57.36, 58.23, 59.11, 59.93, 60.79, 61.63, 62.73, 63.87, 64.7, 65.55, 66.64, 67.85, 69.24, 71.22]
2024-04-10 11:25:08.773991 INFO pred_bat: STATE: [ 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~be-, g~be+, g~be+]
2024-04-10 11:25:08.762750 INFO pred_bat: SOC: [ 4.95, 4.43, 4.19, 5.52, 7.03, 7.79, 7.88, 7.53, 6.4, 5.12, 3.87, 2.77, 1.69, 0.72, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.73, 1.9, 4.4, 7.67, 9.7, 9.7, 9.7, 9.7, 9.7, 9.47, 8.73, 7.67, 6.61, 5.67, 4.71, 3.82, 2.88, 1.97, 0.78, 0.39, 0.39, 0.39, 0.39, 0.62, 1.86, 3.93]
2024-04-10 11:25:08.756453 INFO pred_bat: [ 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25, 11:25, 12:25, 13:25, 14:25, 15:25, 16:25, 17:25, 18:25, 19:25, 20:25, 21:25, 22:25, 23:25, 00:25, 01:25, 02:25, 03:25, 04:25, 05:25, 06:25, 07:25, 08:25, 09:25, 10:25]
2024-04-10 11:25:08.749038 INFO pred_bat: predict base end_record 04-12 11:05:00 final soc 6.23 kWh metric 459.16 p metric_keep 115.93 min_soc 0.39 @ 04-11 00:45:00 kWh load 72.17 pv 66.94
2024-04-10 11:25:08.614298 INFO pred_bat: Creating pool of 4 processes to match your CPU count
2024-04-10 11:25:08.477450 INFO pred_bat: PV Forecast 63.9 kWh and 10% Forecast 42.4 kWh pv cloud factor 0.3
2024-04-10 11:25:08.471485 INFO pred_bat: Best discharge window [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 74% ]
2024-04-10 11:25:08.468147 INFO pred_bat: Best charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 46%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 54%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 12-04 02:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:25:08.464353 INFO pred_bat: Plan was last updated on 2024-04-10 11:20:00.016690+01:00 and is now 5.0 minutes old
2024-04-10 11:25:08.459879 INFO pred_bat: Base discharge window [ 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0%, 11-04 00:00:00 - 11-04 00:00:00 @ 0p 100.0% ]
2024-04-10 11:25:08.454995 INFO pred_bat: Base charge window [ ]
2024-04-10 11:25:08.337848 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 4.95 charge rate 5.0 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 4 % loss discharge 4 % inverter loss 4 %
2024-04-10 11:25:08.334652 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-10 11:25:08.331795 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-10 11:25:08.328907 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-10 11:25:08.323502 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-10 11:25:08.317174 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-10 11:25:08.311822 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-10 11:25:08.298948 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-10 11:25:08.294463 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-10 11:25:08.290106 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-10 11:25:08.286318 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-10 11:25:08.282557 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-10 11:25:06.250306 INFO pred_bat: Inverter 0 SOC: 4.95 kW 51 % Current charge rate 5000.0 w Current discharge rate 0.0 w Current power 4972.0 w Current voltage 52.0
2024-04-10 11:25:06.241206 INFO pred_bat: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-04-10 11:25:06.232555 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve 4.0 %
2024-04-10 11:25:06.226542 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-10 11:25:06.217761 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-10 11:25:06.213997 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-10 11:25:06.104899 INFO pred_bat: Today's load divergence 117.65 % in-day adjustment 116.76 % damping 0.95x, Predicted so far 8.26 kWh with 0.0 kWh car excluded and 4.51 kWh import ignored and 0 forecast extra, Actual so far 12.99 kWh with 0.0 kWh car excluded and 2.57 kWh import ignored
2024-04-10 11:25:06.025087 INFO pred_bat: Historical days now [2, 3, 4, 5, 7, 8] weight [1, 0.8, 0.7, 0.6, 0.4, 0.3]
2024-04-10 11:25:06.018084 INFO pred_bat: Model filter enabled - Discarding day 6 as it is the lowest of the 7 datapoints
2024-04-10 11:25:06.012312 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [26.83, 28.43, 23.93, 24.8, 22.93, 30.04, 30.8] - min 22.93
2024-04-10 11:25:05.949845 INFO pred_bat: PV Data for pv_forecast_d4 total 45.12 kWh
2024-04-10 11:25:05.939442 INFO pred_bat: PV Data for pv_forecast_d3 total 60.02 kWh
2024-04-10 11:25:05.927216 INFO pred_bat: PV Data for pv_forecast_tomorrow total 35.4 kWh
2024-04-10 11:25:05.916803 INFO pred_bat: PV Data for pv_forecast_today total 17.05 kWh
2024-04-10 11:25:05.903922 INFO pred_bat: Todays energy import 13.5 kWh export 0.27 kWh cost 277.38 p import 281.38 p export -4.0 p
2024-04-10 11:25:05.806176 INFO pred_bat: Low Import rate found rates in range 14.52 to 24.21
2024-04-10 11:25:05.778056 INFO pred_bat: High export rate found rates in range 14.84 to 24.52
2024-04-10 11:25:05.746822 INFO pred_bat: Rate thresholds (for charge/discharge) are import 33.39p (0.0) export 5.66p (0.0)
2024-04-10 11:25:05.741333 INFO pred_bat: Export rates min 5.16 max 24.52 average 14.84
2024-04-10 11:25:05.715471 INFO pred_bat: Import rates min 14.52 max 33.89 average 24.21
2024-04-10 11:25:05.709787 INFO pred_bat: Rate min forward looking: now 14.52 at end of forecast 14.52
2024-04-10 11:25:04.649276 INFO pred_bat: Standing charge is set to 65.121 p
2024-04-10 11:25:04.588925 INFO pred_bat: Fetching futurerate data from None
2024-04-10 11:25:04.584804 INFO pred_bat: Current data so far today: load 15.57 kWh import 13.5 kWh export 0.27 kWh pv 4.92 kWh
2024-04-10 11:25:04.579175 INFO pred_bat: Car charging hold False threshold 6.0
2024-04-10 11:25:02.037658 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-04-10 11:25:00.102792 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-04-10 11:25:00.097462 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10 calculate_fast_plan False
2024-04-10 11:25:00.056012 INFO pred_bat: Autoupdate: Currently up to date
2024-04-10 11:25:00.052261 INFO pred_bat: Predbat /config/apps/predbat.py version v7.16.11 currently running, latest version is v7.16.11 latest beta v7.16.11
2024-04-10 11:25:00.048852 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 15.0 minutes
2024-04-10 11:25:00.021544 INFO pred_bat: --------------- PredBat - update at 2024-04-10 11:25:00.017959+01:00 with clock skew 0 minutes, minutes now 685


2024-04-10 11:21:14.851239 INFO pred_bat: Completed run status Hold charging
2024-04-10 11:21:14.807083 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target
2024-04-10 11:21:14.800335 INFO pred_bat: Adjust reserve to default as SOC 50 % is above target 46 % or charging active
2024-04-10 11:21:14.795206 INFO pred_bat: Current SOC 50% is greater than Target SOC 0. Grid Charge disabled.
2024-04-10 11:21:14.788763 INFO pred_bat: Adjust idle time computed idle is 11:20:00-23:59:00
2024-04-10 11:21:14.782983 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:21:14.777410 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-04-10 11:21:14.753575 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-11 18:10:00 - 04-11 18:30:00
2024-04-10 11:21:14.747799 INFO pred_bat: Next discharge window will be: 2024-04-11 18:10:00+01:00 - 2024-04-11 18:31:00+01:00 at reserve 74
2024-04-10 11:21:14.739233 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:21:14.735556 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:21:14.731830 INFO pred_bat: Inverter 0 Turning off scheduled charge
2024-04-10 11:21:14.727812 INFO pred_bat: Inverter 0 Turning on scheduled charge
2024-04-10 11:21:14.720401 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to True successfully and got on
2024-04-10 11:21:12.686442 INFO pred_bat: Inverter 0 Updated start and end charge window to 00:00:00 - 00:00:00 (old 11:00:00 - 12:00:00)
2024-04-10 11:21:12.680844 INFO pred_bat: Inverter 0 Wrote 00:00:00 to charge_end_time, successfully now 00:00:00
2024-04-10 11:21:10.647879 INFO pred_bat: Inverter 0 Wrote 00:00:00 to charge_start_time, successfully now 00:00:00
2024-04-10 11:21:08.615926 INFO pred_bat: Adjust idle time computed idle is 11:20:00-23:59:00
2024-04-10 11:21:08.609575 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:21:08.600440 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-10 11:21:06.569559 INFO pred_bat: Adjust idle time computed idle is 11:20:00-23:59:00
2024-04-10 11:21:06.564441 INFO pred_bat: Adjust idle time, charge 00:00:00-00:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:21:06.557392 INFO pred_bat: Inverter 0 Wrote 0 to discharge_rate, successfully now 0
2024-04-10 11:21:04.544045 INFO pred_bat: Inverter 0 current discharge rate is 5000.0 and new target is 0
2024-04-10 11:21:04.537542 INFO pred_bat: Charge window will be: 2024-04-10 11:00:00+01:00 - 2024-04-10 12:00:00+01:00 - current soc 50 target 46
2024-04-10 11:21:04.533644 INFO pred_bat: Include original charge start 04-10 11:00:00, keeping this instead of new start 04-10 11:00:00
2024-04-10 11:21:04.529898 INFO pred_bat: Base discharge window [ 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0%, 11-04 00:00:00 - 11-04 00:00:00 @ 0p 100.0% ]
2024-04-10 11:21:04.524592 INFO pred_bat: Base charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 0p 48%, 11-04 11:00:00 - 11-04 12:00:00 @ 0p 48%, 12-04 11:00:00 - 12-04 12:00:00 @ 0p 48% ]
2024-04-10 11:21:04.398998 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 4.85 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 4 % loss discharge 4 % inverter loss 4 %
2024-04-10 11:21:04.395679 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-10 11:21:04.392802 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-10 11:21:04.389764 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-10 11:21:04.384720 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-10 11:21:04.378326 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-10 11:21:04.373814 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-10 11:21:04.366087 INFO pred_bat: Inverter 0 Charge settings: 04-10 11:00:00-04-10 12:00:00 limit 48.0 power 5.0 kW
2024-04-10 11:21:04.360033 INFO pred_bat: Inverter 0 charge windows currently [{'start': 660, 'end': 720, 'average': 0}, {'start': 2100, 'end': 2160, 'average': 0}, {'start': 3540, 'end': 3600, 'average': 0}]
2024-04-10 11:21:04.355888 INFO pred_bat: Inverter 0 scheduled charge enable is True
2024-04-10 11:21:04.350990 INFO pred_bat: Inverter 0 scheduled_charge_enable set to True
2024-04-10 11:21:04.345732 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to True successfully and got on
2024-04-10 11:21:04.336391 INFO pred_bat: Inverter 0 SOC: 4.85 kW 50 % Current charge rate 5000.0 w Current discharge rate 5000.0 w Current power 4998.0 w Current voltage 52.0
2024-04-10 11:21:04.326417 INFO pred_bat: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-04-10 11:21:04.317087 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve 4.0 %
2024-04-10 11:21:04.310711 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-10 11:21:04.301421 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-10 11:21:04.298021 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-10 11:21:03.979563 INFO pred_bat: Best charging limit socs [4.45, 5.2, 8.45, 3.95, 9.7, 9.7] export [74] gives import battery 19.69 house 0.74 export 14.42 metric 492.68 metric10 815.66
2024-04-10 11:21:03.950353 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-04-10 11:21:03.919342 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-04-10 11:21:03.323785 INFO pred_bat: METRIC: [ 261.14, 269.14, 297.94, 299.02, 316.12, 316.12, 316.12, 316.12, 316.12, 316.12, 316.12, 316.12, 316.12, 381.25, 381.25, 381.25, 416.91, 458.9, 458.9, 458.9, 458.9, 464.5, 466.38, 466.38, 466.38, 466.18, 449.33, 408.01, 370.4, 342.47, 323.1, 303.15, 288.15, 288.15, 288.15, 288.15, 288.15, 353.27, 353.27, 382.69, 474.33, 526.71, 534.63, 534.63, 534.63, 534.63, 534.63, 519.42]
2024-04-10 11:21:03.317079 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.3, 1.44, 4.22, 6.76, 8.43, 9.22, 10.04, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 11.67]
2024-04-10 11:21:03.310655 INFO pred_bat: IMPORT: [ 12.82, 13.15, 14.36, 14.4, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 15.11, 17.56, 20.45, 20.45, 20.45, 20.45, 20.69, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 20.76, 22.79, 29.1, 32.7, 33.25, 33.25, 33.25, 33.25, 33.25, 33.25]
2024-04-10 11:21:03.304173 INFO pred_bat: PV: [ 4.88, 6.14, 7.64, 10.36, 13.21, 15.66, 17.61, 18.85, 19.35, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.55, 20.27, 21.88, 24.62, 28.48, 33.17, 38.16, 42.85, 46.93, 50.12, 52.53, 54.08, 54.73, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 55.02, 56.31, 58.93, 63.02]
2024-04-10 11:21:03.297961 INFO pred_bat: LOAD: [ 15.24, 16.9, 18.59, 20.0, 21.21, 22.71, 24.47, 25.91, 27.38, 28.61, 29.77, 30.79, 31.79, 32.7, 33.53, 34.31, 35.39, 36.52, 37.33, 38.13, 39.19, 40.48, 41.83, 43.39, 44.68, 45.92, 47.14, 48.23, 49.42, 50.77, 52.29, 53.78, 55.05, 56.09, 57.06, 57.94, 58.82, 59.64, 60.51, 61.33, 62.43, 63.59, 64.41, 65.26, 66.3, 67.52, 68.87, 70.79]
2024-04-10 11:21:03.291728 INFO pred_bat: STATE: [ 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~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~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+]
2024-04-10 11:21:03.285517 INFO pred_bat: SOC: [ 4.5, 4.37, 5.2, 6.45, 8.65, 9.49, 9.6, 9.31, 8.23, 6.97, 5.71, 4.6, 3.52, 2.54, 1.63, 0.78, 1.99, 3.56, 2.67, 1.8, 0.79, 0.39, 0.66, 1.73, 4.15, 7.39, 9.7, 9.7, 9.7, 9.7, 9.7, 8.81, 7.45, 6.42, 5.37, 4.41, 3.45, 2.56, 1.62, 2.65, 7.45, 9.7, 9.4, 8.47, 7.56, 7.54, 8.71, 9.7]
2024-04-10 11:21:03.279045 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:21:03.272204 INFO pred_bat: predict best end_record 04-12 11:00:00 final soc 9.7 kWh metric 492.68 p metric_keep 19.9 min_soc 0.39 @ 04-11 02:40:00 kWh load 71.8 pv 66.49
2024-04-10 11:21:03.002573 INFO pred_bat: METRIC: [ 261.14, 279.84, 328.15, 345.97, 381.59, 396.95, 396.95, 396.95, 396.95, 396.95, 396.95, 396.95, 396.95, 472.94, 493.12, 509.49, 550.39, 592.38, 592.38, 592.38, 592.38, 601.46, 606.78, 606.78, 606.78, 606.78, 606.78, 591.12, 569.66, 562.54, 562.54, 547.54, 547.54, 547.54, 547.54, 547.54, 547.54, 612.67, 612.67, 653.39, 745.03, 807.73, 815.66, 815.66, 815.66, 815.66, 815.66, 815.66]
2024-04-10 11:21:02.996026 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.33, 2.77, 3.25, 3.25, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86]
2024-04-10 11:21:02.989698 INFO pred_bat: IMPORT: [ 12.82, 13.6, 15.59, 16.33, 17.8, 18.43, 18.43, 18.43, 18.43, 18.43, 18.43, 18.43, 18.43, 18.88, 19.72, 20.5, 23.32, 26.21, 26.21, 26.21, 26.21, 26.58, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 29.29, 35.6, 39.92, 40.47, 40.47, 40.47, 40.47, 40.47, 40.47]
2024-04-10 11:21:02.983404 INFO pred_bat: PV: [ 4.88, 5.57, 6.29, 8.13, 10.32, 12.27, 13.86, 14.86, 15.27, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.45, 16.03, 17.34, 19.58, 22.8, 26.79, 31.02, 34.68, 37.43, 39.21, 40.35, 40.94, 41.21, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.34, 41.73, 42.67, 44.43]
2024-04-10 11:21:02.977018 INFO pred_bat: LOAD: [ 15.24, 17.07, 18.93, 20.48, 21.81, 23.46, 25.39, 26.97, 28.59, 29.95, 31.22, 32.35, 33.44, 34.42, 35.26, 36.04, 37.12, 38.24, 39.06, 39.86, 40.92, 42.2, 43.56, 45.12, 46.4, 47.65, 48.86, 49.95, 51.14, 52.5, 54.02, 55.51, 56.77, 57.81, 58.78, 59.67, 60.55, 61.37, 62.23, 63.05, 64.16, 65.31, 66.14, 66.99, 68.03, 69.25, 70.6, 72.51]
2024-04-10 11:21:02.970462 INFO pred_bat: STATE: [ g<be-, 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-]
2024-04-10 11:21:02.962878 INFO pred_bat: SOC: [ 4.5, 4.08, 4.71, 5.63, 7.79, 8.61, 8.17, 7.49, 6.16, 4.76, 3.37, 2.15, 0.97, 0.39, 0.39, 0.39, 1.99, 3.56, 2.67, 1.8, 0.78, 0.39, 0.51, 1.1, 2.9, 5.49, 8.34, 9.7, 9.7, 9.56, 9.1, 7.44, 6.34, 5.25, 4.2, 3.25, 2.29, 1.4, 0.46, 1.99, 6.79, 9.7, 9.4, 8.47, 7.44, 6.52, 6.03, 5.77]
2024-04-10 11:21:02.956410 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:21:02.949607 INFO pred_bat: predict best10 end_record 04-12 11:00:00 final soc 6.36 kWh metric 815.66 p metric_keep 65.55 min_soc 0.39 @ 04-10 23:50:00 kWh load 73.52 pv 46.11
2024-04-10 11:21:02.713625 INFO pred_bat: METRIC: [ 261.14, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 286.32, 317.18, 344.45, 370.84, 459.73, 479.91, 496.27, 511.96, 528.3, 542.81, 562.26, 585.11, 602.84, 608.16, 608.16, 633.36, 643.12, 640.34, 607.22, 585.76, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 643.77, 643.77, 645.86, 661.86, 678.7, 693.4, 713.98, 737.0, 757.6, 769.18, 774.34]
2024-04-10 11:21:02.707030 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.46, 2.69, 4.14, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62]
2024-04-10 11:21:02.700663 INFO pred_bat: IMPORT: [ 12.82, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.86, 15.14, 16.27, 17.36, 18.34, 19.17, 19.95, 21.03, 22.16, 22.97, 23.78, 24.72, 25.45, 25.67, 25.67, 26.71, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.26, 28.36, 29.52, 30.35, 31.2, 32.15, 33.0, 33.48, 33.69]
2024-04-10 11:21:02.694249 INFO pred_bat: PV: [ 4.88, 5.57, 6.29, 8.13, 10.32, 12.27, 13.86, 14.86, 15.27, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.45, 16.03, 17.34, 19.58, 22.8, 26.79, 31.02, 34.68, 37.43, 39.21, 40.35, 40.94, 41.21, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.34, 41.73, 42.67, 44.43]
2024-04-10 11:21:02.687661 INFO pred_bat: LOAD: [ 15.24, 17.07, 18.93, 20.48, 21.81, 23.46, 25.39, 26.97, 28.59, 29.95, 31.22, 32.35, 33.44, 34.42, 35.26, 36.04, 37.12, 38.24, 39.06, 39.86, 40.92, 42.2, 43.56, 45.12, 46.4, 47.65, 48.86, 49.95, 51.14, 52.5, 54.02, 55.51, 56.77, 57.81, 58.78, 59.67, 60.55, 61.37, 62.23, 63.05, 64.16, 65.31, 66.14, 66.99, 68.03, 69.25, 70.6, 72.51]
2024-04-10 11:21:02.681163 INFO pred_bat: STATE: [ 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<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-]
2024-04-10 11:21:02.675189 INFO pred_bat: SOC: [ 4.5, 4.24, 2.96, 3.16, 3.92, 4.13, 3.69, 3.0, 1.68, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.51, 1.1, 3.89, 6.87, 9.53, 9.7, 9.7, 9.56, 9.1, 8.1, 7.0, 5.92, 4.87, 3.91, 2.95, 2.06, 1.12, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.42, 0.39]
2024-04-10 11:21:02.668750 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:21:02.661919 INFO pred_bat: predict base10 end_record 04-12 11:00:00 final soc 1.1 kWh metric 776.98 p metric_keep 214.73 min_soc 0.39 @ 04-10 20:15:00 kWh load 73.52 pv 46.11
2024-04-10 11:21:02.544393 INFO pred_bat: Battery has 13.42 hours left - now at 4.5
2024-04-10 11:21:02.045629 INFO pred_bat: METRIC: [ 261.14, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 337.66, 348.27, 364.64, 380.33, 396.66, 411.17, 430.63, 453.17, 467.73, 469.61, 469.61, 484.57, 484.36, 462.2, 420.89, 383.28, 355.34, 335.97, 331.02, 331.02, 331.02, 331.02, 331.02, 331.02, 396.14, 396.14, 396.14, 396.14, 406.64, 421.34, 441.93, 462.4, 467.41, 467.41, 467.41]
2024-04-10 11:21:02.037715 INFO pred_bat: EXPORT: [ 0.27, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.49, 0.51, 2.0, 4.78, 7.32, 8.99, 9.78, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98]
2024-04-10 11:21:02.031444 INFO pred_bat: IMPORT: [ 12.82, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.75, 14.53, 15.61, 16.74, 17.55, 18.36, 19.29, 19.89, 19.97, 19.97, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 21.43, 22.25, 23.1, 23.95, 24.16, 24.16, 24.16]
2024-04-10 11:21:02.025162 INFO pred_bat: PV: [ 4.88, 6.14, 7.64, 10.36, 13.21, 15.66, 17.61, 18.85, 19.35, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.55, 20.27, 21.88, 24.62, 28.48, 33.17, 38.16, 42.85, 46.93, 50.12, 52.53, 54.08, 54.73, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 55.02, 56.31, 58.93, 63.02]
2024-04-10 11:21:02.018957 INFO pred_bat: LOAD: [ 15.24, 16.9, 18.59, 20.0, 21.21, 22.71, 24.47, 25.91, 27.38, 28.61, 29.77, 30.79, 31.79, 32.7, 33.53, 34.31, 35.39, 36.52, 37.33, 38.13, 39.19, 40.48, 41.83, 43.39, 44.68, 45.92, 47.14, 48.23, 49.42, 50.77, 52.29, 53.78, 55.05, 56.09, 57.06, 57.94, 58.82, 59.64, 60.51, 61.33, 62.43, 63.59, 64.41, 65.26, 66.3, 67.52, 68.87, 70.79]
2024-04-10 11:21:02.012394 INFO pred_bat: STATE: [ 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~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+]
2024-04-10 11:21:02.006244 INFO pred_bat: SOC: [ 4.5, 4.5, 4.21, 5.41, 6.93, 7.77, 7.88, 7.59, 6.51, 5.25, 3.99, 2.88, 1.81, 0.82, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.66, 1.73, 4.66, 7.9, 9.7, 9.7, 9.7, 9.7, 9.7, 9.48, 8.78, 7.74, 6.69, 5.73, 4.78, 3.89, 2.95, 2.06, 0.86, 0.39, 0.39, 0.39, 0.39, 0.6, 1.77, 3.78]
2024-04-10 11:21:01.999920 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:21:01.993191 INFO pred_bat: predict base end_record 04-12 11:00:00 final soc 5.93 kWh metric 464.83 p metric_keep 114.94 min_soc 0.39 @ 04-11 00:45:00 kWh load 71.8 pv 66.49
2024-04-10 11:21:01.940812 INFO pred_bat: Filtered charge windows [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 46%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 54%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 12-04 02:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ] reserve 0.39
2024-04-10 11:21:01.932974 INFO pred_bat: Clip off charge window 7 from 1980 - 2040 from limit 0.7 to new limit 0.0
2024-04-10 11:21:01.929003 INFO pred_bat: Clip off charge window 6 from 1680 - 1740 from limit 2.95 to new limit 0.0
2024-04-10 11:21:01.925001 INFO pred_bat: Clip off charge window 4 from 1560 - 1620 from limit 0.45 to new limit 0.0
2024-04-10 11:21:01.920994 INFO pred_bat: Clip off charge window 1 from 720 - 780 from limit 2.95 to new limit 0.0
2024-04-10 11:21:01.877952 INFO pred_bat: Discharge windows filtered [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 74% ]
2024-04-10 11:21:01.833022 INFO pred_bat: Best discharge windows best_metric 285.3 best_cost 357.11 metric_keep 0 end_record 04-12 11:00:00 windows [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 4% ]
2024-04-10 11:21:01.827595 INFO pred_bat: Best charge windows best_metric 285.3 best_cost 357.11 metric_keep 0 end_record 04-12 11:00:00 windows [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 46%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 30%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 54%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 87%, 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 5%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 30%, 11-04 09:00:00 - 11-04 10:00:00 @ 24.21p 7%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:20:41.475230 INFO pred_bat: Optimise price set 26.8 start_at_low True best_price 26.8 best_metric 287.44 best_cost 359.27
2024-04-10 11:20:41.375437 INFO pred_bat: Optimise price set 22.1 start_at_low True best_price 26.8 best_metric 287.43 best_cost 359.27
2024-04-10 11:20:38.085603 INFO pred_bat: Optimise price set 16.3 start_at_low True best_price 26.8 best_metric 303.09 best_cost 375.93
2024-04-10 11:20:38.079101 INFO pred_bat: Best discharge windows best_metric 303.09 best_cost 375.93 metric_keep 0 end_record 04-12 11:00:00 windows [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 4% ]
2024-04-10 11:20:38.073689 INFO pred_bat: Best charge windows best_metric 303.09 best_cost 375.93 metric_keep 0 end_record 04-12 11:00:00 windows [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 46%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 23%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 18%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 95%, 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 5%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 87%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:20:35.324338 INFO pred_bat: Optimise price set 16.3 start_at_low False best_price 26.8 best_metric 306.55 best_cost 379.48
2024-04-10 11:20:33.610298 INFO pred_bat: Optimise price set 22.1 start_at_low False best_price 26.8 best_metric 313.15 best_cost 388.57
2024-04-10 11:20:15.594778 INFO pred_bat: Optimise price set 26.8 start_at_low False best_price 26.8 best_metric 225.26 best_cost 324.87
2024-04-10 11:20:15.590506 INFO pred_bat: Best discharge windows best_metric 225.26 best_cost 324.87 metric_keep 114.94 end_record 04-12 11:00:00 windows [ ]
2024-04-10 11:20:15.585568 INFO pred_bat: Best charge windows best_metric 225.26 best_cost 324.87 metric_keep 114.94 end_record 04-12 11:00:00 windows [ 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 100%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 100%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 100%, 11-04 12:00:00 - 11-04 13:00:00 @ 24.21p 100%, 11-04 14:00:00 - 11-04 15:00:00 @ 24.21p 100%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 100%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 100%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 09:00:00 - 12-04 10:00:00 @ 24.21p 100%, 12-04 10:00:00 - 12-04 11:00:00 @ 24.21p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:20:15.579664 INFO pred_bat: Starting second optimisation best_price 26.8 best_price_discharge 26.8 lowest_price_charge 16.3 with charge limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 9.7] based on
2024-04-10 11:20:15.572208 INFO pred_bat: Calculated end_record as 04-12 11:00:00
2024-04-10 11:20:15.568044 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:15.443493 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:15.322725 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:15.177672 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:15.009590 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.764986 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.612285 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.467146 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.349392 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.231581 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:14.078351 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 13.2 at metric 225.26 keep 30.58 cost 324.87 soc_min 2.06 limits [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:13.830921 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 210.71 keep 4.82 cost 334.36 soc_min 0.82 limits [0, 0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:13.687370 INFO pred_bat: >> Region optimisation pass width 240
2024-04-10 11:20:13.683446 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:13.505405 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:13.283271 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:12.964410 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:12.792677 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:12.593344 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:12.289900 INFO pred_bat: >> Region optimisation pass width 480
2024-04-10 11:20:12.286129 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 9.7, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:12.008369 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 16.3 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:11.570905 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:11.101012 INFO pred_bat: >> Region optimisation pass width 960
2024-04-10 11:20:11.096397 INFO pred_bat: Calculated end_record as 04-12 11:00:00
2024-04-10 11:20:11.084746 INFO pred_bat: Optimise all charge for all bands best price threshold 26.8 charges at 26.8 at metric 219.4 keep 4.82 cost 343.02 soc_min 0.82 limits [0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 0, 0, 9.7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9.7, 9.7, 9.7, 0, 0, 0, 0, 0, 9.7, 0.0] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-10 11:20:10.014380 INFO pred_bat: Optimise all windows, total charge 42 discharge 84
2024-04-10 11:20:10.007987 INFO pred_bat: Calculate Best options: mode(Control charge & discharge) calculate_discharge_oncharge(True) set_discharge_freeze_only(False) set_discharge_during_charge(False) combine_charge_slots(False) combine_discharge_slots(False) best_soc_min(0.0 kWh) best_soc_max(0.0 kWh) best_soc_keep(1.0 kWh) inverter_loss(4 %) battery_loss(4 %) battery_loss_discharge (4 %) inverter_hybrid(True) metric_min_improvement(0.0 p) metric_min_improvement_discharge(0.1 p) metric_battery_cycle(0.5 p/kWh)metric_battery_value_scaling(1.0 x)
2024-04-10 11:20:09.919115 INFO pred_bat: Creating pool of 4 processes to match your CPU count
2024-04-10 11:20:09.775382 INFO pred_bat: PV Forecast 63.5 kWh and 10% Forecast 42.2 kWh pv cloud factor 0.3
2024-04-10 11:20:09.769391 INFO pred_bat: Best discharge window [ 10-04 11:00:00 - 10-04 11:30:00 @ 14.84p 100.0%, 10-04 11:30:00 - 10-04 12:00:00 @ 14.84p 100.0%, 10-04 12:00:00 - 10-04 12:30:00 @ 14.84p 100.0%, 10-04 12:30:00 - 10-04 13:00:00 @ 14.84p 100.0%, 10-04 13:00:00 - 10-04 13:30:00 @ 14.84p 100.0%, 10-04 13:30:00 - 10-04 14:00:00 @ 14.84p 100.0%, 10-04 14:00:00 - 10-04 14:30:00 @ 14.84p 100.0%, 10-04 14:30:00 - 10-04 15:00:00 @ 14.84p 100.0%, 10-04 15:00:00 - 10-04 15:30:00 @ 14.84p 100.0%, 10-04 15:30:00 - 10-04 16:00:00 @ 14.84p 100.0%, 10-04 16:00:00 - 10-04 16:30:00 @ 24.52p 100.0%, 10-04 16:30:00 - 10-04 17:00:00 @ 24.52p 100.0%, 10-04 17:00:00 - 10-04 17:30:00 @ 24.52p 100.0%, 10-04 17:30:00 - 10-04 18:00:00 @ 24.52p 100.0%, 10-04 18:00:00 - 10-04 18:30:00 @ 24.52p 100.0%, 10-04 18:30:00 - 10-04 19:00:00 @ 24.52p 100.0%, 10-04 19:00:00 - 10-04 19:30:00 @ 14.84p 100.0%, 10-04 19:30:00 - 10-04 20:00:00 @ 14.84p 100.0%, 10-04 20:00:00 - 10-04 20:30:00 @ 14.84p 100.0%, 10-04 20:30:00 - 10-04 21:00:00 @ 14.84p 100.0%, 10-04 21:00:00 - 10-04 21:30:00 @ 14.84p 100.0%, 10-04 21:30:00 - 10-04 22:00:00 @ 14.84p 100.0%, 10-04 22:00:00 - 10-04 22:30:00 @ 14.84p 100.0%, 10-04 22:30:00 - 10-04 23:00:00 @ 14.84p 100.0%, 10-04 23:00:00 - 10-04 23:30:00 @ 14.84p 100.0%, 10-04 23:30:00 - 11-04 00:00:00 @ 14.84p 100.0%, 11-04 00:00:00 - 11-04 00:30:00 @ 14.84p 100.0%, 11-04 00:30:00 - 11-04 01:00:00 @ 14.84p 100.0%, 11-04 01:00:00 - 11-04 01:30:00 @ 14.84p 100.0%, 11-04 01:30:00 - 11-04 02:00:00 @ 14.84p 100.0%, 11-04 05:00:00 - 11-04 05:30:00 @ 14.84p 100.0%, 11-04 05:30:00 - 11-04 06:00:00 @ 14.84p 100.0%, 11-04 06:00:00 - 11-04 06:30:00 @ 14.84p 100.0%, 11-04 06:30:00 - 11-04 07:00:00 @ 14.84p 100.0%, 11-04 07:00:00 - 11-04 07:30:00 @ 14.84p 100.0%, 11-04 07:30:00 - 11-04 08:00:00 @ 14.84p 100.0%, 11-04 08:00:00 - 11-04 08:30:00 @ 14.84p 100.0%, 11-04 08:30:00 - 11-04 09:00:00 @ 14.84p 100.0%, 11-04 09:00:00 - 11-04 09:30:00 @ 14.84p 100.0%, 11-04 09:30:00 - 11-04 10:00:00 @ 14.84p 100.0%, 11-04 10:00:00 - 11-04 10:30:00 @ 14.84p 100.0%, 11-04 10:30:00 - 11-04 11:00:00 @ 14.84p 100.0%, 11-04 11:00:00 - 11-04 11:30:00 @ 14.84p 100.0%, 11-04 11:30:00 - 11-04 12:00:00 @ 14.84p 100.0%, 11-04 12:00:00 - 11-04 12:30:00 @ 14.84p 100.0%, 11-04 12:30:00 - 11-04 13:00:00 @ 14.84p 100.0%, 11-04 13:00:00 - 11-04 13:30:00 @ 14.84p 100.0%, 11-04 13:30:00 - 11-04 14:00:00 @ 14.84p 100.0%, 11-04 14:00:00 - 11-04 14:30:00 @ 14.84p 100.0%, 11-04 14:30:00 - 11-04 15:00:00 @ 14.84p 100.0%, 11-04 15:00:00 - 11-04 15:30:00 @ 14.84p 100.0%, 11-04 15:30:00 - 11-04 16:00:00 @ 14.84p 100.0%, 11-04 16:00:00 - 11-04 16:30:00 @ 24.52p 100.0%, 11-04 16:30:00 - 11-04 17:00:00 @ 24.52p 100.0%, 11-04 17:00:00 - 11-04 17:30:00 @ 24.52p 100.0%, 11-04 17:30:00 - 11-04 18:00:00 @ 24.52p 100.0%, 11-04 18:00:00 - 11-04 18:30:00 @ 24.52p 100.0%, 11-04 18:30:00 - 11-04 19:00:00 @ 24.52p 100.0%, 11-04 19:00:00 - 11-04 19:30:00 @ 14.84p 100.0%, 11-04 19:30:00 - 11-04 20:00:00 @ 14.84p 100.0%, 11-04 20:00:00 - 11-04 20:30:00 @ 14.84p 100.0%, 11-04 20:30:00 - 11-04 21:00:00 @ 14.84p 100.0%, 11-04 21:00:00 - 11-04 21:30:00 @ 14.84p 100.0%, 11-04 21:30:00 - 11-04 22:00:00 @ 14.84p 100.0%, 11-04 22:00:00 - 11-04 22:30:00 @ 14.84p 100.0%, 11-04 22:30:00 - 11-04 23:00:00 @ 14.84p 100.0%, 11-04 23:00:00 - 11-04 23:30:00 @ 14.84p 100.0%, 11-04 23:30:00 - 12-04 00:00:00 @ 14.84p 100.0%, 12-04 00:00:00 - 12-04 00:30:00 @ 14.84p 100.0%, 12-04 00:30:00 - 12-04 01:00:00 @ 14.84p 100.0%, 12-04 01:00:00 - 12-04 01:30:00 @ 14.84p 100.0%, 12-04 01:30:00 - 12-04 02:00:00 @ 14.84p 100.0%, 12-04 05:00:00 - 12-04 05:30:00 @ 14.84p 100.0%, 12-04 05:30:00 - 12-04 06:00:00 @ 14.84p 100.0%, 12-04 06:00:00 - 12-04 06:30:00 @ 14.84p 100.0%, 12-04 06:30:00 - 12-04 07:00:00 @ 14.84p 100.0%, 12-04 07:00:00 - 12-04 07:30:00 @ 14.84p 100.0%, 12-04 07:30:00 - 12-04 08:00:00 @ 14.84p 100.0%, 12-04 08:00:00 - 12-04 08:30:00 @ 14.84p 100.0%, 12-04 08:30:00 - 12-04 09:00:00 @ 14.84p 100.0%, 12-04 09:00:00 - 12-04 09:30:00 @ 14.84p 100.0%, 12-04 09:30:00 - 12-04 10:00:00 @ 14.84p 100.0%, 12-04 10:00:00 - 12-04 10:30:00 @ 14.84p 100.0%, 12-04 10:30:00 - 12-04 11:00:00 @ 14.84p 100.0%, 12-04 11:00:00 - 12-04 11:30:00 @ 14.84p 100.0% ]
2024-04-10 11:20:09.759124 INFO pred_bat: Best charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 48.0%, 10-04 12:00:00 - 10-04 13:00:00 @ 24.21p 48.0%, 10-04 13:00:00 - 10-04 14:00:00 @ 24.21p 48.0%, 10-04 14:00:00 - 10-04 15:00:00 @ 24.21p 48.0%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 48.0%, 10-04 19:00:00 - 10-04 20:00:00 @ 24.21p 48.0%, 10-04 20:00:00 - 10-04 21:00:00 @ 24.21p 48.0%, 10-04 21:00:00 - 10-04 22:00:00 @ 24.21p 48.0%, 10-04 22:00:00 - 10-04 23:00:00 @ 24.21p 48.0%, 10-04 23:00:00 - 11-04 00:00:00 @ 24.21p 48.0%, 11-04 00:00:00 - 11-04 01:00:00 @ 24.21p 48.0%, 11-04 01:00:00 - 11-04 02:00:00 @ 24.21p 48.0%, 11-04 02:00:00 - 11-04 03:00:00 @ 14.52p 48.0%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 48.0%, 11-04 04:00:00 - 11-04 05:00:00 @ 14.52p 48.0%, 11-04 05:00:00 - 11-04 06:00:00 @ 24.21p 48.0%, 11-04 06:00:00 - 11-04 07:00:00 @ 24.21p 48.0%, 11-04 07:00:00 - 11-04 08:00:00 @ 24.21p 48.0%, 11-04 08:00:00 - 11-04 09:00:00 @ 24.21p 48.0%, 11-04 09:00:00 - 11-04 10:00:00 @ 24.21p 48.0%, 11-04 10:00:00 - 11-04 11:00:00 @ 24.21p 48.0%, 11-04 11:00:00 - 11-04 12:00:00 @ 24.21p 48.0%, 11-04 12:00:00 - 11-04 13:00:00 @ 24.21p 48.0%, 11-04 13:00:00 - 11-04 14:00:00 @ 24.21p 48.0%, 11-04 14:00:00 - 11-04 15:00:00 @ 24.21p 48.0%, 11-04 15:00:00 - 11-04 16:00:00 @ 24.21p 48.0%, 11-04 19:00:00 - 11-04 20:00:00 @ 24.21p 48.0%, 11-04 20:00:00 - 11-04 21:00:00 @ 24.21p 48.0%, 11-04 21:00:00 - 11-04 22:00:00 @ 24.21p 48.0%, 11-04 22:00:00 - 11-04 23:00:00 @ 24.21p 48.0%, 11-04 23:00:00 - 12-04 00:00:00 @ 24.21p 48.0%, 12-04 00:00:00 - 12-04 01:00:00 @ 24.21p 48.0%, 12-04 01:00:00 - 12-04 02:00:00 @ 24.21p 48.0%, 12-04 02:00:00 - 12-04 03:00:00 @ 14.52p 48.0%, 12-04 03:00:00 - 12-04 04:00:00 @ 14.52p 48.0%, 12-04 04:00:00 - 12-04 05:00:00 @ 14.52p 48.0%, 12-04 05:00:00 - 12-04 06:00:00 @ 24.21p 48.0%, 12-04 06:00:00 - 12-04 07:00:00 @ 24.21p 48.0%, 12-04 07:00:00 - 12-04 08:00:00 @ 24.21p 48.0%, 12-04 08:00:00 - 12-04 09:00:00 @ 24.21p 48.0%, 12-04 09:00:00 - 12-04 10:00:00 @ 24.21p 48.0%, 12-04 10:00:00 - 12-04 11:00:00 @ 24.21p 48.0%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 48.0% ]
2024-04-10 11:20:09.748547 INFO pred_bat: Will recompute the plan as it is now 10.0 minutes old and will exceed the max age of 10 minutes before the next run
2024-04-10 11:20:09.704540 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target
2024-04-10 11:20:09.698072 INFO pred_bat: Adjust reserve to default as SOC 46 % is above target 48 % or charging active
2024-04-10 11:20:09.693094 INFO pred_bat: Current SOC 46% is less than Target SOC 48. Grid charging enabled with charge current set to 65.00
2024-04-10 11:20:09.685563 INFO pred_bat: Inverter 0 Current Target SOC is 48 already at target
2024-04-10 11:20:09.676984 INFO pred_bat: Adjust idle time computed idle is 12:00:00-23:59:00
2024-04-10 11:20:09.671426 INFO pred_bat: Adjust idle time, charge 11:00:00-12:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:20:09.666594 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-04-10 11:20:09.658451 INFO pred_bat: Setting ECO mode as we are not yet within the discharge window - next time is 04-11 18:10:00 - 04-11 18:30:00
2024-04-10 11:20:09.653771 INFO pred_bat: Next discharge window will be: 2024-04-11 18:10:00+01:00 - 2024-04-11 18:31:00+01:00 at reserve 74
2024-04-10 11:20:09.649288 INFO pred_bat: Adjust idle time computed idle is 12:00:00-23:59:00
2024-04-10 11:20:09.628073 INFO pred_bat: Adjust idle time, charge 11:00:00-12:00:00 discharge 00:00:00-00:00:00
2024-04-10 11:20:09.617719 INFO pred_bat: Configuring charge window now (now 04-10 11:20:00 target set_window_minutes 30 charge start time 04-10 11:00:00
2024-04-10 11:20:09.609100 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:20:09.603378 INFO pred_bat: Inverter 0 Call service template charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Charge from Solar Power and Grid'}
2024-04-10 11:20:09.595922 INFO pred_bat: Charge window will be: 2024-04-10 11:00:00+01:00 - 2024-04-10 12:00:00+01:00 - current soc 46 target 48
2024-04-10 11:20:09.591994 INFO pred_bat: Include original charge start 04-10 11:00:00, keeping this instead of new start 04-10 11:00:00
2024-04-10 11:20:09.568716 INFO pred_bat: Low import rate windows [0: 04-10 11:00:00 - 04-10 12:00:00 @ 24.21, 1: 04-10 12:00:00 - 04-10 13:00:00 @ 24.21, 2: 04-10 13:00:00 - 04-10 14:00:00 @ 24.21, 3: 04-10 14:00:00 - 04-10 15:00:00 @ 24.21, 4: 04-10 15:00:00 - 04-10 16:00:00 @ 24.21, 5: 04-10 19:00:00 - 04-10 20:00:00 @ 24.21, 6: 04-10 20:00:00 - 04-10 21:00:00 @ 24.21, 7: 04-10 21:00:00 - 04-10 22:00:00 @ 24.21, 8: 04-10 22:00:00 - 04-10 23:00:00 @ 24.21, 9: 04-10 23:00:00 - 04-11 00:00:00 @ 24.21, 10: 04-11 00:00:00 - 04-11 01:00:00 @ 24.21, 11: 04-11 01:00:00 - 04-11 02:00:00 @ 24.21, 12: 04-11 02:00:00 - 04-11 03:00:00 @ 14.52, 13: 04-11 03:00:00 - 04-11 04:00:00 @ 14.52, 14: 04-11 04:00:00 - 04-11 05:00:00 @ 14.52, 15: 04-11 05:00:00 - 04-11 06:00:00 @ 24.21, 16: 04-11 06:00:00 - 04-11 07:00:00 @ 24.21, 17: 04-11 07:00:00 - 04-11 08:00:00 @ 24.21, 18: 04-11 08:00:00 - 04-11 09:00:00 @ 24.21, 19: 04-11 09:00:00 - 04-11 10:00:00 @ 24.21, 20: 04-11 10:00:00 - 04-11 11:00:00 @ 24.21, 21: 04-11 11:00:00 - 04-11 12:00:00 @ 24.21, 22: 04-11 12:00:00 - 04-11 13:00:00 @ 24.21, 23: 04-11 13:00:00 - 04-11 14:00:00 @ 24.21, 24: 04-11 14:00:00 - 04-11 15:00:00 @ 24.21, 25: 04-11 15:00:00 - 04-11 16:00:00 @ 24.21, 26: 04-11 19:00:00 - 04-11 20:00:00 @ 24.21, 27: 04-11 20:00:00 - 04-11 21:00:00 @ 24.21, 28: 04-11 21:00:00 - 04-11 22:00:00 @ 24.21, 29: 04-11 22:00:00 - 04-11 23:00:00 @ 24.21, 30: 04-11 23:00:00 - 04-12 00:00:00 @ 24.21, 31: 04-12 00:00:00 - 04-12 01:00:00 @ 24.21, 32: 04-12 01:00:00 - 04-12 02:00:00 @ 24.21, 33: 04-12 02:00:00 - 04-12 03:00:00 @ 14.52, 34: 04-12 03:00:00 - 04-12 04:00:00 @ 14.52, 35: 04-12 04:00:00 - 04-12 05:00:00 @ 14.52, 36: 04-12 05:00:00 - 04-12 06:00:00 @ 24.21, 37: 04-12 06:00:00 - 04-12 07:00:00 @ 24.21, 38: 04-12 07:00:00 - 04-12 08:00:00 @ 24.21, 39: 04-12 08:00:00 - 04-12 09:00:00 @ 24.21, 40: 04-12 09:00:00 - 04-12 10:00:00 @ 24.21, 41: 04-12 10:00:00 - 04-12 11:00:00 @ 24.21, 42: 04-12 11:00:00 - 04-12 12:00:00 @ 24.21]
2024-04-10 11:20:09.401251 INFO pred_bat: Import threshold used for optimisation was 26.8p
2024-04-10 11:20:09.376837 INFO pred_bat: High export rate windows [0: 04-10 11:00:00 - 04-10 11:30:00 @ 14.84, 1: 04-10 11:30:00 - 04-10 12:00:00 @ 14.84, 2: 04-10 12:00:00 - 04-10 12:30:00 @ 14.84, 3: 04-10 12:30:00 - 04-10 13:00:00 @ 14.84, 4: 04-10 13:00:00 - 04-10 13:30:00 @ 14.84, 5: 04-10 13:30:00 - 04-10 14:00:00 @ 14.84, 6: 04-10 14:00:00 - 04-10 14:30:00 @ 14.84, 7: 04-10 14:30:00 - 04-10 15:00:00 @ 14.84, 8: 04-10 15:00:00 - 04-10 15:30:00 @ 14.84, 9: 04-10 15:30:00 - 04-10 16:00:00 @ 14.84, 10: 04-10 16:00:00 - 04-10 16:30:00 @ 24.52, 11: 04-10 16:30:00 - 04-10 17:00:00 @ 24.52, 12: 04-10 17:00:00 - 04-10 17:30:00 @ 24.52, 13: 04-10 17:30:00 - 04-10 18:00:00 @ 24.52, 14: 04-10 18:00:00 - 04-10 18:30:00 @ 24.52, 15: 04-10 18:30:00 - 04-10 19:00:00 @ 24.52, 16: 04-10 19:00:00 - 04-10 19:30:00 @ 14.84, 17: 04-10 19:30:00 - 04-10 20:00:00 @ 14.84, 18: 04-10 20:00:00 - 04-10 20:30:00 @ 14.84, 19: 04-10 20:30:00 - 04-10 21:00:00 @ 14.84, 20: 04-10 21:00:00 - 04-10 21:30:00 @ 14.84, 21: 04-10 21:30:00 - 04-10 22:00:00 @ 14.84, 22: 04-10 22:00:00 - 04-10 22:30:00 @ 14.84, 23: 04-10 22:30:00 - 04-10 23:00:00 @ 14.84, 24: 04-10 23:00:00 - 04-10 23:30:00 @ 14.84, 25: 04-10 23:30:00 - 04-11 00:00:00 @ 14.84, 26: 04-11 00:00:00 - 04-11 00:30:00 @ 14.84, 27: 04-11 00:30:00 - 04-11 01:00:00 @ 14.84, 28: 04-11 01:00:00 - 04-11 01:30:00 @ 14.84, 29: 04-11 01:30:00 - 04-11 02:00:00 @ 14.84, 30: 04-11 05:00:00 - 04-11 05:30:00 @ 14.84, 31: 04-11 05:30:00 - 04-11 06:00:00 @ 14.84, 32: 04-11 06:00:00 - 04-11 06:30:00 @ 14.84, 33: 04-11 06:30:00 - 04-11 07:00:00 @ 14.84, 34: 04-11 07:00:00 - 04-11 07:30:00 @ 14.84, 35: 04-11 07:30:00 - 04-11 08:00:00 @ 14.84, 36: 04-11 08:00:00 - 04-11 08:30:00 @ 14.84, 37: 04-11 08:30:00 - 04-11 09:00:00 @ 14.84, 38: 04-11 09:00:00 - 04-11 09:30:00 @ 14.84, 39: 04-11 09:30:00 - 04-11 10:00:00 @ 14.84, 40: 04-11 10:00:00 - 04-11 10:30:00 @ 14.84, 41: 04-11 10:30:00 - 04-11 11:00:00 @ 14.84, 42: 04-11 11:00:00 - 04-11 11:30:00 @ 14.84, 43: 04-11 11:30:00 - 04-11 12:00:00 @ 14.84, 44: 04-11 12:00:00 - 04-11 12:30:00 @ 14.84, 45: 04-11 12:30:00 - 04-11 13:00:00 @ 14.84, 46: 04-11 13:00:00 - 04-11 13:30:00 @ 14.84, 47: 04-11 13:30:00 - 04-11 14:00:00 @ 14.84, 48: 04-11 14:00:00 - 04-11 14:30:00 @ 14.84, 49: 04-11 14:30:00 - 04-11 15:00:00 @ 14.84, 50: 04-11 15:00:00 - 04-11 15:30:00 @ 14.84, 51: 04-11 15:30:00 - 04-11 16:00:00 @ 14.84, 52: 04-11 16:00:00 - 04-11 16:30:00 @ 24.52, 53: 04-11 16:30:00 - 04-11 17:00:00 @ 24.52, 54: 04-11 17:00:00 - 04-11 17:30:00 @ 24.52, 55: 04-11 17:30:00 - 04-11 18:00:00 @ 24.52, 56: 04-11 18:00:00 - 04-11 18:30:00 @ 24.52, 57: 04-11 18:30:00 - 04-11 19:00:00 @ 24.52, 58: 04-11 19:00:00 - 04-11 19:30:00 @ 14.84, 59: 04-11 19:30:00 - 04-11 20:00:00 @ 14.84, 60: 04-11 20:00:00 - 04-11 20:30:00 @ 14.84, 61: 04-11 20:30:00 - 04-11 21:00:00 @ 14.84, 62: 04-11 21:00:00 - 04-11 21:30:00 @ 14.84, 63: 04-11 21:30:00 - 04-11 22:00:00 @ 14.84, 64: 04-11 22:00:00 - 04-11 22:30:00 @ 14.84, 65: 04-11 22:30:00 - 04-11 23:00:00 @ 14.84, 66: 04-11 23:00:00 - 04-11 23:30:00 @ 14.84, 67: 04-11 23:30:00 - 04-12 00:00:00 @ 14.84, 68: 04-12 00:00:00 - 04-12 00:30:00 @ 14.84, 69: 04-12 00:30:00 - 04-12 01:00:00 @ 14.84, 70: 04-12 01:00:00 - 04-12 01:30:00 @ 14.84, 71: 04-12 01:30:00 - 04-12 02:00:00 @ 14.84, 72: 04-12 05:00:00 - 04-12 05:30:00 @ 14.84, 73: 04-12 05:30:00 - 04-12 06:00:00 @ 14.84, 74: 04-12 06:00:00 - 04-12 06:30:00 @ 14.84, 75: 04-12 06:30:00 - 04-12 07:00:00 @ 14.84, 76: 04-12 07:00:00 - 04-12 07:30:00 @ 14.84, 77: 04-12 07:30:00 - 04-12 08:00:00 @ 14.84, 78: 04-12 08:00:00 - 04-12 08:30:00 @ 14.84, 79: 04-12 08:30:00 - 04-12 09:00:00 @ 14.84, 80: 04-12 09:00:00 - 04-12 09:30:00 @ 14.84, 81: 04-12 09:30:00 - 04-12 10:00:00 @ 14.84, 82: 04-12 10:00:00 - 04-12 10:30:00 @ 14.84, 83: 04-12 10:30:00 - 04-12 11:00:00 @ 14.84, 84: 04-12 11:00:00 - 04-12 11:30:00 @ 14.84]
2024-04-10 11:20:09.205877 INFO pred_bat: Export threshold used for optimisation was 26.8p
2024-04-10 11:20:08.909598 INFO pred_bat: Best charging limit socs [4.7, 8.2, 3.95, 9.7, 9.7] export [74] gives import battery 19.19 house 1.19 export 14.42 metric 479.71 metric10 832.34
2024-04-10 11:20:08.887102 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-04-10 11:20:08.859437 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-04-10 11:20:08.200265 INFO pred_bat: METRIC: [ 261.14, 273.65, 273.65, 273.65, 303.81, 303.9, 303.9, 303.9, 303.9, 303.9, 303.9, 303.9, 303.9, 369.02, 369.02, 370.34, 411.25, 453.24, 453.24, 453.24, 453.24, 458.84, 460.72, 460.72, 460.72, 460.52, 443.67, 402.35, 364.74, 336.81, 317.44, 297.49, 282.49, 282.49, 282.49, 282.49, 282.49, 347.61, 347.61, 377.03, 468.67, 521.05, 528.97, 528.97, 528.97, 528.97, 528.97, 513.76]
2024-04-10 11:20:08.193862 INFO pred_bat: EXPORT: [ 0.27, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.29, 0.31, 1.44, 4.23, 6.76, 8.43, 9.22, 10.04, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 10.65, 11.67]
2024-04-10 11:20:08.187373 INFO pred_bat: IMPORT: [ 12.82, 13.35, 13.35, 13.35, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.6, 14.7, 17.51, 20.4, 20.4, 20.4, 20.4, 20.63, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 20.71, 22.74, 29.05, 32.65, 33.2, 33.2, 33.2, 33.2, 33.2, 33.2]
2024-04-10 11:20:08.180858 INFO pred_bat: PV: [ 4.88, 6.14, 7.64, 10.36, 13.21, 15.66, 17.61, 18.85, 19.35, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.55, 20.27, 21.88, 24.62, 28.48, 33.17, 38.16, 42.85, 46.93, 50.12, 52.53, 54.08, 54.73, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 55.02, 56.31, 58.93, 63.02]
2024-04-10 11:20:08.174426 INFO pred_bat: LOAD: [ 15.24, 16.9, 18.59, 20.0, 21.21, 22.71, 24.47, 25.91, 27.38, 28.61, 29.77, 30.79, 31.79, 32.7, 33.53, 34.31, 35.39, 36.52, 37.33, 38.13, 39.19, 40.48, 41.83, 43.39, 44.68, 45.92, 47.14, 48.23, 49.42, 50.77, 52.29, 53.78, 55.05, 56.09, 57.06, 57.94, 58.82, 59.64, 60.51, 61.33, 62.43, 63.59, 64.41, 65.26, 66.3, 67.52, 68.87, 70.79]
2024-04-10 11:20:08.168058 INFO pred_bat: STATE: [ g<bf+, g~be-, g~be-, 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<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>bf-, 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+]
2024-04-10 11:20:08.161948 INFO pred_bat: SOC: [ 4.5, 4.54, 4.25, 5.45, 8.15, 9.0, 9.1, 8.82, 7.74, 6.48, 5.22, 4.11, 3.03, 2.04, 1.14, 0.39, 1.99, 3.56, 2.67, 1.8, 0.79, 0.39, 0.66, 1.73, 4.15, 7.39, 9.7, 9.7, 9.7, 9.7, 9.7, 8.81, 7.45, 6.42, 5.37, 4.41, 3.45, 2.56, 1.62, 2.65, 7.45, 9.7, 9.4, 8.47, 7.56, 7.54, 8.71, 9.7]
2024-04-10 11:20:08.154292 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:20:08.147453 INFO pred_bat: predict best end_record 04-12 11:10:00 final soc 9.7 kWh metric 479.71 p metric_keep 25.35 min_soc 0.39 @ 04-11 02:10:00 kWh load 72.15 pv 67.52
2024-04-10 11:20:07.881832 INFO pred_bat: METRIC: [ 261.14, 284.91, 284.91, 284.91, 320.53, 386.41, 386.41, 386.41, 386.41, 386.41, 386.41, 386.41, 386.41, 472.88, 493.06, 509.42, 550.33, 592.32, 592.32, 592.32, 592.32, 601.39, 606.71, 606.71, 606.71, 606.71, 606.71, 591.06, 569.6, 562.48, 562.48, 547.48, 547.48, 547.48, 547.48, 547.48, 547.48, 612.6, 612.6, 653.32, 744.97, 807.67, 815.59, 815.59, 815.59, 815.59, 815.59, 815.59]
2024-04-10 11:20:07.875513 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 1.33, 2.77, 3.25, 3.25, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86, 3.86]
2024-04-10 11:20:07.868774 INFO pred_bat: IMPORT: [ 12.82, 13.81, 13.81, 13.81, 15.28, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.0, 18.88, 19.71, 20.5, 23.31, 26.2, 26.2, 26.2, 26.2, 26.58, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 26.8, 29.29, 35.6, 39.92, 40.46, 40.46, 40.46, 40.46, 40.46, 40.46]
2024-04-10 11:20:07.862537 INFO pred_bat: PV: [ 4.88, 5.57, 6.29, 8.13, 10.32, 12.27, 13.86, 14.86, 15.27, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.45, 16.03, 17.34, 19.58, 22.8, 26.79, 31.02, 34.68, 37.43, 39.21, 40.35, 40.94, 41.21, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.34, 41.73, 42.67, 44.43]
2024-04-10 11:20:07.856226 INFO pred_bat: LOAD: [ 15.24, 17.07, 18.93, 20.48, 21.81, 23.46, 25.39, 26.97, 28.59, 29.95, 31.22, 32.35, 33.44, 34.42, 35.26, 36.04, 37.12, 38.24, 39.06, 39.86, 40.92, 42.2, 43.56, 45.12, 46.4, 47.65, 48.86, 49.95, 51.14, 52.5, 54.02, 55.51, 56.77, 57.81, 58.78, 59.67, 60.55, 61.37, 62.23, 63.05, 64.16, 65.31, 66.14, 66.99, 68.03, 69.25, 70.6, 72.51]
2024-04-10 11:20:07.850047 INFO pred_bat: STATE: [ g<bf+, g>be-, g~be-, 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<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<bf+, g<bf+, g<bf+, g~be-, g~be-, g~be-, g~be-, g~be-, g~be-]
2024-04-10 11:20:07.844149 INFO pred_bat: SOC: [ 4.5, 4.28, 3.0, 3.2, 5.36, 8.14, 7.71, 7.02, 5.69, 4.29, 2.9, 1.68, 0.5, 0.39, 0.39, 0.39, 1.99, 3.56, 2.67, 1.8, 0.78, 0.39, 0.51, 1.1, 2.9, 5.49, 8.34, 9.7, 9.7, 9.56, 9.1, 7.44, 6.34, 5.25, 4.2, 3.25, 2.29, 1.4, 0.46, 1.99, 6.79, 9.7, 9.4, 8.47, 7.44, 6.52, 6.03, 5.77]
2024-04-10 11:20:07.837896 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:20:07.830319 INFO pred_bat: predict best10 end_record 04-12 11:10:00 final soc 7.21 kWh metric 832.34 p metric_keep 71.13 min_soc 0.39 @ 04-10 23:25:00 kWh load 73.87 pv 46.66
2024-04-10 11:20:07.549288 INFO pred_bat: METRIC: [ 261.14, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 283.77, 286.32, 317.18, 344.45, 370.84, 459.73, 479.91, 496.27, 511.96, 528.3, 542.81, 562.26, 585.11, 602.84, 608.16, 608.16, 633.36, 643.12, 640.34, 607.22, 585.76, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 578.64, 643.77, 643.77, 645.86, 661.86, 678.7, 693.4, 713.98, 737.0, 757.6, 769.18, 774.34]
2024-04-10 11:20:07.542812 INFO pred_bat: EXPORT: [ 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.27, 0.46, 2.69, 4.14, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62, 4.62]
2024-04-10 11:20:07.536334 INFO pred_bat: IMPORT: [ 12.82, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.76, 13.86, 15.14, 16.27, 17.36, 18.34, 19.17, 19.95, 21.03, 22.16, 22.97, 23.78, 24.72, 25.45, 25.67, 25.67, 26.71, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.12, 27.26, 28.36, 29.52, 30.35, 31.2, 32.15, 33.0, 33.48, 33.69]
2024-04-10 11:20:07.529617 INFO pred_bat: PV: [ 4.88, 5.57, 6.29, 8.13, 10.32, 12.27, 13.86, 14.86, 15.27, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.33, 15.45, 16.03, 17.34, 19.58, 22.8, 26.79, 31.02, 34.68, 37.43, 39.21, 40.35, 40.94, 41.21, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.25, 41.34, 41.73, 42.67, 44.43]
2024-04-10 11:20:07.522052 INFO pred_bat: LOAD: [ 15.24, 17.07, 18.93, 20.48, 21.81, 23.46, 25.39, 26.97, 28.59, 29.95, 31.22, 32.35, 33.44, 34.42, 35.26, 36.04, 37.12, 38.24, 39.06, 39.86, 40.92, 42.2, 43.56, 45.12, 46.4, 47.65, 48.86, 49.95, 51.14, 52.5, 54.02, 55.51, 56.77, 57.81, 58.78, 59.67, 60.55, 61.37, 62.23, 63.05, 64.16, 65.31, 66.14, 66.99, 68.03, 69.25, 70.6, 72.51]
2024-04-10 11:20:07.515836 INFO pred_bat: STATE: [ 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<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-]
2024-04-10 11:20:07.509839 INFO pred_bat: SOC: [ 4.5, 4.24, 2.96, 3.16, 3.92, 4.13, 3.69, 3.0, 1.68, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.51, 1.1, 3.89, 6.87, 9.53, 9.7, 9.7, 9.56, 9.1, 8.1, 7.0, 5.92, 4.87, 3.91, 2.95, 2.06, 1.12, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.42, 0.39]
2024-04-10 11:20:07.503423 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:20:07.496774 INFO pred_bat: predict base10 end_record 04-12 11:10:00 final soc 1.95 kWh metric 793.73 p metric_keep 214.73 min_soc 0.39 @ 04-10 20:15:00 kWh load 73.87 pv 46.66
2024-04-10 11:20:07.396781 INFO pred_bat: Battery has 13.42 hours left - now at 4.5
2024-04-10 11:20:06.825074 INFO pred_bat: METRIC: [ 261.14, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 272.54, 337.66, 348.27, 364.64, 380.33, 396.66, 411.17, 430.63, 453.17, 467.73, 469.61, 469.61, 484.57, 484.36, 462.2, 420.89, 383.28, 355.34, 335.97, 331.02, 331.02, 331.02, 331.02, 331.02, 331.02, 396.14, 396.14, 396.14, 396.14, 406.64, 421.34, 441.93, 462.4, 467.41, 467.41, 467.41]
2024-04-10 11:20:06.818834 INFO pred_bat: EXPORT: [ 0.27, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.49, 0.51, 2.0, 4.78, 7.32, 8.99, 9.78, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98, 9.98]
2024-04-10 11:20:06.812517 INFO pred_bat: IMPORT: [ 12.82, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.31, 13.75, 14.53, 15.61, 16.74, 17.55, 18.36, 19.29, 19.89, 19.97, 19.97, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 20.7, 21.43, 22.25, 23.1, 23.95, 24.16, 24.16, 24.16]
2024-04-10 11:20:06.805878 INFO pred_bat: PV: [ 4.88, 6.14, 7.64, 10.36, 13.21, 15.66, 17.61, 18.85, 19.35, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.42, 19.55, 20.27, 21.88, 24.62, 28.48, 33.17, 38.16, 42.85, 46.93, 50.12, 52.53, 54.08, 54.73, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 54.82, 55.02, 56.31, 58.93, 63.02]
2024-04-10 11:20:06.799449 INFO pred_bat: LOAD: [ 15.24, 16.9, 18.59, 20.0, 21.21, 22.71, 24.47, 25.91, 27.38, 28.61, 29.77, 30.79, 31.79, 32.7, 33.53, 34.31, 35.39, 36.52, 37.33, 38.13, 39.19, 40.48, 41.83, 43.39, 44.68, 45.92, 47.14, 48.23, 49.42, 50.77, 52.29, 53.78, 55.05, 56.09, 57.06, 57.94, 58.82, 59.64, 60.51, 61.33, 62.43, 63.59, 64.41, 65.26, 66.3, 67.52, 68.87, 70.79]
2024-04-10 11:20:06.792952 INFO pred_bat: STATE: [ 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~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+]
2024-04-10 11:20:06.785183 INFO pred_bat: SOC: [ 4.5, 4.5, 4.21, 5.41, 6.93, 7.77, 7.88, 7.59, 6.51, 5.25, 3.99, 2.88, 1.81, 0.82, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.39, 0.66, 1.73, 4.66, 7.9, 9.7, 9.7, 9.7, 9.7, 9.7, 9.48, 8.78, 7.74, 6.69, 5.73, 4.78, 3.89, 2.95, 2.06, 0.86, 0.39, 0.39, 0.39, 0.39, 0.6, 1.77, 3.78]
2024-04-10 11:20:06.778269 INFO pred_bat: [ 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20, 11:20, 12:20, 13:20, 14:20, 15:20, 16:20, 17:20, 18:20, 19:20, 20:20, 21:20, 22:20, 23:20, 00:20, 01:20, 02:20, 03:20, 04:20, 05:20, 06:20, 07:20, 08:20, 09:20, 10:20]
2024-04-10 11:20:06.770895 INFO pred_bat: predict base end_record 04-12 11:10:00 final soc 6.54 kWh metric 464.42 p metric_keep 114.94 min_soc 0.39 @ 04-11 00:45:00 kWh load 72.15 pv 67.52
2024-04-10 11:20:06.636856 INFO pred_bat: Creating pool of 4 processes to match your CPU count
2024-04-10 11:20:06.496366 INFO pred_bat: PV Forecast 63.5 kWh and 10% Forecast 42.2 kWh pv cloud factor 0.3
2024-04-10 11:20:06.490583 INFO pred_bat: Best discharge window [ 11-04 18:10:00 - 11-04 18:30:00 @ 24.52p 74% ]
2024-04-10 11:20:06.486473 INFO pred_bat: Best charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 24.21p 48%, 10-04 15:00:00 - 10-04 16:00:00 @ 24.21p 85%, 11-04 03:00:00 - 11-04 04:00:00 @ 14.52p 41%, 12-04 02:00:00 - 12-04 05:00:00 @ 14.52p 100%, 12-04 11:00:00 - 12-04 12:00:00 @ 24.21p 100% ]
2024-04-10 11:20:06.481574 INFO pred_bat: Plan was last updated on 2024-04-10 11:10:00.017278+01:00 and is now 10.0 minutes old
2024-04-10 11:20:06.477790 INFO pred_bat: Base discharge window [ 10-04 00:00:00 - 10-04 00:00:00 @ 0p 100.0%, 11-04 00:00:00 - 11-04 00:00:00 @ 0p 100.0% ]
2024-04-10 11:20:06.473319 INFO pred_bat: Base charge window [ 10-04 11:00:00 - 10-04 12:00:00 @ 0p 48%, 11-04 11:00:00 - 11-04 12:00:00 @ 0p 48%, 12-04 11:00:00 - 12-04 12:00:00 @ 0p 48% ]
2024-04-10 11:20:06.375470 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 4.5 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 export limit 3.67 kW loss charge 4 % loss discharge 4 % inverter loss 4 %
2024-04-10 11:20:06.372207 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-10 11:20:06.369164 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-10 11:20:06.365238 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-10 11:20:06.360297 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-10 11:20:06.355433 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-10 11:20:06.350637 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-10 11:20:06.342777 INFO pred_bat: Inverter 0 Charge settings: 04-10 11:00:00-04-10 12:00:00 limit 48.0 power 5.0 kW
2024-04-10 11:20:06.336441 INFO pred_bat: Inverter 0 charge windows currently [{'start': 660, 'end': 720, 'average': 0}, {'start': 2100, 'end': 2160, 'average': 0}, {'start': 3540, 'end': 3600, 'average': 0}]
2024-04-10 11:20:06.332113 INFO pred_bat: Inverter 0 scheduled charge enable is True
2024-04-10 11:20:06.328106 INFO pred_bat: Inverter 0 scheduled_charge_enable set to True
2024-04-10 11:20:06.324323 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to True successfully and got on
2024-04-10 11:20:06.317282 INFO pred_bat: Inverter 0 SOC: 4.5 kW 46 % Current charge rate 5000.0 w Current discharge rate 5000.0 w Current power 4997.0 w Current voltage 52.0
2024-04-10 11:20:06.308992 INFO pred_bat: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-04-10 11:20:06.299963 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 5000.0 w charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 450000.0 kW export limit 3.67 kW reserve 4.0 % current_reserve 4.0 %
2024-04-10 11:20:06.293932 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-10 11:20:06.284502 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-10 11:20:06.280836 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-10 11:20:06.165666 INFO pred_bat: Today's load divergence 117.61 % in-day adjustment 116.73 % damping 0.95x, Predicted so far 8.26 kWh with 0.0 kWh car excluded and 4.51 kWh import ignored and 0 forecast extra, Actual so far 12.97 kWh with 0.0 kWh car excluded and 2.25 kWh import ignored
2024-04-10 11:20:06.082037 INFO pred_bat: Historical days now [2, 3, 4, 5, 7, 8] weight [1, 0.8, 0.7, 0.6, 0.4, 0.3]
2024-04-10 11:20:06.075137 INFO pred_bat: Model filter enabled - Discarding day 6 as it is the lowest of the 7 datapoints
2024-04-10 11:20:06.069286 INFO pred_bat: Historical data totals for days [2, 3, 4, 5, 6, 7, 8] are [26.84, 28.4, 23.95, 24.78, 22.83, 30.18, 30.8] - min 22.83
2024-04-10 11:20:06.006156 INFO pred_bat: PV Data for pv_forecast_d4 total 45.12 kWh
2024-04-10 11:20:05.993166 INFO pred_bat: PV Data for pv_forecast_d3 total 60.02 kWh
2024-04-10 11:20:05.978900 INFO pred_bat: PV Data for pv_forecast_tomorrow total 35.4 kWh
2024-04-10 11:20:05.965995 INFO pred_bat: PV Data for pv_forecast_today total 17.05 kWh
2024-04-10 11:20:05.954940 INFO pred_bat: Todays energy import 12.82 kWh export 0.27 kWh cost 261.14 p import 265.14 p export -4.0 p
2024-04-10 11:20:05.866111 INFO pred_bat: Low Import rate found rates in range 14.52 to 24.21
2024-04-10 11:20:05.838737 INFO pred_bat: High export rate found rates in range 14.84 to 24.52
2024-04-10 11:20:05.810323 INFO pred_bat: Rate thresholds (for charge/discharge) are import 33.39p (0.0) export 5.66p (0.0)
2024-04-10 11:20:05.804679 INFO pred_bat: Export rates min 5.16 max 24.52 average 14.84
2024-04-10 11:20:05.780067 INFO pred_bat: Import rates min 14.52 max 33.89 average 24.21
2024-04-10 11:20:05.774356 INFO pred_bat: Rate min forward looking: now 14.52 at end of forecast 14.52
2024-04-10 11:20:04.735020 INFO pred_bat: Standing charge is set to 65.121 p
2024-04-10 11:20:04.673473 INFO pred_bat: Fetching futurerate data from None
2024-04-10 11:20:04.670270 INFO pred_bat: Current data so far today: load 15.24 kWh import 12.82 kWh export 0.27 kWh pv 4.88 kWh
2024-04-10 11:20:04.667076 INFO pred_bat: Car charging hold False threshold 6.0
2024-04-10 11:20:02.071817 INFO pred_bat: Found 12961 load_today datapoints going back 9 days
2024-04-10 11:20:00.101317 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-04-10 11:20:00.095980 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 0 debug enable is False calculate_plan_every 10 calculate_fast_plan False
2024-04-10 11:20:00.054850 INFO pred_bat: Autoupdate: Currently up to date
2024-04-10 11:20:00.051221 INFO pred_bat: Predbat /config/apps/predbat.py version v7.16.11 currently running, latest version is v7.16.11 latest beta v7.16.11

@Noodleyman
Copy link

Noodleyman commented Apr 11, 2024

Had an idea from the log I shared, which might solve the problem. Hold sets Target SOC 0. can apps.yaml accept templates? I was thinking of trying to add some logic to the charge_start_service / option property.

Essentially, see if I can get it to do the following:
IF current_charge_limit is 0, option = "Charge From Clipped Solar Power"
ELSE
"Charge from Solar Power and Grid"

I'm on the fence about using "Charge From Clipped Solar Power", , "Charge from Solar Power"or "Solar Power Only (Off)" as the option, but that's a detail to revise later..

Any idea if the above is possible?
is the current charge_start_service any any availabile entity for reference?

@gcoan
Copy link
Collaborator

gcoan commented Apr 11, 2024 via email

@Noodleyman
Copy link

Noodleyman commented Apr 11, 2024

Thanks for the feedback, very helpful. So I think I've got it working (pending confirmation).

Custom sensor (may need refinement)

      solaredge_derived_storage_command_for_predbat:
        friendly_name: "SolarEdge derived storage command for use with prebat charging and holds"
        value_template: > 
         {% if states('predbat.status') == "Hold charging" %}
            Charge From Clipped Solar Power
         {% else %}
            Charge from Solar Power and Grid
         {% endif %}          
          

and apps.yaml

  # Services to control charging/discharging
  charge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: 
      - sensor.solaredge_derived_storage_command_for_predbat
  charge_stop_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Maximize Self Consumption"
  discharge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Discharge to Maximize Export"

The only thing I need to verify is does Predbat make the service call to the inverter, THEN set the status, or status first then the service call.

If status updates after the service call then there will be a delay setting the appropriate mode so it will likely charge for 5 mins.

Will see if this does the trick anyway and go from there

@gcoan
Copy link
Collaborator

gcoan commented Apr 11, 2024

The only thing I need to verify is does Predbat make the service call to the inverter, THEN set the status, or status first then the service call.

My observation not from looking at the code but seeing what happens on my givenergy inverter is that predbat updates the status as the last thing it does. I often see the inverter changing and then the status changing to reflect the current mode.

There are a couple of binary sensors predbat_charging and predbat_discharging you could try, but these may not be granular enough for you - charging is set when charging or hold charging I think

@Noodleyman
Copy link

Thank you, I think it did that as well but need to watch it to verify.

I was thinking of adding some extra clauses, such as
predbat.charge_limit compared with sensor.solaredge_b1_state_of_energy but I need to verify predbat.charge_limit is working as I assumed when trying to do a hold.

I think those get set before the service call is made.

thanks for sharing your thoughts.

@Noodleyman
Copy link

ok, so managed to find some quality time to play around this morning.

Firstly, a correction. The SE inverter DOES support charging at a slower rate and this can be controlled directly using the entity number.solaredge_i1_storage_charge_limit. I did some manual testing with it today and found it does work correctly and will limit the battery charging rate. I was wrong when I previously said the battery charging rate was binary, either on at max or off, it can be controlled.

The same is true for the discharge rates as well, via entity solaredge_i1_storage_discharge_limit.

I did some better quality testing this morning, and in doing so think I found the actual root cause of the problem. If a value of 0 is set for number.solaredge_i1_storage_charge_limit or solaredge_i1_storage_discharge_limit it is considered an invalid value. The entity will get reset to the default value of 5000w, thus charging or discharging limits get reset to the max allowed rate.

If I set it to a value of 1w, it effectively turns off charging or discharging, but prevents the entity from resetting, thus will work correctly as a Hold Charge status.

Cross checking the logs I shared recently, I can see the following:
2024-04-10 11:21:06.557392 INFO pred_bat: Inverter 0 Wrote 0 to discharge_rate, successfully now 0

And that's the issue. 0 is not a valid value for the SE setup. If I have understood correctly (please can somebody sanity check me!) then a Hold ideally should set:
number.solaredge_i1_storage_charge_limit = 1
solaredge_i1_storage_discharge_limit = 1
Mode: Charge from Solar Power and Grid

Thus will enable charging mode, with essentially no charging or discharging.

@Noodleyman
Copy link

Feedback on the bespoke sensor passing the storage command.. I wasn't able to get that working properly. whatever I did it always passed the name of the sensor itself, rather than the value. Likely just an issue with how I've set it up but I tried what I thought were all valid options with no success.

Without fail, whatever variation was used the service call ended up as:
charge_start_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': ['sensor.solaredge_derived_storage_command_for_predbat']}

I've removed that config for now, and instead trying an automation to set the charge and discharge limit to 1 when set to 0 instead.

alias: PredBat - Set charge limit to 1 instead of 0
description: ""
trigger:
  - platform: state
    entity_id:
      - number.solaredge_i1_storage_charge_limit
    to: "0"
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 15
      milliseconds: 0
  - service: number.set_value
    target:
      entity_id: number.solaredge_i1_storage_charge_limit
    data:
      value: "1"
mode: single

and

alias: PredBat - Set discharge limit to 1 instead of 0
description: ""
trigger:
  - platform: state
    entity_id:
      - number.solaredge_i1_storage_discharge_limit
    to: "0"
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 15
      milliseconds: 0
  - service: number.set_value
    data:
      value: "1"
    target:
      entity_id: number.solaredge_i1_storage_discharge_limit
mode: single

@Noodleyman
Copy link

Thought I would add an update to share what I finally chose to settle on, as this works for how I want my system operating.

I've setup an automation to flip the read only setting of Predbat. between 05:10 and 14:30 the read only flag is on. This lets the battery get charged to a suitable time overnight, and also allows a charge from grid before 4PM if needed (peak rate times on Flux), or discharge to max exports.

I've also got the charge and discharge automations per my previous post in place to set 0 to 1 if they get set.

I also have another automation which tracks the PV generation. Once generation is covering the consumption requirements, it flips the battery into "Charge from Clipped Solar Power" mode, thus exporting is a priority rather than battery charging. Given the size of the array I have (quite large), I want to export before charging. Once my export limit is reached then exccess power goes into the battery. This is the most effecient method for me.

The same automations also listens for the storage command being changed to "Maximize Self Consumption", as I've noted a couple of times if flipped itself back into this mode. I think it might be down to the SolarEdge monitoring platform changing it as the source of the change wasn't anything from HA. So if it changes to Maximize Self Consumption mode, and PV generation is still covering the needs then it will delay 15 seconds, and put it back into Chrge from Clipped Solar Power mode.

Those automations seemd to have worked well this morning, and it's done exactly what I wanted. optimal battery charging overnight, priority to exports before battery charging once viable in the morning and a control window later in the day where if it's been a terrible solar day the battery can be charged as needed by PredBat.

I'm going to run with this config for the summer unless I find a reason to change it.

@duckfullstop
Copy link

duckfullstop commented Apr 16, 2024

Okay, I had a working setup going, but for whatever reason as of last night it's decided to self immolate and is now refusing to charge or discharge the battery from 100%, regardless of what knobs or dials I tweak (charge_rate and discharge_rate are both pinned to 0 constantly, and there is no plan).

Here's my config - I'm hoping people can learn off this (as I made some tweaks to things like load_today as discussed here previously), especially as it was working perfectly up until yesterday!

pred_bat:
  module: predbat
  class: PredBat

  # Sets the prefix for all created entities in HA - only change if you want to run more than once instance
  prefix: predbat

  # XXX: This is a configuration template, delete this line once you edit your configuration
  # template: True

  # Timezone to work in
  timezone: Europe/London

  #
  # Sensors, currently more than one can be specified and they will be summed up automatically
  # however if you have two inverters only set one of them as they will both read the same.
  #
  load_today:
    - sensor.solar_house_consumption_kwh
  import_today:
    - sensor.solaredge_m1_imported_kwh
  export_today:
    - sensor.solaredge_m1_exported_kwh
  pv_today:
    - sensor.solar_panel_production_daily  # This is a custom sensor - documentation TBD
  #
  # Controls/status - must by 1 per inverter
  #
  num_inverters: 1
  # inverter_type: "SX4"
  inverter_type: "SE"

  auto_restart:
  - service: homeassistant.reload_config_entry
    entity_id: sensor.solaredge_i1_status

  battery_rate_max:
    - sensor.solaredge_b1_max_charge_power
  charge_rate:
    - number.solaredge_i1_storage_charge_limit
  discharge_rate:
    - number.solaredge_i1_storage_discharge_limit
  battery_power:
    - sensor.solaredge_b1_dc_power
  pv_power:
    - sensor.solar_panel_production_w
  load_power:
    - sensor.solar_house_consumption_w
  soc_kw:
    - sensor.solaredge_b1_available_energy
  soc_percent:
    - sensor.solaredge_b1_state_of_energy
  soc_max:
    - sensor.solaredge_b1_maximum_energy
  #reserve:
  # - number.solaredge_i1_backup_reserve
  #inverter_mode:
  # - select.givtcp_{geserial}_mode
  #inverter_time:
  # - sensor.givtcp_{geserial}_invertor_time
  charge_start_time:
   - "00:00:00"
  charge_end_time:
   - "00:01:00"
  # charge_limit:
  #  - number.solaredge_i1_storage_charge_limit
  scheduled_charge_enable:
   - off
  scheduled_discharge_enable:
   - false
  discharge_start_time:
   - "12:25:00"
  discharge_end_time:
   - "13:55:00"

  # Inverter max AC limit (one per inverter)
  # If you have a second inverter for PV only please add the two values together
  inverter_limit:
   - 5000

  charge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Charge from Solar Power and Grid"
  charge_stop_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Maximize Self Consumption"
  discharge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Discharge to Maximize Export"
  discharge_stop_service:
    service: select.select_option
    entity_id: "select.solaredge_i1_storage_command_mode"
    option: "Maximize Self Consumption"

  # Export limit is a software limit set on your inverter that prevents exporting above a given level
  # When enabled Predbat will model this limit
  #export_limit:
  # - 3600

  # The maximum rate the inverter can charge and discharge the battery can be overwritten, this will change
  # the register programming and thus cap the max rates. The default is to use the maximum supported rates (recommended)
  #
  #inverter_limit_charge:
  # - 2000
  #inverter_limit_discharge:
  # - 2600


  # Some inverters don't turn off when the rate is set to 0, still charge or discharge at around 200w
  # The value can be set here in watts to model this (doesn't change operation)
  #inverter_battery_rate_min:
  #  - 200

  # Some batteries tail off their charge rate at high soc%
  # enter the charging curve here as a % of the max charge rate for each soc percentage.
  # the default is 1.0 (full power)
  battery_charge_power_curve:
    95 : 1
    96 : 1
    97 : 0.5
    98 : 0.33
    99 : 0.25
    100 : 0.125

  # Inverter clock skew in minutes, e.g. 1 means it's 1 minute fast and -1 is 1 minute slow
  # Separate start and end options are applied to the start and end time windows, mostly as you want to start late (not early) and finish early (not late)
  # Separate discharge skew for discharge windows only
  inverter_clock_skew_start: 0
  inverter_clock_skew_end: 0
  inverter_clock_skew_discharge_start: 0
  inverter_clock_skew_discharge_end: 0

  # Clock skew adjusts the Appdaemon time
  # This is the time that Predbat takes actions like starting discharge/charging
  # Only use this for workarounds if your inverter time is correct but Predbat is somehow wrong (AppDaemon issue)
  # 1 means add 1 minute to AppDaemon time, -1 takes it away
  clock_skew: 0

  # Set these to match solcast sensor names
  pv_forecast_today: sensor.solcast_pv_forecast_forecast_today
  pv_forecast_tomorrow: sensor.solcast_pv_forecast_forecast_tomorrow
  pv_forecast_d3: sensor.solcast_pv_forecast_forecast_day_3
  pv_forecast_d4: sensor.solcast_pv_forecast_forecast_day_4

  # car_charging_energy defines an incrementing sensor which measures the charge added to your car
  # is used for car_charging_hold feature to filter out car charging from the previous load data
  # Automatically set to detect Wallbox and Zappi, if it doesn't match manually enter your sensor name
  # Also adjust car_charging_energy_scale if it's not in kwH to fix the units
  car_charging_energy: sensor.myenergi_zappi_charge_added_session

  num_cars: 2

  # car_charging_planned is set to a sensor which when positive indicates the car will charged in the upcoming low rate slots
  # This should not be needed if you use Octopus Intelligent Slots which will take priority if enabled
  # The list of possible values is in car_charging_planned_response
  # Auto matches Zappi and Wallbox, or change it for your own
  car_charging_planned:
    - sensor.myenergi_zappi_plug_status
    - binary_sensor.car1_connection_status
    - binary_sensor.car2_charging_cable_connected

  car_charging_planned_response:
    - 'yes'
    - 'on'
    - 'true'
    - 'connected'
    - 'ev connected'
    - 'charging'
    - 'paused'
    - 'waiting for car demand'
    - 'waiting for ev'
    - 'scheduled'
    - 'enabled'
    - 'latched'
    - 'locked'
    - 'plugged in'

  # To make planned car charging more accurate, either using car_charging_planned or Octopus Intelligent
  # specify your battery size in kwh, charge limit % and current car battery soc % sensors/values
  # If you have intelligent the battery size and limit will be extracted from Intelligent directly
  # Set the car SOC% if you have it to give an accurate forecast of the cars battery levels
  # One entry per car if you have multiple cars
  car_charging_battery_size:
    - 80
    - 32
  car_charging_limit:
    - sensor.car1_charging_target
    - 100
  car_charging_soc:
    - sensor.car1_remaining_battery_percent
    - sensor.car2_battery_level

  # If you have Octopus intelligent, enable the intelligent slot information to add to pricing
  # Will automatically disable if not found, or comment out to disable fully
  # When enabled it overrides the 'car_charging_planned' feature and predict the car charging based on the intelligent plan (unless octopus intelligent charging is False)
  # This matches either the intelligent slot from the Octopus Plugin or from the Intelligent plugin

  # octopus_intelligent_slot: 're:(binary_sensor.octopus_intelligent_slot|re:binary_sensor.octopus_energy_intelligent_dispatching)'
  octopus_intelligent_slot: binary_sensor.octopus_energy_a_[REDACTED]_intelligent_dispatching
  octopus_ready_time: time.octopus_energy_a_[REDACTED]_intelligent_ready_time
  octopus_charge_limit: number.octopus_energy_a_[REDACTED]_intelligent_charge_limit

  # Energy rates
  # Please set one of these three, if multiple are set then Octopus is used first, second rates_import/rates_export and latest basic metric

  # Set import and export entity to point to the Octopus Energy plugin
  # automatically matches your meter number assuming you have only one
  # Will be ignored if you don't have the sensor
  # Or manually set it to the correct sensor names e.g:
  # sensor.octopus_energy_electricity_xxxxxxxxxx_xxxxxxxxxxxxx_current_rate
  # sensor.octopus_energy_electricity_xxxxxxxxxx_xxxxxxxxxxxxx_export_current_rate
  metric_octopus_import: sensor.octopus_energy_electricity_[REDACTED]_[REDACTED]_current_rate
  metric_octopus_export: sensor.octopus_energy_electricity_21l4608479_2000060363490_export_current_rate

  metric_octopus_gas: sensor.octopus_energy_gas_[REDACTED]_[REDACTED]_current_rate

  # Standing charge can be set to a sensor (e.g. Octopus) or manually entered in pounds here (e.g. 0.50 is 50p)
  metric_standing_charge: sensor.octopus_energy_electricity_[REDACTED]_[REDACTED]_current_standing_charge

  octopus_saving_session: event.octopus_energy_a_[REDACTED]_octoplus_saving_session_events

  # Or set your actual rates across time for import and export
  # If start/end is missing it's assumed to be a fixed rate
  # Gaps are filled with 0
  #rates_import:
  #  -  start: "23:30:00"
  #     end: "05:30:00"
  #     rate: 7.5
  #  -  start: "05:30:00"
  #     end: "23:30:00"
  #     rate: 30.0

  #rates_export:
  #  -  rate: 15.0

  # Can be used instead of the plugin to get import rates directly online
  # Overrides metric_octopus_import and rates_import
  # rates_import_octopus_url : "https://api.octopus.energy/v1/products/FLUX-IMPORT-23-02-14/electricity-tariffs/E-1R-FLUX-IMPORT-23-02-14-A/standard-unit-rates"
  # rates_import_octopus_url : "https://api.octopus.energy/v1/products/AGILE-FLEX-BB-23-02-08/electricity-tariffs/E-1R-AGILE-FLEX-BB-23-02-08-A/standard-unit-rates"

  # Overrides metric_octopus_export and rates_export
  # rates_export_octopus_url: "https://api.octopus.energy/v1/products/FLUX-EXPORT-BB-23-02-14/electricity-tariffs/E-1R-FLUX-EXPORT-BB-23-02-14-A/standard-unit-rates"
  # rates_export_octopus_url: "https://api.octopus.energy/v1/products/AGILE-OUTGOING-BB-23-02-28/electricity-tariffs/E-1R-AGILE-OUTGOING-BB-23-02-28-A/standard-unit-rates/"
  # rates_export_octopus_url: "https://api.octopus.energy/v1/products/OUTGOING-FIX-12M-BB-23-02-09/electricity-tariffs/E-1R-OUTGOING-FIX-12M-BB-23-02-09-A/standard-unit-rates/"

  # Import rates can be overridden with rate_import_override
  # Export rates can be overridden with rate_export_override
  # Use the same format as above, but a date can be included if it just applies for a set day (e.g. Octopus power ups)
  # This will override even the Octopus plugin rates if enabled
  #
  #rates_import_override:
  # -  date: '2023-09-10'
  #    start: '14:00:00'
  #    end: '14:30:00'
  #    rate: 5

  # For pv estimate, leave blank for central estimate, or add 10 for 10% curve (worst case) or 90 or 90% curve (best case)
  # If you use 10 then disable pv_metric10_weight below
  # pv_estimate: 10

  # Days previous is the number of days back to find historical load data
  # Recommended is 7 to capture day of the week but 1 can also be used
  # if you have more history you could use 7 and 14 (in a list) but the standard data in HA only lasts 10 days
  days_previous:
    - 7
    - 14

  # Days previous weight can be used to control the weighting of the previous load points, the values are multiplied by their
  # weights and then divided through by the total weight. E.g. if you used 1 and 0.5 then the first value would have 2/3rd of the weight and the second 1/3rd
  days_previous_weight:
    - 1
    - 1
    - 1

  # Number of hours forward to forecast, best left as-is unless you have specific reason
  forecast_hours: 48

  # The number of hours ahead to count in charge planning (for cost estimates)
  # It's best to set this on your charge window repeat cycle (24) but you may want to set it higher for more variable
  # tariffs like Agile
  forecast_plan_hours: 24

  # Specify the devices that notifies are sent to, the default is 'notify' which goes to all
  notify_devices:
    - mobile_app_iphone_duck

  # Set the frequency in minutes that this plugin is run
  # recommend something that divides by 60 (5, 10 or 15) or you won't trigger at the start of energy price slots
  run_every: 5

  # Battery scaling makes the battery smaller (e.g. 0.9) or bigger than its reported
  # If you have an 80% DoD battery that falsely reports it's kwh then set it to 0.8 to report the real figures
  battery_scaling: 1.0

  # Can be used to scale import and export data, used for workarounds
  import_export_scaling: 1.0

  # Export triggers:
  # For each trigger give a name, the minutes of export needed and the energy required in that time
  # Multiple triggers can be set at once so in total you could use too much energy if all run
  # Creates an entity called 'binary_sensor.predbat_export_trigger_<name>' which will be turned On when the condition is valid
  # connect this to your automation to start whatever you want to trigger
  export_triggers:
     - name: 'large'
       minutes: 60
       energy: 1.0
     - name: 'small'
       minutes: 15
       energy: 0.25

  # If you have a sensor that gives the energy consumed by your solar diverter then add it here
  # this will make the predictions more accurate. It should be an incrementing sensor, it can reset at midnight or not
  # It's assumed to be in Kwh but scaling can be applied if need be
  # this sensor combines both the Eddi and Zappi divert
  iboost_energy_today: sensor.myenergi_[REDACTED]_green_energy_today_2
  iboost_energy_scaling: 1.0

  watch_list:
    - binary_sensor.octopus_energy_a_[REDACTED]_intelligent_dispatching
    - time.octopus_energy_a_[REDACTED]_intelligent_ready_time
    - number.octopus_energy_a_[REDACTED]_intelligent_charge_limit
    - event.octopus_energy_a_[REDACTED]_octoplus_saving_session_events
    # zappi
    - sensor.myenergi_zappi_plug_status
    # cars
    - binary_sensor.car1_connection_status
    - binary_sensor.car2_charging_cable_connected
  #  - '+[car_charging_planned]'
  #  - '+[car_charging_soc]'
  #  - '{car_charging_now}'

and my plan looks like this, which makes zero sense
Screenshot 2024-04-16 at 13 43 13
Screenshot 2024-04-16 at 13 43 26

nothing obvious in the logs either, other than it dropping the inverter charge / discharge rate to 0 whenever I try to encourage it back to 5000w. Mode is set to Control Charge & Discharge.

Anyone got any ideas?

@Noodleyman
Copy link

Noodleyman commented Apr 16, 2024

Is your battery discharging and charging normally outside of HA? I've had an issue in the past where the battery comms stopped (moistuer in the comms), I had to reset the inverter and things just work up agian. was a common issue last year until I had it fixed. Open the side panel on the battery, and check the comms lights as well, perhaps it's moaning. maybe power cycle it and see. The ole' classic switch it off and on :)

Which modbus are you using as well? I've had those lock up a couple of times before as well. same thing, off/on to check

@duckfullstop
Copy link

I don't think it's a simple comms issue - all entities seem to be updating fine and I can manually change the inverter state through HA and the battery responds as expected. Did cycle both the battery and inverter just for a sanity check (and restarted HA) with no change - seems to be a predbat issue due to the completely MIA plan.

@gcoan
Copy link
Collaborator

gcoan commented Apr 16, 2024

some of your entries like charge limit and battery charge start/stop times don't look to be valid YAML

it should be

charge_start_time:
  - "00:00:00"
charge_end_time:
  - "00:01:00"
scheduled_charge_enable:
  - off
scheduled_discharge_enable:
  - false
discharge_start_time:
  - "12:25:00"
discharge_end_time:
  - "13:55:00"

inverter_limit:
  - 5000

two spaces before the dash, no tabs

Be worth seeing what's in the logfile

@duckfullstop
Copy link

some of your entries like charge limit and battery charge start/stop times don't look to be valid YAML
two spaces before the dash, no tabs

99.9% sure it's valid YAML, think maybe something got crunched when I copied it out of my terminal into vscode. (I didn't touch the config before it broke!)

Be worth seeing what's in the logfile

Here you go!

2024-04-16 14:12:05.623049 INFO pred_bat: --------------- PredBat - update at 2024-04-16 14:12:05.622217+01:00 with clock skew 0 minutes, minutes now 850
2024-04-16 14:12:05.629853 INFO pred_bat: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 34.0 minutes
2024-04-16 14:12:05.630718 INFO pred_bat: Predbat /conf/apps/batpred/predbat.py version v7.16.15 currently running, latest version is v7.16.15 latest beta v7.16.15
2024-04-16 14:12:05.631649 INFO pred_bat: Autoupdate: Currently up to date
2024-04-16 14:12:05.639322 INFO pred_bat: Configuration: forecast_hours 48 max_windows 96 num_cars 2 debug enable is False calculate_plan_every 10 calculate_fast_plan False
2024-04-16 14:12:05.643280 INFO pred_bat: Cars 2 charging from battery False planned [True, True], charging_now [False, False] smart [True, True], max_price [0.0, 0.0], plan_time ['07:00:00', '07:00:00'], battery size [80.0, 32.0], limit [64.0, 32.0], rate [7.4, 7.4]
2024-04-16 14:12:05.644195 INFO pred_bat: Predbat mode is set to Control charge & discharge
2024-04-16 14:12:05.723426 INFO pred_bat: IBoost energy today from sensor reads 1.25 kWh
2024-04-16 14:12:25.567272 WARNING AppDaemon: Excessive time spent in utility loop: 3724.0ms, 3723.0ms in check_app_updates(), 1.0ms in other
2024-04-16 14:12:28.626742 INFO pred_bat: Found 21600 load_today datapoints going back 14 days
2024-04-16 14:12:29.021635 WARNING AppDaemon: Excessive time spent in utility loop: 2447.0ms, 2447.0ms in check_app_updates(), 0.0ms in other
2024-04-16 14:12:36.472844 WARNING AppDaemon: Excessive time spent in utility loop: 2147.0ms, 2147.0ms in check_app_updates(), 0.0ms in other
2024-04-16 14:12:55.237342 WARNING AppDaemon: Excessive time spent in utility loop: 3413.0ms, 3413.0ms in check_app_updates(), 0.0ms in other
2024-04-16 14:12:55.700660 INFO pred_bat: Current data so far today: load 14.31 kWh import 8.35 kWh export 7.85 kWh pv 13.92 kWh
2024-04-16 14:12:55.701852 INFO pred_bat: Fetching futurerate data from None
2024-04-16 14:12:55.732161 INFO pred_bat: Gas rates min 6.12 max 6.12 average 6.12
2024-04-16 14:12:55.738661 INFO pred_bat: Car 0 using Octopus Intelligent, charging limit 64.0, ready time 08:00:00 - battery size 80.0
2024-04-16 14:12:55.740390 INFO pred_bat: Current Car SOC kWh: [64.0, 30.08]
2024-04-16 14:12:55.754166 INFO pred_bat: Standing charge is set to 61.2675 p
2024-04-16 14:12:55.766683 INFO pred_bat: Octopus Intelligent slot at 04-16 00:00:00-04-16 00:30:00 assumed price 7.5
2024-04-16 14:12:56.492286 INFO pred_bat: Rate min forward looking: now 7.5 at end of forecast 7.5
2024-04-16 14:12:56.493681 INFO pred_bat: Import rates min 7.5 max 27.27 average 22.33
2024-04-16 14:12:56.510538 INFO pred_bat: Export rates min 15.0 max 15.0 average 15.0
2024-04-16 14:12:56.511946 INFO pred_bat: Rate thresholds (for charge/discharge) are import 26.77p (0.0) export 15.0p (0.0)
2024-04-16 14:12:56.528917 INFO pred_bat: High export rate found rates in range 15.0 to 15.0
2024-04-16 14:12:56.536212 INFO pred_bat: Low Import rate found rates in range 7.5 to 7.5
2024-04-16 14:12:56.537610 INFO pred_bat: Car 0 is using Octopus intelligent schedule
2024-04-16 14:12:56.538871 INFO pred_bat: Plan car 1 charging from 30.08 to 32.0 with slots [{'start': 1410, 'end': 1770, 'average': 7.5}, {'start': 2850, 'end': 3210, 'average': 7.5}] from soc 30.08 to 32.0 ready by 07:00:00
2024-04-16 14:12:56.540355 INFO pred_bat: Car 1 charging plan is: [{'start': 1410, 'end': 1425, 'kwh': 1.85, 'average': 7.5, 'cost': 13.875}]
2024-04-16 14:12:56.596928 INFO pred_bat: Todays energy import 8.35 kWh export 7.85 kWh cost 38.84 p import 156.58 p export -117.75 p
2024-04-16 14:12:56.600432 INFO pred_bat: PV Data for pv_forecast_today total 33.9 kWh
2024-04-16 14:12:56.604063 INFO pred_bat: PV Data for pv_forecast_tomorrow total 28.93 kWh
2024-04-16 14:12:56.607791 INFO pred_bat: PV Data for pv_forecast_d3 total 35.3 kWh
2024-04-16 14:12:56.612170 INFO pred_bat: PV Data for pv_forecast_d4 total 25.89 kWh
2024-04-16 14:12:56.639754 INFO pred_bat: Historical data totals for days [7, 14] are [24.69, 21.07] - min 21.07
2024-04-16 14:12:56.642111 INFO pred_bat: Historical days now [7, 14] weight [1, 1, 1]
2024-04-16 14:12:56.680800 INFO pred_bat: Today's load divergence 117.72 % in-day adjustment 116.84 % damping 0.95x, Predicted so far 6.33 kWh with 11.33 kWh car excluded and 4.59 kWh import ignored and 0 forecast extra, Actual so far 9.56 kWh with 2.78 kWh car excluded and 2.54 kWh import ignored
2024-04-16 14:12:56.725880 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-16 14:12:56.727787 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-16 14:12:56.731148 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-16 14:12:56.732577 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 0.0 w charge rate 0.0 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-04-16 14:12:56.739304 INFO pred_bat: Inverter 0 scheduled_charge_enable off scheduled_discharge_enable off
2024-04-16 14:12:56.744730 INFO pred_bat: Inverter 0 SOC: 9.7 kW 100 % Current charge rate 5000.0 w Current discharge rate 5000.0 w Current power 0.0 w Current voltage 52.0
2024-04-16 14:12:56.748667 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-16 14:12:56.750501 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-16 14:12:56.751627 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-16 14:12:56.753837 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-16 14:12:56.755627 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-16 14:12:56.758755 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-16 14:12:56.760323 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-16 14:12:56.762171 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-16 14:12:56.764568 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-16 14:12:56.766412 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-16 14:12:56.768295 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-16 14:12:56.769765 INFO pred_bat: Note: Inverter does not support reserve - disabling reserve functions
2024-04-16 14:12:56.771580 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 9.7 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 5.0 export limit 5.0 kW loss charge 3 % loss discharge 4 % inverter loss 2 %
2024-04-16 14:12:56.797980 INFO pred_bat: Base charge    window [  ]
2024-04-16 14:12:56.799394 INFO pred_bat: Base discharge window [ 16-04 00:00:00 - 16-04 00:00:00 @ 0p 100.0%, 17-04 00:00:00 - 17-04 00:00:00 @ 0p 100.0% ]
2024-04-16 14:12:56.801223 INFO pred_bat: Will recompute the plan as it is invalid
2024-04-16 14:12:56.803714 INFO pred_bat: Best charge    window [ 16-04 23:30:00 - 17-04 05:30:00 @ 7.5p 0.0%, 17-04 23:30:00 - 18-04 05:30:00 @ 7.5p 0.0% ]
2024-04-16 14:12:56.807620 INFO pred_bat: Best discharge window [ 16-04 14:00:00 - 16-04 14:30:00 @ 15.0p 100.0%, 16-04 14:30:00 - 16-04 15:00:00 @ 15.0p 100.0%, 16-04 15:00:00 - 16-04 15:30:00 @ 15.0p 100.0%, 16-04 15:30:00 - 16-04 16:00:00 @ 15.0p 100.0%, 16-04 16:00:00 - 16-04 16:30:00 @ 15.0p 100.0%, 16-04 16:30:00 - 16-04 17:00:00 @ 15.0p 100.0%, 16-04 17:00:00 - 16-04 17:30:00 @ 15.0p 100.0%, 16-04 17:30:00 - 16-04 18:00:00 @ 15.0p 100.0%, 16-04 18:00:00 - 16-04 18:30:00 @ 15.0p 100.0%, 16-04 18:30:00 - 16-04 19:00:00 @ 15.0p 100.0%, 16-04 19:00:00 - 16-04 19:30:00 @ 15.0p 100.0%, 16-04 19:30:00 - 16-04 20:00:00 @ 15.0p 100.0%, 16-04 20:00:00 - 16-04 20:30:00 @ 15.0p 100.0%, 16-04 20:30:00 - 16-04 21:00:00 @ 15.0p 100.0%, 16-04 21:00:00 - 16-04 21:30:00 @ 15.0p 100.0%, 16-04 21:30:00 - 16-04 22:00:00 @ 15.0p 100.0%, 16-04 22:00:00 - 16-04 22:30:00 @ 15.0p 100.0%, 16-04 22:30:00 - 16-04 23:00:00 @ 15.0p 100.0%, 16-04 23:00:00 - 16-04 23:30:00 @ 15.0p 100.0%, 16-04 23:30:00 - 17-04 00:00:00 @ 15.0p 100.0%, 17-04 00:00:00 - 17-04 00:30:00 @ 15.0p 100.0%, 17-04 00:30:00 - 17-04 01:00:00 @ 15.0p 100.0%, 17-04 01:00:00 - 17-04 01:30:00 @ 15.0p 100.0%, 17-04 01:30:00 - 17-04 02:00:00 @ 15.0p 100.0%, 17-04 02:00:00 - 17-04 02:30:00 @ 15.0p 100.0%, 17-04 02:30:00 - 17-04 03:00:00 @ 15.0p 100.0%, 17-04 03:00:00 - 17-04 03:30:00 @ 15.0p 100.0%, 17-04 03:30:00 - 17-04 04:00:00 @ 15.0p 100.0%, 17-04 04:00:00 - 17-04 04:30:00 @ 15.0p 100.0%, 17-04 04:30:00 - 17-04 05:00:00 @ 15.0p 100.0%, 17-04 05:00:00 - 17-04 05:30:00 @ 15.0p 100.0%, 17-04 05:30:00 - 17-04 06:00:00 @ 15.0p 100.0%, 17-04 06:00:00 - 17-04 06:30:00 @ 15.0p 100.0%, 17-04 06:30:00 - 17-04 07:00:00 @ 15.0p 100.0%, 17-04 07:00:00 - 17-04 07:30:00 @ 15.0p 100.0%, 17-04 07:30:00 - 17-04 08:00:00 @ 15.0p 100.0%, 17-04 08:00:00 - 17-04 08:30:00 @ 15.0p 100.0%, 17-04 08:30:00 - 17-04 09:00:00 @ 15.0p 100.0%, 17-04 09:00:00 - 17-04 09:30:00 @ 15.0p 100.0%, 17-04 09:30:00 - 17-04 10:00:00 @ 15.0p 100.0%, 17-04 10:00:00 - 17-04 10:30:00 @ 15.0p 100.0%, 17-04 10:30:00 - 17-04 11:00:00 @ 15.0p 100.0%, 17-04 11:00:00 - 17-04 11:30:00 @ 15.0p 100.0%, 17-04 12:00:00 - 17-04 12:30:00 @ 15.0p 100.0%, 17-04 12:30:00 - 17-04 13:00:00 @ 15.0p 100.0%, 17-04 13:00:00 - 17-04 13:30:00 @ 15.0p 100.0%, 17-04 13:30:00 - 17-04 14:00:00 @ 15.0p 100.0%, 17-04 14:00:00 - 17-04 14:30:00 @ 15.0p 100.0%, 17-04 14:30:00 - 17-04 15:00:00 @ 15.0p 100.0%, 17-04 15:00:00 - 17-04 15:30:00 @ 15.0p 100.0%, 17-04 15:30:00 - 17-04 16:00:00 @ 15.0p 100.0%, 17-04 16:00:00 - 17-04 16:30:00 @ 15.0p 100.0%, 17-04 16:30:00 - 17-04 17:00:00 @ 15.0p 100.0%, 17-04 17:00:00 - 17-04 17:30:00 @ 15.0p 100.0%, 17-04 17:30:00 - 17-04 18:00:00 @ 15.0p 100.0%, 17-04 18:00:00 - 17-04 18:30:00 @ 15.0p 100.0%, 17-04 18:30:00 - 17-04 19:00:00 @ 15.0p 100.0%, 17-04 19:00:00 - 17-04 19:30:00 @ 15.0p 100.0%, 17-04 19:30:00 - 17-04 20:00:00 @ 15.0p 100.0%, 17-04 20:00:00 - 17-04 20:30:00 @ 15.0p 100.0%, 17-04 20:30:00 - 17-04 21:00:00 @ 15.0p 100.0%, 17-04 21:00:00 - 17-04 21:30:00 @ 15.0p 100.0%, 17-04 21:30:00 - 17-04 22:00:00 @ 15.0p 100.0%, 17-04 22:00:00 - 17-04 22:30:00 @ 15.0p 100.0%, 17-04 22:30:00 - 17-04 23:00:00 @ 15.0p 100.0%, 17-04 23:00:00 - 17-04 23:30:00 @ 15.0p 100.0%, 17-04 23:30:00 - 18-04 00:00:00 @ 15.0p 100.0%, 18-04 00:00:00 - 18-04 00:30:00 @ 15.0p 100.0%, 18-04 00:30:00 - 18-04 01:00:00 @ 15.0p 100.0%, 18-04 01:00:00 - 18-04 01:30:00 @ 15.0p 100.0%, 18-04 01:30:00 - 18-04 02:00:00 @ 15.0p 100.0%, 18-04 02:00:00 - 18-04 02:30:00 @ 15.0p 100.0%, 18-04 02:30:00 - 18-04 03:00:00 @ 15.0p 100.0%, 18-04 03:00:00 - 18-04 03:30:00 @ 15.0p 100.0%, 18-04 03:30:00 - 18-04 04:00:00 @ 15.0p 100.0%, 18-04 04:00:00 - 18-04 04:30:00 @ 15.0p 100.0%, 18-04 04:30:00 - 18-04 05:00:00 @ 15.0p 100.0%, 18-04 05:00:00 - 18-04 05:30:00 @ 15.0p 100.0%, 18-04 05:30:00 - 18-04 06:00:00 @ 15.0p 100.0%, 18-04 06:00:00 - 18-04 06:30:00 @ 15.0p 100.0%, 18-04 06:30:00 - 18-04 07:00:00 @ 15.0p 100.0%, 18-04 07:00:00 - 18-04 07:30:00 @ 15.0p 100.0%, 18-04 07:30:00 - 18-04 08:00:00 @ 15.0p 100.0%, 18-04 08:00:00 - 18-04 08:30:00 @ 15.0p 100.0%, 18-04 08:30:00 - 18-04 09:00:00 @ 15.0p 100.0%, 18-04 09:00:00 - 18-04 09:30:00 @ 15.0p 100.0%, 18-04 09:30:00 - 18-04 10:00:00 @ 15.0p 100.0%, 18-04 10:00:00 - 18-04 10:30:00 @ 15.0p 100.0%, 18-04 10:30:00 - 18-04 11:00:00 @ 15.0p 100.0%, 18-04 11:00:00 - 18-04 11:30:00 @ 15.0p 100.0%, 18-04 11:30:00 - 18-04 12:00:00 @ 15.0p 100.0%, 18-04 12:00:00 - 18-04 12:30:00 @ 15.0p 100.0%, 18-04 12:30:00 - 18-04 13:00:00 @ 15.0p 100.0%, 18-04 13:00:00 - 18-04 13:30:00 @ 15.0p 100.0%, 18-04 13:30:00 - 18-04 14:00:00 @ 15.0p 100.0%, 18-04 14:00:00 - 18-04 14:30:00 @ 15.0p 100.0% ]
2024-04-16 14:12:56.811749 INFO pred_bat: PV Forecast 64.8 kWh and 10% Forecast 25.0 kWh pv cloud factor 0.6
2024-04-16 14:12:56.812698 INFO pred_bat: Creating step data for historical load data scale_today 1.1683720046206794 step 5 minutes_now 850 forward False
2024-04-16 14:12:56.880406 INFO pred_bat: Previous message repeated 1 times
2024-04-16 14:12:56.880695 INFO pred_bat: Creating pool of 8 processes to match your CPU count
2024-04-16 14:12:56.951534 INFO pred_bat: Calculate Best options: mode(Control charge & discharge) calculate_discharge_oncharge(False) set_discharge_freeze_only(False) set_discharge_during_charge(False) combine_charge_slots(True) combine_discharge_slots(False) best_soc_min(0.0 kWh) best_soc_max(0.0 kWh) best_soc_keep(1.0 kWh) inverter_loss(2 %) battery_loss(3 %) battery_loss_discharge (4 %) inverter_hybrid(True) metric_min_improvement(0.0 p) metric_min_improvement_discharge(0.1 p) metric_battery_cycle(0.5 p/kWh)metric_battery_value_scaling(1.0 x)
2024-04-16 14:12:56.953896 INFO pred_bat: Optimise all windows, total charge 2 discharge 95
2024-04-16 14:12:57.212748 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.227976 INFO pred_bat: Calculated end_record as 04-18 14:10:00
2024-04-16 14:12:57.238866 INFO pred_bat: >> Region optimisation pass width 960
2024-04-16 14:12:57.405685 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.508810 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.694556 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.695517 INFO pred_bat: >> Region optimisation pass width 480
2024-04-16 14:12:57.772128 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.903024 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:57.991133 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:58.075484 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:58.192739 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:58.272478 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:58.274663 INFO pred_bat: >> Region optimisation pass width 240
2024-04-16 14:12:58.338233 INFO pred_bat: Optimise all charge for all bands best price threshold 13.6 charges at 8.4 at metric -298.56 keep 0 cost -110.17 soc_min 9.7 limits [0, 9.7] discharge [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0]
2024-04-16 14:12:59.128020 INFO pred_bat: Previous message repeated 11 times
2024-04-16 14:12:59.128296 INFO pred_bat: Calculated end_record as 04-18 14:10:00
2024-04-16 14:12:59.131769 INFO pred_bat: Starting second optimisation best_price 8.4 best_price_discharge 13.6 lowest_price_charge 8.4 with charge limits [0, 9.7] based on
2024-04-16 14:12:59.134764 INFO pred_bat: Best charge windows best_metric -298.56 best_cost -110.17 metric_keep 0 end_record 04-18 14:10:00 windows [ 17-04 23:30:00 - 18-04 05:30:00 @ 7.5p 100% ]
2024-04-16 14:12:59.136138 INFO pred_bat: Best discharge windows best_metric -298.56 best_cost -110.17 metric_keep 0 end_record 04-18 14:10:00 windows [  ]
2024-04-16 14:12:59.138240 INFO pred_bat: Optimise price set 13.6 price 13.6 start_at_low False best_price 8.4 best_metric -298.56 best_cost -110.17
2024-04-16 14:13:02.781839 INFO pred_bat: Optimise price set 8.4 price 8.4 start_at_low False best_price 8.4 best_metric -18.57 best_cost 62.15
2024-04-16 14:13:02.866099 INFO pred_bat: Best charge windows best_metric -18.58 best_cost 62.15 metric_keep 0 end_record 04-18 14:10:00 windows [  ]
2024-04-16 14:13:02.867006 INFO pred_bat: Best discharge windows best_metric -18.58 best_cost 62.15 metric_keep 0 end_record 04-18 14:10:00 windows [  ]
2024-04-16 14:13:02.867855 INFO pred_bat: Optimise price set 8.4 price 8.4 start_at_low True best_price 8.4 best_metric -18.58 best_cost 62.15
2024-04-16 14:13:02.945447 INFO pred_bat: Best charge windows best_metric -18.58 best_cost 62.15 metric_keep 0 end_record 04-18 14:10:00 windows [  ]
2024-04-16 14:13:02.947482 INFO pred_bat: Best discharge windows best_metric -18.58 best_cost 62.15 metric_keep 0 end_record 04-18 14:10:00 windows [  ]
2024-04-16 14:13:02.949199 INFO pred_bat: Discharge windows filtered [  ]
2024-04-16 14:13:02.971782 INFO pred_bat: Filtered charge windows [  ] reserve 0.39
2024-04-16 14:13:02.997765 INFO pred_bat: predict base end_record 04-18 14:10:00 final soc 9.7 kWh metric 184.69 p metric_keep 0 min_soc 9.7 @ 04-16 14:10:00 kWh load 61.46 pv 79.03
2024-04-16 14:13:02.999740 INFO pred_bat:          [  14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10,   14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10]
2024-04-16 14:13:03.002825 INFO pred_bat:     SOC: [    9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7]
2024-04-16 14:13:03.005635 INFO pred_bat:   STATE: [  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>be~,   g>be~,   g>be~]
2024-04-16 14:13:03.008688 INFO pred_bat:    LOAD: [  14.31,   15.04,   15.88,   17.29,   18.47,   19.86,   21.68,   22.77,   23.86,   25.85,   30.18,   32.55,   33.29,   33.79,   34.55,   35.08,   35.59,   36.05,   36.45,   36.97,   37.63,   38.44,   39.28,   40.22,    41.0,   42.37,   43.01,   43.85,   44.89,   46.02,   46.85,   48.04,   48.85,   49.82,   51.15,   51.83,   52.36,   52.93,    53.5,   54.05,   54.58,   55.04,   55.58,   56.19,   57.23,   58.18,   59.16,   60.43]
2024-04-16 14:13:03.013537 INFO pred_bat:      PV: [  13.92,   18.21,   21.69,   24.68,   26.99,   28.34,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.67,   28.86,   29.97,   32.21,   35.34,   39.09,   43.04,   46.67,   49.74,   52.28,    54.5,   56.28,   57.36,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.62,    57.8,    59.0,   61.45,   64.99,   69.33,   74.17]
2024-04-16 14:13:03.015945 INFO pred_bat:  IMPORT: [   8.35,    8.35,    8.39,    8.58,    8.77,    9.28,   10.84,   11.93,   13.02,   15.01,   19.34,   21.71,   22.45,   22.95,   23.71,   24.24,   24.75,   25.15,   25.41,   25.46,   25.46,   25.46,   25.46,   25.47,   25.47,   25.68,   25.68,   25.76,   25.94,   26.34,   26.97,   28.16,   28.98,   29.94,   31.27,   31.95,   32.48,   33.05,   33.62,   34.17,   34.69,   35.11,   35.51,   35.56,   35.66,   35.71,   35.71,   35.71]
2024-04-16 14:13:03.018745 INFO pred_bat:  EXPORT: [   7.85,    9.62,   11.89,   13.59,   14.87,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.35,   15.46,   15.74,   16.63,   19.03,   21.35,   23.74,   25.53,   27.39,    28.8,   29.69,   30.01,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.06,   30.16,    30.4,   31.56,   33.93,    36.1]
2024-04-16 14:13:03.020716 INFO pred_bat:  IBOOST: [   1.25,    2.94,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.53,    1.78,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.52,    1.74,    3.04,    3.04,    3.04]
2024-04-16 14:13:03.023662 INFO pred_bat:    CAR0: [   80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0]
2024-04-16 14:13:03.026468 INFO pred_bat:    CAR1: [   94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32]
2024-04-16 14:13:03.029432 INFO pred_bat:  METRIC: [  38.84,   12.22,  -20.62,  -40.97,  -54.79,   -47.5,   -5.14,   24.64,   54.44,  108.74,  209.53,   227.3,  232.89,  236.64,  242.32,  246.31,  256.58,  267.65,  273.96,  273.85,  269.63,  256.21,   220.3,  185.81,  149.88,  128.58,  100.77,   81.76,   73.35,   79.37,   96.41,  128.99,   151.2,   177.4,  251.62,  256.74,  260.75,   265.0,  269.28,  273.43,  283.92,  295.35,  305.61,  305.53,  304.62,  288.71,  253.05,   220.5]
2024-04-16 14:13:03.223236 INFO pred_bat: Battery has 48.0 hours left - now at 9.7
2024-04-16 14:13:03.271936 INFO pred_bat: predict base10 end_record 04-18 14:10:00 final soc 9.7 kWh metric 844.91 p metric_keep 0 min_soc 9.7 @ 04-16 14:10:00 kWh load 65.99 pv 39.06
2024-04-16 14:13:03.273854 INFO pred_bat:          [  14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10,   14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10]
2024-04-16 14:13:03.275933 INFO pred_bat:     SOC: [    9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7]
2024-04-16 14:13:03.277609 INFO pred_bat:   STATE: [  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>be~,   g<be-,   g>be~]
2024-04-16 14:13:03.279586 INFO pred_bat:    LOAD: [  14.31,   15.11,   16.04,   17.59,   18.89,   20.42,   22.41,   23.61,   24.82,   27.01,   31.58,   34.19,   35.01,   35.56,   36.39,   36.97,   37.53,   38.04,   38.48,   39.05,   39.77,   40.67,   41.59,   42.63,   43.48,   44.99,   45.69,   46.62,   47.76,   49.01,   49.91,   51.23,   52.12,   53.18,   54.65,    55.4,   55.98,   56.61,   57.23,   57.84,   58.42,   58.93,   59.52,   60.19,   61.33,   62.38,   63.46,   64.85]
2024-04-16 14:13:03.281446 INFO pred_bat:      PV: [  13.92,   15.69,   17.01,   18.06,   18.78,   19.11,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.23,   19.41,   20.25,   21.52,   22.99,   24.53,   25.96,   27.15,   28.04,   28.74,   29.37,   29.83,   30.06,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.15,   30.32,   31.14,    32.4,   34.02,   35.81,   37.52]
2024-04-16 14:13:03.283352 INFO pred_bat:  IMPORT: [   8.35,    8.46,     8.6,    9.26,    9.97,   11.18,   13.11,   14.31,   15.52,   17.71,   22.28,   24.89,   25.71,   26.26,   27.09,   27.67,   28.23,   28.68,   28.97,   29.11,   29.19,   29.36,   29.53,    29.8,   30.02,   30.75,   30.97,   31.35,   32.04,   33.07,   33.92,   35.24,   36.13,   37.19,   38.65,    39.4,   39.99,   40.61,   41.24,   41.85,   42.42,   42.89,   43.34,    43.5,   43.83,   44.03,    44.2,   44.58]
2024-04-16 14:13:03.285103 INFO pred_bat:  EXPORT: [   7.85,    7.85,    7.88,     7.9,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.04,    8.11,    8.11,    8.11,    8.11,    8.11,    8.63,    8.73,    8.94,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.03,    9.11,    9.12,    9.22,    9.25,    9.25]
2024-04-16 14:13:03.286760 INFO pred_bat:  IBOOST: [   1.25,    2.29,    2.77,    2.89,    2.89,    2.89,    2.89,    2.89,    2.89,    2.89,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.33,    0.92,    1.64,     2.4,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.21,    0.62,    1.26,    2.08,    2.74]
2024-04-16 14:13:03.288682 INFO pred_bat:    CAR0: [   80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0]
2024-04-16 14:13:03.290383 INFO pred_bat:    CAR1: [   94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32]
2024-04-16 14:13:03.292284 INFO pred_bat:  METRIC: [  38.84,   41.82,   45.12,   63.02,   80.68,  113.61,  166.37,  199.12,  231.91,  291.63,  394.99,  414.54,  420.69,  424.81,  431.06,  435.44,  446.76,  459.16,  466.65,  469.34,  471.48,  476.07,   480.7,  488.12,  486.23,  504.73,   507.6,  517.09,  535.85,  563.81,  587.18,  623.02,  647.45,  676.27,  751.78,  757.41,  761.82,   766.5,   771.2,  775.78,  787.34,  800.11,  811.98,  815.06,  823.97,  827.77,  832.15,  842.37]
2024-04-16 14:13:03.405601 INFO pred_bat: predict best10 end_record 04-18 14:10:00 final soc 9.7 kWh metric 844.91 p metric_keep 0 min_soc 9.7 @ 04-16 14:10:00 kWh load 65.99 pv 39.06
2024-04-16 14:13:03.407437 INFO pred_bat:          [  14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10,   14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10]
2024-04-16 14:13:03.409080 INFO pred_bat:     SOC: [    9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7]
2024-04-16 14:13:03.410507 INFO pred_bat:   STATE: [  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>be~,   g<be-,   g>be~]
2024-04-16 14:13:03.412040 INFO pred_bat:    LOAD: [  14.31,   15.11,   16.04,   17.59,   18.89,   20.42,   22.41,   23.61,   24.82,   27.01,   31.58,   34.19,   35.01,   35.56,   36.39,   36.97,   37.53,   38.04,   38.48,   39.05,   39.77,   40.67,   41.59,   42.63,   43.48,   44.99,   45.69,   46.62,   47.76,   49.01,   49.91,   51.23,   52.12,   53.18,   54.65,    55.4,   55.98,   56.61,   57.23,   57.84,   58.42,   58.93,   59.52,   60.19,   61.33,   62.38,   63.46,   64.85]
2024-04-16 14:13:03.413741 INFO pred_bat:      PV: [  13.92,   15.69,   17.01,   18.06,   18.78,   19.11,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.17,   19.23,   19.41,   20.25,   21.52,   22.99,   24.53,   25.96,   27.15,   28.04,   28.74,   29.37,   29.83,   30.06,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.11,   30.15,   30.32,   31.14,    32.4,   34.02,   35.81,   37.52]
2024-04-16 14:13:03.415366 INFO pred_bat:  IMPORT: [   8.35,    8.46,     8.6,    9.26,    9.97,   11.18,   13.11,   14.31,   15.52,   17.71,   22.28,   24.89,   25.71,   26.26,   27.09,   27.67,   28.23,   28.68,   28.97,   29.11,   29.19,   29.36,   29.53,    29.8,   30.02,   30.75,   30.97,   31.35,   32.04,   33.07,   33.92,   35.24,   36.13,   37.19,   38.65,    39.4,   39.99,   40.61,   41.24,   41.85,   42.42,   42.89,   43.34,    43.5,   43.83,   44.03,    44.2,   44.58]
2024-04-16 14:13:03.416945 INFO pred_bat:  EXPORT: [   7.85,    7.85,    7.88,     7.9,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.01,    8.04,    8.11,    8.11,    8.11,    8.11,    8.11,    8.63,    8.73,    8.94,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.01,    9.03,    9.11,    9.12,    9.22,    9.25,    9.25]
2024-04-16 14:13:03.418448 INFO pred_bat:  IBOOST: [   1.25,    2.29,    2.77,    2.89,    2.89,    2.89,    2.89,    2.89,    2.89,    2.89,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.33,    0.92,    1.64,     2.4,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,    3.03,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.21,    0.62,    1.26,    2.08,    2.74]
2024-04-16 14:13:03.420066 INFO pred_bat:    CAR0: [   80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0]
2024-04-16 14:13:03.421642 INFO pred_bat:    CAR1: [   94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32]
2024-04-16 14:13:03.423228 INFO pred_bat:  METRIC: [  38.84,   41.82,   45.12,   63.02,   80.68,  113.61,  166.37,  199.12,  231.91,  291.63,  394.99,  414.54,  420.69,  424.81,  431.06,  435.44,  446.76,  459.16,  466.65,  469.34,  471.48,  476.07,   480.7,  488.12,  486.23,  504.73,   507.6,  517.09,  535.85,  563.81,  587.18,  623.02,  647.45,  676.27,  751.78,  757.41,  761.82,   766.5,   771.2,  775.78,  787.34,  800.11,  811.98,  815.06,  823.97,  827.77,  832.15,  842.37]
2024-04-16 14:13:03.539585 INFO pred_bat: predict best end_record 04-18 14:10:00 final soc 9.7 kWh metric 184.69 p metric_keep 0 min_soc 9.7 @ 04-16 14:10:00 kWh load 61.46 pv 79.03
2024-04-16 14:13:03.541093 INFO pred_bat:          [  14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10,   14:10,   15:10,   16:10,   17:10,   18:10,   19:10,   20:10,   21:10,   22:10,   23:10,   00:10,   01:10,   02:10,   03:10,   04:10,   05:10,   06:10,   07:10,   08:10,   09:10,   10:10,   11:10,   12:10,   13:10]
2024-04-16 14:13:03.542560 INFO pred_bat:     SOC: [    9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7,     9.7]
2024-04-16 14:13:03.543817 INFO pred_bat:   STATE: [  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>be~,   g>be~,   g>be~]
2024-04-16 14:13:03.545181 INFO pred_bat:    LOAD: [  14.31,   15.04,   15.88,   17.29,   18.47,   19.86,   21.68,   22.77,   23.86,   25.85,   30.18,   32.55,   33.29,   33.79,   34.55,   35.08,   35.59,   36.05,   36.45,   36.97,   37.63,   38.44,   39.28,   40.22,    41.0,   42.37,   43.01,   43.85,   44.89,   46.02,   46.85,   48.04,   48.85,   49.82,   51.15,   51.83,   52.36,   52.93,    53.5,   54.05,   54.58,   55.04,   55.58,   56.19,   57.23,   58.18,   59.16,   60.43]
2024-04-16 14:13:03.546528 INFO pred_bat:      PV: [  13.92,   18.21,   21.69,   24.68,   26.99,   28.34,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.61,   28.67,   28.86,   29.97,   32.21,   35.34,   39.09,   43.04,   46.67,   49.74,   52.28,    54.5,   56.28,   57.36,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.57,   57.62,    57.8,    59.0,   61.45,   64.99,   69.33,   74.17]
2024-04-16 14:13:03.547897 INFO pred_bat:  IMPORT: [   8.35,    8.35,    8.39,    8.58,    8.77,    9.28,   10.84,   11.93,   13.02,   15.01,   19.34,   21.71,   22.45,   22.95,   23.71,   24.24,   24.75,   25.15,   25.41,   25.46,   25.46,   25.46,   25.46,   25.47,   25.47,   25.68,   25.68,   25.76,   25.94,   26.34,   26.97,   28.16,   28.98,   29.94,   31.27,   31.95,   32.48,   33.05,   33.62,   34.17,   34.69,   35.11,   35.51,   35.56,   35.66,   35.71,   35.71,   35.71]
2024-04-16 14:13:03.549173 INFO pred_bat:  EXPORT: [   7.85,    9.62,   11.89,   13.59,   14.87,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.31,   15.35,   15.46,   15.74,   16.63,   19.03,   21.35,   23.74,   25.53,   27.39,    28.8,   29.69,   30.01,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.02,   30.06,   30.16,    30.4,   31.56,   33.93,    36.1]
2024-04-16 14:13:03.550460 INFO pred_bat:  IBOOST: [   1.25,    2.94,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,    3.02,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.53,    1.78,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,    3.14,       0,       0,       0,       0,       0,       0,       0,       0,       0,    0.52,    1.74,    3.04,    3.04,    3.04]
2024-04-16 14:13:03.551703 INFO pred_bat:    CAR0: [   80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0,    80.0]
2024-04-16 14:13:03.552980 INFO pred_bat:    CAR1: [   94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,    94.0,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32,   99.32]
2024-04-16 14:13:03.554325 INFO pred_bat:  METRIC: [  38.84,   12.22,  -20.62,  -40.97,  -54.79,   -47.5,   -5.14,   24.64,   54.44,  108.74,  209.53,   227.3,  232.89,  236.64,  242.32,  246.31,  256.58,  267.65,  273.96,  273.85,  269.63,  256.21,   220.3,  185.81,  149.88,  128.58,  100.77,   81.76,   73.35,   79.37,   96.41,  128.99,   151.2,   177.4,  251.62,  256.74,  260.75,   265.0,  269.28,  273.43,  283.92,  295.35,  305.61,  305.53,  304.62,  288.71,  253.05,   220.5]
2024-04-16 14:13:03.783412 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results on total_energy 1.77
2024-04-16 14:13:03.791318 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results on total_energy 0.4
2024-04-16 14:13:03.798616 INFO pred_bat: Best charging limit socs [] export [] gives import battery 0 house 27.37 export 38.49 metric 184.69 metric10 844.91
2024-04-16 14:13:03.930263 INFO pred_bat: Export threshold used for optimisation was 13.6p
2024-04-16 14:13:03.970918 INFO pred_bat: High export rate windows [0: 04-16 14:00:00 - 04-16 14:30:00 @ 15.0, 1: 04-16 14:30:00 - 04-16 15:00:00 @ 15.0, 2: 04-16 15:00:00 - 04-16 15:30:00 @ 15.0, 3: 04-16 15:30:00 - 04-16 16:00:00 @ 15.0, 4: 04-16 16:00:00 - 04-16 16:30:00 @ 15.0, 5: 04-16 16:30:00 - 04-16 17:00:00 @ 15.0, 6: 04-16 17:00:00 - 04-16 17:30:00 @ 15.0, 7: 04-16 17:30:00 - 04-16 18:00:00 @ 15.0, 8: 04-16 18:00:00 - 04-16 18:30:00 @ 15.0, 9: 04-16 18:30:00 - 04-16 19:00:00 @ 15.0, 10: 04-16 19:00:00 - 04-16 19:30:00 @ 15.0, 11: 04-16 19:30:00 - 04-16 20:00:00 @ 15.0, 12: 04-16 20:00:00 - 04-16 20:30:00 @ 15.0, 13: 04-16 20:30:00 - 04-16 21:00:00 @ 15.0, 14: 04-16 21:00:00 - 04-16 21:30:00 @ 15.0, 15: 04-16 21:30:00 - 04-16 22:00:00 @ 15.0, 16: 04-16 22:00:00 - 04-16 22:30:00 @ 15.0, 17: 04-16 22:30:00 - 04-16 23:00:00 @ 15.0, 18: 04-16 23:00:00 - 04-16 23:30:00 @ 15.0, 19: 04-16 23:30:00 - 04-17 00:00:00 @ 15.0, 20: 04-17 00:00:00 - 04-17 00:30:00 @ 15.0, 21: 04-17 00:30:00 - 04-17 01:00:00 @ 15.0, 22: 04-17 01:00:00 - 04-17 01:30:00 @ 15.0, 23: 04-17 01:30:00 - 04-17 02:00:00 @ 15.0, 24: 04-17 02:00:00 - 04-17 02:30:00 @ 15.0, 25: 04-17 02:30:00 - 04-17 03:00:00 @ 15.0, 26: 04-17 03:00:00 - 04-17 03:30:00 @ 15.0, 27: 04-17 03:30:00 - 04-17 04:00:00 @ 15.0, 28: 04-17 04:00:00 - 04-17 04:30:00 @ 15.0, 29: 04-17 04:30:00 - 04-17 05:00:00 @ 15.0, 30: 04-17 05:00:00 - 04-17 05:30:00 @ 15.0, 31: 04-17 05:30:00 - 04-17 06:00:00 @ 15.0, 32: 04-17 06:00:00 - 04-17 06:30:00 @ 15.0, 33: 04-17 06:30:00 - 04-17 07:00:00 @ 15.0, 34: 04-17 07:00:00 - 04-17 07:30:00 @ 15.0, 35: 04-17 07:30:00 - 04-17 08:00:00 @ 15.0, 36: 04-17 08:00:00 - 04-17 08:30:00 @ 15.0, 37: 04-17 08:30:00 - 04-17 09:00:00 @ 15.0, 38: 04-17 09:00:00 - 04-17 09:30:00 @ 15.0, 39: 04-17 09:30:00 - 04-17 10:00:00 @ 15.0, 40: 04-17 10:00:00 - 04-17 10:30:00 @ 15.0, 41: 04-17 10:30:00 - 04-17 11:00:00 @ 15.0, 42: 04-17 11:00:00 - 04-17 11:30:00 @ 15.0, 43: 04-17 12:00:00 - 04-17 12:30:00 @ 15.0, 44: 04-17 12:30:00 - 04-17 13:00:00 @ 15.0, 45: 04-17 13:00:00 - 04-17 13:30:00 @ 15.0, 46: 04-17 13:30:00 - 04-17 14:00:00 @ 15.0, 47: 04-17 14:00:00 - 04-17 14:30:00 @ 15.0, 48: 04-17 14:30:00 - 04-17 15:00:00 @ 15.0, 49: 04-17 15:00:00 - 04-17 15:30:00 @ 15.0, 50: 04-17 15:30:00 - 04-17 16:00:00 @ 15.0, 51: 04-17 16:00:00 - 04-17 16:30:00 @ 15.0, 52: 04-17 16:30:00 - 04-17 17:00:00 @ 15.0, 53: 04-17 17:00:00 - 04-17 17:30:00 @ 15.0, 54: 04-17 17:30:00 - 04-17 18:00:00 @ 15.0, 55: 04-17 18:00:00 - 04-17 18:30:00 @ 15.0, 56: 04-17 18:30:00 - 04-17 19:00:00 @ 15.0, 57: 04-17 19:00:00 - 04-17 19:30:00 @ 15.0, 58: 04-17 19:30:00 - 04-17 20:00:00 @ 15.0, 59: 04-17 20:00:00 - 04-17 20:30:00 @ 15.0, 60: 04-17 20:30:00 - 04-17 21:00:00 @ 15.0, 61: 04-17 21:00:00 - 04-17 21:30:00 @ 15.0, 62: 04-17 21:30:00 - 04-17 22:00:00 @ 15.0, 63: 04-17 22:00:00 - 04-17 22:30:00 @ 15.0, 64: 04-17 22:30:00 - 04-17 23:00:00 @ 15.0, 65: 04-17 23:00:00 - 04-17 23:30:00 @ 15.0, 66: 04-17 23:30:00 - 04-18 00:00:00 @ 15.0, 67: 04-18 00:00:00 - 04-18 00:30:00 @ 15.0, 68: 04-18 00:30:00 - 04-18 01:00:00 @ 15.0, 69: 04-18 01:00:00 - 04-18 01:30:00 @ 15.0, 70: 04-18 01:30:00 - 04-18 02:00:00 @ 15.0, 71: 04-18 02:00:00 - 04-18 02:30:00 @ 15.0, 72: 04-18 02:30:00 - 04-18 03:00:00 @ 15.0, 73: 04-18 03:00:00 - 04-18 03:30:00 @ 15.0, 74: 04-18 03:30:00 - 04-18 04:00:00 @ 15.0, 75: 04-18 04:00:00 - 04-18 04:30:00 @ 15.0, 76: 04-18 04:30:00 - 04-18 05:00:00 @ 15.0, 77: 04-18 05:00:00 - 04-18 05:30:00 @ 15.0, 78: 04-18 05:30:00 - 04-18 06:00:00 @ 15.0, 79: 04-18 06:00:00 - 04-18 06:30:00 @ 15.0, 80: 04-18 06:30:00 - 04-18 07:00:00 @ 15.0, 81: 04-18 07:00:00 - 04-18 07:30:00 @ 15.0, 82: 04-18 07:30:00 - 04-18 08:00:00 @ 15.0, 83: 04-18 08:00:00 - 04-18 08:30:00 @ 15.0, 84: 04-18 08:30:00 - 04-18 09:00:00 @ 15.0, 85: 04-18 09:00:00 - 04-18 09:30:00 @ 15.0, 86: 04-18 09:30:00 - 04-18 10:00:00 @ 15.0, 87: 04-18 10:00:00 - 04-18 10:30:00 @ 15.0, 88: 04-18 10:30:00 - 04-18 11:00:00 @ 15.0, 89: 04-18 11:00:00 - 04-18 11:30:00 @ 15.0, 90: 04-18 11:30:00 - 04-18 12:00:00 @ 15.0, 91: 04-18 12:00:00 - 04-18 12:30:00 @ 15.0, 92: 04-18 12:30:00 - 04-18 13:00:00 @ 15.0, 93: 04-18 13:00:00 - 04-18 13:30:00 @ 15.0, 94: 04-18 13:30:00 - 04-18 14:00:00 @ 15.0, 95: 04-18 14:00:00 - 04-18 14:30:00 @ 15.0]
2024-04-16 14:13:03.991952 INFO pred_bat: Import threshold used for optimisation was 8.4p
2024-04-16 14:13:04.025023 INFO pred_bat: Low import rate windows [0: 04-16 23:30:00 - 04-17 05:30:00 @ 7.5, 1: 04-17 23:30:00 - 04-18 05:30:00 @ 7.5]
2024-04-16 14:13:04.036687 INFO pred_bat: Inverter 0: Type SE SolarEdge)
2024-04-16 14:13:04.037655 INFO pred_bat: WARN: Inverter 0: Using inverter type SE - not all features are available
2024-04-16 14:13:04.039831 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0%
2024-04-16 14:13:04.040691 INFO pred_bat: Inverter 0 with soc_max 9.7 kWh nominal_capacity 9.7 kWh battery rate raw 0.0 w charge rate 0.0 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 5.0 kW export limit 5.0 kW reserve 4.0 % current_reserve 4.0 %
2024-04-16 14:13:04.044202 INFO pred_bat: Inverter 0 scheduled_charge_enable off scheduled_discharge_enable off
2024-04-16 14:13:04.047335 INFO pred_bat: Inverter 0 SOC: 9.7 kW 100 % Current charge rate 5000.0 w Current discharge rate 5000.0 w Current power 0.0 w Current voltage 52.0
2024-04-16 14:13:04.050166 INFO pred_bat: Inverter 0 Wrote scheduled_charge_enable to False successfully and got off
2024-04-16 14:13:04.051289 INFO pred_bat: Inverter 0 scheduled_charge_enable set to False
2024-04-16 14:13:04.052477 INFO pred_bat: Inverter 0 scheduled charge enable is False
2024-04-16 14:13:04.053679 INFO pred_bat: Inverter 0 charge windows currently []
2024-04-16 14:13:04.054932 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 5.0 kW
2024-04-16 14:13:04.059003 INFO pred_bat: Inverter 0 Wrote scheduled_discharge_enable to False successfully and got off
2024-04-16 14:13:04.060277 INFO pred_bat: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-04-16 14:13:04.061575 INFO pred_bat: Inverter 0 scheduled discharge enable is False
2024-04-16 14:13:04.063161 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 0, 'end': 0, 'average': 0}, {'start': 1440, 'end': 1440, 'average': 0}]
2024-04-16 14:13:04.064167 INFO pred_bat: Note: Inverter does not support discharge freeze - disabled
2024-04-16 14:13:04.065321 INFO pred_bat: Note: Inverter does not support charge freeze - disabled
2024-04-16 14:13:04.066365 INFO pred_bat: Note: Inverter does not support reserve - disabling reserve functions
2024-04-16 14:13:04.067513 INFO pred_bat: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 9.7 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 5.0 export limit 5.0 kW loss charge 3 % loss discharge 4 % inverter loss 2 %
2024-04-16 14:13:04.093153 INFO pred_bat: Base charge    window [  ]
2024-04-16 14:13:04.095181 INFO pred_bat: Base discharge window [ 16-04 00:00:00 - 16-04 00:00:00 @ 0p 100.0%, 17-04 00:00:00 - 17-04 00:00:00 @ 0p 100.0% ]
2024-04-16 14:13:04.096524 INFO pred_bat: No change to charge window yet, waiting for schedule.
2024-04-16 14:13:04.098454 INFO pred_bat: Setting ECO mode as no discharge window planned
2024-04-16 14:13:04.101767 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-04-16 14:13:04.103716 INFO pred_bat: Adjust idle time, charge 23:59:00-23:59:00 discharge 00:00:00-00:00:00
2024-04-16 14:13:04.105383 INFO pred_bat: Adjust idle time computed idle is 14:10:00-23:59:00
2024-04-16 14:13:04.106896 INFO pred_bat: Car charging from battery is off, next slot for car 1 is 04-16 23:30:00 - 04-16 23:45:00
2024-04-16 14:13:04.108803 INFO pred_bat: Inverter 0 Call service template charge_stop_service = {'service': 'select.select_option', 'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Maximize Self Consumption'}
2024-04-16 14:13:04.110722 INFO pred_bat: Inverter 0 Call service select/select_option with data {'entity_id': 'select.solaredge_i1_storage_command_mode', 'option': 'Maximize Self Consumption'}
2024-04-16 14:13:04.114571 INFO pred_bat: Inverter 0 current discharge rate is 5000.0 and new target is 0
2024-04-16 14:13:14.139388 INFO pred_bat: Inverter 0 Wrote 0 to discharge_rate, successfully now 0
2024-04-16 14:13:14.141975 INFO pred_bat: Current SOC 100% is greater than Target SOC 0. Grid Charge disabled.
2024-04-16 14:13:14.151102 INFO pred_bat: Completed run status Idle
2024-04-16 14:13:14.290244 INFO pred_bat: Creating predbat dashboard at /conf/predbat_dashboard.yaml

@Noodleyman
Copy link

Oh, you will want to set those discharge rate automations I shared in an earlier update, looks like it set to 0 in your update and that isn't going to play nicely. Don't think it's the issue though. Seems to have called the service properly, did you update the SolarEdge Modbus Multi module? there was an update for newer HA versions I think this or last week. could always try and uninstall and re-install SolarEdge Modbus Multi. I've done that a few times without an issue.

@duckfullstop
Copy link

Definitely not a Modbus Multi issue (I've recreated it earlier in the day with no change), and I don't think it's to do with the discharge rate automation (you report an issue where setting to 0 sets it to 5000w, I'm not seeing that behaviour?) - my main concern is that it's refusing to even plan the charge (or discharge) for the low rate tonight (and indeed wants to just maintain SoC at 100%).

The only thing I can think is that some bad data got into the system yesterday (we had some network downtime) but I don't see why that would make it want to stick to 100% for days on end?

@gcoan
Copy link
Collaborator

gcoan commented Apr 16, 2024

Looking at the logfile it appears to just not be planning any charge or discharge of the battery, its running off grid all the time.

I'm not familiar with Solar Edge inverters, mine is a GivEnergy, but looking at your apps.yaml:

charge_rate:
 - number.solaredge_i1_storage_charge_limit
discharge_rate:
 - number.solaredge_i1_storage_discharge_limit

Is this right? charge rate and discharge rate are looking for something like 2600, the rate the battery will charge or discharge at in watts. Yours are called "limit" so wondered if these were the right entities? Check the value and unit of measurement for them

You have one too many entry in days_previous_weight, but don't think that'd cause the problem.

@duckfullstop
Copy link

Is this right? charge rate and discharge rate are looking for something like 2600, the rate the battery will charge or discharge at in watts. Yours are called "limit" so wondered if these were the right entities? Check the value and unit of measurement for them

Yup, just solaredge parlance for the same thing (limit of rate).

You have one too many entry in days_previous_weight, but don't think that'd cause the problem.

Well caught, fixed with no change sadly :( (I was tinkering with dropping a few days worth of history)

@duckfullstop
Copy link

duckfullstop commented Apr 16, 2024

Okay, I have no idea what changed, but I fully power cycled everything (inverter, battery, you name it) and now predbat is making appropriate plans again. 🤷

The flipside to this is that my battery is now stuck in fault with code 2Bx1002 🙃 seems it might be an issue with our setup


Update: Fixed by resetting the battery (the how-to is tucked way deep away inside Setapp, but you hold the P-I-O switch on the battery in the P position for between 4 to 10 seconds, no less, no more - that clears faults)

@Noodleyman
Copy link

Noodleyman commented Apr 16, 2024

I probably should have been more specific earlier, as that's what I was implying by an off/on/reset. I've had that same problem a few times in the past. super annoying if it happens and you're away! but, I've only had that happen in winter, never when it was dry (my inverter and battery are outside). glad it's resolved. :)

@duckfullstop
Copy link

Just to put a sock in that saga: the plan was resolving in such an unusual pattern because it was reading battery_rate_max directly from the (faulted) battery:

battery_rate_max:
    - sensor.solaredge_b1_max_charge_power

This is correct - the plan was correctly planning for the fact that the available charge power during B_STATUS_FAULT is 0 (as in, it can't charge or discharge), I just hadn't picked up on it until checking the battery status LED myself.

So I'm pretty sure my config is correct - maybe one to be merged into the documentation? (though @Noodleyman's workaround is interesting, I don't have to do that on my SE5000H...)

@gcoan
Copy link
Collaborator

gcoan commented Apr 16, 2024

Just to put a sock in that saga: the plan was resolving in such an unusual pattern because it was reading battery_rate_max directly from the (faulted) battery:

battery_rate_max:
- sensor.solaredge_b1_max_charge_power

Sounds like an automation might be required to alert if this happens again. Very bizarre.

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

No branches or pull requests

10 participants