springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
98 stars 34 forks source link

Not utilising battery #574

Closed naltsta closed 5 months ago

naltsta commented 6 months ago

Describe the bug Not choosing cheapest slots to charge

Expected behavior Cheapest slots selected

Predbat version

7.14.31

Environment details

Screenshots Screenshot 2024-01-03 at 21 02 15

Log file 2024-01-03 20:56:21.304329 INFO pred_bat: Optimise price set 25.0 start_at_low True best_price 29.0 2024-01-03 20:56:22.107520 INFO pred_bat: Try optimising charge window(s) 29: 01-04 15:00:00 - 01-04 15:30:00 price 20.53 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 392.3, 0.21: 388.12} 2024-01-03 20:56:22.117346 INFO pred_bat: Optimise price set 25.8 start_at_low True best_price 29.0 2024-01-03 20:56:22.954790 INFO pred_bat: Try optimising charge window(s) 22: 01-04 10:00:00 - 01-04 10:30:00 price 21.25 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 390.86, 0.21: 388.12} 2024-01-03 20:56:22.964790 INFO pred_bat: Optimise price set 25.9 start_at_low True best_price 29.0 2024-01-03 20:56:23.767574 INFO pred_bat: Try optimising charge window(s) 26: 01-04 13:00:00 - 01-04 13:30:00 price 21.35 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 388.9, 0.21: 388.12} 2024-01-03 20:56:23.777286 INFO pred_bat: Optimise price set 26.6 start_at_low True best_price 29.0 2024-01-03 20:56:25.113291 INFO pred_bat: Try optimising charge window(s) 20: 01-04 08:30:00 - 01-04 09:30:00 price 21.98 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.97: 388.02, 4.72: 388.02, 4.47: 388.02, 0.0: 391.95, 0.21: 388.12} 2024-01-03 20:56:25.900991 INFO pred_bat: Try optimising charge window(s) 23: 01-04 10:30:00 - 01-04 11:00:00 price 21.96 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 388.17, 0.21: 388.12} 2024-01-03 20:56:25.910802 INFO pred_bat: Optimise price set 27.0 start_at_low True best_price 29.0 2024-01-03 20:56:27.486642 INFO pred_bat: Try optimising charge window(s) 28: 01-04 14:00:00 - 01-04 15:00:00 price 22.39 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.97: 388.02, 4.72: 388.02, 4.47: 388.02, 4.22: 388.02, 3.97: 388.02, 3.72: 388.02, 0.0: 395.15, 0.21: 388.12} 2024-01-03 20:56:27.496590 INFO pred_bat: Optimise price set 27.4 start_at_low True best_price 29.0 2024-01-03 20:56:28.226453 INFO pred_bat: Try optimising charge window(s) 21: 01-04 09:30:00 - 01-04 10:00:00 price 22.7 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 388.82, 0.21: 388.12} 2024-01-03 20:56:28.236605 INFO pred_bat: Optimise price set 27.9 start_at_low True best_price 29.0 2024-01-03 20:56:28.976921 INFO pred_bat: Try optimising charge window(s) 38: 01-04 20:00:00 - 01-04 20:30:00 price 23.18 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 389.89, 0.21: 388.12} 2024-01-03 20:56:28.987656 INFO pred_bat: Optimise price set 29.0 start_at_low True best_price 29.0 2024-01-03 20:56:29.823996 INFO pred_bat: Try optimising charge window(s) 30: 01-04 15:30:00 - 01-04 16:00:00 price 24.2 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 394.57, 0.21: 388.12} 2024-01-03 20:56:29.834785 INFO pred_bat: Optimise price set 30.5 start_at_low True best_price 29.0 2024-01-03 20:56:30.673144 INFO pred_bat: Try optimising charge window(s) 36: 01-04 19:00:00 - 01-04 19:30:00 price 25.6 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 388.89, 0.21: 388.12} 2024-01-03 20:56:30.687615 INFO pred_bat: Optimise price set 40.3 start_at_low True best_price 29.0 2024-01-03 20:56:31.510182 INFO pred_bat: Try optimising charge window(s) 35: 01-04 18:30:00 - 01-04 19:00:00 price 34.73 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 388.45, 0.21: 388.12} 2024-01-03 20:56:31.519927 INFO pred_bat: Optimise price set 41.8 start_at_low True best_price 29.0 2024-01-03 20:56:32.306213 INFO pred_bat: Try optimising charge window(s) 31: 01-04 16:00:00 - 01-04 16:30:00 price 36.18 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 392.35, 0.21: 388.12} 2024-01-03 20:56:32.315888 INFO pred_bat: Optimise price set 42.9 start_at_low True best_price 29.0 2024-01-03 20:56:33.092342 INFO pred_bat: Try optimising charge window(s) 34: 01-04 18:00:00 - 01-04 18:30:00 price 37.13 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 390.5, 0.21: 388.12} 2024-01-03 20:56:33.102602 INFO pred_bat: Optimise price set 43.6 start_at_low True best_price 29.0 2024-01-03 20:56:34.030714 INFO pred_bat: Try optimising charge window(s) 32: 01-04 17:00:00 - 01-04 17:30:00 price 37.82 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.28, 4.22: 388.28, 0.0: 391.74, 0.21: 388.38} 2024-01-03 20:56:34.039763 INFO pred_bat: Optimise price set 44.4 start_at_low True best_price 29.0 2024-01-03 20:56:34.808609 INFO pred_bat: Try optimising charge window(s) 33: 01-04 17:30:00 - 01-04 18:00:00 price 38.58 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 391.19, 0.21: 388.12} 2024-01-03 20:56:34.828106 INFO pred_bat: Best charge windows in price group 44.4 best_metric 388.01 best_cost 461.23 metric_keep 0.0 windows [ 03-01 20:00:00 - 03-01 21:00:00 @ 18.2p 0.21%, 03-01 21:00:00 - 03-01 22:00:00 @ 18.41p 5.22%, 03-01 22:00:00 - 03-01 22:30:00 @ 18.38p 5.22%, 03-01 22:30:00 - 03-01 23:00:00 @ 16.4p 5.22%, 03-01 23:00:00 - 04-01 00:00:00 @ 16.78p 5.22%, 04-01 00:00:00 - 04-01 00:30:00 @ 16.27p 5.22%, 04-01 00:30:00 - 04-01 01:00:00 @ 18.17p 5.22%, 04-01 01:00:00 - 04-01 01:30:00 @ 18.6p 5.22%, 04-01 01:30:00 - 04-01 02:00:00 @ 16.33p 5.22%, 04-01 02:00:00 - 04-01 02:30:00 @ 16.74p 5.22%, 04-01 02:30:00 - 04-01 03:30:00 @ 16.12p 5.22%, 04-01 03:30:00 - 04-01 04:00:00 @ 15.16p 5.22%, 04-01 04:00:00 - 04-01 04:30:00 @ 16.27p 5.22%, 04-01 04:30:00 - 04-01 05:00:00 @ 15.12p 5.22%, 04-01 05:00:00 - 04-01 05:30:00 @ 16.27p 5.22%, 04-01 05:30:00 - 04-01 06:00:00 @ 17.07p 5.22%, 04-01 06:00:00 - 04-01 06:30:00 @ 18.96p 5.22%, 04-01 06:30:00 - 04-01 07:00:00 @ 17.78p 5.22%, 04-01 07:00:00 - 04-01 08:00:00 @ 18.96p 5.22%, 04-01 08:00:00 - 04-01 08:30:00 @ 19.19p 5.22%, 04-01 08:30:00 - 04-01 09:30:00 @ 21.98p 5.22%, 04-01 09:30:00 - 04-01 10:00:00 @ 22.7p 5.22%, 04-01 10:00:00 - 04-01 10:30:00 @ 21.25p 5.22%, 04-01 10:30:00 - 04-01 11:00:00 @ 21.96p 5.22%, 04-01 11:00:00 - 04-01 12:00:00 @ 19.04p 5.22%, 04-01 12:00:00 - 04-01 13:00:00 @ 19.28p 5.22%, 04-01 13:00:00 - 04-01 13:30:00 @ 21.35p 5.22%, 04-01 13:30:00 - 04-01 14:00:00 @ 19.8p 5.22%, 04-01 14:00:00 - 04-01 15:00:00 @ 22.39p 5.22%, 04-01 15:00:00 - 04-01 15:30:00 @ 20.53p 5.22%, 04-01 15:30:00 - 04-01 16:00:00 @ 24.2p 5.22%, 04-01 16:00:00 - 04-01 16:30:00 @ 36.18p 5.22%, 04-01 17:00:00 - 04-01 17:30:00 @ 37.82p 5.22%, 04-01 17:30:00 - 04-01 18:00:00 @ 38.58p 5.22%, 04-01 18:00:00 - 04-01 18:30:00 @ 37.13p 5.22%, 04-01 18:30:00 - 04-01 19:00:00 @ 34.73p 5.22%, 04-01 19:00:00 - 04-01 19:30:00 @ 25.6p 5.22%, 04-01 19:30:00 - 04-01 20:00:00 @ 19.56p 5.22%, 04-01 20:00:00 - 04-01 20:30:00 @ 23.18p 5.22%, 04-01 20:30:00 - 04-01 21:00:00 @ 19.71p 5.22%, 04-01 21:00:00 - 04-01 21:30:00 @ 21.86p 5.22%, 04-01 21:30:00 - 04-01 22:00:00 @ 19.27p 5.22%, 04-01 22:00:00 - 04-01 22:30:00 @ 17.78p 5.22%, 04-01 22:30:00 - 04-01 23:00:00 @ 15.46p 5.22%, 04-01 23:00:00 - 05-01 00:00:00 @ 16.78p 5.22%, 05-01 00:00:00 - 05-01 00:30:00 @ 16.27p 5.22%, 05-01 00:30:00 - 05-01 01:00:00 @ 18.17p 5.22%, 05-01 01:00:00 - 05-01 01:30:00 @ 18.6p 5.22%, 05-01 01:30:00 - 05-01 02:00:00 @ 16.33p 5.22%, 05-01 02:00:00 - 05-01 02:30:00 @ 16.74p 5.22%, 05-01 02:30:00 - 05-01 03:30:00 @ 16.12p 5.22%, 05-01 03:30:00 - 05-01 04:00:00 @ 15.16p 5.22%, 05-01 04:00:00 - 05-01 04:30:00 @ 16.27p 5.22%, 05-01 04:30:00 - 05-01 05:00:00 @ 15.12p 5.22%, 05-01 05:00:00 - 05-01 05:30:00 @ 16.27p 5.22%, 05-01 05:30:00 - 05-01 06:00:00 @ 17.07p 5.22%, 05-01 06:00:00 - 05-01 06:30:00 @ 18.96p 5.22%, 05-01 06:30:00 - 05-01 07:00:00 @ 17.78p 5.22%, 05-01 07:00:00 - 05-01 08:00:00 @ 18.96p 5.22%, 05-01 08:00:00 - 05-01 08:30:00 @ 19.19p 5.22%, 05-01 08:30:00 - 05-01 09:30:00 @ 21.98p 5.22% ] 2024-01-03 20:56:34.839738 INFO pred_bat: Best discharge windows in price group 44.4 best_metric 388.01 best_cost 461.23 metric_keep 0.0 windows [ ] 2024-01-03 20:56:34.849041 INFO pred_bat: Tweak optimisation started 2024-01-03 20:56:35.630997 INFO pred_bat: Try optimising charge window(s) 0: 01-03 20:00:00 - 01-03 21:00:00 price 18.2 cost 461.23 metric 387.62 keep 0.0 selected 0.21 was 0.21 results {5.22: 388.01, 4.97: 388.02, 0.0: 388.66, 0.21: 387.62} 2024-01-03 20:56:37.019317 INFO pred_bat: Try optimising charge window(s) 1: 01-03 21:00:00 - 01-03 22:00:00 price 18.41 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.97: 388.02, 4.72: 388.02, 4.47: 388.02, 4.22: 388.02, 3.97: 388.02, 0.0: 396.28, 0.21: 388.12} 2024-01-03 20:56:38.077635 INFO pred_bat: Try optimising charge window(s) 2: 01-03 22:00:00 - 01-03 22:30:00 price 18.38 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 390.69, 0.21: 388.12} 2024-01-03 20:56:39.007475 INFO pred_bat: Try optimising charge window(s) 3: 01-03 22:30:00 - 01-03 23:00:00 price 16.4 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 391.34, 0.21: 388.12} 2024-01-03 20:56:40.193474 INFO pred_bat: Try optimising charge window(s) 4: 01-03 23:00:00 - 01-04 00:00:00 price 16.78 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.97: 388.02, 4.72: 388.02, 4.47: 388.02, 0.0: 393.03, 0.21: 388.12} 2024-01-03 20:56:40.981859 INFO pred_bat: Try optimising charge window(s) 5: 01-04 00:00:00 - 01-04 00:30:00 price 16.27 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 391.13, 0.21: 388.12} 2024-01-03 20:56:41.772701 INFO pred_bat: Try optimising charge window(s) 6: 01-04 00:30:00 - 01-04 01:00:00 price 18.17 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 0.0: 391.54, 0.21: 388.12} 2024-01-03 20:56:42.717576 INFO pred_bat: Try optimising charge window(s) 7: 01-04 01:00:00 - 01-04 01:30:00 price 18.6 cost 461.23 metric 388.01 keep 0.0 selected 5.22 was 5.22 results {5.22: 388.01, 4.72: 388.02, 4.22: 388.02, 0.0: 391.39, 0.21: 388.12} 2024-01-03 20:56:42.727897 INFO pred_bat: Tweak optimisation finished metric 388.01 cost 461.23 metric_keep 0.0 2024-01-03 20:56:42.853114 INFO pred_bat: predict debug end_record 01-04 21:00:00 final soc 5.22 kWh metric 517.86 p metric_keep 0.0 min_soc 4.9 @ 01-04 16:55:00 kWh load 26.79 pv 8.29 2024-01-03 20:56:42.886580 INFO pred_bat: [ 20:55, 21:55, 22:55, 23:55, 00:55, 01:55, 02:55, 03:55, 04:55, 05:55, 06:55, 07:55, 08:55, 09:55, 10:55, 11:55, 12:55, 13:55, 14:55, 15:55, 16:55, 17:55, 18:55, 19:55, 20:55] 2024-01-03 20:56:42.905368 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 4.96, 5.22, 5.22, 5.22, 5.22] 2024-01-03 20:56:42.922546 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g~be-, g<bf+, g<be-, g<be-, g<be-] 2024-01-03 20:56:42.939951 INFO pred_bat: LOAD: [ 10.04, 10.94, 11.65, 12.27, 12.92, 14.01, 15.35, 15.84, 16.14, 16.52, 16.8, 17.22, 17.73, 18.33, 19.23, 20.08, 20.94, 21.77, 23.0, 23.68, 24.27, 24.82, 25.42, 26.05, 26.78] 2024-01-03 20:56:42.957600 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.33, 4.68, 5.35, 6.26, 7.16, 7.87, 8.22, 8.29, 8.29, 8.29, 8.29, 8.29, 8.29] 2024-01-03 20:56:42.976173 INFO pred_bat: IMPORT: [ 8.8, 9.7, 10.41, 11.03, 11.68, 12.78, 14.11, 14.61, 14.9, 15.28, 15.57, 15.98, 16.47, 16.76, 17.21, 17.62, 18.05, 18.4, 19.29, 19.92, 20.26, 21.1, 21.69, 22.33, 23.05] 2024-01-03 20:56:42.994925 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.03, 3.23, 3.66, 4.1, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3] 2024-01-03 20:56:43.013720 INFO pred_bat: METRIC: [ 178.12, 194.65, 207.23, 217.58, 285.42, 304.48, 326.4, 334.17, 338.85, 345.06, 350.31, 358.12, 367.96, 374.03, 380.74, 382.15, 383.91, 387.97, 407.86, 421.65, 433.65, 465.52, 487.1, 502.13, 517.5] 2024-01-03 20:56:43.362559 INFO pred_bat: Filtered charge windows [ 03-01 20:00:00 - 03-01 21:00:00 @ 18.2p 4.0%, 03-01 21:00:00 - 04-01 16:30:00 @ 18.41p 100.0%, 04-01 17:00:00 - 05-01 09:30:00 @ 37.82p 100.0% ] reserve 0.21 2024-01-03 20:56:43.441489 INFO pred_bat: predict base end_record 01-04 21:00:00 final soc 0.21 kWh metric 430.87 p metric_keep 116.6 min_soc 0.21 @ 01-04 02:25:00 kWh load 26.79 pv 8.29 2024-01-03 20:56:43.456997 INFO pred_bat: [ 20:55, 21:55, 22:55, 23:55, 00:55, 01:55, 02:55, 03:55, 04:55, 05:55, 06:55, 07:55, 08:55, 09:55, 10:55, 11:55, 12:55, 13:55, 14:55, 15:55, 16:55, 17:55, 18:55, 19:55, 20:55] 2024-01-03 20:56:43.474211 INFO pred_bat: SOC: [ 5.22, 4.26, 3.49, 2.82, 2.13, 0.95, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.27, 0.26, 0.42, 0.25, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21] 2024-01-03 20:56:43.491410 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g~be-, g<be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-] 2024-01-03 20:56:43.509329 INFO pred_bat: LOAD: [ 10.04, 10.94, 11.65, 12.27, 12.92, 14.01, 15.35, 15.84, 16.14, 16.52, 16.8, 17.22, 17.73, 18.33, 19.23, 20.08, 20.94, 21.77, 23.0, 23.68, 24.27, 24.82, 25.42, 26.05, 26.78] 2024-01-03 20:56:43.526392 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.33, 4.68, 5.35, 6.26, 7.16, 7.87, 8.22, 8.29, 8.29, 8.29, 8.29, 8.29, 8.29] 2024-01-03 20:56:43.543955 INFO pred_bat: IMPORT: [ 8.8, 8.8, 8.8, 8.8, 8.8, 8.8, 9.45, 9.94, 10.24, 10.62, 10.9, 11.32, 11.8, 12.07, 12.39, 12.39, 12.55, 12.55, 13.41, 14.03, 14.61, 15.16, 15.76, 16.39, 17.12] 2024-01-03 20:56:43.561224 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0] 2024-01-03 20:56:43.579173 INFO pred_bat: METRIC: [ 178.12, 178.12, 178.12, 178.12, 234.75, 234.75, 245.15, 252.91, 257.59, 263.8, 269.05, 276.86, 286.71, 292.6, 299.56, 299.56, 302.66, 302.66, 321.79, 335.58, 357.35, 378.54, 400.11, 415.14, 430.51] 2024-01-03 20:56:44.312544 INFO pred_bat: Battery has 5.5 hours left - now at 5.22 2024-01-03 20:56:44.511500 INFO pred_bat: predict base10 end_record 01-04 21:00:00 final soc 0.21 kWh metric 499.72 p metric_keep 139.78 min_soc 0.21 @ 01-04 02:20:00 kWh load 27.03 pv 4.91 2024-01-03 20:56:44.529567 INFO pred_bat: [ 20:55, 21:55, 22:55, 23:55, 00:55, 01:55, 02:55, 03:55, 04:55, 05:55, 06:55, 07:55, 08:55, 09:55, 10:55, 11:55, 12:55, 13:55, 14:55, 15:55, 16:55, 17:55, 18:55, 19:55, 20:55] 2024-01-03 20:56:44.549914 INFO pred_bat: SOC: [ 5.22, 4.16, 3.31, 2.58, 1.88, 0.7, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21] 2024-01-03 20:56:44.573039 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-] 2024-01-03 20:56:44.591934 INFO pred_bat: LOAD: [ 10.04, 11.02, 11.81, 12.49, 13.15, 14.24, 15.58, 16.07, 16.37, 16.75, 17.04, 17.45, 17.96, 18.56, 19.46, 20.31, 21.17, 22.0, 23.23, 23.92, 24.5, 25.05, 25.65, 26.28, 27.01] 2024-01-03 20:56:44.610447 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.31, 4.36, 4.45, 4.59, 4.73, 4.84, 4.9, 4.91, 4.91, 4.91, 4.91, 4.91, 4.91] 2024-01-03 20:56:44.628368 INFO pred_bat: IMPORT: [ 8.8, 8.8, 8.8, 8.8, 8.8, 8.8, 9.68, 10.17, 10.47, 10.85, 11.13, 11.55, 12.06, 12.61, 13.41, 14.13, 14.85, 15.58, 16.76, 17.43, 18.01, 18.56, 19.16, 19.79, 20.52] 2024-01-03 20:56:44.647228 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0] 2024-01-03 20:56:44.670832 INFO pred_bat: METRIC: [ 178.12, 178.12, 178.12, 178.12, 234.75, 234.75, 249.03, 256.8, 261.48, 267.69, 272.94, 280.75, 291.06, 303.34, 320.74, 334.52, 348.48, 363.39, 389.54, 404.42, 426.2, 447.39, 468.97, 484.0, 499.36] 2024-01-03 20:56:45.060488 INFO pred_bat: predict best10 end_record 01-04 21:00:00 final soc 5.22 kWh metric 582.13 p metric_keep 0.0 min_soc 4.9 @ 01-04 16:55:00 kWh load 27.03 pv 4.91 2024-01-03 20:56:45.077699 INFO pred_bat: [ 20:55, 21:55, 22:55, 23:55, 00:55, 01:55, 02:55, 03:55, 04:55, 05:55, 06:55, 07:55, 08:55, 09:55, 10:55, 11:55, 12:55, 13:55, 14:55, 15:55, 16:55, 17:55, 18:55, 19:55, 20:55] 2024-01-03 20:56:45.095384 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 4.96, 5.22, 5.22, 5.22, 5.22] 2024-01-03 20:56:45.109911 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g~be-, g<bf+, g<be-, g<be-, g<be-] 2024-01-03 20:56:45.124929 INFO pred_bat: LOAD: [ 10.04, 11.02, 11.81, 12.49, 13.15, 14.24, 15.58, 16.07, 16.37, 16.75, 17.04, 17.45, 17.96, 18.56, 19.46, 20.31, 21.17, 22.0, 23.23, 23.92, 24.5, 25.05, 25.65, 26.28, 27.01] 2024-01-03 20:56:45.139642 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.31, 4.36, 4.45, 4.59, 4.73, 4.84, 4.9, 4.91, 4.91, 4.91, 4.91, 4.91, 4.91] 2024-01-03 20:56:45.154976 INFO pred_bat: IMPORT: [ 8.8, 9.79, 10.58, 11.25, 11.91, 13.01, 14.35, 14.84, 15.14, 15.51, 15.8, 16.21, 16.72, 17.27, 18.08, 18.81, 19.53, 20.26, 21.43, 22.1, 22.45, 23.28, 23.88, 24.52, 25.24] 2024-01-03 20:56:45.169877 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.01, 3.01, 3.01, 3.01, 3.01, 3.01, 3.01, 3.01, 3.01, 3.01] 2024-01-03 20:56:45.187752 INFO pred_bat: METRIC: [ 178.12, 196.3, 210.14, 221.52, 289.52, 308.57, 330.5, 338.26, 342.94, 349.15, 354.4, 362.21, 372.53, 384.81, 402.2, 416.01, 429.97, 444.88, 471.03, 485.92, 497.92, 529.79, 551.37, 566.4, 581.77] 2024-01-03 20:56:45.591857 INFO pred_bat: predict best end_record 01-04 21:00:00 final soc 5.22 kWh metric 517.86 p metric_keep 0.0 min_soc 4.9 @ 01-04 16:55:00 kWh load 26.79 pv 8.29 2024-01-03 20:56:45.610527 INFO pred_bat: [ 20:55, 21:55, 22:55, 23:55, 00:55, 01:55, 02:55, 03:55, 04:55, 05:55, 06:55, 07:55, 08:55, 09:55, 10:55, 11:55, 12:55, 13:55, 14:55, 15:55, 16:55, 17:55, 18:55, 19:55, 20:55] 2024-01-03 20:56:45.627389 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 4.96, 5.22, 5.22, 5.22, 5.22] 2024-01-03 20:56:45.645314 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g~be-, g<bf+, g<be-, g<be-, g<be-] 2024-01-03 20:56:45.663088 INFO pred_bat: LOAD: [ 10.04, 10.94, 11.65, 12.27, 12.92, 14.01, 15.35, 15.84, 16.14, 16.52, 16.8, 17.22, 17.73, 18.33, 19.23, 20.08, 20.94, 21.77, 23.0, 23.68, 24.27, 24.82, 25.42, 26.05, 26.78] 2024-01-03 20:56:45.680952 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.33, 4.68, 5.35, 6.26, 7.16, 7.87, 8.22, 8.29, 8.29, 8.29, 8.29, 8.29, 8.29] 2024-01-03 20:56:45.699439 INFO pred_bat: IMPORT: [ 8.8, 9.7, 10.41, 11.03, 11.68, 12.78, 14.11, 14.61, 14.9, 15.28, 15.57, 15.98, 16.47, 16.76, 17.21, 17.62, 18.05, 18.4, 19.29, 19.92, 20.26, 21.1, 21.69, 22.33, 23.05] 2024-01-03 20:56:45.719953 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.03, 3.23, 3.66, 4.1, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3] 2024-01-03 20:56:45.743325 INFO pred_bat: METRIC: [ 178.12, 194.65, 207.23, 217.58, 285.42, 304.48, 326.4, 334.17, 338.85, 345.06, 350.31, 358.12, 367.96, 374.03, 380.74, 382.15, 383.91, 387.97, 407.86, 421.65, 433.65, 465.52, 487.1, 502.13, 517.5] 2024-01-03 20:56:46.533677 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0.0 2024-01-03 20:56:46.590312 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0.0 2024-01-03 20:56:46.627037 INFO pred_bat: Best charging limit socs [0.21, 5.22, 5.22] export [] gives import battery 23.35 house 0.0 export 4.3 metric 517.86 metric10 582.13 2024-01-03 20:56:47.124141 INFO pred_bat: Include original charge start 01-03 20:00:00, keeping this instead of new start 01-03 20:00:00 2024-01-03 20:56:47.132374 INFO pred_bat: Charge window will be: 2024-01-03 20:00:00+00:00 - 2024-01-04 16:30:00+00:00 - current soc 100 target 4 2024-01-03 20:56:47.142538 INFO pred_bat: Setting ECO mode as no discharge window planned 2024-01-03 20:56:47.154646 INFO pred_bat: Inverter 0 Adjust force discharge to False, change times from 15:00:00 - 15:31:00 to None - None 2024-01-03 20:56:47.167967 INFO pred_bat: Within charge freeze setting target soc to current soc 100 2024-01-03 20:56:47.182901 INFO pred_bat: Inverter 0 Current Target SOC is 100 already at target 2024-01-03 20:56:47.196160 INFO pred_bat: Adjust reserve to hold current soc 100 % (set_reserve_enable is true) 2024-01-03 20:56:47.207847 INFO pred_bat: Inverter 0 Current reserve is 98.0 already at target 2024-01-03 20:56:47.271984 INFO pred_bat: Completed run status Freeze charging

