Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not utilising battery #574

Closed
naltsta opened this issue Jan 3, 2024 · 34 comments
Closed

Not utilising battery #574

naltsta opened this issue Jan 3, 2024 · 34 comments
Assignees

Comments

@naltsta
Copy link

naltsta commented Jan 3, 2024

Describe the bug
Not choosing cheapest slots to charge

Expected behavior
Cheapest slots selected

Predbat version

7.14.31

Environment details

  • Hybrid and 2 batteries
  • Standard HAOS installer
  • Anything else?

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-, gbe-, 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-, gbe-, gbe-, gbe-, gbe-, gbe-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, gbe-, g<be-, gbe-, 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-, gbe-, gbe-, gbe-, gbe-, gbe-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, 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
Copy link
Owner

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

@naltsta
Copy link
Author

naltsta commented Jan 3, 2024

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: [ gbe-, gbe-, gbe-, gbe-, gbe-, gbe-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, gbe-, gbe-, g<be-, gbe-, 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-, gbe-, gbe-, gbe-, gbe-, g~be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, g<be-, 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
Copy link
Author

naltsta commented Jan 3, 2024

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

@springfall2008
Copy link
Owner

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
Copy link
Author

naltsta commented Jan 3, 2024

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
Copy link
Author

naltsta commented Jan 3, 2024

Screenshot 2024-01-03 at 22 56 43

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

@springfall2008
Copy link
Owner

Can you try best soc keep as 0?

@naltsta
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Owner

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
Copy link
Contributor

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
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Collaborator

gcoan commented Jan 4, 2024

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
Copy link
Contributor

dandwhelan commented Jan 4, 2024 via email

@naltsta
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Collaborator

gcoan commented Jan 4, 2024

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
Copy link
Collaborator

gcoan commented Jan 4, 2024

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
Copy link
Contributor

dandwhelan commented Jan 4, 2024 via email

@naltsta
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Contributor

dandwhelan commented Jan 4, 2024 via email

@naltsta
Copy link
Author

naltsta commented Jan 4, 2024

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
Copy link
Collaborator

gcoan commented Jan 4, 2024

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
Copy link
Collaborator

gcoan commented Jan 4, 2024

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
Copy link

JonathanLew1s commented Jan 5, 2024

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
Copy link
Collaborator

gcoan commented Jan 5, 2024

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
Copy link
Contributor

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:
- predheat.heat_energy$sensor.mixergy_electric_heat_energy_kwh

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

@gcoan
Copy link
Collaborator

gcoan commented Jan 10, 2024

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
Copy link
Owner

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

@gcoan
Copy link
Collaborator

gcoan commented Jan 10, 2024 via email

@springfall2008
Copy link
Owner

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
Copy link
Owner

Like this

IMG_3442

@gcoan
Copy link
Collaborator

gcoan commented Jan 10, 2024

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
Copy link
Owner

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
Copy link
Collaborator

gcoan commented Jan 10, 2024

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

springfall2008 pushed a commit that referenced this issue Jan 20, 2024
…f config items (#625)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
springfall2008 pushed a commit that referenced this issue Jan 30, 2024
…for impoving the plan, days_previous (#670)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

* Expanded installation guide for #645, clarify Monitor mode

* Added Arg0t's tip to use metric_future_rate_offset_import for more aggressive charging

* Improve battery loss & scaling and weight documentation sections

* New FAQ for improving the plan

* Move configuration docs from config guide to customisation doc

* Completed new FAQ for understanding losses & battery metric #643

* Expanded explanation of how days_previous works #647

* Move extended days_previous examples to separate section

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
springfall2008 added a commit that referenced this issue Feb 3, 2024
* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

* Expanded installation guide for #645, clarify Monitor mode

* Added Arg0t's tip to use metric_future_rate_offset_import for more aggressive charging

* Improve battery loss & scaling and weight documentation sections

* New FAQ for improving the plan

* Move configuration docs from config guide to customisation doc

* Completed new FAQ for understanding losses & battery metric #643

* Expanded explanation of how days_previous works #647

* Move extended days_previous examples to separate section

* Update configuration-guide.md, add missing predbat_ prefixes

predbat_ prefix missing from a number of entities

* Update energy-rates.md, minor typos

* Update install.mdUpdate install.md, extra highlight of what Monitor mode does

* Update configuration-guide.md, more missing predbat_ prefixes

* Update car-charge-planning.md, clarify settings for Octopus Intelligent

* Typo & formatting corrections

* Create charge curve, more info on entities required for history to create the curve #666

* Added missing predbat_ prefixes to HA entity names

* Expanded predbat freeze charge/discharge statii descriptions #689

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Trefor Southwell <48591903+springfall2008@users.noreply.github.com>
springfall2008 added a commit that referenced this issue Feb 5, 2024
* Fix constant reset inverter issue with previous release (#526)

* Add 'main' to list of updates, catch some extra errors (#528)

* Cloud coverage PV fix (#529)

* Cloud coverage PV fix
* PV power prediction issues

* Cloud coverage pv fix (attempt 2) (#532)

#530

* Discharge optimisation (#533)

* Discharge optimisation

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Tweaks to optimisation to try to prevent locked in discharge (#538)

* Tweaks to optimisation to try to prevent locked in discharge

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Miscalculation of car charging window size (#544)

Possible fix for: #542

* Avoid resetting charge window when charge isn't enabled (#549)

* Avoid resetting charge window when charge isn't enabled

#545

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update video-guides.md (#550)

* Update video-guides.md

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update video-guides.md (#551)

* Update video-guides.md (#552)

* Update video-guides.md

* Template sofar inverter sensors (#524)

* Template sofar inverter sensors

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update video-guides.md (#555)

* Update video-guides.md

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Do not reset inverter in read-only mode even for mode (#557)

* Update README.md (#558)

* Update README.md

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update dynamic-entities-card.yaml (#559)

* Fix update selector showing blank (#562)

* Update to handling of update entity (#563)

* Fix to sanity check for apps_dir default (#564)

* Fix to sanity check for apps_dir default

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Car charging soc manual (#569)

* Car charging soc manual

#568
* Update customisation.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Predbat documentation enhancements (#570)

* Improved readability for new users
* Add Redownload
* Further tweaks
* Full unix pathnames
* Restructure & enhance to guide new users better
* Explain how to change the 'enforce basepath'  switch for File Editor add-on
* Explain how to stop Predbat joining & managing Octopus saving sessions
* Clarify Predbat mode settings required for saving sessions
* Expanded metric_min_improvement_discharge description for #530
* Restructure & enhance config-yml.md for readability
* Improve car charging description in apps.yaml
* Renamed config-yml-settings to apps-yaml & completed review & updates
* Merge in appdaemon-predbat add-on install instructions
* Add AppDaemon/Predbat combined add-on install method #566

---------

Co-authored-by: Trefor Southwell <48591903+springfall2008@users.noreply.github.com>

* Fix crash with calculate soc only (#573)

* Fix crash with calculate soc only

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix issue causing extra high slots to be used in charging (#579)

* Potential fixes for handling of NoCharge (#578)

* Potential fixes for handling of NoCharge

* Ensure charges are discarded if they are set to reserve
* Avoid selecting reserve if charge freeze is off
* Don't set reserve while charging if SOC is above target

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update predbat.py (#580)

* Do not set reserve while actively charging (#584)

* Don't reset charge window going read-only if not controlling it (#585)

* Don't reset charge window going read-only if not controlling it

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Documentation fixes: explain nordpool apps.yaml cfg, 'so solar data' FAQ, corrected menu structure (#581)

* Remove stray loom references

* Added 'no solar data' FAQ

* Added rounding to 'Rate min forward looking' log message

* Further reword to 'Rate min forward looking' msg

* Added explanation of nordpool future rates apps.yaml config.
Changed import adjust to True & export to False for #576

* Corrected menu structure for apps-yaml

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Potential fix for too many freeze charges (#587)

* Potential fix for too many freeze charges

#586

* [pre-commit.ci lite] apply automatic fixes

* Update predbat.py

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update predbat.py (#588)

* New calculation regions optimisation feature (#589)

* New calculation regions optimisation feature

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Calculate region feature (#591)

* Calculate region feature

Fix threshold value issue after region pass: #590

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Set calculate regions to be expert mode switch (#592)

* Set calculate regions to be expert mode switch

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Region optimisation tweaks (#593)

* Set calculate regions to be expert mode switch

* [pre-commit.ci lite] apply automatic fixes

* Update customisation.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix to avoid crash if car charging plan time is not set correctly (#594)

* Fix freeze charging appearing too often issue (#597)

* Fix freeze charging appearing too often issue

#595

* Apply same fix for freeze discharge

* Documentation enhancements (#596)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Update README.md (#599)

* Update README.md

* Update install.md

* Minor tweak to allow new installs not to get zero data (#603)

* Additional fix for missing load scenario (#604)

Prevent negative data during wrap of days previous

* Update video-guides.md (#606)

* Update video-guides.md

* [pre-commit.ci lite] apply automatic fixes

* Update custom-dictionary-workspace.txt

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update video-guides.md (#607)

* Fix to allow continued operation after REST error (#609)

* Fix time window wrap issue, predbat restore automation (#610)

* Fix time window wrap issue, predbat restore automation

#608

* [pre-commit.ci lite] apply automatic fixes

* Fix to state save code

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Change default metric battery cycle to 1.0 (#613)

* Change default metric battery cycle to 1.0

* [pre-commit.ci lite] apply automatic fixes

* Update customisation.md

* Update configuration-guide.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Account for time taken to calculate plan but reading inverter status again afterwards (#615)

* Account for time taken to calculate plan but reading inverter status again afterwards

* [pre-commit.ci lite] apply automatic fixes

* Update predbat.py

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Save/Restore settings selector function (#616)

* Save/Restore settings selector function
* Remove old save settings for automation code
* Update customisation.md - document save/restore

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update dynamic-entities-card.yaml (#618)

* Fix restore of previous.yaml (avoid overwriting itself) (#622)

* Fix restore of previous.yaml (avoid overwriting itself)

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix issue where inverter skew is falsely reported (#623)

* Fix issue where inverter skew is falsely reported

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix save/restore to not restore counters, fix bug in monitor mode where reserve was reset (#624)

* Fix save/restore to not restore counters, fix bug in monitor mode where reserve was reset
- Save/restore no longer restores holiday days left, iboost today or manual car SOC
- Do not reset reserve when in monitor mode


---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Override (#635)

* Manual charge override feature

* Finish off override function for charge & discharge

* [pre-commit.ci lite] apply automatic fixes

* Update predbat.py

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Documentation updates, givtcp activity monitor, further explanation of config items (#625)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix bug in monitor mode changing charge window (#636)

* Fix bug in monitor mode changing charge window

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix bug in car charging smart calculation (#637)

* Fix bug in car charging smart calculation

#621

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Add manual idle time, fix bug in manual mode related to 60 minute slots (#638)

* Add manual idle time, fix bug in manual mode related to 60 minute slots

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update customisation.md (#639)

* Update customisation.md

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* New saving session scaling feature (#640)

* New saving session scaling feature
* Load scaling in manual rates overrides
* Change manual override to 18 hours


---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* fixes to manual override mode (#641)

* fixes to manual override mode

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update car-charge-planning.md (#642)

* Update car-charge-planning.md

* Update car-charge-planning.md

* Optimisation to speed up first pass levelling (#651)

* Optimisation to speed up first pass levelling

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix issue with charge rate being reset when it shouldn't be in low power mode (#652)

* Fix issue with charge rate being reset when it shouldn't be in low power mode

Maybe related to:

#650


---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Reduce low power margin to 10 minutes (#653)

* Reduce low power margin to 10 minutes

#650

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Low power charging, more accurate setting and some debug (#654)

* Low power charging, more accurate setting and some debug

#650

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update customisation.md - car charging hold docs (#655)

* Update customisation.md

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix battery charge curve modelling for lower than max battery charge rate setting (#657)

* Fix battery charge curve modelling for lower than max battery charge rate settings


---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Find charge curve code (#658)

* Find charge curve code

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Tidy up battery power curve calculations/reporting (#659)

* Tidy up battery power curve calculations/reporting
* Update apps.yaml

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update apps-yaml.md (#660)

* Update apps-yaml.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix crash with .replace in battery power curve code (#663)

* Fix crash with .replace in battery power curve code

* Update apps.yaml - change number to sensor

* Async fetch history to avoid timeouts (#665)

* Async fetch history to avoid timeouts

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Issue with reserve max causing flip/flop charging at 100% (#668)

* Issue with reserve max causing flip/flop charging at 100%

#667


---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Documentation updates: Monitor mode, Battery loss & scaling, new FAQ for impoving the plan, days_previous (#670)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

* Expanded installation guide for #645, clarify Monitor mode

* Added Arg0t's tip to use metric_future_rate_offset_import for more aggressive charging

* Improve battery loss & scaling and weight documentation sections

* New FAQ for improving the plan

* Move configuration docs from config guide to customisation doc

* Completed new FAQ for understanding losses & battery metric #643

* Expanded explanation of how days_previous works #647

* Move extended days_previous examples to separate section

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix issue with charge curve calculation and battery scaling (#671)

* Fix issue with charge curve calculation and battery scaling

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Model use of DC charging from PV with AC grid charger (#675)

* Model use of DC charging from PV with AC grid charger

#669

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Debug output fixes (#676)

* Debug output fixes

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Attempt to fix power curve generation for smaller batteries (#678)

* Support adjustment to existing rates in override (#679)

* Support adjustment to existing rates in override
* Update energy-rates.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Automatic charge curve calculation: allow for gaps in battery SOC % (#680)

* Charge curve, allow for gaps in battery SOC %

#666

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Rate scaling divide by 0 protection in charge curve calcuation (#681)

* Automatic unit detected for Watts vs Kwh when reading historical data (#682)

* Automatic unit detected for Watts vs Kwh when reading historical data

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Charge curve averaging and auto mode (#683)

* Charge curve averaging and auto mode

* [pre-commit.ci lite] apply automatic fixes

* Update predbat.py - typo

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix to repeat of incremental rate adjustments (#685)

* Fix to repeat of incremental rate adjustments

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Improve charge curve, and add discharge curve calculations (#690)

* Improve charge curve, and add discharge curve calculations
* Add seperate battery_rate_max_scaling_discharge input entity

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix unit display on input_number (#691)

* Fix unit display on input_number

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Documentation updates (#692)

* Review and update configuration guide

* Review & refine 'what does predbat do'

* Expand explanation days_previous with examples

* Added explanation of how set_reserve_min could be used to retain SOC ahead of predicted storms #571

* Add explanation of using car_charging_energy to filter other loads such as Mixergy out #574

* Add details of load_forecast and predheat Not utilising battery #574

* Added 'choose' branching to givtcp activity monitor

* Added givtcp alert if inverter temperature <5 degrees (should never happen, indicates inverter offline)

* Added GivTCP restart to activity monitor

* Move GivTCP 'output raw register values' image into images folder

* Move 'Predbat sample data-out dashboard' into images folder

* Added rounding to rate_min_forward_looking log message

* Reformat 'joined Octopus saving session' log & alert for improved readability

* [pre-commit.ci lite] apply automatic fixes

* Expanded and updated Predbat Plan card documentation

* Line length fix

* Minor changes to predbat-plan-card

* Expanded installation guide for #645, clarify Monitor mode

* Added Arg0t's tip to use metric_future_rate_offset_import for more aggressive charging

* Improve battery loss & scaling and weight documentation sections

* New FAQ for improving the plan

* Move configuration docs from config guide to customisation doc

* Completed new FAQ for understanding losses & battery metric #643

* Expanded explanation of how days_previous works #647

* Move extended days_previous examples to separate section

* Update configuration-guide.md, add missing predbat_ prefixes

predbat_ prefix missing from a number of entities

* Update energy-rates.md, minor typos

* Update install.mdUpdate install.md, extra highlight of what Monitor mode does

* Update configuration-guide.md, more missing predbat_ prefixes

* Update car-charge-planning.md, clarify settings for Octopus Intelligent

* Typo & formatting corrections

* Create charge curve, more info on entities required for history to create the curve #666

* Added missing predbat_ prefixes to HA entity names

* Expanded predbat freeze charge/discharge statii descriptions #689

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Trefor Southwell <48591903+springfall2008@users.noreply.github.com>

* Update apps.yaml (#694)

* Update apps.yaml

* Update apps-yaml.md - line length fix

* Code cleanup (#656)

* refactor: clean up code for efficiencies and readability

* refactor: clean up code for efficiencies and readability

* refactor: sorted imports

* [pre-commit.ci lite] apply automatic fixes

* refactor: update cspell dict

* refactor: add fstring

* [pre-commit.ci lite] apply automatic fixes

* refactor: cspell dictionary update

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Supporting nordpool format rates (#697)

* Supporting nordpool format rates

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Support multiple files for Predbat internal update feature (#701)

* Support multiple files for Predbat internal update feature

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Auto update fixes (#702)

* Auto update fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Auto update issues (#703)

* Doc strings & some refactoring (#704)

* Doc strings
* Minor refactoing

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Code optimisations (#705)

* Code optimisations

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fix units on calculate plan every (#710)

* Fix units on calculate plan every

#708

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Update settings right away rather than waiting for HA run (#711)

* Update settings right away rather than waiting for HA run

#707

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Add symbols in the plan for different rate sources (#712)

* Add symbols in the plan for different rate sources
* Update predbat-plan-card.md

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Set max charge/discharge rate fuzzy threshold to be max_rate/25 rathe… (#715)

* Set max charge/discharge rate fuzzy threshold to be max_rate/25 rather than fixed at 100

#714

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Show creation time on html plan (#716)

* Show creation time on html plan

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Detect GE inverter in calibration mode, fix to previous charge/discharge rate code (#717)

* Detect GE inverter in calibration mode, fix to previous charge/discharge rate code

#706

* Calibration mode to also reset charge/discharge rate

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Fixes for force selector not changing correctly in all cases (#719)

* Fixes for force selector not changing correctly in all cases

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

* Support updates via HA update entity (#721)

#575

* Fixes to predbat update (#722)

#575

* Fix predbat update to show its active (#723)

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Geoffrey Coan <142018870+gcoan@users.noreply.github.com>
Co-authored-by: Steven Marks <marksie1988@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants