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

Overnight charging not going close to 100% on SolarEdge from V8.5.3 onwards. #1632

Open
PieBeard opened this issue Nov 16, 2024 · 9 comments
Assignees

Comments

@PieBeard
Copy link

Describe the bug
Since updating beyond V8.5.3 my SolarEdge Battery hasn’t charged to 100% even though the plans state that it should reach this as that is the set target. Charging power is maintained at the battery’s capacity of 5kW. An interim work around at the moment has been to manually set forced charge through predbat for the two 30min slots before 05:30 (OIG) or if a dispatch is scheduled for later i.e. 06:00 then that hour before that. All other predbat settings have remained the same throughout.

Expected behaviour
Charging to 100% as happened on 8.5.3 and before to be automatic.

Predbat version

8.5.3 through to 8.6.0

Environment details

SolarEdge 6kW Inverter with SolarEdge 10kWh Battery and a Zappi charger

  • Standard HAOS installed and running Standalone PredBat Addon
  • Anything else?

Screenshots

IMG_5168
Shows the what happens after upgrading form 8.5.3

IMG_5178
Example of after upgrade above 8.5.3 in more detail

IMG_5195
Downgraded to find where it stopped working properly, this is plan for v8.5.3

IMG_5197
And this is the resulting charge, all ok.

IMG_5216
This is the plan for V8.5.11

IMG_5217
And this shows the result the next day.

Here is the plan for the next night
IMG_5220
IMG_5221
Plan for the Tuesday night

IMG_5222
And resultant charging of the battery, not following plan at all.

Log file
This is the log from close to end of charge plan, unfortunately it was copied into google docs on iPad so isn’t the best layout.
Predbat log.docx

@springfall2008
Copy link
Owner