springfall2008 commented 6 months ago

Can you attached a full cycle of the log (one 5 minute update), this one is incomplete?

naltsta commented 6 months ago

2024-01-03 21:11:50.144092 INFO pred_bat: Updating HA config expert_mode to True 2024-01-03 21:11:50.180534 INFO pred_bat: Updating HA config pv_metric10_weight to 0.15 2024-01-03 21:11:50.221101 INFO pred_bat: Updating HA config pv_scaling to 1.0 2024-01-03 21:11:50.260663 INFO pred_bat: Updating HA config load_scaling to 1.0 2024-01-03 21:11:50.297590 INFO pred_bat: Updating HA config load_scaling10 to 1.1 2024-01-03 21:11:50.334170 INFO pred_bat: Updating HA config battery_rate_max_scaling to 1.0 2024-01-03 21:11:50.373333 INFO pred_bat: Updating HA config battery_loss to 0.03 2024-01-03 21:11:50.411501 INFO pred_bat: Updating HA config battery_loss_discharge to 0.03 2024-01-03 21:11:50.447594 INFO pred_bat: Updating HA config inverter_loss to 0.04 2024-01-03 21:11:50.486384 INFO pred_bat: Updating HA config inverter_hybrid to True 2024-01-03 21:11:50.527503 INFO pred_bat: Updating HA config inverter_soc_reset to False 2024-01-03 21:11:50.563834 INFO pred_bat: Updating HA config battery_capacity_nominal to False 2024-01-03 21:11:50.600979 INFO pred_bat: Updating HA config car_charging_energy_scale to 1.0 2024-01-03 21:11:50.640956 INFO pred_bat: Updating HA config car_charging_threshold to 6.0 2024-01-03 21:11:50.679033 INFO pred_bat: Updating HA config car_charging_rate to 7.4 2024-01-03 21:11:50.712572 INFO pred_bat: Updating HA config car_charging_loss to 0.08 2024-01-03 21:11:50.748358 INFO pred_bat: Updating HA config best_soc_min to 0.0 2024-01-03 21:11:50.782195 INFO pred_bat: Updating HA config best_soc_max to 0.0 2024-01-03 21:11:50.820417 INFO pred_bat: Updating HA config best_soc_keep to 1.0 2024-01-03 21:11:50.855322 INFO pred_bat: Updating HA config metric_min_improvement to 0.0 2024-01-03 21:11:50.889965 INFO pred_bat: Updating HA config metric_min_improvement_discharge to 0.3 2024-01-03 21:11:50.926464 INFO pred_bat: Updating HA config metric_battery_cycle to 3.0 2024-01-03 21:11:50.964925 INFO pred_bat: Updating HA config metric_battery_value_scaling to 1.0 2024-01-03 21:11:51.001305 INFO pred_bat: Updating HA config metric_future_rate_offset_import to 0.0 2024-01-03 21:11:51.035540 INFO pred_bat: Updating HA config metric_future_rate_offset_export to 0.0 2024-01-03 21:11:51.070959 INFO pred_bat: Updating HA config metric_inday_adjust_damping to 0.95 2024-01-03 21:11:51.107097 INFO pred_bat: Updating HA config metric_cloud_enable to True 2024-01-03 21:11:51.142193 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_reserve_min 2024-01-03 21:11:51.148566 INFO pred_bat: Updating HA config set_reserve_min to 4.0 2024-01-03 21:11:51.182059 INFO pred_bat: Updating HA config rate_low_threshold to 0.0 2024-01-03 21:11:51.217809 INFO pred_bat: Updating HA config rate_high_threshold to 0.0 2024-01-03 21:11:51.252165 INFO pred_bat: Set reset inverter true due to reset_inverter on item car_charging_hold 2024-01-03 21:11:51.259540 INFO pred_bat: Updating HA config car_charging_hold to False 2024-01-03 21:11:51.302278 INFO pred_bat: Updating HA config car_charging_manual_soc to False 2024-01-03 21:11:51.336236 INFO pred_bat: Note: Disabled configuration item car_charging_manual_soc_kwh 2024-01-03 21:11:51.346016 INFO pred_bat: Updating HA config octopus_intelligent_charging to False 2024-01-03 21:11:51.383986 INFO pred_bat: Updating HA config octopus_intelligent_ignore_unplugged to False 2024-01-03 21:11:51.421906 INFO pred_bat: Updating HA config car_charging_plan_smart to False 2024-01-03 21:11:51.456496 INFO pred_bat: Set reset inverter true due to reset_inverter on item car_charging_from_battery 2024-01-03 21:11:51.464326 INFO pred_bat: Updating HA config car_charging_from_battery to False 2024-01-03 21:11:51.503744 INFO pred_bat: Updating HA config calculate_discharge_oncharge to True 2024-01-03 21:11:51.542976 INFO pred_bat: Updating HA config calculate_fast_plan to False 2024-01-03 21:11:51.581433 INFO pred_bat: Updating HA config calculate_second_pass to False 2024-01-03 21:11:51.622042 INFO pred_bat: Updating HA config calculate_tweak_plan to True 2024-01-03 21:11:51.657907 INFO pred_bat: Updating HA config calculate_inday_adjustment to True 2024-01-03 21:11:51.702007 INFO pred_bat: Updating HA config calculate_plan_every to 6.0 2024-01-03 21:11:51.734194 INFO pred_bat: Updating HA config combine_charge_slots to False 2024-01-03 21:11:51.771062 INFO pred_bat: Updating HA config combine_discharge_slots to False 2024-01-03 21:11:51.805580 INFO pred_bat: Updating HA config set_status_notify to False 2024-01-03 21:11:51.839979 INFO pred_bat: Updating HA config set_inverter_notify to False 2024-01-03 21:11:51.881004 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_charge_freeze 2024-01-03 21:11:51.889772 INFO pred_bat: Updating HA config set_charge_freeze to True 2024-01-03 21:11:52.030072 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_charge_low_power 2024-01-03 21:11:52.037194 INFO pred_bat: Updating HA config set_charge_low_power to False 2024-01-03 21:11:52.082564 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_reserve_enable 2024-01-03 21:11:52.089689 INFO pred_bat: Updating HA config set_reserve_enable to True 2024-01-03 21:11:52.132087 INFO pred_bat: Set reset inverter true due to reset_inverter on item set_discharge_freeze_only 2024-01-03 21:11:52.138421 INFO pred_bat: Updating HA config set_discharge_freeze_only to False 2024-01-03 21:11:52.174692 INFO pred_bat: Updating HA config set_discharge_during_charge to False 2024-01-03 21:11:52.211789 INFO pred_bat: Set reset inverter true due to reset_inverter_force on item set_read_only 2024-01-03 21:11:52.217717 INFO pred_bat: Updating HA config set_read_only to False 2024-01-03 21:11:52.253559 INFO pred_bat: Updating HA config balance_inverters_enable to False 2024-01-03 21:11:52.286921 INFO pred_bat: Note: Disabled configuration item balance_inverters_charge 2024-01-03 21:11:52.294117 INFO pred_bat: Note: Disabled configuration item balance_inverters_discharge 2024-01-03 21:11:52.301025 INFO pred_bat: Note: Disabled configuration item balance_inverters_crosscharge 2024-01-03 21:11:52.309672 INFO pred_bat: Note: Disabled configuration item balance_inverters_threshold_charge 2024-01-03 21:11:52.315999 INFO pred_bat: Note: Disabled configuration item balance_inverters_threshold_discharge 2024-01-03 21:11:52.328297 INFO pred_bat: Updating HA config debug_enable to False 2024-01-03 21:11:52.367922 INFO pred_bat: Updating HA config car_charging_plan_time to 07:00:00 2024-01-03 21:11:52.410354 INFO pred_bat: Set reset inverter true due to reset_inverter_force on item mode 2024-01-03 21:11:52.417852 INFO pred_bat: Updating HA config mode to Control charge & discharge 2024-01-03 21:11:52.456698 INFO pred_bat: Updating HA config auto_update to True 2024-01-03 21:11:52.492477 INFO pred_bat: Updating HA config load_filter_modal to True 2024-01-03 21:11:52.533427 INFO pred_bat: Updating HA config iboost_enable to False 2024-01-03 21:11:52.571848 INFO pred_bat: Updating HA config iboost_solar to True 2024-01-03 21:11:52.607159 INFO pred_bat: Updating HA config iboost_gas to False 2024-01-03 21:11:52.642908 INFO pred_bat: Updating HA config iboost_charging to False 2024-01-03 21:11:52.677889 INFO pred_bat: Note: Disabled configuration item iboost_gas_scale 2024-01-03 21:11:52.685196 INFO pred_bat: Note: Disabled configuration item iboost_max_energy 2024-01-03 21:11:52.692554 INFO pred_bat: Note: Disabled configuration item iboost_today 2024-01-03 21:11:52.700545 INFO pred_bat: Note: Disabled configuration item iboost_max_power 2024-01-03 21:11:52.706770 INFO pred_bat: Note: Disabled configuration item iboost_min_power 2024-01-03 21:11:52.713023 INFO pred_bat: Note: Disabled configuration item iboost_min_soc 2024-01-03 21:11:52.721503 INFO pred_bat: Updating HA config holiday_days_left to 0.0 2024-01-03 21:11:52.756726 INFO pred_bat: Updating HA config forecast_plan_hours to 24.0 2024-01-03 21:11:52.792376 INFO pred_bat: Updating HA config plan_debug to True 2024-01-03 21:11:53.173135 INFO pred_bat: Inverter Type: GE (GivEnergy) 2024-01-03 21:11:53.177831 INFO pred_bat: Predbat: Next run time will be 2024-01-03 21:15:00 and then every 300 seconds 2024-01-03 21:11:53.189097 INFO pred_bat: Balance inverters will run every 60 seconds (if enabled) 2024-01-03 21:11:53.196628 INFO AppDaemon: App initialization complete 2024-01-03 21:12:08.291283 INFO pred_bat: --------------- PredBat - update at 2024-01-03 21:12:08.284202+00:00 with clock skew 0 minutes, minutes now 1270 2024-01-03 21:12:09.607591 INFO pred_bat: Predbat /homeassistant/appdaemon/apps/batpred/predbat.py version v7.14.31 currently running, latest version is v7.14.31 latest beta v7.14.31 2024-01-03 21:12:09.613797 INFO pred_bat: Autoupdate: Currently up to date 2024-01-03 21:12:09.688344 INFO pred_bat: Inverter type GE forecast_hours 36 max_windows 72 num_cars 0 debug enable is False calculate_plan_every 6 2024-01-03 21:12:09.699126 INFO pred_bat: Predbat mode is set to Control charge & discharge 2024-01-03 21:12:12.981488 INFO pred_bat: Found 11520 load_today datapoints going back 7 days 2024-01-03 21:12:14.534754 INFO pred_bat: Car charging hold False threshold 6.0 2024-01-03 21:12:14.541250 INFO pred_bat: Current data so far today: load 10.08 kWh import 8.98 kWh export 3.0 kWh pv 4.3 kWh 2024-01-03 21:12:14.547949 INFO pred_bat: Fetching futurerate data from https://www.nordpoolgroup.com/api/marketdata/page/325?currency=GBP 2024-01-03 21:12:15.185069 INFO pred_bat: Future rates - peak rate is 960 - 1140 minutes premium import 14 export 6 2024-01-03 21:12:15.352265 INFO pred_bat: Loaded 192 datapoints of futurerate analysis 2024-01-03 21:12:15.479470 INFO pred_bat: Predicted future rates: ['1270 => 16.64 / 6.84', '1450 => 16.99 / 6.99', '1510 => 15.6 / 6.42', '1570 => 14.6 / 6.0', '1630 => 13.62 / 5.6', '1690 => 13.35 / 5.49', '1750 => 14.23 / 5.85', '1810 => 16.99 / 6.99', '1870 => 17.18 / 7.07', '1930 => 18.36 / 7.55', '1990 => 18.69 / 7.69', '2050 => 17.82 / 7.33', '2110 => 17.87 / 7.35', '2170 => 18.23 / 7.5', '2230 => 19.4 / 7.98', '2290 => 20.46 / 8.42', '2350 => 21.22 / 8.72', '2410 => 39.36 / 16.14', '2470 => 40.54 / 16.63', '2530 => 39.28 / 16.11', '2590 => 22.75 / 9.35', '2650 => 19.85 / 8.16'] 2024-01-03 21:12:15.608311 INFO pred_bat: Standing charge is set to 56.6265 p 2024-01-03 21:12:17.869227 INFO pred_bat: Rate min forward looking: now 15.120000000000001 at end of forecast 15.12 2024-01-03 21:12:17.881215 INFO pred_bat: Import rates min 15.12 max 40.53 average 20.15 2024-01-03 21:12:17.946700 INFO pred_bat: Export rates min 15.0 max 15.0 average 15.0 2024-01-03 21:12:17.960081 INFO pred_bat: Rate thresholds (for charge/discharge) are import 40.03p (0.0) export 15.12p (0.0) 2024-01-03 21:12:17.983188 INFO pred_bat: High export rate found rates in range 99 to -99 2024-01-03 21:12:18.034947 INFO pred_bat: Low Import rate found rates in range 15.12 to 38.58 2024-01-03 21:12:18.368607 INFO pred_bat: Todays energy import 8.98 kWh export 3.0 kWh cost 181.59 p import 226.59 p export -45.0 p 2024-01-03 21:12:18.400154 INFO pred_bat: PV Data for pv_forecast_today total 2.67 kWh 2024-01-03 21:12:18.426467 INFO pred_bat: PV Data for pv_forecast_tomorrow total 3.99 kWh 2024-01-03 21:12:18.454182 INFO pred_bat: PV Data for pv_forecast_d3 total 2.88 kWh 2024-01-03 21:12:18.482090 INFO pred_bat: PV Data for pv_forecast_d4 total 2.96 kWh 2024-01-03 21:12:18.623478 INFO pred_bat: Historical data totals for days [1, 2, 3, 4, 5, 6, 7] are [12.52, 11.96, 11.66, 13.23, 11.99, 18.9, 18.02] - min 11.66 2024-01-03 21:12:18.642329 INFO pred_bat: Model filter enabled - Discarding day 3 as it is the lowest of the 7 datapoints 2024-01-03 21:12:18.658773 INFO pred_bat: WARN: Historical day 2 has 15 minutes of gap in the data, filled from 11.96 kWh to make new average 12.09 kWh (percent 99%) 2024-01-03 21:12:18.685595 INFO pred_bat: WARN: Historical day 4 has 5 minutes of gap in the data, filled from 13.23 kWh to make new average 13.27 kWh (percent 100%) 2024-01-03 21:12:18.716139 INFO pred_bat: Historical days now [1, 2, 4, 5, 6, 7] weight [1, 1, 1, 1, 1, 10] 2024-01-03 21:12:18.896583 INFO pred_bat: Today's load divergence 116.55 % in-day adjustment 115.72 % damping 0.95x, Predicted so far 5.01 kWh with 0.0 kWh car excluded and 3.52 kWh import ignored and 0.0 forecast extra, Actual so far 6.06 kWh with 0.0 kWh car excluded and 4.04 kWh import ignored 2024-01-03 21:12:19.083198 INFO pred_bat: Inverter 0 using Rest API http://homeassistant.local:6345 2024-01-03 21:12:20.476977 INFO pred_bat: Invertor time 2024-01-03 21:12:02+00:00 AppDaemon time 2024-01-03 21:12:08.284202+00:00 difference -0.12 minutes 2024-01-03 21:12:20.489917 INFO pred_bat: Reserve min: 4.0% Battery_min:4.0% 2024-01-03 21:12:20.502991 INFO pred_bat: New Inverter 0 with soc_max 5.22 kWh nominal_capacity 5.22 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 3.6 kW export limit 3.6 kW reserve 4.0 % current_reserve 98.0 % 2024-01-03 21:12:21.901157 INFO pred_bat: Inverter 0 SOC: 5.22 kW 100 % Current charge rate 2600.0 w Current discharge rate 0.0 w Current power 0.0 w Current voltage 52.0 2024-01-03 21:12:21.912135 INFO pred_bat: Inverter 0 scheduled charge enable is False 2024-01-03 21:12:21.922240 INFO pred_bat: Inverter 0 charge windows currently [] 2024-01-03 21:12:21.933752 INFO pred_bat: Inverter 0 Charge settings: timed charged is disabled, power 2.6 kW 2024-01-03 21:12:21.944756 INFO pred_bat: Inverter 0 scheduled discharge enable is False 2024-01-03 21:12:21.955897 INFO pred_bat: Inverter 0 discharge windows currently [{'start': 900, 'end': 931, 'average': 0}] 2024-01-03 21:12:21.965013 INFO pred_bat: Found 1 inverters totals: min reserve 0.21 current reserve 5.12 soc_max 5.22 soc 5.22 charge rate 2.6 kW discharge rate 0.0 kW battery_rate_min 0.0 w ac limit 3.6 export limit 3.6 kW loss charge 3 % loss discharge 3 % inverter loss 4 % 2024-01-03 21:12:22.133340 INFO pred_bat: Base charge window [ ] 2024-01-03 21:12:22.142079 INFO pred_bat: Base discharge window [ 03-01 15:00:00 - 03-01 15:31:00 @ 0.0p 100.0% ] 2024-01-03 21:12:22.148614 INFO pred_bat: Will recompute the plan as it is invalid 2024-01-03 21:12:22.165890 INFO pred_bat: Best charge window [ 03-01 21:00:00 - 03-01 22:00:00 @ 18.41p 0.0%, 03-01 22:00:00 - 03-01 22:30:00 @ 18.38p 0.0%, 03-01 22:30:00 - 03-01 23:00:00 @ 16.4p 0.0%, 03-01 23:00:00 - 04-01 00:00:00 @ 16.78p 0.0%, 04-01 00:00:00 - 04-01 00:30:00 @ 16.27p 0.0%, 04-01 00:30:00 - 04-01 01:00:00 @ 18.17p 0.0%, 04-01 01:00:00 - 04-01 01:30:00 @ 18.6p 0.0%, 04-01 01:30:00 - 04-01 02:00:00 @ 16.33p 0.0%, 04-01 02:00:00 - 04-01 02:30:00 @ 16.74p 0.0%, 04-01 02:30:00 - 04-01 03:30:00 @ 16.12p 0.0%, 04-01 03:30:00 - 04-01 04:00:00 @ 15.16p 0.0%, 04-01 04:00:00 - 04-01 04:30:00 @ 16.27p 0.0%, 04-01 04:30:00 - 04-01 05:00:00 @ 15.12p 0.0%, 04-01 05:00:00 - 04-01 05:30:00 @ 16.27p 0.0%, 04-01 05:30:00 - 04-01 06:00:00 @ 17.07p 0.0%, 04-01 06:00:00 - 04-01 06:30:00 @ 18.96p 0.0%, 04-01 06:30:00 - 04-01 07:00:00 @ 17.78p 0.0%, 04-01 07:00:00 - 04-01 08:00:00 @ 18.96p 0.0%, 04-01 08:00:00 - 04-01 08:30:00 @ 19.19p 0.0%, 04-01 08:30:00 - 04-01 09:30:00 @ 21.98p 0.0%, 04-01 09:30:00 - 04-01 10:00:00 @ 22.7p 0.0%, 04-01 10:00:00 - 04-01 10:30:00 @ 21.25p 0.0%, 04-01 10:30:00 - 04-01 11:00:00 @ 21.96p 0.0%, 04-01 11:00:00 - 04-01 12:00:00 @ 19.04p 0.0%, 04-01 12:00:00 - 04-01 13:00:00 @ 19.28p 0.0%, 04-01 13:00:00 - 04-01 13:30:00 @ 21.35p 0.0%, 04-01 13:30:00 - 04-01 14:00:00 @ 19.8p 0.0%, 04-01 14:00:00 - 04-01 15:00:00 @ 22.39p 0.0%, 04-01 15:00:00 - 04-01 15:30:00 @ 20.53p 0.0%, 04-01 15:30:00 - 04-01 16:00:00 @ 24.2p 0.0%, 04-01 16:00:00 - 04-01 16:30:00 @ 36.18p 0.0%, 04-01 17:00:00 - 04-01 17:30:00 @ 37.82p 0.0%, 04-01 17:30:00 - 04-01 18:00:00 @ 38.58p 0.0%, 04-01 18:00:00 - 04-01 18:30:00 @ 37.13p 0.0%, 04-01 18:30:00 - 04-01 19:00:00 @ 34.73p 0.0%, 04-01 19:00:00 - 04-01 19:30:00 @ 25.6p 0.0%, 04-01 19:30:00 - 04-01 20:00:00 @ 19.56p 0.0%, 04-01 20:00:00 - 04-01 20:30:00 @ 23.18p 0.0%, 04-01 20:30:00 - 04-01 21:00:00 @ 19.71p 0.0%, 04-01 21:00:00 - 04-01 21:30:00 @ 21.86p 0.0%, 04-01 21:30:00 - 04-01 22:00:00 @ 19.27p 0.0%, 04-01 22:00:00 - 04-01 22:30:00 @ 17.78p 0.0%, 04-01 22:30:00 - 04-01 23:00:00 @ 15.46p 0.0%, 04-01 23:00:00 - 05-01 00:00:00 @ 16.78p 0.0%, 05-01 00:00:00 - 05-01 00:30:00 @ 16.27p 0.0%, 05-01 00:30:00 - 05-01 01:00:00 @ 18.17p 0.0%, 05-01 01:00:00 - 05-01 01:30:00 @ 18.6p 0.0%, 05-01 01:30:00 - 05-01 02:00:00 @ 16.33p 0.0%, 05-01 02:00:00 - 05-01 02:30:00 @ 16.74p 0.0%, 05-01 02:30:00 - 05-01 03:30:00 @ 16.12p 0.0%, 05-01 03:30:00 - 05-01 04:00:00 @ 15.16p 0.0%, 05-01 04:00:00 - 05-01 04:30:00 @ 16.27p 0.0%, 05-01 04:30:00 - 05-01 05:00:00 @ 15.12p 0.0%, 05-01 05:00:00 - 05-01 05:30:00 @ 16.27p 0.0%, 05-01 05:30:00 - 05-01 06:00:00 @ 17.07p 0.0%, 05-01 06:00:00 - 05-01 06:30:00 @ 18.96p 0.0%, 05-01 06:30:00 - 05-01 07:00:00 @ 17.78p 0.0%, 05-01 07:00:00 - 05-01 08:00:00 @ 18.96p 0.0%, 05-01 08:00:00 - 05-01 08:30:00 @ 19.19p 0.0%, 05-01 08:30:00 - 05-01 09:30:00 @ 21.98p 0.0% ] 2024-01-03 21:12:22.172094 INFO pred_bat: Best discharge window [ ] 2024-01-03 21:12:22.183545 INFO pred_bat: PV Forecast 4.0 kWh and 10% Forecast 0.6 kWh pv cloud factor 0.8 2024-01-03 21:12:22.473266 INFO pred_bat: Calculate Best options: mode(Control charge & discharge) calculate_discharge_oncharge(True) set_discharge_freeze_only(False) set_discharge_during_charge(False) combine_charge_slots(False) combine_discharge_slots(False) best_soc_min(0.0 kWh) best_soc_max(0.0 kWh) best_soc_keep(1.0 kWh) inverter_loss(4 %) battery_loss(3 %) battery_loss_discharge (3 %) inverter_hybrid(True) metric_min_improvement(0.0 p) metric_min_improvement_discharge(0.3 p) metric_battery_cycle(3.0 p/kWh)metric_battery_value_scaling(1.0 x) 2024-01-03 21:12:22.483938 INFO pred_bat: Optimise all windows, total charge 59 discharge 1 2024-01-03 21:12:22.491767 INFO pred_bat: All prices [44.4, 43.6, 42.9, 41.8, 40.3, 30.5, 29.0, 27.9, 27.4, 27.0, 26.6, 26.5, 25.9, 25.8, 25.0, 24.3, 24.2, 24.0, 23.7, 23.6, 23.4, 23.0, 22.8, 22.7, 22.5, 22.1, 21.3, 21.0, 20.6, 20.5, 20.3, 19.6, 19.3, 19.2, 18.2] 2024-01-03 21:12:22.581031 INFO pred_bat: Optimise all charge found best buy/sell price band 44.4 best price threshold 44.4 at metric 543.44 keep 0.0 cost 626.16 limits [5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22] discharge [] 2024-01-03 21:12:23.132466 INFO pred_bat: Optimise all charge found best buy/sell price band 30.5 best price threshold 30.5 at metric 534.05 keep 0.0 cost 607.67 limits [5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 0, 0, 0, 0, 0, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22] discharge [] 2024-01-03 21:12:23.254600 INFO pred_bat: Optimise all charge found best buy/sell price band 29.0 best price threshold 29.0 at metric 530.2 keep 0.0 cost 602.09 limits [5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 0, 0, 0, 0, 0, 0, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22] discharge [] 2024-01-03 21:12:28.735808 INFO pred_bat: Optimise all charge for all bands best price threshold 29.0 charges at 29.0 at metric 530.2 keep 0.0 cost 602.09 soc_min 3.08 limits [5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 0, 0, 0, 0, 0, 0, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22] discharge [] 2024-01-03 21:12:28.743737 INFO pred_bat: Calculated end_record as 01-04 22:00:00 2024-01-03 21:12:28.753415 INFO pred_bat: Starting second optimisation best_price 29.0 best_price_discharge 44.4 lowest_price_charge 19.2 with charge limits [5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22] based on 2024-01-03 21:12:28.761472 INFO pred_bat: Optimise price set 44.4 start_at_low False best_price 29.0 2024-01-03 21:12:29.573760 INFO pred_bat: Try optimising charge window(s) 32: 01-04 17:30:00 - 01-04 18:00:00 price 38.58 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.89, 0.21: 408.98} 2024-01-03 21:12:29.583564 INFO pred_bat: Optimise price set 43.6 start_at_low False best_price 29.0 2024-01-03 21:12:30.601928 INFO pred_bat: Try optimising charge window(s) 31: 01-04 17:00:00 - 01-04 17:30:00 price 37.82 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 409.16, 4.22: 409.16, 0.0: 412.48, 0.21: 409.26} 2024-01-03 21:12:30.614702 INFO pred_bat: Optimise price set 42.9 start_at_low False best_price 29.0 2024-01-03 21:12:31.582062 INFO pred_bat: Try optimising charge window(s) 33: 01-04 18:00:00 - 01-04 18:30:00 price 37.13 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.14, 0.21: 408.98} 2024-01-03 21:12:31.595874 INFO pred_bat: Optimise price set 41.8 start_at_low False best_price 29.0 2024-01-03 21:12:32.404842 INFO pred_bat: Try optimising charge window(s) 30: 01-04 16:00:00 - 01-04 16:30:00 price 36.18 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.91, 0.21: 408.98} 2024-01-03 21:12:32.414471 INFO pred_bat: Optimise price set 40.3 start_at_low False best_price 29.0 2024-01-03 21:12:33.239339 INFO pred_bat: Try optimising charge window(s) 34: 01-04 18:30:00 - 01-04 19:00:00 price 34.73 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.31, 0.21: 408.98} 2024-01-03 21:12:33.248390 INFO pred_bat: Optimise price set 30.5 start_at_low False best_price 29.0 2024-01-03 21:12:34.013741 INFO pred_bat: Try optimising charge window(s) 35: 01-04 19:00:00 - 01-04 19:30:00 price 25.6 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.79, 0.21: 408.98} 2024-01-03 21:12:34.022872 INFO pred_bat: Optimise price set 29.0 start_at_low False best_price 29.0 2024-01-03 21:12:34.838181 INFO pred_bat: Try optimising charge window(s) 29: 01-04 15:30:00 - 01-04 16:00:00 price 24.2 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 415.19, 0.21: 408.98} 2024-01-03 21:12:34.847427 INFO pred_bat: Optimise price set 27.9 start_at_low False best_price 29.0 2024-01-03 21:12:35.746194 INFO pred_bat: Try optimising charge window(s) 37: 01-04 20:00:00 - 01-04 20:30:00 price 23.18 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.79, 0.21: 408.98} 2024-01-03 21:12:35.759071 INFO pred_bat: Optimise price set 27.4 start_at_low False best_price 29.0 2024-01-03 21:12:36.597921 INFO pred_bat: Try optimising charge window(s) 20: 01-04 09:30:00 - 01-04 10:00:00 price 22.7 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.38, 0.21: 408.98} 2024-01-03 21:12:36.607949 INFO pred_bat: Optimise price set 27.0 start_at_low False best_price 29.0 2024-01-03 21:12:38.306127 INFO pred_bat: Try optimising charge window(s) 27: 01-04 14:00:00 - 01-04 15:00:00 price 22.39 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 3.97: 408.88, 3.72: 408.88, 0.0: 416.24, 0.21: 408.98} 2024-01-03 21:12:38.316172 INFO pred_bat: Optimise price set 26.6 start_at_low False best_price 29.0 2024-01-03 21:12:39.457333 INFO pred_bat: Try optimising charge window(s) 19: 01-04 08:30:00 - 01-04 09:30:00 price 21.98 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 412.56, 0.21: 408.98} 2024-01-03 21:12:40.284541 INFO pred_bat: Try optimising charge window(s) 22: 01-04 10:30:00 - 01-04 11:00:00 price 21.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.19, 0.21: 408.98} 2024-01-03 21:12:40.300906 INFO pred_bat: Optimise price set 26.5 start_at_low False best_price 29.0 2024-01-03 21:12:41.108569 INFO pred_bat: Try optimising charge window(s) 39: 01-04 21:00:00 - 01-04 21:30:00 price 21.86 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.03, 0.21: 408.98} 2024-01-03 21:12:41.117825 INFO pred_bat: Optimise price set 25.9 start_at_low False best_price 29.0 2024-01-03 21:12:41.926736 INFO pred_bat: Try optimising charge window(s) 25: 01-04 13:00:00 - 01-04 13:30:00 price 21.35 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.49, 0.21: 408.98} 2024-01-03 21:12:41.934697 INFO pred_bat: Optimise price set 25.8 start_at_low False best_price 29.0 2024-01-03 21:12:42.711929 INFO pred_bat: Try optimising charge window(s) 21: 01-04 10:00:00 - 01-04 10:30:00 price 21.25 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.17, 0.21: 408.98} 2024-01-03 21:12:42.726680 INFO pred_bat: Optimise price set 25.0 start_at_low False best_price 29.0 2024-01-03 21:12:43.545222 INFO pred_bat: Try optimising charge window(s) 28: 01-04 15:00:00 - 01-04 15:30:00 price 20.53 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 413.14, 0.21: 408.98} 2024-01-03 21:12:43.554507 INFO pred_bat: Optimise price set 24.3 start_at_low False best_price 29.0 2024-01-03 21:12:44.413467 INFO pred_bat: Try optimising charge window(s) 26: 01-04 13:30:00 - 01-04 14:00:00 price 19.8 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.51, 0.21: 408.98} 2024-01-03 21:12:44.422945 INFO pred_bat: Optimise price set 24.2 start_at_low False best_price 29.0 2024-01-03 21:12:45.391112 INFO pred_bat: Try optimising charge window(s) 38: 01-04 20:30:00 - 01-04 21:00:00 price 19.71 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.93, 0.21: 408.98} 2024-01-03 21:12:45.399127 INFO pred_bat: Optimise price set 24.0 start_at_low False best_price 29.0 2024-01-03 21:12:46.175062 INFO pred_bat: Try optimising charge window(s) 36: 01-04 19:30:00 - 01-04 20:00:00 price 19.56 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 413.99, 0.21: 408.98} 2024-01-03 21:12:46.182931 INFO pred_bat: Optimise price set 23.7 start_at_low False best_price 29.0 2024-01-03 21:12:47.460051 INFO pred_bat: Try optimising charge window(s) 24: 01-04 12:00:00 - 01-04 13:00:00 price 19.28 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 410.45, 0.21: 408.98} 2024-01-03 21:12:48.257776 INFO pred_bat: Try optimising charge window(s) 40: 01-04 21:30:00 - 01-04 22:00:00 price 19.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.36, 0.21: 408.98} 2024-01-03 21:12:48.266244 INFO pred_bat: Optimise price set 23.6 start_at_low False best_price 29.0 2024-01-03 21:12:49.009305 INFO pred_bat: Try optimising charge window(s) 18: 01-04 08:00:00 - 01-04 08:30:00 price 19.19 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.14, 0.21: 408.98} 2024-01-03 21:12:49.017106 INFO pred_bat: Optimise price set 23.4 start_at_low False best_price 29.0 2024-01-03 21:12:50.512186 INFO pred_bat: Try optimising charge window(s) 23: 01-04 11:00:00 - 01-04 12:00:00 price 19.04 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 3.97: 408.88, 0.0: 412.14, 0.21: 408.98} 2024-01-03 21:12:51.519771 INFO pred_bat: Try optimising charge window(s) 17: 01-04 07:00:00 - 01-04 08:00:00 price 18.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 0.0: 412.86, 0.21: 408.98} 2024-01-03 21:12:52.339937 INFO pred_bat: Try optimising charge window(s) 15: 01-04 06:00:00 - 01-04 06:30:00 price 18.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.04, 0.21: 408.98} 2024-01-03 21:12:52.349624 INFO pred_bat: Optimise price set 23.0 start_at_low False best_price 29.0 2024-01-03 21:12:53.331807 INFO pred_bat: Try optimising charge window(s) 6: 01-04 01:00:00 - 01-04 01:30:00 price 18.6 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 412.48, 0.21: 408.98} 2024-01-03 21:12:53.340853 INFO pred_bat: Optimise price set 22.8 start_at_low False best_price 29.0 2024-01-03 21:12:54.585867 INFO pred_bat: Try optimising charge window(s) 0: 01-03 21:00:00 - 01-03 22:00:00 price 18.41 cost 481.81 metric 408.48 keep 0.0 selected 0.21 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 0.0: 415.7, 0.21: 408.48} 2024-01-03 21:12:54.597269 INFO pred_bat: Optimise price set 22.7 start_at_low False best_price 29.0 2024-01-03 21:12:55.402321 INFO pred_bat: Try optimising charge window(s) 1: 01-03 22:00:00 - 01-03 22:30:00 price 18.38 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.61, 0.21: 408.98} 2024-01-03 21:12:55.411758 INFO pred_bat: Optimise price set 22.5 start_at_low False best_price 29.0 2024-01-03 21:12:56.222980 INFO pred_bat: Try optimising charge window(s) 5: 01-04 00:30:00 - 01-04 01:00:00 price 18.17 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.44, 0.21: 408.98} 2024-01-03 21:12:56.232780 INFO pred_bat: Optimise price set 22.1 start_at_low False best_price 29.0 2024-01-03 21:12:57.053008 INFO pred_bat: Try optimising charge window(s) 16: 01-04 06:30:00 - 01-04 07:00:00 price 17.78 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.37, 0.21: 408.98} 2024-01-03 21:12:57.062267 INFO pred_bat: Optimise price set 21.3 start_at_low False best_price 29.0 2024-01-03 21:12:58.167171 INFO pred_bat: Try optimising charge window(s) 14: 01-04 05:30:00 - 01-04 06:00:00 price 17.07 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.63, 0.21: 408.98} 2024-01-03 21:12:58.178467 INFO pred_bat: Optimise price set 21.0 start_at_low False best_price 29.0 2024-01-03 21:12:59.302359 INFO pred_bat: Try optimising charge window(s) 3: 01-03 23:00:00 - 01-04 00:00:00 price 16.78 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 413.7, 0.21: 408.98} 2024-01-03 21:13:00.254558 INFO pred_bat: Try optimising charge window(s) 8: 01-04 02:00:00 - 01-04 02:30:00 price 16.74 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.17, 0.21: 408.98} 2024-01-03 21:13:00.263839 INFO pred_bat: Optimise price set 20.6 start_at_low False best_price 29.0 2024-01-03 21:13:01.071736 INFO pred_bat: Try optimising charge window(s) 2: 01-03 22:30:00 - 01-03 23:00:00 price 16.4 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.43, 0.21: 408.98} 2024-01-03 21:13:01.081524 INFO pred_bat: Optimise price set 20.5 start_at_low False best_price 29.0 2024-01-03 21:13:02.041768 INFO pred_bat: Try optimising charge window(s) 7: 01-04 01:30:00 - 01-04 02:00:00 price 16.33 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.21, 0.21: 408.98} 2024-01-03 21:13:02.872868 INFO pred_bat: Try optimising charge window(s) 13: 01-04 05:00:00 - 01-04 05:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.55, 0.21: 408.98} 2024-01-03 21:13:03.712242 INFO pred_bat: Try optimising charge window(s) 11: 01-04 04:00:00 - 01-04 04:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.05, 0.21: 408.98} 2024-01-03 21:13:04.550779 INFO pred_bat: Try optimising charge window(s) 4: 01-04 00:00:00 - 01-04 00:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.8, 0.21: 408.98} 2024-01-03 21:13:04.560313 INFO pred_bat: Optimise price set 20.3 start_at_low False best_price 29.0 2024-01-03 21:13:05.979775 INFO pred_bat: Try optimising charge window(s) 9: 01-04 02:30:00 - 01-04 03:30:00 price 16.12 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 0.0: 415.36, 0.21: 408.98} 2024-01-03 21:13:05.990560 INFO pred_bat: Optimise price set 19.3 start_at_low False best_price 29.0 2024-01-03 21:13:07.081088 INFO pred_bat: Try optimising charge window(s) 10: 01-04 03:30:00 - 01-04 04:00:00 price 15.16 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.63, 0.21: 408.98} 2024-01-03 21:13:07.091707 INFO pred_bat: Optimise price set 19.2 start_at_low False best_price 29.0 2024-01-03 21:13:07.950642 INFO pred_bat: Try optimising charge window(s) 12: 01-04 04:30:00 - 01-04 05:00:00 price 15.12 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.65, 0.21: 408.98} 2024-01-03 21:13:07.969321 INFO pred_bat: Best charge windows best_metric 408.87 best_cost 481.81 metric_keep 0.0 windows [ 03-01 21:00:00 - 03-01 22:00:00 @ 18.41p 0.21%, 03-01 22:00:00 - 03-01 22:30:00 @ 18.38p 5.22%, 03-01 22:30:00 - 03-01 23:00:00 @ 16.4p 5.22%, 03-01 23:00:00 - 04-01 00:00:00 @ 16.78p 5.22%, 04-01 00:00:00 - 04-01 00:30:00 @ 16.27p 5.22%, 04-01 00:30:00 - 04-01 01:00:00 @ 18.17p 5.22%, 04-01 01:00:00 - 04-01 01:30:00 @ 18.6p 5.22%, 04-01 01:30:00 - 04-01 02:00:00 @ 16.33p 5.22%, 04-01 02:00:00 - 04-01 02:30:00 @ 16.74p 5.22%, 04-01 02:30:00 - 04-01 03:30:00 @ 16.12p 5.22%, 04-01 03:30:00 - 04-01 04:00:00 @ 15.16p 5.22%, 04-01 04:00:00 - 04-01 04:30:00 @ 16.27p 5.22%, 04-01 04:30:00 - 04-01 05:00:00 @ 15.12p 5.22%, 04-01 05:00:00 - 04-01 05:30:00 @ 16.27p 5.22%, 04-01 05:30:00 - 04-01 06:00:00 @ 17.07p 5.22%, 04-01 06:00:00 - 04-01 06:30:00 @ 18.96p 5.22%, 04-01 06:30:00 - 04-01 07:00:00 @ 17.78p 5.22%, 04-01 07:00:00 - 04-01 08:00:00 @ 18.96p 5.22%, 04-01 08:00:00 - 04-01 08:30:00 @ 19.19p 5.22%, 04-01 08:30:00 - 04-01 09:30:00 @ 21.98p 5.22%, 04-01 09:30:00 - 04-01 10:00:00 @ 22.7p 5.22%, 04-01 10:00:00 - 04-01 10:30:00 @ 21.25p 5.22%, 04-01 10:30:00 - 04-01 11:00:00 @ 21.96p 5.22%, 04-01 11:00:00 - 04-01 12:00:00 @ 19.04p 5.22%, 04-01 12:00:00 - 04-01 13:00:00 @ 19.28p 5.22%, 04-01 13:00:00 - 04-01 13:30:00 @ 21.35p 5.22%, 04-01 13:30:00 - 04-01 14:00:00 @ 19.8p 5.22%, 04-01 14:00:00 - 04-01 15:00:00 @ 22.39p 5.22%, 04-01 15:00:00 - 04-01 15:30:00 @ 20.53p 5.22%, 04-01 15:30:00 - 04-01 16:00:00 @ 24.2p 5.22%, 04-01 16:00:00 - 04-01 16:30:00 @ 36.18p 5.22%, 04-01 17:00:00 - 04-01 17:30:00 @ 37.82p 5.22%, 04-01 17:30:00 - 04-01 18:00:00 @ 38.58p 5.22%, 04-01 18:00:00 - 04-01 18:30:00 @ 37.13p 5.22%, 04-01 18:30:00 - 04-01 19:00:00 @ 34.73p 5.22%, 04-01 19:00:00 - 04-01 19:30:00 @ 25.6p 5.22%, 04-01 19:30:00 - 04-01 20:00:00 @ 19.56p 5.22%, 04-01 20:00:00 - 04-01 20:30:00 @ 23.18p 5.22%, 04-01 20:30:00 - 04-01 21:00:00 @ 19.71p 5.22%, 04-01 21:00:00 - 04-01 21:30:00 @ 21.86p 5.22%, 04-01 21:30:00 - 04-01 22:00:00 @ 19.27p 5.22%, 04-01 22:00:00 - 04-01 22:30:00 @ 17.78p 5.22%, 04-01 22:30:00 - 04-01 23:00:00 @ 15.46p 5.22%, 04-01 23:00:00 - 05-01 00:00:00 @ 16.78p 5.22%, 05-01 00:00:00 - 05-01 00:30:00 @ 16.27p 5.22%, 05-01 00:30:00 - 05-01 01:00:00 @ 18.17p 5.22%, 05-01 01:00:00 - 05-01 01:30:00 @ 18.6p 5.22%, 05-01 01:30:00 - 05-01 02:00:00 @ 16.33p 5.22%, 05-01 02:00:00 - 05-01 02:30:00 @ 16.74p 5.22%, 05-01 02:30:00 - 05-01 03:30:00 @ 16.12p 5.22%, 05-01 03:30:00 - 05-01 04:00:00 @ 15.16p 5.22%, 05-01 04:00:00 - 05-01 04:30:00 @ 16.27p 5.22%, 05-01 04:30:00 - 05-01 05:00:00 @ 15.12p 5.22%, 05-01 05:00:00 - 05-01 05:30:00 @ 16.27p 5.22%, 05-01 05:30:00 - 05-01 06:00:00 @ 17.07p 5.22%, 05-01 06:00:00 - 05-01 06:30:00 @ 18.96p 5.22%, 05-01 06:30:00 - 05-01 07:00:00 @ 17.78p 5.22%, 05-01 07:00:00 - 05-01 08:00:00 @ 18.96p 5.22%, 05-01 08:00:00 - 05-01 08:30:00 @ 19.19p 5.22%, 05-01 08:30:00 - 05-01 09:30:00 @ 21.98p 5.22% ] 2024-01-03 21:13:07.980512 INFO pred_bat: Best discharge windows best_metric 408.87 best_cost 481.81 metric_keep 0.0 windows [ ] 2024-01-03 21:13:07.989468 INFO pred_bat: Optimise price set 19.2 start_at_low True best_price 29.0 2024-01-03 21:13:08.803711 INFO pred_bat: Try optimising charge window(s) 12: 01-04 04:30:00 - 01-04 05:00:00 price 15.12 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.65, 0.21: 408.98} 2024-01-03 21:13:08.812839 INFO pred_bat: Optimise price set 19.3 start_at_low True best_price 29.0 2024-01-03 21:13:09.692988 INFO pred_bat: Try optimising charge window(s) 10: 01-04 03:30:00 - 01-04 04:00:00 price 15.16 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.63, 0.21: 408.98} 2024-01-03 21:13:09.702744 INFO pred_bat: Optimise price set 20.3 start_at_low True best_price 29.0 2024-01-03 21:13:11.339450 INFO pred_bat: Try optimising charge window(s) 9: 01-04 02:30:00 - 01-04 03:30:00 price 16.12 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 0.0: 415.36, 0.21: 408.98} 2024-01-03 21:13:11.382135 INFO pred_bat: Optimise price set 20.5 start_at_low True best_price 29.0 2024-01-03 21:13:12.407828 INFO pred_bat: Try optimising charge window(s) 7: 01-04 01:30:00 - 01-04 02:00:00 price 16.33 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.21, 0.21: 408.98} 2024-01-03 21:13:13.236399 INFO pred_bat: Try optimising charge window(s) 13: 01-04 05:00:00 - 01-04 05:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.55, 0.21: 408.98} 2024-01-03 21:13:14.037881 INFO pred_bat: Try optimising charge window(s) 11: 01-04 04:00:00 - 01-04 04:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.05, 0.21: 408.98} 2024-01-03 21:13:14.849881 INFO pred_bat: Try optimising charge window(s) 4: 01-04 00:00:00 - 01-04 00:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.8, 0.21: 408.98} 2024-01-03 21:13:14.857908 INFO pred_bat: Optimise price set 20.6 start_at_low True best_price 29.0 2024-01-03 21:13:15.682007 INFO pred_bat: Try optimising charge window(s) 2: 01-03 22:30:00 - 01-03 23:00:00 price 16.4 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.43, 0.21: 408.98} 2024-01-03 21:13:15.691345 INFO pred_bat: Optimise price set 21.0 start_at_low True best_price 29.0 2024-01-03 21:13:16.875093 INFO pred_bat: Try optimising charge window(s) 3: 01-03 23:00:00 - 01-04 00:00:00 price 16.78 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 413.7, 0.21: 408.98} 2024-01-03 21:13:17.849976 INFO pred_bat: Try optimising charge window(s) 8: 01-04 02:00:00 - 01-04 02:30:00 price 16.74 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.17, 0.21: 408.98} 2024-01-03 21:13:17.859639 INFO pred_bat: Optimise price set 21.3 start_at_low True best_price 29.0 2024-01-03 21:13:18.671443 INFO pred_bat: Try optimising charge window(s) 14: 01-04 05:30:00 - 01-04 06:00:00 price 17.07 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.63, 0.21: 408.98} 2024-01-03 21:13:18.680528 INFO pred_bat: Optimise price set 22.1 start_at_low True best_price 29.0 2024-01-03 21:13:19.496748 INFO pred_bat: Try optimising charge window(s) 16: 01-04 06:30:00 - 01-04 07:00:00 price 17.78 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.37, 0.21: 408.98} 2024-01-03 21:13:19.505801 INFO pred_bat: Optimise price set 22.5 start_at_low True best_price 29.0 2024-01-03 21:13:20.299694 INFO pred_bat: Try optimising charge window(s) 5: 01-04 00:30:00 - 01-04 01:00:00 price 18.17 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.44, 0.21: 408.98} 2024-01-03 21:13:20.308697 INFO pred_bat: Optimise price set 22.7 start_at_low True best_price 29.0 2024-01-03 21:13:21.124653 INFO pred_bat: Try optimising charge window(s) 1: 01-03 22:00:00 - 01-03 22:30:00 price 18.38 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.61, 0.21: 408.98} 2024-01-03 21:13:21.134376 INFO pred_bat: Optimise price set 22.8 start_at_low True best_price 29.0 2024-01-03 21:13:22.498164 INFO pred_bat: Try optimising charge window(s) 0: 01-03 21:00:00 - 01-03 22:00:00 price 18.41 cost 481.81 metric 408.48 keep 0.0 selected 0.21 was 0.21 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 0.0: 415.7, 0.21: 408.48} 2024-01-03 21:13:22.507611 INFO pred_bat: Optimise price set 23.0 start_at_low True best_price 29.0 2024-01-03 21:13:23.465026 INFO pred_bat: Try optimising charge window(s) 6: 01-04 01:00:00 - 01-04 01:30:00 price 18.6 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 412.48, 0.21: 408.98} 2024-01-03 21:13:23.474470 INFO pred_bat: Optimise price set 23.4 start_at_low True best_price 29.0 2024-01-03 21:13:25.104590 INFO pred_bat: Try optimising charge window(s) 23: 01-04 11:00:00 - 01-04 12:00:00 price 19.04 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 3.97: 408.88, 0.0: 412.14, 0.21: 408.98} 2024-01-03 21:13:26.085237 INFO pred_bat: Try optimising charge window(s) 17: 01-04 07:00:00 - 01-04 08:00:00 price 18.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 0.0: 412.86, 0.21: 408.98} 2024-01-03 21:13:26.873346 INFO pred_bat: Try optimising charge window(s) 15: 01-04 06:00:00 - 01-04 06:30:00 price 18.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.04, 0.21: 408.98} 2024-01-03 21:13:26.882409 INFO pred_bat: Optimise price set 23.6 start_at_low True best_price 29.0 2024-01-03 21:13:27.716367 INFO pred_bat: Try optimising charge window(s) 18: 01-04 08:00:00 - 01-04 08:30:00 price 19.19 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.14, 0.21: 408.98} 2024-01-03 21:13:27.725550 INFO pred_bat: Optimise price set 23.7 start_at_low True best_price 29.0 2024-01-03 21:13:28.895226 INFO pred_bat: Try optimising charge window(s) 24: 01-04 12:00:00 - 01-04 13:00:00 price 19.28 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 410.45, 0.21: 408.98} 2024-01-03 21:13:29.776394 INFO pred_bat: Try optimising charge window(s) 40: 01-04 21:30:00 - 01-04 22:00:00 price 19.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.36, 0.21: 408.98} 2024-01-03 21:13:29.786514 INFO pred_bat: Optimise price set 24.0 start_at_low True best_price 29.0 2024-01-03 21:13:30.646597 INFO pred_bat: Try optimising charge window(s) 36: 01-04 19:30:00 - 01-04 20:00:00 price 19.56 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 413.99, 0.21: 408.98} 2024-01-03 21:13:30.657802 INFO pred_bat: Optimise price set 24.2 start_at_low True best_price 29.0 2024-01-03 21:13:31.680383 INFO pred_bat: Try optimising charge window(s) 38: 01-04 20:30:00 - 01-04 21:00:00 price 19.71 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.93, 0.21: 408.98} 2024-01-03 21:13:31.690449 INFO pred_bat: Optimise price set 24.3 start_at_low True best_price 29.0 2024-01-03 21:13:32.517956 INFO pred_bat: Try optimising charge window(s) 26: 01-04 13:30:00 - 01-04 14:00:00 price 19.8 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.51, 0.21: 408.98} 2024-01-03 21:13:32.527005 INFO pred_bat: Optimise price set 25.0 start_at_low True best_price 29.0 2024-01-03 21:13:33.355165 INFO pred_bat: Try optimising charge window(s) 28: 01-04 15:00:00 - 01-04 15:30:00 price 20.53 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 413.14, 0.21: 408.98} 2024-01-03 21:13:33.364266 INFO pred_bat: Optimise price set 25.8 start_at_low True best_price 29.0 2024-01-03 21:13:34.210400 INFO pred_bat: Try optimising charge window(s) 21: 01-04 10:00:00 - 01-04 10:30:00 price 21.25 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.17, 0.21: 408.98} 2024-01-03 21:13:34.221873 INFO pred_bat: Optimise price set 25.9 start_at_low True best_price 29.0 2024-01-03 21:13:35.073071 INFO pred_bat: Try optimising charge window(s) 25: 01-04 13:00:00 - 01-04 13:30:00 price 21.35 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.49, 0.21: 408.98} 2024-01-03 21:13:35.082550 INFO pred_bat: Optimise price set 26.5 start_at_low True best_price 29.0 2024-01-03 21:13:35.923954 INFO pred_bat: Try optimising charge window(s) 39: 01-04 21:00:00 - 01-04 21:30:00 price 21.86 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.03, 0.21: 408.98} 2024-01-03 21:13:35.932624 INFO pred_bat: Optimise price set 26.6 start_at_low True best_price 29.0 2024-01-03 21:13:37.169206 INFO pred_bat: Try optimising charge window(s) 19: 01-04 08:30:00 - 01-04 09:30:00 price 21.98 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 412.56, 0.21: 408.98} 2024-01-03 21:13:38.224044 INFO pred_bat: Try optimising charge window(s) 22: 01-04 10:30:00 - 01-04 11:00:00 price 21.96 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.19, 0.21: 408.98} 2024-01-03 21:13:38.233342 INFO pred_bat: Optimise price set 27.0 start_at_low True best_price 29.0 2024-01-03 21:13:39.873103 INFO pred_bat: Try optimising charge window(s) 27: 01-04 14:00:00 - 01-04 15:00:00 price 22.39 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 3.97: 408.88, 3.72: 408.88, 0.0: 416.24, 0.21: 408.98} 2024-01-03 21:13:39.913528 INFO pred_bat: Optimise price set 27.4 start_at_low True best_price 29.0 2024-01-03 21:13:40.746855 INFO pred_bat: Try optimising charge window(s) 20: 01-04 09:30:00 - 01-04 10:00:00 price 22.7 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.38, 0.21: 408.98} 2024-01-03 21:13:40.756570 INFO pred_bat: Optimise price set 27.9 start_at_low True best_price 29.0 2024-01-03 21:13:41.595538 INFO pred_bat: Try optimising charge window(s) 37: 01-04 20:00:00 - 01-04 20:30:00 price 23.18 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 410.79, 0.21: 408.98} 2024-01-03 21:13:41.604680 INFO pred_bat: Optimise price set 29.0 start_at_low True best_price 29.0 2024-01-03 21:13:42.462457 INFO pred_bat: Try optimising charge window(s) 29: 01-04 15:30:00 - 01-04 16:00:00 price 24.2 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 415.19, 0.21: 408.98} 2024-01-03 21:13:42.472962 INFO pred_bat: Optimise price set 30.5 start_at_low True best_price 29.0 2024-01-03 21:13:43.424802 INFO pred_bat: Try optimising charge window(s) 35: 01-04 19:00:00 - 01-04 19:30:00 price 25.6 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.79, 0.21: 408.98} 2024-01-03 21:13:43.434531 INFO pred_bat: Optimise price set 40.3 start_at_low True best_price 29.0 2024-01-03 21:13:44.384493 INFO pred_bat: Try optimising charge window(s) 34: 01-04 18:30:00 - 01-04 19:00:00 price 34.73 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 409.31, 0.21: 408.98} 2024-01-03 21:13:44.394232 INFO pred_bat: Optimise price set 41.8 start_at_low True best_price 29.0 2024-01-03 21:13:45.270190 INFO pred_bat: Try optimising charge window(s) 30: 01-04 16:00:00 - 01-04 16:30:00 price 36.18 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.91, 0.21: 408.98} 2024-01-03 21:13:45.279999 INFO pred_bat: Optimise price set 42.9 start_at_low True best_price 29.0 2024-01-03 21:13:46.124146 INFO pred_bat: Try optimising charge window(s) 33: 01-04 18:00:00 - 01-04 18:30:00 price 37.13 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.14, 0.21: 408.98} 2024-01-03 21:13:46.133556 INFO pred_bat: Optimise price set 43.6 start_at_low True best_price 29.0 2024-01-03 21:13:47.186906 INFO pred_bat: Try optimising charge window(s) 31: 01-04 17:00:00 - 01-04 17:30:00 price 37.82 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 409.16, 4.22: 409.16, 0.0: 412.48, 0.21: 409.26} 2024-01-03 21:13:47.207663 INFO pred_bat: Optimise price set 44.4 start_at_low True best_price 29.0 2024-01-03 21:13:48.208819 INFO pred_bat: Try optimising charge window(s) 32: 01-04 17:30:00 - 01-04 18:00:00 price 38.58 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.89, 0.21: 408.98} 2024-01-03 21:13:48.228824 INFO pred_bat: Best charge windows best_metric 408.87 best_cost 481.81 metric_keep 0.0 windows [ 03-01 21:00:00 - 03-01 22:00:00 @ 18.41p 0.21%, 03-01 22:00:00 - 03-01 22:30:00 @ 18.38p 5.22%, 03-01 22:30:00 - 03-01 23:00:00 @ 16.4p 5.22%, 03-01 23:00:00 - 04-01 00:00:00 @ 16.78p 5.22%, 04-01 00:00:00 - 04-01 00:30:00 @ 16.27p 5.22%, 04-01 00:30:00 - 04-01 01:00:00 @ 18.17p 5.22%, 04-01 01:00:00 - 04-01 01:30:00 @ 18.6p 5.22%, 04-01 01:30:00 - 04-01 02:00:00 @ 16.33p 5.22%, 04-01 02:00:00 - 04-01 02:30:00 @ 16.74p 5.22%, 04-01 02:30:00 - 04-01 03:30:00 @ 16.12p 5.22%, 04-01 03:30:00 - 04-01 04:00:00 @ 15.16p 5.22%, 04-01 04:00:00 - 04-01 04:30:00 @ 16.27p 5.22%, 04-01 04:30:00 - 04-01 05:00:00 @ 15.12p 5.22%, 04-01 05:00:00 - 04-01 05:30:00 @ 16.27p 5.22%, 04-01 05:30:00 - 04-01 06:00:00 @ 17.07p 5.22%, 04-01 06:00:00 - 04-01 06:30:00 @ 18.96p 5.22%, 04-01 06:30:00 - 04-01 07:00:00 @ 17.78p 5.22%, 04-01 07:00:00 - 04-01 08:00:00 @ 18.96p 5.22%, 04-01 08:00:00 - 04-01 08:30:00 @ 19.19p 5.22%, 04-01 08:30:00 - 04-01 09:30:00 @ 21.98p 5.22%, 04-01 09:30:00 - 04-01 10:00:00 @ 22.7p 5.22%, 04-01 10:00:00 - 04-01 10:30:00 @ 21.25p 5.22%, 04-01 10:30:00 - 04-01 11:00:00 @ 21.96p 5.22%, 04-01 11:00:00 - 04-01 12:00:00 @ 19.04p 5.22%, 04-01 12:00:00 - 04-01 13:00:00 @ 19.28p 5.22%, 04-01 13:00:00 - 04-01 13:30:00 @ 21.35p 5.22%, 04-01 13:30:00 - 04-01 14:00:00 @ 19.8p 5.22%, 04-01 14:00:00 - 04-01 15:00:00 @ 22.39p 5.22%, 04-01 15:00:00 - 04-01 15:30:00 @ 20.53p 5.22%, 04-01 15:30:00 - 04-01 16:00:00 @ 24.2p 5.22%, 04-01 16:00:00 - 04-01 16:30:00 @ 36.18p 5.22%, 04-01 17:00:00 - 04-01 17:30:00 @ 37.82p 5.22%, 04-01 17:30:00 - 04-01 18:00:00 @ 38.58p 5.22%, 04-01 18:00:00 - 04-01 18:30:00 @ 37.13p 5.22%, 04-01 18:30:00 - 04-01 19:00:00 @ 34.73p 5.22%, 04-01 19:00:00 - 04-01 19:30:00 @ 25.6p 5.22%, 04-01 19:30:00 - 04-01 20:00:00 @ 19.56p 5.22%, 04-01 20:00:00 - 04-01 20:30:00 @ 23.18p 5.22%, 04-01 20:30:00 - 04-01 21:00:00 @ 19.71p 5.22%, 04-01 21:00:00 - 04-01 21:30:00 @ 21.86p 5.22%, 04-01 21:30:00 - 04-01 22:00:00 @ 19.27p 5.22%, 04-01 22:00:00 - 04-01 22:30:00 @ 17.78p 5.22%, 04-01 22:30:00 - 04-01 23:00:00 @ 15.46p 5.22%, 04-01 23:00:00 - 05-01 00:00:00 @ 16.78p 5.22%, 05-01 00:00:00 - 05-01 00:30:00 @ 16.27p 5.22%, 05-01 00:30:00 - 05-01 01:00:00 @ 18.17p 5.22%, 05-01 01:00:00 - 05-01 01:30:00 @ 18.6p 5.22%, 05-01 01:30:00 - 05-01 02:00:00 @ 16.33p 5.22%, 05-01 02:00:00 - 05-01 02:30:00 @ 16.74p 5.22%, 05-01 02:30:00 - 05-01 03:30:00 @ 16.12p 5.22%, 05-01 03:30:00 - 05-01 04:00:00 @ 15.16p 5.22%, 05-01 04:00:00 - 05-01 04:30:00 @ 16.27p 5.22%, 05-01 04:30:00 - 05-01 05:00:00 @ 15.12p 5.22%, 05-01 05:00:00 - 05-01 05:30:00 @ 16.27p 5.22%, 05-01 05:30:00 - 05-01 06:00:00 @ 17.07p 5.22%, 05-01 06:00:00 - 05-01 06:30:00 @ 18.96p 5.22%, 05-01 06:30:00 - 05-01 07:00:00 @ 17.78p 5.22%, 05-01 07:00:00 - 05-01 08:00:00 @ 18.96p 5.22%, 05-01 08:00:00 - 05-01 08:30:00 @ 19.19p 5.22%, 05-01 08:30:00 - 05-01 09:30:00 @ 21.98p 5.22% ] 2024-01-03 21:13:48.239832 INFO pred_bat: Best discharge windows best_metric 408.87 best_cost 481.81 metric_keep 0.0 windows [ ] 2024-01-03 21:13:48.248336 INFO pred_bat: Tweak optimisation started 2024-01-03 21:13:49.565178 INFO pred_bat: Try optimising charge window(s) 0: 01-03 21:00:00 - 01-03 22:00:00 price 18.41 cost 481.81 metric 408.48 keep 0.0 selected 0.21 was 0.21 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 4.22: 408.88, 0.0: 415.7, 0.21: 408.48} 2024-01-03 21:13:50.393928 INFO pred_bat: Try optimising charge window(s) 1: 01-03 22:00:00 - 01-03 22:30:00 price 18.38 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 411.61, 0.21: 408.98} 2024-01-03 21:13:51.355915 INFO pred_bat: Try optimising charge window(s) 2: 01-03 22:30:00 - 01-03 23:00:00 price 16.4 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.43, 0.21: 408.98} 2024-01-03 21:13:52.498368 INFO pred_bat: Try optimising charge window(s) 3: 01-03 23:00:00 - 01-04 00:00:00 price 16.78 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.97: 408.88, 4.72: 408.88, 4.47: 408.88, 0.0: 413.7, 0.21: 408.98} 2024-01-03 21:13:53.313183 INFO pred_bat: Try optimising charge window(s) 4: 01-04 00:00:00 - 01-04 00:30:00 price 16.27 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.8, 0.21: 408.98} 2024-01-03 21:13:54.095761 INFO pred_bat: Try optimising charge window(s) 5: 01-04 00:30:00 - 01-04 01:00:00 price 18.17 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 0.0: 412.44, 0.21: 408.98} 2024-01-03 21:13:55.040879 INFO pred_bat: Try optimising charge window(s) 6: 01-04 01:00:00 - 01-04 01:30:00 price 18.6 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 412.48, 0.21: 408.98} 2024-01-03 21:13:55.975150 INFO pred_bat: Try optimising charge window(s) 7: 01-04 01:30:00 - 01-04 02:00:00 price 16.33 cost 481.81 metric 408.87 keep 0.0 selected 5.22 was 5.22 results {5.22: 408.87, 4.72: 408.88, 4.22: 408.88, 0.0: 414.21, 0.21: 408.98} 2024-01-03 21:13:55.986648 INFO pred_bat: Tweak optimisation finished metric 408.87 cost 481.81 metric_keep 0.0 2024-01-03 21:13:56.085938 INFO pred_bat: predict debug end_record 01-04 22:00:00 final soc 5.22 kWh metric 538.44 p metric_keep 0.0 min_soc 4.88 @ 01-04 16:55:00 kWh load 27.72 pv 8.33 2024-01-03 21:13:56.106685 INFO pred_bat: [ 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10] 2024-01-03 21:13:56.124127 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.21, 5.22, 5.22, 5.22, 5.22] 2024-01-03 21:13:56.140766 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<bf+, g<be-, g<be-, g<be-, g<be-] 2024-01-03 21:13:56.157737 INFO pred_bat: LOAD: [ 10.08, 10.94, 11.68, 12.28, 13.15, 14.1, 15.31, 15.68, 16.0, 16.31, 16.61, 17.05, 17.56, 18.22, 19.15, 20.3, 20.99, 21.98, 23.14, 23.78, 24.35, 24.87, 25.47, 26.13, 27.01] 2024-01-03 21:13:56.174622 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.4, 4.83, 5.57, 6.49, 7.36, 8.0, 8.28, 8.33, 8.33, 8.33, 8.33, 8.33, 8.33] 2024-01-03 21:13:56.192393 INFO pred_bat: IMPORT: [ 8.98, 9.84, 10.57, 11.18, 12.05, 12.99, 14.2, 14.57, 14.9, 15.21, 15.51, 15.95, 16.37, 16.73, 17.25, 17.67, 18.0, 18.44, 19.33, 19.92, 20.53, 21.06, 21.66, 22.32, 23.2] 2024-01-03 21:13:56.209693 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.12, 3.43, 3.57, 4.05, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11] 2024-01-03 21:13:56.237883 INFO pred_bat: METRIC: [ 181.59, 197.37, 210.0, 276.67, 292.23, 308.3, 328.04, 333.86, 339.01, 344.27, 349.82, 358.16, 366.88, 373.11, 379.61, 385.59, 384.82, 393.11, 412.89, 427.81, 450.61, 470.85, 491.19, 505.5, 523.93] 2024-01-03 21:13:56.625249 INFO pred_bat: Filtered charge windows [ 03-01 21:00:00 - 03-01 22:00:00 @ 18.41p 4.0%, 03-01 22:00:00 - 04-01 16:30:00 @ 18.38p 100.0%, 04-01 17:00:00 - 05-01 09:30:00 @ 37.82p 100.0% ] reserve 0.21 2024-01-03 21:13:56.711822 INFO pred_bat: predict base end_record 01-04 22:00:00 final soc 0.21 kWh metric 452.29 p metric_keep 119.95 min_soc 0.21 @ 01-04 02:35:00 kWh load 27.72 pv 8.33 2024-01-03 21:13:56.729966 INFO pred_bat: [ 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10] 2024-01-03 21:13:56.747925 INFO pred_bat: SOC: [ 5.22, 4.3, 3.51, 2.86, 1.92, 0.91, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.29, 0.35, 0.22, 0.41, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21] 2024-01-03 21:13:56.765543 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g~be-, g~be-, g<be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-] 2024-01-03 21:13:56.785917 INFO pred_bat: LOAD: [ 10.08, 10.94, 11.68, 12.28, 13.15, 14.1, 15.31, 15.68, 16.0, 16.31, 16.61, 17.05, 17.56, 18.22, 19.15, 20.3, 20.99, 21.98, 23.14, 23.78, 24.35, 24.87, 25.47, 26.13, 27.01] 2024-01-03 21:13:56.803993 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.4, 4.83, 5.57, 6.49, 7.36, 8.0, 8.28, 8.33, 8.33, 8.33, 8.33, 8.33, 8.33] 2024-01-03 21:13:56.822684 INFO pred_bat: IMPORT: [ 8.98, 8.98, 8.98, 8.98, 8.98, 8.98, 9.54, 9.91, 10.24, 10.54, 10.85, 11.28, 11.7, 12.02, 12.32, 12.48, 12.54, 12.73, 13.62, 14.21, 14.78, 15.3, 15.9, 16.56, 17.43] 2024-01-03 21:13:56.841121 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0] 2024-01-03 21:13:56.861635 INFO pred_bat: METRIC: [ 181.59, 181.59, 181.59, 238.22, 238.22, 238.22, 247.17, 252.99, 258.14, 263.4, 268.95, 277.29, 286.02, 293.13, 299.45, 302.62, 303.72, 307.95, 327.73, 342.65, 364.82, 384.7, 405.04, 419.36, 437.78] 2024-01-03 21:13:57.899319 INFO pred_bat: Battery has 5.42 hours left - now at 5.22 2024-01-03 21:13:58.091991 INFO pred_bat: predict base10 end_record 01-04 22:00:00 final soc 0.21 kWh metric 521.45 p metric_keep 142.3 min_soc 0.21 @ 01-04 02:20:00 kWh load 27.93 pv 4.92 2024-01-03 21:13:58.118763 INFO pred_bat: [ 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10] 2024-01-03 21:13:58.135522 INFO pred_bat: SOC: [ 5.22, 4.21, 3.34, 2.63, 1.7, 0.68, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21, 0.21] 2024-01-03 21:13:58.152796 INFO pred_bat: STATE: [ g~be-, g~be-, g~be-, g~be-, g~be-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-] 2024-01-03 21:13:58.169835 INFO pred_bat: LOAD: [ 10.08, 11.03, 11.83, 12.49, 13.36, 14.31, 15.52, 15.89, 16.22, 16.53, 16.83, 17.27, 17.78, 18.43, 19.36, 20.52, 21.2, 22.2, 23.36, 23.99, 24.56, 25.09, 25.68, 26.34, 27.22] 2024-01-03 21:13:58.186316 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.32, 4.38, 4.49, 4.63, 4.76, 4.86, 4.91, 4.92, 4.92, 4.92, 4.92, 4.92, 4.92] 2024-01-03 21:13:58.203530 INFO pred_bat: IMPORT: [ 8.98, 8.98, 8.98, 8.98, 8.98, 8.98, 9.75, 10.12, 10.45, 10.76, 11.06, 11.5, 11.99, 12.59, 13.41, 14.44, 14.99, 15.89, 17.01, 17.63, 18.2, 18.73, 19.32, 19.98, 20.86] 2024-01-03 21:13:58.220962 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0] 2024-01-03 21:13:58.245078 INFO pred_bat: METRIC: [ 181.59, 181.59, 181.59, 238.22, 238.22, 238.22, 250.65, 256.47, 261.62, 266.88, 272.43, 280.78, 291.14, 304.45, 321.96, 341.59, 352.52, 371.33, 396.1, 411.8, 433.98, 453.86, 474.2, 488.52, 506.94] 2024-01-03 21:13:58.698176 INFO pred_bat: predict best10 end_record 01-04 22:00:00 final soc 5.22 kWh metric 603.62 p metric_keep 0.0 min_soc 4.88 @ 01-04 16:55:00 kWh load 27.93 pv 4.92 2024-01-03 21:13:58.716867 INFO pred_bat: [ 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10] 2024-01-03 21:13:58.733608 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.21, 5.22, 5.22, 5.22, 5.22] 2024-01-03 21:13:58.750703 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<bf+, g<be-, g<be-, g<be-, g<be-] 2024-01-03 21:13:58.767573 INFO pred_bat: LOAD: [ 10.08, 11.03, 11.83, 12.49, 13.36, 14.31, 15.52, 15.89, 16.22, 16.53, 16.83, 17.27, 17.78, 18.43, 19.36, 20.52, 21.2, 22.2, 23.36, 23.99, 24.56, 25.09, 25.68, 26.34, 27.22] 2024-01-03 21:13:58.785148 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.32, 4.38, 4.49, 4.63, 4.76, 4.86, 4.91, 4.92, 4.92, 4.92, 4.92, 4.92, 4.92] 2024-01-03 21:13:58.802563 INFO pred_bat: IMPORT: [ 8.98, 9.92, 10.73, 11.39, 12.26, 13.21, 14.42, 14.79, 15.12, 15.42, 15.73, 16.16, 16.66, 17.25, 18.09, 19.11, 19.67, 20.58, 21.69, 22.31, 22.92, 23.45, 24.05, 24.71, 25.59] 2024-01-03 21:13:58.819625 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.01, 3.01, 3.02, 3.02, 3.02, 3.02, 3.02, 3.02, 3.02, 3.02, 3.02] 2024-01-03 21:13:58.836797 INFO pred_bat: METRIC: [ 181.59, 198.95, 212.84, 280.42, 295.98, 312.06, 331.79, 337.61, 342.76, 348.03, 353.57, 361.93, 372.29, 385.59, 403.13, 422.75, 433.71, 452.52, 477.29, 493.0, 515.79, 536.03, 556.37, 570.69, 589.11] 2024-01-03 21:13:59.312549 INFO pred_bat: predict best end_record 01-04 22:00:00 final soc 5.22 kWh metric 538.44 p metric_keep 0.0 min_soc 4.88 @ 01-04 16:55:00 kWh load 27.72 pv 8.33 2024-01-03 21:13:59.330618 INFO pred_bat: [ 21:10, 22:10, 23:10, 00:10, 01:10, 02:10, 03:10, 04:10, 05:10, 06:10, 07:10, 08:10, 09:10, 10:10, 11:10, 12:10, 13:10, 14:10, 15:10, 16:10, 17:10, 18:10, 19:10, 20:10, 21:10] 2024-01-03 21:13:59.348231 INFO pred_bat: SOC: [ 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.22, 5.21, 5.22, 5.22, 5.22, 5.22] 2024-01-03 21:13:59.364970 INFO pred_bat: STATE: [ g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<bf+, g<be-, g<be-, g<be-, g<be-] 2024-01-03 21:13:59.384204 INFO pred_bat: LOAD: [ 10.08, 10.94, 11.68, 12.28, 13.15, 14.1, 15.31, 15.68, 16.0, 16.31, 16.61, 17.05, 17.56, 18.22, 19.15, 20.3, 20.99, 21.98, 23.14, 23.78, 24.35, 24.87, 25.47, 26.13, 27.01] 2024-01-03 21:13:59.401301 INFO pred_bat: PV: [ 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.3, 4.4, 4.83, 5.57, 6.49, 7.36, 8.0, 8.28, 8.33, 8.33, 8.33, 8.33, 8.33, 8.33] 2024-01-03 21:13:59.419031 INFO pred_bat: IMPORT: [ 8.98, 9.84, 10.57, 11.18, 12.05, 12.99, 14.2, 14.57, 14.9, 15.21, 15.51, 15.95, 16.37, 16.73, 17.25, 17.67, 18.0, 18.44, 19.33, 19.92, 20.53, 21.06, 21.66, 22.32, 23.2] 2024-01-03 21:13:59.436780 INFO pred_bat: EXPORT: [ 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.12, 3.43, 3.57, 4.05, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11, 4.11] 2024-01-03 21:13:59.454184 INFO pred_bat: METRIC: [ 181.59, 197.37, 210.0, 276.67, 292.23, 308.3, 328.04, 333.86, 339.01, 344.27, 349.82, 358.16, 366.88, 373.11, 379.61, 385.59, 384.82, 393.11, 412.89, 427.81, 450.61, 470.85, 491.19, 505.5, 523.93] 2024-01-03 21:14:00.892565 INFO pred_bat: Evaluate trigger {'name': 'large', 'minutes': 60, 'energy': 1.0} results off total_energy 0.0 2024-01-03 21:14:01.074154 INFO pred_bat: Evaluate trigger {'name': 'small', 'minutes': 15, 'energy': 0.25} results off total_energy 0.0 2024-01-03 21:14:01.117269 INFO pred_bat: Best charging limit socs [0.21, 5.22, 5.22] export [] gives import battery 23.41 house 0.0 export 4.11 metric 538.44 metric10 603.62 2024-01-03 21:14:01.584799 INFO pred_bat: Export threshold used for optimisation was 44.4p 2024-01-03 21:14:01.607704 INFO pred_bat: No high rate period found 2024-01-03 21:14:01.919003 INFO pred_bat: Import threshold used for optimisation was 29.0p 2024-01-03 21:14:02.178025 INFO pred_bat: Low import rate windows [0: 01-03 21:00:00 - 01-03 22:00:00 @ 18.41, 1: 01-03 22:00:00 - 01-03 22:30:00 @ 18.38, 2: 01-03 22:30:00 - 01-03 23:00:00 @ 16.4, 3: 01-03 23:00:00 - 01-04 00:00:00 @ 16.78, 4: 01-04 00:00:00 - 01-04 00:30:00 @ 16.27, 5: 01-04 00:30:00 - 01-04 01:00:00 @ 18.17, 6: 01-04 01:00:00 - 01-04 01:30:00 @ 18.6, 7: 01-04 01:30:00 - 01-04 02:00:00 @ 16.33, 8: 01-04 02:00:00 - 01-04 02:30:00 @ 16.74, 9: 01-04 02:30:00 - 01-04 03:30:00 @ 16.12, 10: 01-04 03:30:00 - 01-04 04:00:00 @ 15.16, 11: 01-04 04:00:00 - 01-04 04:30:00 @ 16.27, 12: 01-04 04:30:00 - 01-04 05:00:00 @ 15.12, 13: 01-04 05:00:00 - 01-04 05:30:00 @ 16.27, 14: 01-04 05:30:00 - 01-04 06:00:00 @ 17.07, 15: 01-04 06:00:00 - 01-04 06:30:00 @ 18.96, 16: 01-04 06:30:00 - 01-04 07:00:00 @ 17.78, 17: 01-04 07:00:00 - 01-04 08:00:00 @ 18.96, 18: 01-04 08:00:00 - 01-04 08:30:00 @ 19.19, 19: 01-04 08:30:00 - 01-04 09:30:00 @ 21.98, 20: 01-04 09:30:00 - 01-04 10:00:00 @ 22.7, 21: 01-04 10:00:00 - 01-04 10:30:00 @ 21.25, 22: 01-04 10:30:00 - 01-04 11:00:00 @ 21.96, 23: 01-04 11:00:00 - 01-04 12:00:00 @ 19.04, 24: 01-04 12:00:00 - 01-04 13:00:00 @ 19.28, 25: 01-04 13:00:00 - 01-04 13:30:00 @ 21.35, 26: 01-04 13:30:00 - 01-04 14:00:00 @ 19.8, 27: 01-04 14:00:00 - 01-04 15:00:00 @ 22.39, 28: 01-04 15:00:00 - 01-04 15:30:00 @ 20.53, 29: 01-04 15:30:00 - 01-04 16:00:00 @ 24.2, 30: 01-04 16:00:00 - 01-04 16:30:00 @ 36.18, 31: 01-04 17:00:00 - 01-04 17:30:00 @ 37.82, 32: 01-04 17:30:00 - 01-04 18:00:00 @ 38.58, 33: 01-04 18:00:00 - 01-04 18:30:00 @ 37.13, 34: 01-04 18:30:00 - 01-04 19:00:00 @ 34.73, 35: 01-04 19:00:00 - 01-04 19:30:00 @ 25.6, 36: 01-04 19:30:00 - 01-04 20:00:00 @ 19.56, 37: 01-04 20:00:00 - 01-04 20:30:00 @ 23.18, 38: 01-04 20:30:00 - 01-04 21:00:00 @ 19.71, 39: 01-04 21:00:00 - 01-04 21:30:00 @ 21.86, 40: 01-04 21:30:00 - 01-04 22:00:00 @ 19.27, 41: 01-04 22:00:00 - 01-04 22:30:00 @ 17.78, 42: 01-04 22:30:00 - 01-04 23:00:00 @ 15.46, 43: 01-04 23:00:00 - 01-05 00:00:00 @ 16.78, 44: 01-05 00:00:00 - 01-05 00:30:00 @ 16.27, 45: 01-05 00:30:00 - 01-05 01:00:00 @ 18.17, 46: 01-05 01:00:00 - 01-05 01:30:00 @ 18.6, 47: 01-05 01:30:00 - 01-05 02:00:00 @ 16.33, 48: 01-05 02:00:00 - 01-05 02:30:00 @ 16.74, 49: 01-05 02:30:00 - 01-05 03:30:00 @ 16.12, 50: 01-05 03:30:00 - 01-05 04:00:00 @ 15.16, 51: 01-05 04:00:00 - 01-05 04:30:00 @ 16.27, 52: 01-05 04:30:00 - 01-05 05:00:00 @ 15.12, 53: 01-05 05:00:00 - 01-05 05:30:00 @ 16.27, 54: 01-05 05:30:00 - 01-05 06:00:00 @ 17.07, 55: 01-05 06:00:00 - 01-05 06:30:00 @ 18.96, 56: 01-05 06:30:00 - 01-05 07:00:00 @ 17.78, 57: 01-05 07:00:00 - 01-05 08:00:00 @ 18.96, 58: 01-05 08:00:00 - 01-05 08:30:00 @ 19.19, 59: 01-05 08:30:00 - 01-05 09:30:00 @ 21.98] 2024-01-03 21:14:02.224814 INFO pred_bat: Reset inverter settings to safe mode (set_charge_window=True set_discharge_window=True force=) 2024-01-03 21:14:02.234520 INFO pred_bat: Inverter 0 Current Target SOC is 100 already at target 2024-01-03 21:14:02.245385 INFO pred_bat: Inverter 0 Current Reserve is 98.0 % and new target is 4.0 % 2024-01-03 21:14:14.811653 INFO pred_bat: Set inverter 0 reserve 4 via REST successful on retry 0 2024-01-03 21:14:14.890714 INFO pred_bat: Inverter 0 current discharge rate is 0 and new target is 2600 2024-01-03 21:14:30.815606 INFO pred_bat: Inverter 0 set discharge rate 2600 via REST successful on retry 0 2024-01-03 21:14:30.891523 INFO pred_bat: Inverter 0 Adjust force discharge to False, change times from 15:00:00 - 15:31:00 to None - None 2024-01-03 21:14:30.899930 INFO pred_bat: Charge window will be: 2024-01-03 21:00:00+00:00 - 2024-01-04 16:30:00+00:00 - current soc 100 target 4 2024-01-03 21:14:30.908593 INFO pred_bat: Inverter 0 current discharge rate is 2600 and new target is 0

naltsta commented 6 months ago

Sorry had to enable the logging first - is this what you need?

springfall2008 commented 6 months ago

Sure looks good.

Some minor things:

2024-01-03 21:11:51.622042 INFO pred_bat: Updating HA config calculate_tweak_plan to True 2024-01-03 21:11:51.702007 INFO pred_bat: Updating HA config calculate_plan_every to 6.0

It might be worth setting tweak plan to False and plan_every to either 5 or 10, however I doubt either will change things much.

2024-01-03 21:11:50.926464 INFO pred_bat: Updating HA config metric_battery_cycle to 3.0

You could reduce battery cycle down to 2.0 or 1.0 and see if it changes anything.

2024-01-03 21:12:20.502991 INFO pred_bat: New Inverter 0 with soc_max 5.22 kWh nominal_capacity 5.22 kWh battery rate raw 2600.0 w charge rate 2.6 kW discharge rate 2.6 kW battery_rate_min 0.0 w ac limit 3.6 kW export limit 3.6 kW reserve 4.0 % current_reserve 98.0 %

Is this right, you said you have two batteries but it's reporting only 5.22 kWh of battery capacity in total??

naltsta commented 6 months ago

It might be worth setting tweak plan to False and plan_every to either 5 or 10, however I doubt either will change things much.