2024-11-13 04:55:00.262090: --------------- PredBat - update at 2024-11-13 04:55:00+00:00 with clock skew 0 minutes, minutes now 295
2024-11-13 04:55:00.262416: Saved current settings to /addon_configs/6adb4f0d_predbat/predbat_config.json
2024-11-13 04:55:00.271502: Using cached GITHub data for https://api.github.com/repos/springfall2008/batpred/releases age 120.0 minutes
2024-11-13 04:55:00.271560: Predbat /config/predbat.py version v8.5.11 currently running, latest version is v8.6.0 latest beta v8.6.0
2024-11-13 04:55:00.271587: Autoupdate: There is an update pending v8.6.0 Initial GivTCP v3.0 REST support, bug fixes - auto update is off
2024-11-13 04:55:00.288529: Configuration: forecast_hours 48 num_cars 1 debug enable is False calculate_plan_every 10
2024-11-13 04:55:00.288757: Cars 1 charging from battery False planned [True], charging_now [False] smart [False], max_price [0.0], plan_time ['05:30:00'], battery size [87.0], limit [87.0], rate [7.4], exclusive [False]
2024-11-13 04:55:00.288797: Predbat mode is set to Control charge & discharge
2024-11-13 04:55:04.392589: Found 11521 load_today datapoints going back 8 days
2024-11-13 04:55:07.162404: Current data so far today: load 44.13 kWh import 45.7 kWh export 0.01 kWh pv 0.0 kWh
2024-11-13 04:55:07.167462: Fetching carbon intensity data from sensor.carbon_intensity_uk
2024-11-13 04:55:07.235429: Warn: octopus_charge_limit is set to a bad value unavailable in apps.yaml, must be a number
2024-11-13 04:55:07.236428: Car 0 using Octopus Intelligent, charging planned - charging limit 87.0, ready time unavailable - battery size 87.0
2024-11-13 04:55:07.236468: Cars: SoC kWh: [0.0] Charge limit [87.0] plan time ['unavailable'] battery size [87.0]
2024-11-13 04:55:07.243130: Standing charge is set to 62.118629999999996 p
2024-11-13 04:55:07.250409: Octopus Intelligent slot at 11-11 00:00:00-11-11 00:30:00 assumed price 7.0 amount 0.9 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250486: Octopus Intelligent slot at 11-11 02:00:00-11-11 02:30:00 assumed price 7.0 amount 3.43 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250552: Octopus Intelligent slot at 11-11 01:30:00-11-11 02:00:00 assumed price 7.0 amount 3.18 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250628: Octopus Intelligent slot at 11-11 01:00:00-11-11 01:30:00 assumed price 7.0 amount 0.11999999999999998 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250721: Octopus Intelligent slot at 11-11 03:00:00-11-11 03:30:00 assumed price 7.0 amount 3.54 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250784: Octopus Intelligent slot at 11-11 02:30:00-11-11 03:00:00 assumed price 7.0 amount 3.6 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250844: Octopus Intelligent slot at 11-11 04:00:00-11-11 04:30:00 assumed price 7.0 amount 3.5 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250903: Octopus Intelligent slot at 11-11 03:30:00-11-11 04:00:00 assumed price 7.0 amount 3.44 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.250963: Octopus Intelligent slot at 11-11 05:00:00-11-11 05:30:00 assumed price 7.0 amount 3.35 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251022: Octopus Intelligent slot at 11-11 04:30:00-11-11 05:00:00 assumed price 7.0 amount 3.46 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251082: Octopus Intelligent slot at 11-12 23:00:00-11-12 23:30:00 assumed price 7.0 amount 3.46 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251143: Octopus Intelligent slot at 11-13 00:00:00-11-13 00:30:00 assumed price 7.0 amount 3.42 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251206: Octopus Intelligent slot at 11-12 23:30:00-11-13 00:00:00 assumed price 7.0 amount 0.1 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251267: Octopus Intelligent slot at 11-13 01:00:00-11-13 01:30:00 assumed price 7.0 amount 3.49 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251326: Octopus Intelligent slot at 11-13 00:30:00-11-13 01:00:00 assumed price 7.0 amount 3.12 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251386: Octopus Intelligent slot at 11-13 02:00:00-11-13 02:30:00 assumed price 7.0 amount 3.5 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251446: Octopus Intelligent slot at 11-13 01:30:00-11-13 02:00:00 assumed price 7.0 amount 3.54 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251503: Octopus Intelligent slot at 11-13 03:00:00-11-13 03:30:00 assumed price 7.0 amount 3.54 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251562: Octopus Intelligent slot at 11-13 02:30:00-11-13 03:00:00 assumed price 7.0 amount 3.51 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251621: Octopus Intelligent slot at 11-13 04:00:00-11-13 04:30:00 assumed price 7.0 amount 3.3399999999999994 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251712: Octopus Intelligent slot at 11-13 03:30:00-11-13 04:00:00 assumed price 7.0 amount 3.55 kWh location AT_HOME source None octopus_slot_low_rate True
2024-11-13 04:55:07.251783: Octopus Intelligent slot at 11-13 03:00:00-11-13 05:00:00 assumed price 7.0 amount 14.06 kWh location None source smart-charge octopus_slot_low_rate True
2024-11-13 04:55:07.251843: Octopus Intelligent slot at 11-13 05:00:00-11-13 05:30:00 assumed price 7.0 amount 2.61 kWh location None source smart-charge octopus_slot_low_rate True
2024-11-13 04:55:07.251902: Octopus Intelligent slot at 11-13 05:30:00-11-13 06:00:00 assumed price 7.0 amount 0.87 kWh location None source smart-charge octopus_slot_low_rate True
2024-11-13 04:55:07.252125: Adding rate rates_import_override: {'date': '2024-10-20', 'start': '13:00:00', 'end': '14:00:00', 'rate': 0, 'load_scaling': 1.0} => 11-13 13:00:00 to 11-13 14:00:00 @ 0.0 date 2024-10-20 00:00:00 increment False
2024-11-13 04:55:07.479400: Rate min forward looking: now 7.0 at end of forecast 7.0
2024-11-13 04:55:07.479516: Import rates min 7.0 max 25.25 average 20.5
2024-11-13 04:55:07.485944: Export rates min 15.0 max 15.0 average 15.0
2024-11-13 04:55:07.485972: Rate thresholds (for charge/discharge) are import 24.75p (0.0) export 15.0p (0.0)
2024-11-13 04:55:07.487973: High export rate found rates in range 15.0 to 15.0
2024-11-13 04:55:07.489294: Low Import rate found rates in range 7.0 to 7.0
2024-11-13 04:55:07.489309: Car 0 on Octopus Intelligent, active plan for charge
2024-11-13 04:55:07.489327: Car 0 charging plan is: [{'start': 176, 'end': 300, 'kwh': 14.06, 'average': 7.0, 'cost': 98.42}, {'start': 302, 'end': 325, 'kwh': 2.61, 'average': 7.0, 'cost': 18.27}, {'start': 330, 'end': 360, 'kwh': 0.87, 'average': 7.0, 'cost': 6.09}]
2024-11-13 04:55:07.509088: Battery level now 1.15 -1hr 0.45 midnight 1.2 battery value change hour 5.15 day -0.37 rate_forward 7.36
2024-11-13 04:55:07.509301: Hour energy 9.98 import 9.98 export 0.0 car 7.02 load 8.23 cost 69.85 import 69.85 export 0.0 car 49.14 carbon 0.43 kG
2024-11-13 04:55:07.583193: Today's energy import 45.7 kWh export 0.01 kWh total 45.69 kWh cost 381.85 p import 319.93 p export -0.19 p carbon 2.2 kg
2024-11-13 04:55:07.583243: Obtaining solar forecast from Solcast API
2024-11-13 04:55:07.584101: Return cached data for https://api.solcast.com.au/rooftop_sites age 150.0 minutes
2024-11-13 04:55:07.584127: Fetch data for resource id 113f-3e67-86b5-c2b7
2024-11-13 04:55:07.584604: Return cached data for https://api.solcast.com.au/rooftop_sites/113f-3e67-86b5-c2b7/forecasts age 45.0 minutes
2024-11-13 04:55:07.592120: Fetch data for resource id 4228-2651-1c20-eccb
2024-11-13 04:55:07.592666: Return cached data for https://api.solcast.com.au/rooftop_sites/4228-2651-1c20-eccb/forecasts age 45.0 minutes
2024-11-13 04:55:07.612170: Solcast returned 345 data points
2024-11-13 04:55:07.617950: PV Forecast for today is 2.5 (1.15 10% 7.32 90%) kWh and left today is 2.5 (1.15 10% 7.32 90%) kWh
2024-11-13 04:55:07.635481: PV Forecast for day tomorrow is 2.69 (0.61 10% 15.36 90%) kWh
2024-11-13 04:55:07.644678: PV Forecast for day d2 is 2.65 (0.88 10% 10.84 90%) kWh
2024-11-13 04:55:07.653240: PV Forecast for day d3 is 2.85 (0.5 10% 18.9 90%) kWh
2024-11-13 04:55:07.662111: PV Forecast for day d4 is 3.02 (0.34 10% 19.04 90%) kWh
2024-11-13 04:55:07.670906: PV Forecast for day d5 is 4.83 (0.56 10% 18.57 90%) kWh
2024-11-13 04:55:07.679983: PV Forecast for day d6 is 7.07 (0.65 10% 18.87 90%) kWh
2024-11-13 04:55:07.718298: Historical data totals for days [1, 2, 3, 7] are [39.94, 42.66, 35.13, 22.15] - min 22.15
2024-11-13 04:55:07.718335: Model filter enabled - Discarding day 7 as it is the lowest of the 4 datapoints
2024-11-13 04:55:07.718555: Historical days now [1, 2, 3] weight [0.5, 1, 1]
2024-11-13 04:55:07.736251: Today's load divergence 99.8 % in-day adjustment 99.81 % damping 0.95x
2024-11-13 04:55:07.736274: Today's predicted so far 4.23 kWh with 9.69 kWh car/iBoost excluded and 6.78 kWh import ignored and 0 forecast extra.
2024-11-13 04:55:07.736285: Today's actual load so far 4.16 kWh with 33.35 kWh Car/iBoost excluded and 6.31 kWh import ignored.
2024-11-13 04:55:07.778163: Inverter 0: Type SE SolarEdge
2024-11-13 04:55:07.778202: Warn: Inverter 0: Using inverter type SE - not all features are available
2024-11-13 04:55:07.778291: Reserve min: 4.0% Battery_min:4.0%
2024-11-13 04:55:07.778324: 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 6.0 kW export limit 6.0 kW reserve 4.0 % current_reserve 4.0 %
2024-11-13 04:55:07.778403: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-11-13 04:55:07.778466: Inverter 0 SOC: 1.93kW 20% Current charge rate 5000W Current discharge rate 5000W Current power 4998.0W Current voltage 52.0V
2024-11-13 04:55:07.778544: Inverter 0 No write needed for scheduled_charge_enable as True == True
2024-11-13 04:55:07.778555: Inverter 0 scheduled_charge_enable set to True
2024-11-13 04:55:07.778585: Inverter 0 scheduled charge enable is True
2024-11-13 04:55:07.778612: Inverter 0 charge windows currently [{'start': 0, 'end': 360, 'average': 0}, {'start': 1440, 'end': 1800, 'average': 0}, {'start': 2880, 'end': 3240, 'average': 0}]
2024-11-13 04:55:07.778654: Inverter 0 Charge settings: 11-13 00:00:00-11-13 06:00:00 limit 83.0 power 5.0 kW
2024-11-13 04:55:07.778715: Inverter 0 No write needed for scheduled_discharge_enable as False == False
2024-11-13 04:55:07.778725: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-11-13 04:55:07.778736: Inverter 0 scheduled discharge enable is False
2024-11-13 04:55:07.778792: Inverter 0 idle time is 11-13 06:00:00-11-13 23:59:00
2024-11-13 04:55:07.778802: Inverter 0 discharge windows currently []
2024-11-13 04:55:07.778811: Note: Inverter does not support discharge freeze - disabled
2024-11-13 04:55:07.778820: Note: Inverter does not support charge freeze - disabled
2024-11-13 04:55:07.778826: Note: Inverter does not support reserve - disabling reserve functions
2024-11-13 04:55:07.778856: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 1.93 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 6.0 export limit 6.0 kW loss charge 3 % loss discharge 3 % inverter loss 2 %
2024-11-13 04:55:07.816308: Base charge	window [ 13-11 00:00:00 - 13-11 06:00:00 @ 0p 83%, 14-11 00:00:00 - 14-11 06:00:00 @ 0p 83%, 15-11 00:00:00 - 15-11 06:00:00 @ 0p 83% ]
2024-11-13 04:55:07.816345: Base discharge window [  ]
2024-11-13 04:55:07.816368: Plan was last updated on 2024-11-13 04:45:00+00:00 and is now 10.0 minutes old
2024-11-13 04:55:07.816481: Best charge	window [ 13-11 04:30:00 - 13-11 06:00:00 @ 7.0p 83%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 28%, 14-11 00:00:00 - 14-11 01:20:00 @ 7.0p 100%, 14-11 01:30:00 - 14-11 01:50:00 @ 7.0p 100%, 14-11 02:00:00 - 14-11 02:10:00 @ 7.0p 100%, 14-11 02:30:00 - 14-11 02:50:00 @ 7.0p 100%, 14-11 03:00:00 - 14-11 03:10:00 @ 7.0p 100%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 100%, 14-11 23:30:00 - 15-11 05:00:00 @ 7.0p 100% ]
2024-11-13 04:55:07.816546: Best discharge window [ 14-11 01:20:00 - 14-11 01:30:00 @ 15.0p 77%, 14-11 01:50:00 - 14-11 02:00:00 @ 15.0p 82%, 14-11 02:10:00 - 14-11 02:30:00 @ 15.0p 73%, 14-11 02:50:00 - 14-11 03:00:00 @ 15.0p 81%, 14-11 03:10:00 - 14-11 05:00:00 @ 15.0p 4% ]
2024-11-13 04:55:07.817292: PV Forecast 5.2 kWh and 10% Forecast 1.8 kWh pv cloud factor 0.3
2024-11-13 04:55:07.823926: Load divergence over 8.0 hours mean 1449.23 W, min 609.6 W, max 3600.0 W, std dev 645.61 W, divergence 22.27%
2024-11-13 04:55:07.865956: Creating pool of 4 processes to match your CPU count
2024-11-13 04:55:07.902888: predict base end_record 11-14 05:10:00 final soc 8.05 kWh metric 1071.22 p metric_keep 0 min_soc 0.39 @ 11-13 09:45:00 kWh load 87.21 pv 2.5
2024-11-13 04:55:07.903373:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00,	05:30]
2024-11-13 04:55:07.903746: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.46,  	5.8,     4.89, 	4.13, 	3.12,     1.84, 	1.15, 	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.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.39, 	0.39,     0.39, 	2.81, 	5.24,     7.67, 	8.05, 	8.05,     8.05, 	8.05, 	8.05,     8.05, 	8.05, 	8.05]
2024-11-13 04:55:07.903999: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g>be-,	g~be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<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<bf+,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-]
2024-11-13 04:55:07.904319:	LOAD: [   44.13,	44.84,	47.87,    49.29,	49.98,	50.61,    51.47,	52.19,	53.18,    54.49,	55.29,	56.63,    57.27,	57.73,	58.16,     58.5,	59.08,	59.46,    59.72,	60.84,	61.36,    61.86,	63.11,	63.49,    63.97,	64.46,	65.41,    66.31,	67.02,	67.91,    68.87,	70.13,	70.94,    71.65,	72.19,	72.66,    73.14,	73.61,	74.25,    75.43,	77.35,	79.09,    80.52,	82.02,	82.97,    84.08,	85.11,	85.81,    86.32,	86.99,	87.92]
2024-11-13 04:55:07.904627:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.04,     0.12, 	0.26, 	0.46,      0.7, 	0.95, 	1.21,     1.48, 	1.74, 	1.96,     2.15, 	2.29, 	2.39,     2.45, 	2.49,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5, 	 2.5,      2.5,  	2.5,  	2.5]
2024-11-13 04:55:07.904974:  IMPORT: [	45.7,	46.85,    52.42,	56.39,	56.39,    56.39,	56.39,	56.39,    56.39,	56.39,	56.39,    56.82,	57.23,	57.45,    57.61,	57.69,	58.02,    58.18,	58.26,	59.24,    59.67, 	60.1,	61.31,    61.68,	62.16,	62.66,     63.6, 	64.5,	65.21,     66.1,	67.06,	68.32,    69.14,	69.85,	70.38,    70.85,	71.34, 	71.8,    72.44,	73.62, 	78.1,    82.38,	86.36,	88.27,    89.22,	90.33,	91.37,    92.06,	92.57,	93.24,    94.17]
2024-11-13 04:55:07.905279:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01]
2024-11-13 04:55:07.905595:  CARBON: [ 2240.64,  2260.66,   2483.0,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2614.56,  2625.31,  2629.93,  2634.18,  2636.54,   2647.3,   2650.3,  2655.46,  2685.86,  2696.81,  2710.17,  2734.78,  2743.16,  2757.49,  2770.55,  2790.25,  2804.16,  2814.87,  2829.63,  2845.54,  2866.54,  2879.94,  2891.62,  2900.49,  2908.03,  2916.18,  2924.25,  2935.93,  2968.83,  3056.38,  3144.45,  3227.86,  3259.57,  3278.26,  3302.05,  3319.86,  3343.27,  3359.23,  3391.14,  3434.37]
2024-11-13 04:55:07.905925:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92]
2024-11-13 04:55:07.906236:  METRIC: [  381.85,   389.85,    428.9,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   467.46,   477.77,   483.38,   487.43,   489.53,   497.89,   501.94,   503.84,   528.71,   539.41,   550.25,   580.99,   590.33,   602.45,   614.87,   638.71,   661.46,   679.42,    701.8,   726.05,   757.92,    778.5,   796.42,	809.9,   821.81,   834.06,   845.85,   861.97,   870.21,   963.68,   993.67,  1021.52,   1034.9,  1041.55,  1049.32,  1056.56,  1061.41,  1065.02,   1069.7,  1076.18]
2024-11-13 04:55:08.109361: Battery has 4.83 hours left - now at 1.93
2024-11-13 04:55:08.165633: predict base10 end_record 11-14 05:10:00 final soc 8.05 kWh metric 1178.15 p metric_keep 0 min_soc 0.39 @ 11-13 09:25:00 kWh load 91.21 pv 1.16
2024-11-13 04:55:08.166093:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00,	05:30]
2024-11-13 04:55:08.166458: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.38, 	5.68,     4.67, 	3.86, 	2.67,     1.21, 	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.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.39, 	0.39, 	0.39,     0.39, 	2.81, 	5.24,     7.67, 	8.05, 	8.05,     8.05, 	8.05, 	8.05,     8.05, 	8.05, 	8.05]
2024-11-13 04:55:08.166747: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g~be-,	g>be-,	g<be-,    g>be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<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<bf+,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-]
2024-11-13 04:55:08.167108:	LOAD: [   44.13,	44.92,	48.01,     49.5,	50.27,	50.93,     51.9,	52.67,	53.81,    55.25,	56.12,	57.59,    58.27,	58.76,	59.22,     59.6,	60.27,	60.65,    60.95,	62.23,	62.74,    63.32,	64.71,	65.08,    65.64,	66.16,	67.25,    68.24,	68.98, 	70.0,    71.06,	72.45,	73.33,    74.08,	74.67,	75.18,    75.72,	76.23,	76.97,     78.3,	80.51,	82.35,    83.91,	85.55,	86.55,    87.81, 	88.9,	89.66,     90.2,	90.96, 	92.0]
2024-11-13 04:55:08.167455:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.02,     0.07, 	0.14, 	0.23,     0.34, 	0.45, 	0.57,     0.69, 	0.81, 	0.91,     0.99, 	1.06, 	1.11,     1.14, 	1.15, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16]
2024-11-13 04:55:08.167809:  IMPORT: [	45.7,	46.92,    52.56,	56.61,	56.61,    56.61,	56.61,	56.61,    56.61,	56.61,	56.63,    58.01,	58.58,	58.96,    59.31,	59.56,	60.12,     60.4,	60.62,	61.83,     62.3,	62.86,	64.23,     64.6,	65.15,	65.67,    66.76,	67.75,	68.49,    69.52,	70.57,	71.96,    72.84,	73.59,	74.18,    74.69,	75.23,	75.74,    76.48,	77.82,	82.57,    86.96,	91.08,	93.13,    94.12,	95.39,	96.47,    97.23,	97.78,	98.53,    99.57]
2024-11-13 04:55:08.168160:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01]
2024-11-13 04:55:08.168534:  CARBON: [ 2243.51,  2261.57,  2486.97,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2608.14,  2609.76,  2648.84,  2665.06,  2674.49,  2683.63,  2690.81,  2707.05,   2714.4,  2723.38,  2759.29,  2773.23,  2788.85,  2816.05,  2825.44,  2841.43,   2855.8,  2878.07,  2893.37,  2905.13,  2921.37,  2938.78,  2961.88,  2976.62,  2989.47,  2999.24,  3007.54,  3016.48,  3025.36,  3038.07,  3073.45,  3164.41,  3255.93,   3342.3,  3377.15,  3397.88,  3424.05,  3442.84,  3468.59,  3485.73,  3520.82,   3568.3]
2024-11-13 04:55:08.168887:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92]
2024-11-13 04:55:08.169248:  METRIC: [  381.85,   390.35,   429.82,   458.18,   458.18,   458.18,   458.18,   458.18,   458.18,   458.34,   458.64,    493.5,   508.01,   517.65,   526.39,   532.83,   546.94,   554.01,   559.51,   590.12,   601.99,   615.97,   650.63,    659.9,   673.88,   686.95,    714.5,   739.57,   758.29,   784.12,   810.86,   845.86,   868.02,   887.08,   901.98,   914.81,   928.42,   941.39,   959.91,   969.28,   1064.7,  1095.43,  1124.23,  1138.58,  1145.55,   1154.4,  1161.99,  1167.29,  1171.13,  1176.44,  1183.68]
2024-11-13 04:55:08.247750: predict best10 end_record 11-14 05:10:00 final soc 1.2 kWh metric 1072.46 p metric_keep 0 min_soc 0.39 @ 11-13 09:25:00 kWh load 91.21 pv 1.16
2024-11-13 04:55:08.248243:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00,	05:30]
2024-11-13 04:55:08.248634: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.38, 	5.68,     4.67, 	3.86, 	2.67,     1.21, 	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.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.39, 	0.39, 	0.39,     2.69, 	5.12, 	7.54,      8.3, 	8.84, 	7.92,     8.68, 	7.77, 	 5.2,     2.62, 	0.39, 	2.81]
2024-11-13 04:55:08.248955: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g~be-,	g>be-,	g<be-,    g>be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<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<bf+,    g<bf+,	g<bf+,	g<bf+,    g<bf+,	g>bf-,	g>bf-,    g>bf-,	g<bf+,	g~be-]
2024-11-13 04:55:08.249343:	LOAD: [   44.13,	44.92,	48.01,     49.5,	50.27,	50.93,     51.9,	52.67,	53.81,    55.25,	56.12,	57.59,    58.27,	58.76,	59.22,     59.6,	60.27,	60.65,    60.95,	62.23,	62.74,    63.32,	64.71,	65.08,    65.64,	66.16,	67.25,    68.24,	68.98, 	70.0,    71.06,	72.45,	73.33,    74.08,	74.67,	75.18,    75.72,	76.23,	76.97,     78.3,	80.51,	82.35,    83.91,	85.55,	86.55,    87.81, 	88.9,	89.66,     90.2,	90.96, 	92.0]
2024-11-13 04:55:08.249743:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.02,     0.07, 	0.14, 	0.23,     0.34, 	0.45, 	0.57,     0.69, 	0.81, 	0.91,     0.99, 	1.06, 	1.11,     1.14, 	1.15, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16]
2024-11-13 04:55:08.250132:  IMPORT: [	45.7,	46.92,    52.56,	56.61,	56.61,    56.61,	56.61,	56.61,    56.61,	56.61,	56.63,    58.01,	58.58,	58.96,    59.31,	59.56,	60.12,     60.4,	60.62,	61.83,     62.3,	62.86,	64.23,     64.6,	65.15,	65.67,    66.76,	67.75,	68.49,    69.52,	70.57,	71.96,    72.84,	73.59,	74.18,    74.69,	75.23,	75.74,    76.48,	80.24,	84.99,    89.38,	92.16,	94.77,    95.98,	98.48,	99.79,    99.79,	99.79,	99.93,   103.51]
2024-11-13 04:55:08.250516:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.34, 	0.66,     1.65, 	2.01, 	3.02,     4.71, 	6.61, 	8.11,     8.11]
2024-11-13 04:55:08.250913:  CARBON: [ 2243.51,  2261.57,  2486.97,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2608.14,  2609.76,  2648.84,  2665.06,  2674.49,  2683.63,  2690.81,  2707.05,   2714.4,  2723.38,  2759.29,  2773.23,  2788.85,  2816.05,  2825.44,  2841.43,   2855.8,  2878.07,  2893.37,  2905.13,  2921.37,  2938.78,  2961.88,  2976.62,  2989.47,  2999.24,  3007.54,  3016.48,  3025.36,  3046.14,  3119.45,  3210.41,  3301.93,  3353.97,  3402.55,  3405.39,  3448.35,  3430.71,  3375.61,   3306.8,  3283.43,  3425.77]
2024-11-13 04:55:08.251300:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92]
2024-11-13 04:55:08.251696:  METRIC: [  381.85,   390.35,   429.82,   458.18,   458.18,   458.18,   458.18,   458.18,   458.18,   458.34,   458.64,    493.5,   508.01,   517.65,   526.39,   532.83,   546.94,   554.01,   559.51,   590.12,   601.99,   615.97,   650.63,    659.9,   673.88,   686.95,    714.5,   739.57,   758.29,   784.12,   810.86,   845.86,   868.02,   887.08,   901.98,   914.81,   928.42,   941.39,   959.91,   986.23,  1081.65,  1112.38,  1126.88,  1140.43,  1133.93,  1146.16,  1140.15,  1114.77,  1086.24,  1064.79,  1089.89]
2024-11-13 04:55:08.332876: predict best end_record 11-14 05:10:00 final soc 1.2 kWh metric 963.57 p metric_keep 0 min_soc 0.39 @ 11-13 09:45:00 kWh load 87.21 pv 2.5
2024-11-13 04:55:08.333298:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00,	05:30]
2024-11-13 04:55:08.333632: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.46,  	5.8,     4.89, 	4.13, 	3.12,     1.84, 	1.15, 	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.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.39, 	0.39,     2.69, 	5.12, 	7.54,      8.3, 	8.84, 	7.92,     8.68, 	7.77, 	 5.2,     2.62, 	0.39, 	2.81]
2024-11-13 04:55:08.333989: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g>be-,	g~be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<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<bf+,    g<bf+,	g<bf+,	g<bf+,    g<bf+,	g>bf-,	g>bf-,    g>bf-,	g<bf+,	g~be-]
2024-11-13 04:55:08.334317:	LOAD: [   44.13,	44.84,	47.87,    49.29,	49.98,	50.61,    51.47,	52.19,	53.18,    54.49,	55.29,	56.63,    57.27,	57.73,	58.16,     58.5,	59.08,	59.46,    59.72,	60.84,	61.36,    61.86,	63.11,	63.49,    63.97,	64.46,	65.41,    66.31,	67.02,	67.91,    68.87,	70.13,	70.94,    71.65,	72.19,	72.66,    73.14,	73.61,	74.25,    75.43,	77.35,	79.09,    80.52,	82.02,	82.97,    84.08,	85.11,	85.81,    86.32,	86.99,	87.92]
2024-11-13 04:55:08.334635:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.04,     0.12, 	0.26, 	0.46,      0.7, 	0.95, 	1.21,     1.48, 	1.74, 	1.96,     2.15, 	2.29, 	2.39,     2.45, 	2.49,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5, 	 2.5,      2.5,  	2.5,  	2.5]
2024-11-13 04:55:08.335024:  IMPORT: [	45.7,	46.85,    52.42,	56.39,	56.39,    56.39,	56.39,	56.39,    56.39,	56.39,	56.39,    56.82,	57.23,	57.45,    57.61,	57.69,	58.02,    58.18,	58.26,	59.24,    59.67, 	60.1,	61.31,    61.68,	62.16,	62.66,     63.6, 	64.5,	65.21,     66.1,	67.06,	68.32,    69.14,	69.85,	70.38,    70.85,	71.34, 	71.8,    72.44,	76.04,	80.52,     84.8,	87.45,	89.92,    91.13,	93.52,	94.82,    94.82,	94.82,	94.88,    98.36]
2024-11-13 04:55:08.335361:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.35, 	0.66,     1.71, 	2.11, 	3.15,      4.9, 	6.84,     8.35, 	8.35]
2024-11-13 04:55:08.335735:  CARBON: [ 2240.64,  2260.66,   2483.0,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2614.56,  2625.31,  2629.93,  2634.18,  2636.54,   2647.3,   2650.3,  2655.46,  2685.86,  2696.81,  2710.17,  2734.78,  2743.16,  2757.49,  2770.55,  2790.25,  2804.16,  2814.87,  2829.63,  2845.54,  2866.54,  2879.94,  2891.62,  2900.49,  2908.03,  2916.18,  2924.25,  2944.01,  3014.83,  3102.38,  3190.45,  3239.53,  3284.97,  3285.77,  3326.35,  3307.73,  3250.29,   3180.3,  3153.75,  3288.97]
2024-11-13 04:55:08.336068:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92]
2024-11-13 04:55:08.336416:  METRIC: [  381.85,   389.85,    428.9,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   467.46,   477.77,   483.38,   487.43,   489.53,   497.89,   501.94,   503.84,   528.71,   539.41,   550.25,   580.99,   590.33,   602.45,   614.87,   638.71,   661.46,   679.42,    701.8,   726.05,   757.92,    778.5,   796.42,	809.9,   821.81,   834.06,   845.85,   861.97,   887.16,   980.63,  1010.61,  1024.09,  1036.73,  1029.49,  1040.27,   1033.7,  1007.36,   978.33,   956.09,   980.44]
2024-11-13 04:55:08.337163:  STATE:  [	Chrg,     Chrg, 	Chrg,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     Chrg, 	Chrg, 	Chrg, Chrg/Dis, Chrg/Dis, Chrg/Dis, Chrg/Dis, Chrg/Dis,  	Dis, 	 Dis,      Dis, 	Chrg]
2024-11-13 04:55:08.569098: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-11-13 04:55:08.577505: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-11-13 04:55:08.597287: Best charging limit socs [8.05, 2.7, 9.7, 9.7, 9.7, 9.7, 9.7, 9.7, 9.7] export [77, 82, 73, 81, 4] gives import battery 58.76 house 38.63 export 8.35 metric 963.57 metric10 1072.46
2024-11-13 04:55:08.686406: Web interface history update
2024-11-13 04:55:08.886165: Export threshold used for optimisation was 14.3p
2024-11-13 04:55:08.957765: High export rate windows [0: 11-13 04:30:00 - 11-13 05:00:00 @ 15.0, 1: 11-13 05:00:00 - 11-13 05:30:00 @ 15.0, 2: 11-13 05:30:00 - 11-13 06:00:00 @ 15.0, 3: 11-13 06:00:00 - 11-13 06:30:00 @ 15.0, 4: 11-13 06:30:00 - 11-13 07:00:00 @ 15.0, 5: 11-13 07:00:00 - 11-13 07:30:00 @ 15.0, 6: 11-13 07:30:00 - 11-13 08:00:00 @ 15.0, 7: 11-13 08:00:00 - 11-13 08:30:00 @ 15.0, 8: 11-13 08:30:00 - 11-13 09:00:00 @ 15.0, 9: 11-13 09:00:00 - 11-13 09:30:00 @ 15.0, 10: 11-13 09:30:00 - 11-13 10:00:00 @ 15.0, 11: 11-13 10:00:00 - 11-13 10:30:00 @ 15.0, 12: 11-13 10:30:00 - 11-13 11:00:00 @ 15.0, 13: 11-13 11:00:00 - 11-13 11:30:00 @ 15.0, 14: 11-13 11:30:00 - 11-13 12:00:00 @ 15.0, 15: 11-13 12:00:00 - 11-13 12:30:00 @ 15.0, 16: 11-13 12:30:00 - 11-13 13:00:00 @ 15.0, 17: 11-13 13:00:00 - 11-13 13:30:00 @ 15.0, 18: 11-13 13:30:00 - 11-13 14:00:00 @ 15.0, 19: 11-13 14:00:00 - 11-13 14:30:00 @ 15.0, 20: 11-13 14:30:00 - 11-13 15:00:00 @ 15.0, 21: 11-13 15:00:00 - 11-13 15:30:00 @ 15.0, 22: 11-13 15:30:00 - 11-13 16:00:00 @ 15.0, 23: 11-13 16:00:00 - 11-13 16:30:00 @ 15.0, 24: 11-13 16:30:00 - 11-13 17:00:00 @ 15.0, 25: 11-13 17:00:00 - 11-13 17:30:00 @ 15.0, 26: 11-13 17:30:00 - 11-13 18:00:00 @ 15.0, 27: 11-13 18:00:00 - 11-13 18:30:00 @ 15.0, 28: 11-13 18:30:00 - 11-13 19:00:00 @ 15.0, 29: 11-13 19:00:00 - 11-13 19:30:00 @ 15.0, 30: 11-13 19:30:00 - 11-13 20:00:00 @ 15.0, 31: 11-13 20:00:00 - 11-13 20:30:00 @ 15.0, 32: 11-13 20:30:00 - 11-13 21:00:00 @ 15.0, 33: 11-13 21:00:00 - 11-13 21:30:00 @ 15.0, 34: 11-13 21:30:00 - 11-13 22:00:00 @ 15.0, 35: 11-13 22:00:00 - 11-13 22:30:00 @ 15.0, 36: 11-13 22:30:00 - 11-13 23:00:00 @ 15.0, 37: 11-13 23:00:00 - 11-13 23:30:00 @ 15.0, 38: 11-13 23:30:00 - 11-14 00:00:00 @ 15.0, 39: 11-14 00:00:00 - 11-14 00:30:00 @ 15.0, 40: 11-14 00:30:00 - 11-14 01:00:00 @ 15.0, 41: 11-14 01:00:00 - 11-14 01:30:00 @ 15.0, 42: 11-14 01:30:00 - 11-14 02:00:00 @ 15.0, 43: 11-14 02:00:00 - 11-14 02:30:00 @ 15.0, 44: 11-14 02:30:00 - 11-14 03:00:00 @ 15.0, 45: 11-14 03:00:00 - 11-14 03:30:00 @ 15.0, 46: 11-14 03:30:00 - 11-14 04:00:00 @ 15.0, 47: 11-14 04:00:00 - 11-14 04:30:00 @ 15.0, 48: 11-14 04:30:00 - 11-14 05:00:00 @ 15.0, 49: 11-14 05:00:00 - 11-14 05:30:00 @ 15.0, 50: 11-14 05:30:00 - 11-14 06:00:00 @ 15.0, 51: 11-14 06:00:00 - 11-14 06:30:00 @ 15.0, 52: 11-14 06:30:00 - 11-14 07:00:00 @ 15.0, 53: 11-14 07:00:00 - 11-14 07:30:00 @ 15.0, 54: 11-14 07:30:00 - 11-14 08:00:00 @ 15.0, 55: 11-14 08:00:00 - 11-14 08:30:00 @ 15.0, 56: 11-14 08:30:00 - 11-14 09:00:00 @ 15.0, 57: 11-14 09:00:00 - 11-14 09:30:00 @ 15.0, 58: 11-14 09:30:00 - 11-14 10:00:00 @ 15.0, 59: 11-14 10:00:00 - 11-14 10:30:00 @ 15.0, 60: 11-14 10:30:00 - 11-14 11:00:00 @ 15.0, 61: 11-14 11:00:00 - 11-14 11:30:00 @ 15.0, 62: 11-14 11:30:00 - 11-14 12:00:00 @ 15.0, 63: 11-14 12:00:00 - 11-14 12:30:00 @ 15.0, 64: 11-14 12:30:00 - 11-14 13:00:00 @ 15.0, 65: 11-14 13:00:00 - 11-14 13:30:00 @ 15.0, 66: 11-14 13:30:00 - 11-14 14:00:00 @ 15.0, 67: 11-14 14:00:00 - 11-14 14:30:00 @ 15.0, 68: 11-14 14:30:00 - 11-14 15:00:00 @ 15.0, 69: 11-14 15:00:00 - 11-14 15:30:00 @ 15.0, 70: 11-14 15:30:00 - 11-14 16:00:00 @ 15.0, 71: 11-14 16:00:00 - 11-14 16:30:00 @ 15.0, 72: 11-14 16:30:00 - 11-14 17:00:00 @ 15.0, 73: 11-14 17:00:00 - 11-14 17:30:00 @ 15.0, 74: 11-14 17:30:00 - 11-14 18:00:00 @ 15.0, 75: 11-14 18:00:00 - 11-14 18:30:00 @ 15.0, 76: 11-14 18:30:00 - 11-14 19:00:00 @ 15.0, 77: 11-14 19:00:00 - 11-14 19:30:00 @ 15.0, 78: 11-14 19:30:00 - 11-14 20:00:00 @ 15.0, 79: 11-14 20:00:00 - 11-14 20:30:00 @ 15.0, 80: 11-14 20:30:00 - 11-14 21:00:00 @ 15.0, 81: 11-14 21:00:00 - 11-14 21:30:00 @ 15.0, 82: 11-14 21:30:00 - 11-14 22:00:00 @ 15.0, 83: 11-14 22:00:00 - 11-14 22:30:00 @ 15.0, 84: 11-14 22:30:00 - 11-14 23:00:00 @ 15.0, 85: 11-14 23:00:00 - 11-14 23:30:00 @ 15.0, 86: 11-14 23:30:00 - 11-15 00:00:00 @ 15.0, 87: 11-15 00:00:00 - 11-15 00:30:00 @ 15.0, 88: 11-15 00:30:00 - 11-15 01:00:00 @ 15.0, 89: 11-15 01:00:00 - 11-15 01:30:00 @ 15.0, 90: 11-15 01:30:00 - 11-15 02:00:00 @ 15.0, 91: 11-15 02:00:00 - 11-15 02:30:00 @ 15.0, 92: 11-15 02:30:00 - 11-15 03:00:00 @ 15.0, 93: 11-15 03:00:00 - 11-15 03:30:00 @ 15.0, 94: 11-15 03:30:00 - 11-15 04:00:00 @ 15.0, 95: 11-15 04:00:00 - 11-15 04:30:00 @ 15.0, 96: 11-15 04:30:00 - 11-15 05:00:00 @ 15.0]
2024-11-13 04:55:08.966249: Import threshold used for optimisation was 7.4p
2024-11-13 04:55:09.036394: Low import rate windows [0: 11-13 04:30:00 - 11-13 05:00:00 @ 7.0, 1: 11-13 05:00:00 - 11-13 05:30:00 @ 7.0, 2: 11-13 05:30:00 - 11-13 06:00:00 @ 7.0, 3: 11-13 23:30:00 - 11-14 00:00:00 @ 7.0, 4: 11-14 00:00:00 - 11-14 00:30:00 @ 7.0, 5: 11-14 00:30:00 - 11-14 01:00:00 @ 7.0, 6: 11-14 01:00:00 - 11-14 01:30:00 @ 7.0, 7: 11-14 01:30:00 - 11-14 02:00:00 @ 7.0, 8: 11-14 02:00:00 - 11-14 02:30:00 @ 7.0, 9: 11-14 02:30:00 - 11-14 03:00:00 @ 7.0, 10: 11-14 03:00:00 - 11-14 03:30:00 @ 7.0, 11: 11-14 03:30:00 - 11-14 04:00:00 @ 7.0, 12: 11-14 04:00:00 - 11-14 04:30:00 @ 7.0, 13: 11-14 04:30:00 - 11-14 05:00:00 @ 7.0, 14: 11-14 05:00:00 - 11-14 05:30:00 @ 7.0, 15: 11-14 23:30:00 - 11-15 00:00:00 @ 7.0, 16: 11-15 00:00:00 - 11-15 00:30:00 @ 7.0, 17: 11-15 00:30:00 - 11-15 01:00:00 @ 7.0, 18: 11-15 01:00:00 - 11-15 01:30:00 @ 7.0, 19: 11-15 01:30:00 - 11-15 02:00:00 @ 7.0, 20: 11-15 02:00:00 - 11-15 02:30:00 @ 7.0, 21: 11-15 02:30:00 - 11-15 03:00:00 @ 7.0, 22: 11-15 03:00:00 - 11-15 03:30:00 @ 7.0, 23: 11-15 03:30:00 - 11-15 04:00:00 @ 7.0, 24: 11-15 04:00:00 - 11-15 04:30:00 @ 7.0, 25: 11-15 04:30:00 - 11-15 05:00:00 @ 7.0]
2024-11-13 04:55:09.044990: Include original charge start 11-13 00:00:00, keeping this instead of new start 11-13 04:30:00
2024-11-13 04:55:09.045043: Charge window will be: 2024-11-13 00:00:00+00:00 - 2024-11-13 06:00:00+00:00 - current soc 20 target 83
2024-11-13 04:55:09.045110: Inverter 0 Skipping service charge_stop_service domain discharge with data {'device_id': ''} as already called
2024-11-13 04:55:09.045128: Inverter 0 Skipping service charge_start_service domain charge with data {'device_id': '', 'target_soc': 83, 'power': 5000} as already called
2024-11-13 04:55:09.045154: Configuring charge window now (now 11-13 04:55:00 target set_window_minutes 30 charge start time 11-13 00:00:00
2024-11-13 04:55:09.045202: Adjust idle time, charge 00:00:00-06:00:00 discharge 00:00:00-00:00:00
2024-11-13 04:55:09.045325: Adjust idle time computed idle is 06:00:00-23:59:00
2024-11-13 04:55:09.045372: Next discharge window will be: 2024-11-14 01:20:00+00:00 - 2024-11-14 01:31:00+00:00 at reserve 77
2024-11-13 04:55:09.045394: Setting ECO mode as we are not yet within the discharge window - next time is 11-14 01:20:00 - 11-14 01:30:00
2024-11-13 04:55:09.045443: Inverter 0 Adjust force discharge to False, change times from 00:00:00 - 00:00:00 to 00:00:00 - 00:00:00
2024-11-13 04:55:09.045454: Adjust idle time, charge 00:00:00-06:00:00 discharge 00:00:00-00:00:00
2024-11-13 04:55:09.045520: Adjust idle time computed idle is 06:00:00-23:59:00
2024-11-13 04:55:09.045561: Car charging from battery is off, next slot for car 0 is 11-13 02:56:00 - 11-13 05:00:00
2024-11-13 04:55:09.045583: Inverter 0 Skipping service charge_stop_service domain discharge with data {'device_id': ''} as already called
2024-11-13 04:55:09.045605: Setting charging SOC to 83 as per target
2024-11-13 04:55:09.045633: Inverter 0 adjust target soc for charge to 83% (8.05kWh/9.7kWh 9.7kWh) based on going from 20% -> 83% total add is 6.12kWh and this battery needs to add 6.12kWh to get to 8.05kWh
2024-11-13 04:55:09.045666: Inverter 0 Current Target SOC is 83%, already at target
2024-11-13 04:55:09.045699: Current SOC 20% is less than Target SOC 83. Grid charging enabled with charge current set to 65.00
2024-11-13 04:55:09.062421: 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-11-13 04:55:09.063287: Best charge	window [ 13-11 04:30:00 - 13-11 05:00:00 @ 7.0p 83.0%, 13-11 05:00:00 - 13-11 05:30:00 @ 7.0p 83.0%, 13-11 05:30:00 - 13-11 06:00:00 @ 7.0p 83.0%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 83.0%, 14-11 00:00:00 - 14-11 00:30:00 @ 7.0p 83.0%, 14-11 00:30:00 - 14-11 01:00:00 @ 7.0p 83.0%, 14-11 01:00:00 - 14-11 01:30:00 @ 7.0p 83.0%, 14-11 01:30:00 - 14-11 02:00:00 @ 7.0p 83.0%, 14-11 02:00:00 - 14-11 02:30:00 @ 7.0p 83.0%, 14-11 02:30:00 - 14-11 03:00:00 @ 7.0p 83.0%, 14-11 03:00:00 - 14-11 03:30:00 @ 7.0p 83.0%, 14-11 03:30:00 - 14-11 04:00:00 @ 7.0p 83.0%, 14-11 04:00:00 - 14-11 04:30:00 @ 7.0p 83.0%, 14-11 04:30:00 - 14-11 05:00:00 @ 7.0p 83.0%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 83.0%, 14-11 23:30:00 - 15-11 00:00:00 @ 7.0p 83.0%, 15-11 00:00:00 - 15-11 00:30:00 @ 7.0p 83.0%, 15-11 00:30:00 - 15-11 01:00:00 @ 7.0p 83.0%, 15-11 01:00:00 - 15-11 01:30:00 @ 7.0p 83.0%, 15-11 01:30:00 - 15-11 02:00:00 @ 7.0p 83.0%, 15-11 02:00:00 - 15-11 02:30:00 @ 7.0p 83.0%, 15-11 02:30:00 - 15-11 03:00:00 @ 7.0p 83.0%, 15-11 03:00:00 - 15-11 03:30:00 @ 7.0p 83.0%, 15-11 03:30:00 - 15-11 04:00:00 @ 7.0p 83.0%, 15-11 04:00:00 - 15-11 04:30:00 @ 7.0p 83.0%, 15-11 04:30:00 - 15-11 05:00:00 @ 7.0p 83.0% ]
2024-11-13 04:55:09.064333: Best discharge window [ 13-11 04:30:00 - 13-11 05:00:00 @ 15.0p 100.0%, 13-11 05:00:00 - 13-11 05:30:00 @ 15.0p 100.0%, 13-11 05:30:00 - 13-11 06:00:00 @ 15.0p 100.0%, 13-11 06:00:00 - 13-11 06:30:00 @ 15.0p 100.0%, 13-11 06:30:00 - 13-11 07:00:00 @ 15.0p 100.0%, 13-11 07:00:00 - 13-11 07:30:00 @ 15.0p 100.0%, 13-11 07:30:00 - 13-11 08:00:00 @ 15.0p 100.0%, 13-11 08:00:00 - 13-11 08:30:00 @ 15.0p 100.0%, 13-11 08:30:00 - 13-11 09:00:00 @ 15.0p 100.0%, 13-11 09:00:00 - 13-11 09:30:00 @ 15.0p 100.0%, 13-11 09:30:00 - 13-11 10:00:00 @ 15.0p 100.0%, 13-11 10:00:00 - 13-11 10:30:00 @ 15.0p 100.0%, 13-11 10:30:00 - 13-11 11:00:00 @ 15.0p 100.0%, 13-11 11:00:00 - 13-11 11:30:00 @ 15.0p 100.0%, 13-11 11:30:00 - 13-11 12:00:00 @ 15.0p 100.0%, 13-11 12:00:00 - 13-11 12:30:00 @ 15.0p 100.0%, 13-11 12:30:00 - 13-11 13:00:00 @ 15.0p 100.0%, 13-11 13:00:00 - 13-11 13:30:00 @ 15.0p 100.0%, 13-11 13:30:00 - 13-11 14:00:00 @ 15.0p 100.0%, 13-11 14:00:00 - 13-11 14:30:00 @ 15.0p 100.0%, 13-11 14:30:00 - 13-11 15:00:00 @ 15.0p 100.0%, 13-11 15:00:00 - 13-11 15:30:00 @ 15.0p 100.0%, 13-11 15:30:00 - 13-11 16:00:00 @ 15.0p 100.0%, 13-11 16:00:00 - 13-11 16:30:00 @ 15.0p 100.0%, 13-11 16:30:00 - 13-11 17:00:00 @ 15.0p 100.0%, 13-11 17:00:00 - 13-11 17:30:00 @ 15.0p 100.0%, 13-11 17:30:00 - 13-11 18:00:00 @ 15.0p 100.0%, 13-11 18:00:00 - 13-11 18:30:00 @ 15.0p 100.0%, 13-11 18:30:00 - 13-11 19:00:00 @ 15.0p 100.0%, 13-11 19:00:00 - 13-11 19:30:00 @ 15.0p 100.0%, 13-11 19:30:00 - 13-11 20:00:00 @ 15.0p 100.0%, 13-11 20:00:00 - 13-11 20:30:00 @ 15.0p 100.0%, 13-11 20:30:00 - 13-11 21:00:00 @ 15.0p 100.0%, 13-11 21:00:00 - 13-11 21:30:00 @ 15.0p 100.0%, 13-11 21:30:00 - 13-11 22:00:00 @ 15.0p 100.0%, 13-11 22:00:00 - 13-11 22:30:00 @ 15.0p 100.0%, 13-11 22:30:00 - 13-11 23:00:00 @ 15.0p 100.0%, 13-11 23:00:00 - 13-11 23:30:00 @ 15.0p 100.0%, 13-11 23:30:00 - 14-11 00:00:00 @ 15.0p 100.0%, 14-11 00:00:00 - 14-11 00:30:00 @ 15.0p 100.0%, 14-11 00:30:00 - 14-11 01:00:00 @ 15.0p 100.0%, 14-11 01:00:00 - 14-11 01:30:00 @ 15.0p 100.0%, 14-11 01:30:00 - 14-11 02:00:00 @ 15.0p 100.0%, 14-11 02:00:00 - 14-11 02:30:00 @ 15.0p 100.0%, 14-11 02:30:00 - 14-11 03:00:00 @ 15.0p 100.0%, 14-11 03:00:00 - 14-11 03:30:00 @ 15.0p 100.0%, 14-11 03:30:00 - 14-11 04:00:00 @ 15.0p 100.0%, 14-11 04:00:00 - 14-11 04:30:00 @ 15.0p 100.0%, 14-11 04:30:00 - 14-11 05:00:00 @ 15.0p 100.0%, 14-11 05:00:00 - 14-11 05:30:00 @ 15.0p 100.0%, 14-11 05:30:00 - 14-11 06:00:00 @ 15.0p 100.0%, 14-11 06:00:00 - 14-11 06:30:00 @ 15.0p 100.0%, 14-11 06:30:00 - 14-11 07:00:00 @ 15.0p 100.0%, 14-11 07:00:00 - 14-11 07:30:00 @ 15.0p 100.0%, 14-11 07:30:00 - 14-11 08:00:00 @ 15.0p 100.0%, 14-11 08:00:00 - 14-11 08:30:00 @ 15.0p 100.0%, 14-11 08:30:00 - 14-11 09:00:00 @ 15.0p 100.0%, 14-11 09:00:00 - 14-11 09:30:00 @ 15.0p 100.0%, 14-11 09:30:00 - 14-11 10:00:00 @ 15.0p 100.0%, 14-11 10:00:00 - 14-11 10:30:00 @ 15.0p 100.0%, 14-11 10:30:00 - 14-11 11:00:00 @ 15.0p 100.0%, 14-11 11:00:00 - 14-11 11:30:00 @ 15.0p 100.0%, 14-11 11:30:00 - 14-11 12:00:00 @ 15.0p 100.0%, 14-11 12:00:00 - 14-11 12:30:00 @ 15.0p 100.0%, 14-11 12:30:00 - 14-11 13:00:00 @ 15.0p 100.0%, 14-11 13:00:00 - 14-11 13:30:00 @ 15.0p 100.0%, 14-11 13:30:00 - 14-11 14:00:00 @ 15.0p 100.0%, 14-11 14:00:00 - 14-11 14:30:00 @ 15.0p 100.0%, 14-11 14:30:00 - 14-11 15:00:00 @ 15.0p 100.0%, 14-11 15:00:00 - 14-11 15:30:00 @ 15.0p 100.0%, 14-11 15:30:00 - 14-11 16:00:00 @ 15.0p 100.0%, 14-11 16:00:00 - 14-11 16:30:00 @ 15.0p 100.0%, 14-11 16:30:00 - 14-11 17:00:00 @ 15.0p 100.0%, 14-11 17:00:00 - 14-11 17:30:00 @ 15.0p 100.0%, 14-11 17:30:00 - 14-11 18:00:00 @ 15.0p 100.0%, 14-11 18:00:00 - 14-11 18:30:00 @ 15.0p 100.0%, 14-11 18:30:00 - 14-11 19:00:00 @ 15.0p 100.0%, 14-11 19:00:00 - 14-11 19:30:00 @ 15.0p 100.0%, 14-11 19:30:00 - 14-11 20:00:00 @ 15.0p 100.0%, 14-11 20:00:00 - 14-11 20:30:00 @ 15.0p 100.0%, 14-11 20:30:00 - 14-11 21:00:00 @ 15.0p 100.0%, 14-11 21:00:00 - 14-11 21:30:00 @ 15.0p 100.0%, 14-11 21:30:00 - 14-11 22:00:00 @ 15.0p 100.0%, 14-11 22:00:00 - 14-11 22:30:00 @ 15.0p 100.0%, 14-11 22:30:00 - 14-11 23:00:00 @ 15.0p 100.0%, 14-11 23:00:00 - 14-11 23:30:00 @ 15.0p 100.0%, 14-11 23:30:00 - 15-11 00:00:00 @ 15.0p 100.0%, 15-11 00:00:00 - 15-11 00:30:00 @ 15.0p 100.0%, 15-11 00:30:00 - 15-11 01:00:00 @ 15.0p 100.0%, 15-11 01:00:00 - 15-11 01:30:00 @ 15.0p 100.0%, 15-11 01:30:00 - 15-11 02:00:00 @ 15.0p 100.0%, 15-11 02:00:00 - 15-11 02:30:00 @ 15.0p 100.0%, 15-11 02:30:00 - 15-11 03:00:00 @ 15.0p 100.0%, 15-11 03:00:00 - 15-11 03:30:00 @ 15.0p 100.0%, 15-11 03:30:00 - 15-11 04:00:00 @ 15.0p 100.0%, 15-11 04:00:00 - 15-11 04:30:00 @ 15.0p 100.0%, 15-11 04:30:00 - 15-11 05:00:00 @ 15.0p 100.0% ]
2024-11-13 04:55:09.065210: PV Forecast 5.2 kWh and 10% Forecast 1.8 kWh pv cloud factor 0.3
2024-11-13 04:55:09.071979: Load divergence over 8.0 hours mean 1449.23 W, min 609.6 W, max 3600.0 W, std dev 645.61 W, divergence 22.27%
2024-11-13 04:55:09.121464: Yesterday basic charge window best: [{'start': 1380, 'end': 1800, 'average': 7.0}] charge limit best: [9.7]
2024-11-13 04:55:09.259353: predict yesterday end_record 11-14 00:00:00 final soc 5.24 kWh metric 656.14 p metric_keep 0 min_soc 9.7 @ 11-13 00:00:00 kWh load 46.02 pv 7.61
2024-11-13 04:55:09.259785:      	[   00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30]
2024-11-13 04:55:09.260105: 	SOC: [    1.35, 	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.39,     0.39, 	0.39, 	0.39,     0.39, 	0.39, 	0.39,     0.39, 	0.53, 	0.65,     0.74, 	0.77, 	0.79,     1.15, 	0.55, 	0.47,     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.39, 	0.39,     0.39, 	0.39, 	2.81]
2024-11-13 04:55:09.260353: 	BAT: [   g~be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g~be+,	g~be+,    g<be-,	g~be+,	g~be+,    g~be+,	g~be-,	g>be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<bf+,	g<bf+]
2024-11-13 04:55:09.260657:	LOAD: [   	0,      1.4, 	3.33,  	4.8,     6.24, 	7.59, 	9.56,    10.72, 	11.7,	12.35,    13.07,	14.14,	14.95,    16.13, 	17.0,	18.64,    19.55,	21.11,	22.12,    23.14,	24.24, 	25.1,    25.85,	26.73,	27.55,    28.39,	29.19,	29.43,     30.4,	30.89,	31.25,    31.67, 	31.9, 	32.2,    32.44,	32.61,	33.49,    34.27,	35.03, 	35.9,    37.22,	37.86,	38.54,    39.26,	39.84, 	40.4,    41.05,	44.62]
2024-11-13 04:55:09.261021:  	PV: [   	0,      0.0,  	0.0, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.02, 	0.02, 	0.03,     0.03, 	0.04, 	0.05,     0.06, 	0.12, 	0.22,     0.39, 	0.65, 	1.21,     2.11, 	3.14, 	4.07,     4.97, 	5.81, 	6.42,     6.83, 	7.25, 	7.44,     7.56, 	7.61, 	7.61,     7.61, 	7.61, 	7.61,     7.61, 	7.61, 	7.61,     7.61, 	7.61, 	7.61,     7.61, 	7.61, 	7.61,     7.61, 	7.61]
2024-11-13 04:55:09.261316:  IMPORT: [   	0, 	0.49,     2.41, 	3.88, 	5.32,     6.67, 	8.64,  	9.8,    10.78,	11.43,	12.13,     13.2,	14.01,	15.19,    16.05,	17.67,	18.58,    20.07,	20.99,	21.85,    22.69, 	23.0, 	23.0,     23.0, 	23.0, 	23.0,     23.0, 	23.0, 	23.0,     23.0, 	23.1,	23.41,    23.59,	23.89,	24.13,     24.3,	25.18,	25.96,    26.72,	27.58, 	28.9,    29.55,	30.23,	30.95,    31.53,	32.08,	32.73,    38.86]
2024-11-13 04:55:09.261597:  EXPORT: [   	0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0]
2024-11-13 04:55:09.261941:  CARBON: [ 	0.0,	31.96,    97.92,   146.95,   190.83,   231.23,   288.65,   315.29,   339.59,   355.53,	375.3,   407.75,   428.21,   459.38,    486.4,   528.84,   558.99,   597.42,   628.45,   650.51,   670.26,   674.17,   674.17,   674.17,   674.17,   674.17,   674.17,   674.17,   674.17,   674.17,   677.88,   681.78,   685.12,   690.04,   693.79,   696.79,   714.19,   726.11,   740.62,	762.0,   784.13,   797.55,   812.81,   827.82,   837.24,   849.31,   893.76,  1092.59]
2024-11-13 04:55:09.262243:  METRIC: [   	0,  	3.4,    16.88,	27.18,	37.27,    46.73,	60.49,	68.57,    75.44,	79.98,	84.94,    92.41,   112.84,   142.56,   164.27,   205.34,	228.3,   265.98,   289.08,   310.71,   332.07,   339.91,   339.95,   339.95,   339.95,   339.95,   339.95,   339.95,   339.95,   339.95,	342.5,   350.31,   354.76,   362.26,   368.26,   372.69,	394.9,   414.47,   433.79,   455.58,   488.91,   505.17,   522.44,   540.49,   555.21,	569.2,   585.64,   628.54]
2024-11-13 04:55:09.262268: Yesterday: Predbat disabled was 718.26p vs real 559.23p saving 159.03p with import 42.81 export 0.0 battery_cycle 7.9 start_soc 1.35 final_soc 5.24
2024-11-13 04:55:09.273460: Yesterday: No Battery/PV system cost predicted was 875.37p vs real 559.23p saving 316.14p with import 46.02 export 0
2024-11-13 04:55:09.283347: Creating pool of 4 processes to match your CPU count
2024-11-13 04:55:09.304383: Calculate Best options: mode(Control charge & discharge) calculate_discharge_oncharge(True) set_discharge_freeze_only(False) set_discharge_during_charge(True) combine_charge_slots(False) combine_discharge_slots(False) combine_rate_threshold(0.0) best_soc_min(0.0 kWh) best_soc_max(0.0 kWh) best_soc_keep(0.39 kWh) inverter_loss(2 %) battery_loss(3 %) battery_loss_discharge (3 %) inverter_hybrid(True) metric_min_improvement(0.0 p) metric_min_improvement_discharge(0.1 p) metric_battery_cycle(0 p/kWh) metric_battery_value_scaling(1.0 x) metric_carbon(0 p/Kg)
2024-11-13 04:55:09.305156: Optimise all windows, total charge 25 discharge 96
2024-11-13 04:55:09.315309: Optimise all charge found best buy/sell price band 14.3 best price threshold 7.4 at cost 1567.3354 metric 1495.9038 keep 0 cycle 44.2771 carbon 4955 import 89.16 cost 1567.3354 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100.0]
2024-11-13 04:55:09.346755: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1498.7757 metric 1495.9037 keep 0 cycle 34.6792 carbon 4607 import 79.36 cost 1498.7757 limits [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, 0.0] discharge [100, 100, 100, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 99.0, 100.0]
2024-11-13 04:55:09.363698: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1496.0656 metric 1486.303 keep 0 cycle 62.1045 carbon 4966 import 91.71 cost 1496.0656 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 100.0]
2024-11-13 04:55:09.363784: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1495.6596 metric 1481.1671 keep 0 cycle 61.4816 carbon 4947 import 94.58 cost 1495.6596 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100.0]
2024-11-13 04:55:09.365445: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1482.9149 metric 1449.4422 keep 0 cycle 58.9816 carbon 4925 import 92.1 cost 1482.9149 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:09.440051: >> Region optimisation pass width 960
2024-11-13 04:55:09.941117: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1470.3575 metric 1436.8848 keep 0 cycle 68.564 carbon 4936 import 95.38 cost 1470.3575 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:09.942413: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1468.5101 metric 1435.0374 keep 0 cycle 69.1552 carbon 4929 import 95.02 cost 1468.5101 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:11.340365: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1428.0524 metric 1420.7089 keep 0 cycle 78.2295 carbon 4811 import 94.29 cost 1428.0524 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100, 100, 100, 0, 0, 0, 100, 100, 100, 0, 0, 0, 100, 100, 100, 0, 0, 0, 100, 100, 100, 0, 0, 0, 100, 100, 100, 0, 0, 0, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:11.345049: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1447.61 metric 1416.8303 keep 0 cycle 79.0923 carbon 4927 import 97.9 cost 1447.61 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:11.608017: >> Region optimisation pass width 480
2024-11-13 04:55:13.386210: >> Region optimisation pass width 240
2024-11-13 04:55:14.668053: >> Region optimisation pass width 120
2024-11-13 04:55:15.082414: Optimise all charge found best buy/sell price band 7.4 best price threshold 7.4 at cost 1446.5721 metric 1415.7924 keep 0 cycle 79.4035 carbon 4992 import 97.72 cost 1446.5721 limits [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, 0.0] discharge [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 100, 0, 100, 0, 100, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 100, 0, 0, 100.0]
2024-11-13 04:55:15.618189: Calculated end_record as 11-14 05:00:00
2024-11-13 04:55:15.618811: Starting second optimisation end_record 11-14 05:00:00 best_price 7.4 best_price_discharge 14.3 lowest_price_charge 7.4 with charge limits [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] discharge limits [100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 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-11-13 04:55:15.619282: Best charge windows best_metric 1415.79 best_cost 1446.57 best_carbon 4992 best_import 97.72 metric_keep 0 end_record 11-14 05:00:00 windows [ 13-11 04:30:00 - 13-11 05:00:00 @ 7.0p 100%, 13-11 05:00:00 - 13-11 05:30:00 @ 7.0p 100%, 13-11 05:30:00 - 13-11 06:00:00 @ 7.0p 100%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 100%, 14-11 00:00:00 - 14-11 00:30:00 @ 7.0p 100%, 14-11 00:30:00 - 14-11 01:00:00 @ 7.0p 100%, 14-11 01:00:00 - 14-11 01:30:00 @ 7.0p 100%, 14-11 01:30:00 - 14-11 02:00:00 @ 7.0p 100%, 14-11 02:00:00 - 14-11 02:30:00 @ 7.0p 100%, 14-11 02:30:00 - 14-11 03:00:00 @ 7.0p 100%, 14-11 03:00:00 - 14-11 03:30:00 @ 7.0p 100%, 14-11 03:30:00 - 14-11 04:00:00 @ 7.0p 100%, 14-11 04:00:00 - 14-11 04:30:00 @ 7.0p 100%, 14-11 04:30:00 - 14-11 05:00:00 @ 7.0p 100%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 100%, 14-11 23:30:00 - 15-11 00:00:00 @ 7.0p 100%, 15-11 00:00:00 - 15-11 00:30:00 @ 7.0p 100%, 15-11 00:30:00 - 15-11 01:00:00 @ 7.0p 100%, 15-11 01:00:00 - 15-11 01:30:00 @ 7.0p 100%, 15-11 01:30:00 - 15-11 02:00:00 @ 7.0p 100%, 15-11 02:00:00 - 15-11 02:30:00 @ 7.0p 100%, 15-11 02:30:00 - 15-11 03:00:00 @ 7.0p 100%, 15-11 03:00:00 - 15-11 03:30:00 @ 7.0p 100%, 15-11 03:30:00 - 15-11 04:00:00 @ 7.0p 100%, 15-11 04:00:00 - 15-11 04:30:00 @ 7.0p 100%, 15-11 04:30:00 - 15-11 05:00:00 @ 7.0p 100% ]
2024-11-13 04:55:15.619420: Best discharge windows best_metric 1415.79 best_cost 1446.57 best_carbon 4992 best_import 97.72 metric_keep 0 end_record 11-14 05:00:00 windows [  ]
2024-11-13 04:55:15.619495: Optimise price set 14.3 pass normal price 14.3 start_at_low False best_price 7.4 best_metric 1415.79 best_cost 1446.57 best_cycle 79.4 best_carbon 4992 best_import 97.72
2024-11-13 04:55:16.871696: Optimise price set 7.4 pass normal price 7.4 start_at_low False best_price 7.4 best_metric 907.41 best_cost 893.98 best_cycle 38.82 best_carbon 3130 best_import 97.39
2024-11-13 04:55:17.420254: Best charge windows best_metric 907.4 best_cost 893.97 best_carbon 3131 best_import 97.39 metric_keep 0 end_record 11-14 05:00:00 windows [ 13-11 04:30:00 - 13-11 05:00:00 @ 7.0p 100%, 13-11 05:00:00 - 13-11 05:30:00 @ 7.0p 100%, 13-11 05:30:00 - 13-11 06:00:00 @ 7.0p 100%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 28%, 14-11 00:00:00 - 14-11 00:30:00 @ 7.0p 54%, 14-11 00:30:00 - 14-11 01:00:00 @ 7.0p 100%, 14-11 01:00:00 - 14-11 01:30:00 @ 7.0p 100%, 14-11 01:30:00 - 14-11 02:00:00 @ 7.0p 100%, 14-11 02:00:00 - 14-11 02:30:00 @ 7.0p 100%, 14-11 02:30:00 - 14-11 03:00:00 @ 7.0p 100%, 14-11 03:00:00 - 14-11 03:30:00 @ 7.0p 100%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 100%, 14-11 23:30:00 - 15-11 00:00:00 @ 7.0p 100%, 15-11 00:00:00 - 15-11 00:30:00 @ 7.0p 100%, 15-11 00:30:00 - 15-11 01:00:00 @ 7.0p 100%, 15-11 01:00:00 - 15-11 01:30:00 @ 7.0p 100%, 15-11 01:30:00 - 15-11 02:00:00 @ 7.0p 100%, 15-11 02:00:00 - 15-11 02:30:00 @ 7.0p 100%, 15-11 02:30:00 - 15-11 03:00:00 @ 7.0p 100%, 15-11 03:00:00 - 15-11 03:30:00 @ 7.0p 100%, 15-11 03:30:00 - 15-11 04:00:00 @ 7.0p 100%, 15-11 04:00:00 - 15-11 04:30:00 @ 7.0p 100%, 15-11 04:30:00 - 15-11 05:00:00 @ 7.0p 100% ]
2024-11-13 04:55:17.420409: Best discharge windows best_metric 907.4 best_cost 893.97 best_carbon 3131 best_import 97.39 metric_keep 0 end_record 11-14 05:00:00 windows [ 14-11 01:20:00 - 14-11 01:30:00 @ 15.0p 4%, 14-11 01:50:00 - 14-11 02:00:00 @ 15.0p 4%, 14-11 02:10:00 - 14-11 02:30:00 @ 15.0p 4%, 14-11 02:50:00 - 14-11 03:00:00 @ 15.0p 4%, 14-11 03:10:00 - 14-11 03:30:00 @ 15.0p 4%, 14-11 03:30:00 - 14-11 04:00:00 @ 15.0p 4%, 14-11 04:00:00 - 14-11 04:30:00 @ 15.0p 4%, 14-11 04:30:00 - 14-11 05:00:00 @ 15.0p 4% ]
2024-11-13 04:55:17.420437: Optimise price set 7.4 pass low price 7.4 start_at_low True best_price 7.4 best_metric 907.4 best_cost 893.97 best_cycle 38.81 best_carbon 3131 best_import 97.39
2024-11-13 04:55:17.962113: Best charge windows best_metric 907.4 best_cost 893.97 best_carbon 3131 best_import 97.39 metric_keep 0 end_record 11-14 05:00:00 windows [ 13-11 04:30:00 - 13-11 05:00:00 @ 7.0p 100%, 13-11 05:00:00 - 13-11 05:30:00 @ 7.0p 100%, 13-11 05:30:00 - 13-11 06:00:00 @ 7.0p 100%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 28%, 14-11 00:00:00 - 14-11 00:30:00 @ 7.0p 100%, 14-11 00:30:00 - 14-11 01:00:00 @ 7.0p 100%, 14-11 01:00:00 - 14-11 01:30:00 @ 7.0p 100%, 14-11 01:30:00 - 14-11 02:00:00 @ 7.0p 100%, 14-11 02:00:00 - 14-11 02:30:00 @ 7.0p 100%, 14-11 02:30:00 - 14-11 03:00:00 @ 7.0p 100%, 14-11 03:00:00 - 14-11 03:30:00 @ 7.0p 100%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 100%, 14-11 23:30:00 - 15-11 00:00:00 @ 7.0p 100%, 15-11 00:00:00 - 15-11 00:30:00 @ 7.0p 100%, 15-11 00:30:00 - 15-11 01:00:00 @ 7.0p 100%, 15-11 01:00:00 - 15-11 01:30:00 @ 7.0p 100%, 15-11 01:30:00 - 15-11 02:00:00 @ 7.0p 100%, 15-11 02:00:00 - 15-11 02:30:00 @ 7.0p 100%, 15-11 02:30:00 - 15-11 03:00:00 @ 7.0p 100%, 15-11 03:00:00 - 15-11 03:30:00 @ 7.0p 100%, 15-11 03:30:00 - 15-11 04:00:00 @ 7.0p 100%, 15-11 04:00:00 - 15-11 04:30:00 @ 7.0p 100%, 15-11 04:30:00 - 15-11 05:00:00 @ 7.0p 100% ]
2024-11-13 04:55:17.962424: Best discharge windows best_metric 907.4 best_cost 893.97 best_carbon 3131 best_import 97.39 metric_keep 0 end_record 11-14 05:00:00 windows [ 14-11 01:20:00 - 14-11 01:30:00 @ 15.0p 4%, 14-11 01:50:00 - 14-11 02:00:00 @ 15.0p 4%, 14-11 02:10:00 - 14-11 02:30:00 @ 15.0p 4%, 14-11 02:50:00 - 14-11 03:00:00 @ 15.0p 4%, 14-11 03:10:00 - 14-11 03:30:00 @ 15.0p 4%, 14-11 03:30:00 - 14-11 04:00:00 @ 15.0p 4%, 14-11 04:00:00 - 14-11 04:30:00 @ 15.0p 4%, 14-11 04:30:00 - 14-11 05:00:00 @ 15.0p 4% ]
2024-11-13 04:55:17.962521: Calculated end_record as 11-14 05:00:00
2024-11-13 04:55:17.970140: Discharge windows filtered [ 14-11 01:20:00 - 14-11 01:30:00 @ 15.0p 77%, 14-11 01:50:00 - 14-11 02:00:00 @ 15.0p 82%, 14-11 02:10:00 - 14-11 02:30:00 @ 15.0p 73%, 14-11 02:50:00 - 14-11 03:00:00 @ 15.0p 81%, 14-11 03:10:00 - 14-11 05:00:00 @ 15.0p 4% ]
2024-11-13 04:55:17.976393: Filtered charge windows [ 13-11 04:30:00 - 13-11 06:00:00 @ 7.0p 83%, 13-11 23:30:00 - 14-11 00:00:00 @ 7.0p 28%, 14-11 00:00:00 - 14-11 01:20:00 @ 7.0p 100%, 14-11 01:30:00 - 14-11 01:50:00 @ 7.0p 100%, 14-11 02:00:00 - 14-11 02:10:00 @ 7.0p 100%, 14-11 02:30:00 - 14-11 02:50:00 @ 7.0p 100%, 14-11 03:00:00 - 14-11 03:10:00 @ 7.0p 100%, 14-11 05:00:00 - 14-11 05:30:00 @ 7.0p 100%, 14-11 23:30:00 - 15-11 05:00:00 @ 7.0p 100% ] reserve 0.39
2024-11-13 04:55:17.991423: predict base end_record 11-14 05:00:00 final soc 8.05 kWh metric 1069.7 p metric_keep 0 min_soc 0.39 @ 11-13 09:45:00 kWh load 86.99 pv 2.5
2024-11-13 04:55:17.991834:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00]
2024-11-13 04:55:17.992151: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.46,  	5.8,     4.89, 	4.13, 	3.12,     1.84, 	1.15, 	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.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.39, 	0.39,     0.39, 	2.81, 	5.24,     7.67, 	8.05, 	8.05,     8.05, 	8.05, 	8.05,     8.05, 	8.05]
2024-11-13 04:55:17.992396: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g>be-,	g~be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<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<bf+,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-]
2024-11-13 04:55:17.992735:	LOAD: [   44.13,	44.84,	47.87,    49.29,	49.98,	50.61,    51.47,	52.19,	53.18,    54.49,	55.29,	56.63,    57.27,	57.73,	58.16,     58.5,	59.08,	59.46,    59.72,	60.84,	61.36,    61.86,	63.11,	63.49,    63.97,	64.46,	65.41,    66.31,	67.02,	67.91,    68.87,	70.13,	70.94,    71.65,	72.19,	72.66,    73.14,	73.61,	74.25,    75.43,	77.35,	79.09,    80.52,	82.02,	82.97,    84.08,	85.11,	85.81,    86.32,	86.99]
2024-11-13 04:55:17.993038:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.04,     0.12, 	0.26, 	0.46,      0.7, 	0.95, 	1.21,     1.48, 	1.74, 	1.96,     2.15, 	2.29, 	2.39,     2.45, 	2.49,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5, 	 2.5,      2.5,  	2.5]
2024-11-13 04:55:17.993339:  IMPORT: [	45.7,	46.85,    52.42,	56.39,	56.39,    56.39,	56.39,	56.39,    56.39,	56.39,	56.39,    56.82,	57.23,	57.45,    57.61,	57.69,	58.02,    58.18,	58.26,	59.24,    59.67, 	60.1,	61.31,    61.68,	62.16,	62.66,     63.6, 	64.5,	65.21,     66.1,	67.06,	68.32,    69.14,	69.85,	70.38,    70.85,	71.34, 	71.8,    72.44,	73.62, 	78.1,    82.38,	86.36,	88.27,    89.22,	90.33,	91.37,    92.06,	92.57,	93.24]
2024-11-13 04:55:17.993668:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01]
2024-11-13 04:55:17.993995:  CARBON: [ 2240.64,  2260.66,   2483.0,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2614.56,  2625.31,  2629.93,  2634.18,  2636.54,   2647.3,   2650.3,  2655.46,  2685.86,  2696.81,  2710.17,  2734.78,  2743.16,  2757.49,  2770.55,  2790.25,  2804.16,  2814.87,  2829.63,  2845.54,  2866.54,  2879.94,  2891.62,  2900.49,  2908.03,  2916.18,  2924.25,  2935.93,  2968.83,  3056.38,  3144.45,  3227.86,  3259.57,  3278.26,  3302.05,  3319.86,  3343.27,  3359.23,  3391.14]
2024-11-13 04:55:17.994294:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92]
2024-11-13 04:55:17.994601:  METRIC: [  381.85,   389.85,    428.9,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   467.46,   477.77,   483.38,   487.43,   489.53,   497.89,   501.94,   503.84,   528.71,   539.41,   550.25,   580.99,   590.33,   602.45,   614.87,   638.71,   661.46,   679.42,    701.8,   726.05,   757.92,    778.5,   796.42,	809.9,   821.81,   834.06,   845.85,   861.97,   870.21,   963.68,   993.67,  1021.52,   1034.9,  1041.55,  1049.32,  1056.56,  1061.41,  1065.02,   1069.7]
2024-11-13 04:55:18.192723: Battery has 4.83 hours left - now at 1.93
2024-11-13 04:55:18.249806: predict base10 end_record 11-14 05:00:00 final soc 8.05 kWh metric 1176.44 p metric_keep 0 min_soc 0.39 @ 11-13 09:25:00 kWh load 90.96 pv 1.16
2024-11-13 04:55:18.250249:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00]
2024-11-13 04:55:18.250598: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.38, 	5.68,     4.67, 	3.86, 	2.67,     1.21, 	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.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.39, 	0.39, 	0.39,     0.39, 	2.81, 	5.24,     7.67, 	8.05, 	8.05,     8.05, 	8.05, 	8.05,     8.05, 	8.05]
2024-11-13 04:55:18.250881: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g~be-,	g>be-,	g<be-,    g>be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<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<bf+,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-]
2024-11-13 04:55:18.251236:	LOAD: [   44.13,	44.92,	48.01,     49.5,	50.27,	50.93,     51.9,	52.67,	53.81,    55.25,	56.12,	57.59,    58.27,	58.76,	59.22,     59.6,	60.27,	60.65,    60.95,	62.23,	62.74,    63.32,	64.71,	65.08,    65.64,	66.16,	67.25,    68.24,	68.98, 	70.0,    71.06,	72.45,	73.33,    74.08,	74.67,	75.18,    75.72,	76.23,	76.97,     78.3,	80.51,	82.35,    83.91,	85.55,	86.55,    87.81, 	88.9,	89.66,     90.2,	90.96]
2024-11-13 04:55:18.251576:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.02,     0.07, 	0.14, 	0.23,     0.34, 	0.45, 	0.57,     0.69, 	0.81, 	0.91,     0.99, 	1.06, 	1.11,     1.14, 	1.15, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16]
2024-11-13 04:55:18.251901:  IMPORT: [	45.7,	46.92,    52.56,	56.61,	56.61,    56.61,	56.61,	56.61,    56.61,	56.61,	56.63,    58.01,	58.58,	58.96,    59.31,	59.56,	60.12,     60.4,	60.62,	61.83,     62.3,	62.86,	64.23,     64.6,	65.15,	65.67,    66.76,	67.75,	68.49,    69.52,	70.57,	71.96,    72.84,	73.59,	74.18,    74.69,	75.23,	75.74,    76.48,	77.82,	82.57,    86.96,	91.08,	93.13,    94.12,	95.39,	96.47,    97.23,	97.78,	98.53]
2024-11-13 04:55:18.252225:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01]
2024-11-13 04:55:18.252555:  CARBON: [ 2243.51,  2261.57,  2486.97,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2608.14,  2609.76,  2648.84,  2665.06,  2674.49,  2683.63,  2690.81,  2707.05,   2714.4,  2723.38,  2759.29,  2773.23,  2788.85,  2816.05,  2825.44,  2841.43,   2855.8,  2878.07,  2893.37,  2905.13,  2921.37,  2938.78,  2961.88,  2976.62,  2989.47,  2999.24,  3007.54,  3016.48,  3025.36,  3038.07,  3073.45,  3164.41,  3255.93,   3342.3,  3377.15,  3397.88,  3424.05,  3442.84,  3468.59,  3485.73,  3520.82]
2024-11-13 04:55:18.252880:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92]
2024-11-13 04:55:18.253213:  METRIC: [  381.85,   390.35,   429.82,   458.18,   458.18,   458.18,   458.18,   458.18,   458.18,   458.34,   458.64,    493.5,   508.01,   517.65,   526.39,   532.83,   546.94,   554.01,   559.51,   590.12,   601.99,   615.97,   650.63,    659.9,   673.88,   686.95,    714.5,   739.57,   758.29,   784.12,   810.86,   845.86,   868.02,   887.08,   901.98,   914.81,   928.42,   941.39,   959.91,   969.28,   1064.7,  1095.43,  1124.23,  1138.58,  1145.55,   1154.4,  1161.99,  1167.29,  1171.13,  1176.44]
2024-11-13 04:55:18.328270: predict best10 end_record 11-14 05:00:00 final soc 0.39 kWh metric 1064.79 p metric_keep 0 min_soc 0.39 @ 11-13 09:25:00 kWh load 90.96 pv 1.16
2024-11-13 04:55:18.328709:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00]
2024-11-13 04:55:18.329049: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.38, 	5.68,     4.67, 	3.86, 	2.67,     1.21, 	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.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.39, 	0.39, 	0.39,     2.69, 	5.12, 	7.54,      8.3, 	8.84, 	7.92,     8.68, 	7.77, 	 5.2,     2.62, 	0.39]
2024-11-13 04:55:18.329315: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g~be-,	g>be-,	g<be-,    g>be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<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<bf+,    g<bf+,	g<bf+,	g<bf+,    g<bf+,	g>bf-,	g>bf-,    g>bf-,	g<bf+]
2024-11-13 04:55:18.329658:	LOAD: [   44.13,	44.92,	48.01,     49.5,	50.27,	50.93,     51.9,	52.67,	53.81,    55.25,	56.12,	57.59,    58.27,	58.76,	59.22,     59.6,	60.27,	60.65,    60.95,	62.23,	62.74,    63.32,	64.71,	65.08,    65.64,	66.16,	67.25,    68.24,	68.98, 	70.0,    71.06,	72.45,	73.33,    74.08,	74.67,	75.18,    75.72,	76.23,	76.97,     78.3,	80.51,	82.35,    83.91,	85.55,	86.55,    87.81, 	88.9,	89.66,     90.2,	90.96]
2024-11-13 04:55:18.329975:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.02,     0.07, 	0.14, 	0.23,     0.34, 	0.45, 	0.57,     0.69, 	0.81, 	0.91,     0.99, 	1.06, 	1.11,     1.14, 	1.15, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16, 	1.16,     1.16, 	1.16]
2024-11-13 04:55:18.330290:  IMPORT: [	45.7,	46.92,    52.56,	56.61,	56.61,    56.61,	56.61,	56.61,    56.61,	56.61,	56.63,    58.01,	58.58,	58.96,    59.31,	59.56,	60.12,     60.4,	60.62,	61.83,     62.3,	62.86,	64.23,     64.6,	65.15,	65.67,    66.76,	67.75,	68.49,    69.52,	70.57,	71.96,    72.84,	73.59,	74.18,    74.69,	75.23,	75.74,    76.48,	80.24,	84.99,    89.38,	92.16,	94.77,    95.98,	98.48,	99.79,    99.79,	99.79,	99.93]
2024-11-13 04:55:18.330599:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.34, 	0.66,     1.65, 	2.01, 	3.02,     4.71, 	6.61, 	8.11]
2024-11-13 04:55:18.330926:  CARBON: [ 2243.51,  2261.57,  2486.97,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2607.99,  2608.14,  2609.76,  2648.84,  2665.06,  2674.49,  2683.63,  2690.81,  2707.05,   2714.4,  2723.38,  2759.29,  2773.23,  2788.85,  2816.05,  2825.44,  2841.43,   2855.8,  2878.07,  2893.37,  2905.13,  2921.37,  2938.78,  2961.88,  2976.62,  2989.47,  2999.24,  3007.54,  3016.48,  3025.36,  3046.14,  3119.45,  3210.41,  3301.93,  3353.97,  3402.55,  3405.39,  3448.35,  3430.71,  3375.61,   3306.8,  3283.43]
2024-11-13 04:55:18.331244:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92]
2024-11-13 04:55:18.331564:  METRIC: [  381.85,   390.35,   429.82,   458.18,   458.18,   458.18,   458.18,   458.18,   458.18,   458.34,   458.64,    493.5,   508.01,   517.65,   526.39,   532.83,   546.94,   554.01,   559.51,   590.12,   601.99,   615.97,   650.63,    659.9,   673.88,   686.95,    714.5,   739.57,   758.29,   784.12,   810.86,   845.86,   868.02,   887.08,   901.98,   914.81,   928.42,   941.39,   959.91,   986.23,  1081.65,  1112.38,  1126.88,  1140.43,  1133.93,  1146.16,  1140.15,  1114.77,  1086.24,  1064.79]
2024-11-13 04:55:18.409417: predict best end_record 11-14 05:00:00 final soc 0.39 kWh metric 956.09 p metric_keep 0 min_soc 0.39 @ 11-13 09:45:00 kWh load 86.99 pv 2.5
2024-11-13 04:55:18.409851:      	[   04:55,	05:00,	05:30,    06:00,	06:30,	07:00,    07:30,	08:00,	08:30,    09:00,	09:30,	10:00,    10:30,	11:00,	11:30,    12:00,	12:30,	13:00,    13:30,	14:00,	14:30,    15:00,	15:30,	16:00,    16:30,	17:00,	17:30,    18:00,	18:30,	19:00,    19:30,	20:00,	20:30,    21:00,	21:30,	22:00,    22:30,	23:00,	23:30,    00:00,	00:30,	01:00,    01:30,	02:00,	02:30,    03:00,	03:30,	04:00,    04:30,	05:00]
2024-11-13 04:55:18.410186: 	SOC: [    1.93, 	2.33, 	4.76,     7.18, 	6.46,  	5.8,     4.89, 	4.13, 	3.12,     1.84, 	1.15, 	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.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.39, 	0.39,     2.69, 	5.12, 	7.54,      8.3, 	8.84, 	7.92,     8.68, 	7.77, 	 5.2,     2.62, 	0.39]
2024-11-13 04:55:18.410453: 	BAT: [   g<bf+,	g<bf+,	g<bf+,    g~be-,	g~be-,	g~be-,    g>be-,	g~be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<be-,    g<be-,	g<be-,	g<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<bf+,    g<bf+,	g<bf+,	g<bf+,    g<bf+,	g>bf-,	g>bf-,    g>bf-,	g<bf+]
2024-11-13 04:55:18.410780:	LOAD: [   44.13,	44.84,	47.87,    49.29,	49.98,	50.61,    51.47,	52.19,	53.18,    54.49,	55.29,	56.63,    57.27,	57.73,	58.16,     58.5,	59.08,	59.46,    59.72,	60.84,	61.36,    61.86,	63.11,	63.49,    63.97,	64.46,	65.41,    66.31,	67.02,	67.91,    68.87,	70.13,	70.94,    71.65,	72.19,	72.66,    73.14,	73.61,	74.25,    75.43,	77.35,	79.09,    80.52,	82.02,	82.97,    84.08,	85.11,	85.81,    86.32,	86.99]
2024-11-13 04:55:18.411103:  	PV: [     0.0,  	0.0,  	0.0,      0.0,  	0.0,  	0.0,      0.0,  	0.0, 	0.04,     0.12, 	0.26, 	0.46,      0.7, 	0.95, 	1.21,     1.48, 	1.74, 	1.96,     2.15, 	2.29, 	2.39,     2.45, 	2.49,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5,  	2.5,      2.5,  	2.5, 	 2.5,      2.5,  	2.5]
2024-11-13 04:55:18.411430:  IMPORT: [	45.7,	46.85,    52.42,	56.39,	56.39,    56.39,	56.39,	56.39,    56.39,	56.39,	56.39,    56.82,	57.23,	57.45,    57.61,	57.69,	58.02,    58.18,	58.26,	59.24,    59.67, 	60.1,	61.31,    61.68,	62.16,	62.66,     63.6, 	64.5,	65.21,     66.1,	67.06,	68.32,    69.14,	69.85,	70.38,    70.85,	71.34, 	71.8,    72.44,	76.04,	80.52,     84.8,	87.45,	89.92,    91.13,	93.52,	94.82,    94.82,	94.82,	94.88]
2024-11-13 04:55:18.411753:  EXPORT: [	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.01, 	0.01,     0.01, 	0.35, 	0.66,     1.71, 	2.11, 	3.15,      4.9, 	6.84, 	8.35]
2024-11-13 04:55:18.412070:  CARBON: [ 2240.64,  2260.66,   2483.0,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2599.82,  2614.56,  2625.31,  2629.93,  2634.18,  2636.54,   2647.3,   2650.3,  2655.46,  2685.86,  2696.81,  2710.17,  2734.78,  2743.16,  2757.49,  2770.55,  2790.25,  2804.16,  2814.87,  2829.63,  2845.54,  2866.54,  2879.94,  2891.62,  2900.49,  2908.03,  2916.18,  2924.25,  2944.01,  3014.83,  3102.38,  3190.45,  3239.53,  3284.97,  3285.77,  3326.35,  3307.73,  3250.29,   3180.3,  3153.75]
2024-11-13 04:55:18.412404:	CAR0: [     0.0,  	0.6,  	3.0,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92, 	3.92,     3.92, 	3.92]
2024-11-13 04:55:18.412721:  METRIC: [  381.85,   389.85,    428.9,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   456.66,   467.46,   477.77,   483.38,   487.43,   489.53,   497.89,   501.94,   503.84,   528.71,   539.41,   550.25,   580.99,   590.33,   602.45,   614.87,   638.71,   661.46,   679.42,    701.8,   726.05,   757.92,    778.5,   796.42,	809.9,   821.81,   834.06,   845.85,   861.97,   887.16,   980.63,  1010.61,  1024.09,  1036.73,  1029.49,  1040.27,   1033.7,  1007.36,   978.33,   956.09]
2024-11-13 04:55:18.413369:  STATE:  [	Chrg,     Chrg, 	Chrg,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     	,     Chrg, 	Chrg, 	Chrg, Chrg/Dis, Chrg/Dis, Chrg/Dis, Chrg/Dis, Chrg/Dis,  	Dis, 	 Dis,      Dis]
2024-11-13 04:55:18.640183: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0
2024-11-13 04:55:18.648547: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0
2024-11-13 04:55:18.668548: Best charging limit socs [8.02, 2.7, 9.7, 9.7, 9.7, 9.7, 9.7, 9.7, 9.7] export [77, 82, 73, 81, 4] gives import battery 58.76 house 38.63 export 8.35 metric 956.09 metric10 1064.79
2024-11-13 04:55:18.756476: Web interface history update
2024-11-13 04:55:19.303338: Inverter 0: Type SE SolarEdge
2024-11-13 04:55:19.303376: Warn: Inverter 0: Using inverter type SE - not all features are available
2024-11-13 04:55:19.303480: Reserve min: 4.0% Battery_min:4.0%
2024-11-13 04:55:19.303514: 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 6.0 kW export limit 6.0 kW reserve 4.0 % current_reserve 4.0 %
2024-11-13 04:55:19.303609: Inverter 0 scheduled_charge_enable on scheduled_discharge_enable off
2024-11-13 04:55:19.303678: Inverter 0 SOC: 1.96kW 20% Current charge rate 5000W Current discharge rate 5000W Current power 4998.0W Current voltage 52.0V
2024-11-13 04:55:19.303785: Inverter 0 No write needed for scheduled_charge_enable as True == True
2024-11-13 04:55:19.303796: Inverter 0 scheduled_charge_enable set to True
2024-11-13 04:55:19.303829: Inverter 0 scheduled charge enable is True
2024-11-13 04:55:19.303848: Inverter 0 charge windows currently [{'start': 0, 'end': 360, 'average': 0}, {'start': 1440, 'end': 1800, 'average': 0}, {'start': 2880, 'end': 3240, 'average': 0}]
2024-11-13 04:55:19.303881: Inverter 0 Charge settings: 11-13 00:00:00-11-13 06:00:00 limit 83.0 power 5.0 kW
2024-11-13 04:55:19.303937: Inverter 0 No write needed for scheduled_discharge_enable as False == False
2024-11-13 04:55:19.303946: Inverter 0 sensor.predbat_SE_0_scheduled_discharge_enable set to False
2024-11-13 04:55:19.303958: Inverter 0 scheduled discharge enable is False
2024-11-13 04:55:19.304014: Inverter 0 idle time is 11-13 06:00:00-11-13 23:59:00
2024-11-13 04:55:19.304024: Inverter 0 discharge windows currently []
2024-11-13 04:55:19.304035: Note: Inverter does not support discharge freeze - disabled
2024-11-13 04:55:19.304043: Note: Inverter does not support charge freeze - disabled
2024-11-13 04:55:19.304050: Note: Inverter does not support reserve - disabling reserve functions
2024-11-13 04:55:19.304079: Found 1 inverters totals: min reserve 0.39 current reserve 0.39 soc_max 9.7 soc 1.96 charge rate 5.0 kW discharge rate 5.0 kW battery_rate_min 0.0 w ac limit 6.0 export limit 6.0 kW loss charge 3 % loss discharge 3 % inverter loss 2 %
2024-11-13 04:55:19.340894: Base charge	window [ 13-11 00:00:00 - 13-11 06:00:00 @ 0p 83%, 14-11 00:00:00 - 14-11 06:00:00 @ 0p 83%, 15-11 00:00:00 - 15-11 06:00:00 @ 0p 83% ]
2024-11-13 04:55:19.340931: Base discharge window [  ]
2024-11-13 04:55:19.340966: Include original charge start 11-13 00:00:00, keeping this instead of new start 11-13 04:30:00
2024-11-13 04:55:19.340989: Charge window will be: 2024-11-13 00:00:00+00:00 - 2024-11-13 06:00:00+00:00 - current soc 20 target 83
2024-11-13 04:55:19.341044: Inverter 0 Skipping service charge_stop_service domain discharge with data {'device_id': ''} as already called
2024-11-13 04:55:19.341060: Inverter 0 Skipping service charge_start_service domain charge with data {'device_id': '', 'target_soc': 83, 'power': 5000} as already called
2024-11-13 04:55:19.341084: Configuring charge window now (now 11-13 04:55:00 target set_window_minutes 30 charge start time 11-13 00:00:00
2024-11-13 04:55:19.341128: Adjust idle time, charge 00:00:00-06:00:00 discharge 00:00:00-00:00:00
2024-11-13 04:55:19.341218: Adjust idle time computed idle is 06:00:00-23:59:00
2024-11-13 04:55:19.341262: Next discharge window will be: 2024-11-14 01:20:00+00:00 - 2024-11-14 01:31:00+00:00 at reserve 77
2024-11-13 04:55:19.341283: Setting ECO mode as we are not yet within the discharge window - next time is 11-14 01:20:00 - 11-14 01:30:00
2024-11-13 04:55:19.341329: Inverter 0 Adjust force discharge to False, change times from 00:00:00 - 00:00:00 to 00:00:00 - 00:00:00
2024-11-13 04:55:19.341339: Adjust idle time, charge 00:00:00-06:00:00 discharge 00:00:00-00:00:00
2024-11-13 04:55:19.341406: Adjust idle time computed idle is 06:00:00-23:59:00
2024-11-13 04:55:19.341447: Car charging from battery is off, next slot for car 0 is 11-13 02:56:00 - 11-13 05:00:00
2024-11-13 04:55:19.341469: Inverter 0 Skipping service charge_stop_service domain discharge with data {'device_id': ''} as already called
2024-11-13 04:55:19.341491: Setting charging SOC to 83 as per target
2024-11-13 04:55:19.341518: Inverter 0 adjust target soc for charge to 83% (8.05kWh/9.7kWh 9.7kWh) based on going from 20% -> 83% total add is 6.09kWh and this battery needs to add 6.09kWh to get to 8.05kWh
2024-11-13 04:55:19.341545: Inverter 0 Current Target SOC is 83%, already at target
2024-11-13 04:55:19.341577: Current SOC 20% is less than Target SOC 83. Grid charging enabled with charge current set to 65.00
2024-11-13 04:55:19.399903: Completed run status Charging
2024-11-13 04:55:19.408809: Info: record_status Charging target 20%-83%

@springfall2008
Copy link
Owner

Can you share your apps.yaml, specifically the service API settings?

@PieBeard
Copy link
Author

PieBeard commented Nov 17, 2024

# ------------------------------------------------------------------
# This is an example configuration, please modify it
# ------------------------------------------------------------------
---
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


  # If you are using Predbat outside of HA then set the HA URL and Key (long lived access token here)
  #ha_url: 'http://homeassistant.local:8123'
  #ha_key: 'xxx'

  # Currency, symbol for main currency second symbol for 1/100s e.g. $ c or £ p or e c
  currency_symbols:
   - '£'
   - 'p'

  # Number of threads to use in plan calculation
  # Can be auto for automatic, 0 for off or values 1-N for a fixed number
  threads: auto

  #
  # 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_daily
  import_today:
    - sensor.solaredge_multi_m1_imported
  export_today:
    - sensor.solaredge_multi_m1_exported
  pv_today:
    - sensor.solar_panel_production_kwh   # This is a custom sensor - see Readme on how to create or comment out
  #
  # Controls/status - must by 1 per inverter
  #
  num_inverters: 1
  inverter_type: "SE"

  # Can be enabled if you have a backup interface
  #inverter:
  #  has_reserve_soc: True

  battery_rate_max:
    - sensor.solaredge_multi_b1_max_charge_power
  charge_rate:
    - sensor.solaredge_multi_b1_max_charge_power
  discharge_rate:
    - sensor.solaredge_multi_b1_max_discharge_power
  battery_power:
    - sensor.solaredge_multi_b1_dc_power
  pv_power:
    - sensor.solar_panel_production_w # This is a custom sensor - see Readme on how to create or comment out
  load_power:
    - sensor.solar_house_consumption_w # This is a custom sensor - see Readme on how to create or comment out
  soc_percent:
    - sensor.solaredge_multi_b1_state_of_energy
  soc_max:
    - sensor.solaredge_multi_b1_maximum_energy
  # Can be enabled you have a backup interface
  #reserve:
  #  - number.solaredge_i1_backup_reserve
  charge_start_time:
   - "00:00:00"
  charge_end_time:
   - "00:01:00"
  charge_limit:
   - number.solaredge_multi_i1_ac_charge_limit
   #- '100'
  scheduled_charge_enable:
   - off
  scheduled_discharge_enable:
   - off
  discharge_start_time:
   - "00:00:00"
  discharge_end_time:
   - "00:01:00"

  # Services to control charging/discharging
  charge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_multi_i1_storage_command_mode"
    option: "Charge from Solar Power and Grid"
  charge_stop_service:
    service: select.select_option
    entity_id: "select.solaredge_multi_i1_storage_command_mode"
    option: "Maximize Self Consumption"
  discharge_start_service:
    service: select.select_option
    entity_id: "select.solaredge_multi_i1_storage_command_mode"
    option: "Discharge to Maximize Export"

  # Inverter max AC limit (one per inverter)
  # If you have a second inverter for PV only please add the two values together
  inverter_limit:
   - 6000
  # - 3600
  # 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:
   - 6000
  # - 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:
   - 5000.0
  inverter_limit_discharge:
   - 5000.0


  # 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:
  #  91 : 0.91
  #  92 : 0.81
  #  93 : 0.71
  #  94 : 0.62
  #  95 : 0.52
  #  96 : 0.43
  #  97 : 0.33
  #  98 : 0.24
  #  99 : 0.24
  #  100 : 0.24

  # 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

  # Solcast cloud interface, set this or the local interface below
  solcast_host: 'https://api.solcast.com.au/'
  solcast_api_key: 'XXXXXXXXXXXXXXX'
  solcast_poll_hours: 8

  # Set these to match solcast sensor names if not using the cloud interface
  # The regular expression (re:) makes the solcast bit optional
  # If these don't match find your own names in Home Assistant
  pv_forecast_today: re:(sensor.(solcast_|)(pv_forecast_|)forecast_today)
  pv_forecast_tomorrow: re:(sensor.(solcast_|)(pv_forecast_|)forecast_tomorrow)
  pv_forecast_d3: re:(sensor.(solcast_|)(pv_forecast_|)forecast_(day_3|d3))
  pv_forecast_d4: re:(sensor.(solcast_|)(pv_forecast_|)forecast_(day_4|d4))

  # 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: 're:(sensor.myenergi_zappi_[0-9a-z]+_charge_added_session|sensor.wallbox_portal_added_energy)'

  num_cars: 1

  # 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:
    - 're:(sensor.wallbox_portal_status_description|sensor.myenergi_zappi_[0-9a-z]+_plug_status)'
    - '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:
    - 87
  #car_charging_limit:
    #- 're:number.tsunami_charge_limit'
  car_charging_soc:
    - 're:input_number.ariya_soc'

  # 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: 're:binary_sensor.octopus_energy_[0-9a-z]+_[0-9a-z]+_intelligent_dispatching'
  octopus_ready_time: 're:time.octopus_energy_[0-9a-z]+_[0-9a-z]+_intelligent_ready_time'
  octopus_charge_limit: 're:number.octopus_energy_[0-9a-z]+_[0-9a-z]+_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: 're:(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_current_rate)'
  metric_octopus_export: 're:(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_export_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: 're:(sensor.(octopus_energy_|)electricity_[0-9a-z]+_[0-9a-z]+_current_standing_charge)'

  # 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"
  rates_import_override:
    -  date: '2024-10-20'
       start: '13:00:00'
       end: '14:00:00'
       rate: 0
       load_scaling: 1.0
    
  # 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/"

  # Carbon Intensity data from National grid
  carbon_intensity: 're:(sensor.carbon_intensity_uk)'

  # Octopus saving session points to the saving session Sensor in the Octopus plugin, when enabled saving sessions will be at the assumed
  # Rate is read automatically from the add-in and converted to pence using the conversion rate below (default is 8)
  octopus_saving_session: 're:(binary_sensor.octopus_energy([0-9a-z_]+|)_saving_session(s|))'
  octopus_saving_session_octopoints_per_penny: 8
  
  # 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:
    - 1
    - 2
    - 3
    - 7

  # 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:
    - 0.5
    - 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: 48

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

  # 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
  #iboost_energy_today: 'sensor.xxxxx'
  #iboost_energy_scaling: 1.0

@PieBeard
Copy link
Author

Tested again with the new updates and got the following plan but the state of charge did reach 100% earlier in the night but not by 05:30. Seemed like it didn’t call for charge service with enough time for it to reach full charge.
IMG_2839
IMG_5429
IMG_5430

@PieBeard
Copy link
Author

Here is log of the hour before 05:30
Predbat log 24-11-26.txt

@cyberkryten
Copy link

I'm seeing the same after updating from an old version to 8.7.2

It usually charges to 100% overnight, but last night on the charge/discharge cycle it didn't get above 89%

HA Battery State 24-26Nov

Only one night, but thought I'd mention so you know it isn't just your setup

@PieBeard
Copy link
Author

Worse performance yesterday against the plan.

Plan
IMG_5432

Result
IMG_5433

@cyberkryten
Copy link

Battery only at 80% this morning.

I was out so didn't manage to collect much info, but I did notice that late last night the Plan said 'Charging' but the Inverter was left in the state "Maximise Self Consumption". Logging from back then was gone by the time I'm up and about this morning.

2024-11-29 07:15:28.484276 INFO pred_bat: Inverter 0 SOC: 19.5kW 67% Current charge rate 11400W Current discharge rate 11400W Current power 7757.0W Current voltage 52.0V
2024-11-29 07:15:28.525280 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:20:05.484197 INFO pred_bat: Inverter 0 SOC: 19.79kW 68% Current charge rate 11400W Current discharge rate 11400W Current power 7749.0W Current voltage 52.0V
2024-11-29 07:20:06.487510 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:25:05.409261 INFO pred_bat: Inverter 0 SOC: 20.66kW 71% Current charge rate 11400W Current discharge rate 11400W Current power 7745.0W Current voltage 52.0V
2024-11-29 07:25:06.380073 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:25:27.929616 INFO pred_bat: Inverter 0 SOC: 20.66kW 71% Current charge rate 11400W Current discharge rate 11400W Current power 7740.0W Current voltage 52.0V
2024-11-29 07:25:27.969153 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:30:05.473436 INFO pred_bat: Inverter 0 SOC: 20.66kW 71% Current charge rate 11400W Current discharge rate 11400W Current power -960.0W Current voltage 52.0V
2024-11-29 07:30:06.451863 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:35:05.139966 INFO pred_bat: Inverter 0 SOC: 20.66kW 71% Current charge rate 11400W Current discharge rate 11400W Current power -991.0W Current voltage 52.0V
2024-11-29 07:35:06.147020 INFO pred_bat: Setting charging SOC to 92 as per target
2024-11-29 07:35:28.196289 INFO pred_bat: Inverter 0 SOC: 20.66kW 71% Current charge rate 11400W Current discharge rate 11400W Current power -1046.0W Current voltage 52.0V
2024-11-29 07:35:29.544114 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:40:05.187405 INFO pred_bat: Inverter 0 SOC: 21.24kW 73% Current charge rate 11400W Current discharge rate 11400W Current power 7741.0W Current voltage 52.0V
2024-11-29 07:40:06.176498 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:45:05.420997 INFO pred_bat: Inverter 0 SOC: 21.82kW 75% Current charge rate 11400W Current discharge rate 11400W Current power 7734.0W Current voltage 52.0V
2024-11-29 07:45:06.404112 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:45:28.883011 INFO pred_bat: Inverter 0 SOC: 21.82kW 75% Current charge rate 11400W Current discharge rate 11400W Current power 7736.0W Current voltage 52.0V
2024-11-29 07:45:28.922292 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:50:05.415340 INFO pred_bat: Inverter 0 SOC: 22.41kW 77% Current charge rate 11400W Current discharge rate 11400W Current power 7740.0W Current voltage 52.0V
2024-11-29 07:50:06.407006 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:55:05.439420 INFO pred_bat: Inverter 0 SOC: 22.99kW 79% Current charge rate 11400W Current discharge rate 11400W Current power 7794.0W Current voltage 52.0V
2024-11-29 07:55:06.415283 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 07:55:27.562413 INFO pred_bat: Inverter 0 SOC: 22.99kW 79% Current charge rate 11400W Current discharge rate 11400W Current power 7796.0W Current voltage 52.0V
2024-11-29 07:55:27.600294 INFO pred_bat: Setting charging SOC to 88 as per target
2024-11-29 08:00:05.563520 INFO pred_bat: Inverter 0 SOC: 23.57kW 81% Current charge rate 11400W Current discharge rate 11400W Current power 7820.0W Current voltage 52.0V
2024-11-29 08:00:27.848024 INFO pred_bat: Setting charging SOC to 0 as we are not within the charge window and inverter doesn't support target soc
2024-11-29 08:05:05.145799 INFO pred_bat: Inverter 0 SOC: 23.57kW 81% Current charge rate 11400W Current discharge rate 11400W Current power -654.0W Current voltage 52.0V
2024-11-29 08:05:10.186735 INFO pred_bat: Setting charging SOC to 0 as we are not within the charge window and inverter doesn't support target soc
2024-11-29 08:05:35.363334 INFO pred_bat: Inverter 0 SOC: 23.57kW 81% Current charge rate 11400W Current discharge rate 11400W Current power -896.0W Current voltage 52.0V
2024-11-29 08:05:35.403023 INFO pred_bat: Setting charging SOC to 0 as we are not within the charge window and inverter doesn't support target soc

Limits are set in config:

  # Inverter max AC limit (one per inverter)                   
  # If you have a second inverter for PV only please add the two values together
  inverter_limit:                                                               
    - 8000                                                                      
  # 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:                                                                                      
    - 3680

  battery_rate_max:                                                      
    - number.solaredgemodbus_i1_storage_charge_limit                  
  charge_rate:                                                        
    # Hardcodding this value causes issues if Predbat tries to hold charge by writing to the value
    - number.solaredgemodbus_i1_storage_charge_limit                                              
  discharge_rate:                                                                                 
    - number.solaredgemodbus_i1_storage_discharge_limit   

I wonder if there's been a change in what is used to calculate the charging speed? My inverter reports the storage_charge/discharge_limit values being 11400 (always has done) - just a quirk of the SE Inverters.

However, it is an 8kW inverter, that could account for the fact it is no longer reaching 100% (maybe).

If there's anywhere that extra Debug output would be useful, let me know and I'll add it and report back.

@PieBeard
Copy link
Author

PieBeard commented Dec 2, 2024

With the new version 8.8.1 the battery charging seemed to fail in not following the plan by quite a margin.

Plan
IMG_5496

Result, the charge from the day before also didn't follow properly and can be seen. There was a car charge scheduled up to 08:30 with no charging between 07:30 and 08:00. But the main point is that last night it didn't charge to 100% or do a mix of import and export.
IMG_5497

Log
predbat.log

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

No branches or pull requests

3 participants