Will give them a go - does Predbat only like multiples of 5 for some reason?

You could reduce battery cycle down to 2.0 or 1.0 and see if it changes anything.

Will try

Is this right, you said you have two batteries but it's reporting only 5.22 kWh of battery capacity in total??

Sadly yes, 2x2.6kWh

naltsta commented 6 months ago

Screenshot 2024-01-03 at 22 56 43

5 minutes, tweak off, battery cycle down to 1.0 and still pretty weird...

springfall2008 commented 6 months ago

Can you try best soc keep as 0?

naltsta commented 6 months ago

Screenshot 2024-01-04 at 07 48 52

The 5pm charge slot disappeared over night but id really like that 19.30 to go too! Best keep now 0

springfall2008 commented 6 months ago

How do the overnight rates compare can you show the full plan? I think if you have enough charge left that 7:30pm slot will vanish later in the day

dandwhelan commented 6 months ago

Screenshot_20240104_162158_Home Assistant I've been keeping at eye out on this issue as I feel the battery should be utilised more. I've tried setting best soc 0 and it doesn't change.

naltsta commented 6 months ago

Screenshot 2024-01-04 at 17 04 26 The cheapest slot is at 22.30 tonight, my battery will be empty but it won't bother to charge...

But then it will charge tomorrow morning when it's much more expensive?

Seems to me that the relatively flat rates have predbat making some strange decisions.

naltsta commented 6 months ago

Screenshot_20240104_162158_Home Assistant I've been keeping at eye out on this issue as I feel the battery should be utilised more. I've tried setting best soc 0 and it doesn't change.

Absolutely - Freeze at 75 until 22.30 would seem like a better plan

gcoan commented 6 months ago

Tuesday I think Predbat seemed to struggle with the flat rates (and my export rate had gone up slightly on 1/1), so it wanted to discharge for no benefit to recharge later on. I set it to read-only mode and stopped the discharge, played around a bit with setting mode to Charging only (which improved things), but after that its been quite OK with charge and discharge planning.

But tomorrow morning we have a power-up event from 7-9am (first time we've had one so early in the morning) and predbat v7.14.31 is really struggling to manage the battery for it. A bit of charging is fine to get through the 21:00 slot, 00:30 slot, and later on a bit of charge to get through the 06:00 slot, but otherwise just keeping the soc low ready for the power up event would seem best, but instead the soc is being held at 86% all night so its having to do a force discharge in the power-up event to get the battery lower to take advantage of the free electricity. image

I accidentally installed 7.14.29 - plan was the same. Installed the new 7.14.32 and other than 20:30 now being a freeze charge rather than a charge, its the same issue, too much soc being retained through the night ahead of the zero rate period at 7am. image

Changing mode to Charging only produces a much more sensible plan, overnight it only charges enough to get through the 06:00 more expensive slot image

Its a cheaper plan as well, by 9am, its 18p cheaper than the Charging and Discharging plan

appdaemon (12).log

@naltsta @dandwhelan have you got Mode set to Charging only or Charging and Discharging?

dandwhelan commented 6 months ago

I'm in charge only mode but set to monitor for the evenings.

I've a mixergy hot water tank which can charge on electric on cheap agile rates and gas when it's expensive. I'm thinking maybe some of my data is off because of this. Maybe I should put a request in to treat this hot water tank as a car charger.

On Thu, 4 Jan 2024, 21:06 Geoffrey Coan, @.***> wrote:

Tuesday I think Predbat seemed to struggle with the flat rates (and my export rate had gone up slightly on 1/1), so it wanted to discharge for no benefit to recharge later on. I set it to read-only mode and stopped the discharge, played around a bit with setting mode to Charging only (which improved things), but after that its been quite OK with charge and discharge planning.

But tomorrow morning we have a power-up event from 7-9am (first time we've had one so early in the morning) and predbat v7.14.31 is really struggling to manage the battery for it. A bit of charging is fine to get through the 21:00 slot, 00:30 slot, and later on a bit of charge to get through the 06:00 slot, but otherwise just keeping the soc low ready for the power up event would seem best, but instead the soc is being held at 86% all night so its having to do a force discharge in the power-up event to get the battery lower to take advantage of the free electricity. image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/0dd4f1e8-b52b-4468-b512-fe291aec09f2

I accidentally installed 7.14.29 - plan was the same. Installed the new 7.14.32 and other than 20:30 now being a freeze charge rather than a charge, its the same issue, too much soc being retained through the night ahead of the zero rate period at 7am. image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/b192d76e-2a04-45da-9a3e-da95b3cbdbbf

Changing mode to Charging only produces a much more sensible plan, overnight it only charges enough to get through the 06:00 more expensive slot image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/810ea211-7eac-4815-858b-4f9751019667

Its a cheaper plan as well, by 9am, its 18p cheaper than the Charging and Discharging plan

appdaemon (12).log https://github.com/springfall2008/batpred/files/13835493/appdaemon.12.log

@naltsta https://github.com/naltsta @dandwhelan https://github.com/dandwhelan have you got Mode set to Charging only or Charging and Discharging?

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/574#issuecomment-1877759630, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS34JH3RUSUPNXMP5BLGGYLYM4KT5AVCNFSM6AAAAABBL7ROXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG42TSNRTGA . You are receiving this because you were mentioned.Message ID: @.***>

naltsta commented 6 months ago

Switching between charging only and charging and discharging does not seem to change my plan (did check it had updated!) normally running on charge and discharge.

No amount of fiddling seems to persuade it to charge at 22.30 tonight which is the cheapest slot for the foreseeable... Screenshot 2024-01-04 at 21 22 42

Ps @gcoan who is giving you those export rates?!

gcoan commented 6 months ago

yes, is strange @naltsta why its not charging in that slot when mine is charging OK

here's my config if you can see anything relevant: image image image

Export wise I'm on Octopus flux which is why you see the rates go up and down during the day/night

gcoan commented 6 months ago

I've a mixergy hot water tank which can charge on electric on cheap agile rates and gas when it's expensive. I'm thinking maybe some of my data is off because of this. Maybe I should put a request in to treat this hot water tank as a car charger.

@dandwhelan Can you feed the mixergy electric charging data in as load_forecast in apps.yaml and it should automatically get excluded:

 # Load forecast can be used to add to the historical load data (heat-pump)
  # To link to Predheat
  # Data must be in the format of 'last_updated' timestamp and 'energy' for incrementing kWh
  #load_forecast:
  #  - predheat.heat_energy$external
dandwhelan commented 6 months ago

Ok, I'll check it out.

Will I enter something like this?

load_forecast:

On Thu, 4 Jan 2024, 21:35 Geoffrey Coan, @.***> wrote:

I've a mixergy hot water tank which can charge on electric on cheap agile rates and gas when it's expensive. I'm thinking maybe some of my data is off because of this. Maybe I should put a request in to treat this hot water tank as a car charger.

Can you feed the mixergy electric charging data in as load_forecast in apps.yaml and it should automatically get excluded:

Load forecast can be used to add to the historical load data (heat-pump)

To link to Predheat

Data must be in the format of 'last_updated' timestamp and 'energy' for incrementing kWh

load_forecast:

- predheat.heat_energy$external

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/574#issuecomment-1877791709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS34JH2DKZ3MCESG333KZITYM4OA7AVCNFSM6AAAAABBL7ROXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG44TCNZQHE . You are receiving this because you were mentioned.Message ID: @.***>

naltsta commented 6 months ago

yes, is strange @naltsta why its not charging in that slot when mine is charging OK

here's my config if you can see anything relevant:

image

image

image

Export wise I'm on Octopus flux which is why you see the rates go up and down during the day/night

Thanks - I've been tweaking and adjusting to see what I can get it to do but generally very similar settings.

I now have no charge until 09.30 on Saturday morning!

Aah so you're pretend on agile but actually on flux?

Thanks for investigating

dandwhelan commented 6 months ago

How did you get the Watt loss on the price tab?

On Thu, 4 Jan 2024, 22:07 naltsta, @.***> wrote:

yes, is strange @naltsta https://github.com/naltsta why its not charging in that slot when mine is charging OK

here's my config if you can see anything relevant:

image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/1623aaa6-1198-451f-b7ce-a3711b16eaef

image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/5b11447a-b8a4-4fc7-af20-065c45fad17a

image.png (view on web) https://github.com/springfall2008/batpred/assets/142018870/ff9be9f3-6511-4b4e-a2f4-b9119309e63f

Export wise I'm on Octopus flux which is why you see the rates go up and down during the day/night

Thanks - I've been tweaking and adjusting to see what I can get it to do but generally very similar settings.

I now have no charge until 09.30 on Saturday morning!

Aah so you're pretend on agile but actually on flux?

Thanks for investigating

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/574#issuecomment-1877824938, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS34JH4NSI5GAUQBNRSCUILYM4RZZAVCNFSM6AAAAABBL7ROXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXHAZDIOJTHA . You are receiving this because you were mentioned.Message ID: @.***>

naltsta commented 6 months ago

Plan debug I think it's called

Managed to get a better plan but still doesn't seem really optimisedimage

Charging at midnight seems bizarre as it's really not that cheap!

gcoan commented 6 months ago

Ok, I'll check it out. Will I enter something like this? load_forecast: - predheat.heat_energy$sensor.namehere

Hi @dandwhelan

Its unfortunately not at all well documented, the only description of how this works is in the template apps.yaml file (there's nothing [currently] in the documentation).

Looking at the python code that loads this extra load:

def fetch_extra_load_forecast(self, now_utc):
        """
        Fetch extra load forecast
        """
        load_forecast = {}
        if "load_forecast" in self.args:
            entity_ids = self.get_arg("load_forecast", indirect=False)
            if isinstance(entity_ids, str):
                entity_ids = [entity_ids]

            for entity_id in entity_ids:
                attribute = None
                if "$" in entity_id:
                    entity_id, attribute = entity_id.split("$")
                try:
                    data = self.get_state(entity_id=entity_id, attribute=attribute)
                except (ValueError, TypeError):
                    data = None

                load_forecast = self.minute_data(
                    data, self.forecast_days, self.midnight_utc, "energy", "last_updated", backwards=False, clean_increment=False, smoothing=True, divide_by=1.0, scale=1.0
                )

        return load_forecast

I take this to read

load_forecast is set in apps.yaml to the string "entityname$attribute name"

and you need a sensor called "entityname" which is of type energy, unit of measurement kWh

e.g. sensor.mixergy_consumption_today_kwh

and if the consumption is in an attribute called 'import' the apps.yaml entry would be:

load_forecast
  - sensor.mixergy_consumption_today_kwh$import

If there isn't a separate attribute to read and the data you want is just the main sensor value, I am assuming you put the string as:

sensor.mixergy_consumption_today_kwh$

But I am no expert on reading someone else's Python code.....

Answering your other Q, yes, to see the effective rate for import and export after conversion losses, you set: image

@naltsta and answering your Q about tariff. I was on Octopus Flux in the summer, (import and export tariffs) then requested a move to Octopus Agile in mid October. Octopus moved my import tariff over to Agile. Hence why I am on what I am on.....

gcoan commented 6 months ago

Charging at midnight seems bizarre as it's really not that cheap!

@naltsta agreed, doesn't seem any real reason to charge at midnight at 18.57p, but let the battery discharge at 03:00 when the rate is 17.63p.

Unless best_soc_keep or best_soc_min is causing predbat to want to retain your charge? As you can see I have set mine to 0.1 and 0 to let predbat manage the battery fully and not keep anything in reserve. I only have a 5.2 battery so there's no point

JonathanLew1s commented 6 months ago

I would agree in setting best keep to 0 and change combine charge slots to off. I believe these two are causing predbat to seek two continuous slots to perform the charge, ignoring cheaper slots to find one combined that satisfies.

Again no expert but from my observations.

gcoan commented 6 months ago

Agree about setting min to zero now otherwise predbat can be forced into charging the battery when it's expensive to do so.

Combine Charge slots, charge on discharge and charge only vs charge no discharge, for all of these I don't think it's clear cut.

Here's my plan today for combine charge slots=true image

And if I change combine charge slots to false, predbat does more charging! image

I think it's worth playing with these settings if you don't like the plan predbat produces

dandwhelan commented 6 months ago

Ok, I'll check it out. Will I enter something like this? load_forecast: - predheat.heat_energy$sensor.namehere

Hi @dandwhelan

Its unfortunately not at all well documented, the only description of how this works is in the template apps.yaml file (there's nothing [currently] in the documentation).

Looking at the python code that loads this extra load:

def fetch_extra_load_forecast(self, now_utc):
        """
        Fetch extra load forecast
        """
        load_forecast = {}
        if "load_forecast" in self.args:
            entity_ids = self.get_arg("load_forecast", indirect=False)
            if isinstance(entity_ids, str):
                entity_ids = [entity_ids]

            for entity_id in entity_ids:
                attribute = None
                if "$" in entity_id:
                    entity_id, attribute = entity_id.split("$")
                try:
                    data = self.get_state(entity_id=entity_id, attribute=attribute)
                except (ValueError, TypeError):
                    data = None

                load_forecast = self.minute_data(
                    data, self.forecast_days, self.midnight_utc, "energy", "last_updated", backwards=False, clean_increment=False, smoothing=True, divide_by=1.0, scale=1.0
                )

        return load_forecast

I take this to read

load_forecast is set in apps.yaml to the string "entityname$attribute name"

and you need a sensor called "entityname" which is of type energy, unit of measurement kWh

e.g. sensor.mixergy_consumption_today_kwh

and if the consumption is in an attribute called 'import' the apps.yaml entry would be:

load_forecast
  - sensor.mixergy_consumption_today_kwh$import

If there isn't a separate attribute to read and the data you want is just the main sensor value, I am assuming you put the string as:

sensor.mixergy_consumption_today_kwh$

But I am no expert on reading someone else's Python code.....

Answering your other Q, yes, to see the effective rate for import and export after conversion losses, you set: image

@naltsta and answering your Q about tariff. I was on Octopus Flux in the summer, (import and export tariffs) then requested a move to Octopus Agile in mid October. Octopus moved my import tariff over to Agile. Hence why I am on what I am on.....

Thanks for the detailed reply. I forgot to post but I tried that formatted and it caused a system error. I ended up replacing it with...

load_forecast:

I've no way to see if it's working but it never crashed.

gcoan commented 6 months ago

load_forecast:

  • predheat.heat_energy$sensor.mixergy_electric_heat_energy_kwh

If it's loading extra load info then you should see something in the logfile.

Can you attach a logfile please?

But I'm not convinced this is working as I think it'll be looking for an entity 'predheat.heat_energy' which it won't find. But I may be wrong!

I have separately asked @springfall2008 for advice / documentation on how this is supposed to be configured so I can add it to the documentation

springfall2008 commented 6 months ago

The name should be the sensor name, the bit after the dollar is the attribute name. Clearly the above won’t work

gcoan commented 6 months ago

That’s what I thought Trefor.

What if there’s no attribute, it’s just the default sensor value?

On 10 Jan 2024, at 20:19, Trefor Southwell @.***> wrote:

 The name should be the sensor name, the bit after the dollar is the attribute name. Clearly the above won’t work

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

springfall2008 commented 6 months ago

You can’t put future data into a sensor value afaik. The data has to be an array of dates and values of a specific format.

springfall2008 commented 6 months ago

Like this

IMG_3442

gcoan commented 6 months ago

Ah OK @springfall2008 it doesn't sound like this will do what @dandwhelan wanted which was:

I've a mixergy hot water tank which can charge on electric on cheap agile rates and gas when it's expensive. I'm thinking maybe some of my data is off because of this. Maybe I should put a request in to treat this hot water tank as a car charger.

I had suggested:

@dandwhelan Can you feed the mixergy electric charging data in as load_forecast in apps.yaml and it should automatically get excluded:

# Load forecast can be used to add to the historical load data (heat-pump)
# To link to Predheat
# Data must be in the format of 'last_updated' timestamp and 'energy' for incrementing kWh
#load_forecast:
#  - predheat.heat_energy$external

But now I think I better understand that load_forecast is to ADD an additional forecasted load into the predbat plan, NOT to remove load, like historical EV charging

Looks like @dandwhelan could get what he wants by configuring car_charging_energy:

car_charging_energy - Set in apps.yaml to point to a Home Assistant entity which is the incrementing kWh data for the car charger. This has been pre-defined to a regular expression to auto-detect the appropriate Wallbox and Zappi car charger sensors, or edit as necessary in apps.yaml for your charger sensor.

if he set:

car_charging_energy:
  - sensor.mixergy_electric_heat_energy_kwh

then this would have the desired effect of excluding the mixergy load from the historic house load?

As for load_forecast, I can add some more to apps.yaml to explain how this works now I understand it better

springfall2008 commented 6 months ago

Yes I agree with your comments, car charging energy is for excluding while load forecast is for including extra load in the future, mostly to link to predheat

gcoan commented 6 months ago

Been looking at Predheat, I can see the family resemblance!

Have added to the apps.yaml documentation to explain how car_charging_energy can be used to exclude load data such as Mixergy electric heating, and how load_forecast works now I (hopefully) understand it.

Draft updated doc here: https://github.com/gcoan/batpred/blob/main/docs/apps-yaml.md