After removing and adding the MPC automation and the MPC config the logging seems better:
2024-04-29 10:00:00,097 - web_server - INFO - Passed runtime parameters: {}
2024-04-29 10:00:00,097 - web_server - INFO - >> Setting input data dict
2024-04-29 10:00:00,097 - web_server - INFO - Setting up needed data
2024-04-29 10:00:00,106 - web_server - INFO - >> Publishing data...
2024-04-29 10:00:00,106 - web_server - INFO - Publishing data to HASS instance
2024-04-29 10:00:00,133 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = 2663.43
2024-04-29 10:00:00,137 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 548.95
2024-04-29 10:00:00,141 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2024-04-29 10:00:00,144 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = 414.0
2024-04-29 10:00:00,147 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 12.0
2024-04-29 10:00:00,150 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = -2528.48
2024-04-29 10:00:00,153 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = 46.68
2024-04-29 10:00:00,155 - web_server - INFO - Successfully posted to sensor.optim_status = Optimal
2024-04-29 10:00:00,158 - web_server - INFO - Successfully posted to sensor.unit_load_cost = 19.6308
2024-04-29 10:00:00,161 - web_server - INFO - Successfully posted to sensor.unit_prod_price = 4.973
2024-04-29 10:00:00,413 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [17.2606, 17.3126, 17.7853, 16.9649, 17.1642, 18.4542, 20.7364, 22.1451, 25.3452, 28.8538, 24.3425, 22.4737, 21.4296], 'prod_price_forecast': [2.737, 2.786, 3.232, 2.458, 2.646, 3.863, 6.016, 7.345, 10.364, 13.674, 9.418, 7.655, 6.67], 'prediction_horizon': 10, 'soc_init': 0.15, 'soc_final': 0.9}
2024-04-29 10:00:00,413 - web_server - INFO - >> Setting input data dict
2024-04-29 10:00:00,413 - web_server - INFO - Setting up needed data
2024-04-29 10:00:00,416 - web_server - INFO - Retrieve hass get data method initiated...
2024-04-29 10:00:00,933 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2024-04-29 10:00:01,761 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2024-04-29 10:00:01,762 - web_server - INFO - Retrieve hass get data method initiated...
2024-04-29 10:00:02,775 - web_server - INFO - >> Performing naive MPC optimization...
2024-04-29 10:00:02,775 - web_server - INFO - Performing naive MPC optimization
2024-04-29 10:00:02,778 - web_server - INFO - Perform an iteration of a naive MPC controller
2024-04-29 10:00:02,779 - web_server - DEBUG - Deferrable load 0: Proposed optimization window: 0 --> 0
2024-04-29 10:00:02,779 - web_server - DEBUG - Deferrable load 0: Validated optimization window: 0 --> 0
2024-04-29 10:00:02,780 - web_server - WARNING - Solver default unknown, using default
Welcome to the CBC MILP Solver
Version: 2.10.10
Build Date: Sep 26 2023
command line - /usr/local/lib/python3.11/dist-packages/pulp/solverdir/cbc/linux/arm64/cbc /tmp/65d1594368ca4738a4a8c5888ba68e39-pulp.mps -max -timeMode elapsed -branch -printingOptions all -solution /tmp/65d1594368ca4738a4a8c5888ba68e39-pulp.sol (default strategy 1)
At line 2 NAME MODEL
At line 3 ROWS
At line 133 COLUMNS
At line 626 RHS
At line 755 BOUNDS
At line 846 ENDATA
Problem MODEL has 128 rows, 70 columns and 432 elements
Coin0008I MODEL read with 0 errors
Option for timeMode changed from cpu to elapsed
Continuous objective value is 54.4621 - 0.00 seconds
Cgl0003I 0 fixed, 0 tightened bounds, 12 strengthened rows, 0 substitutions
Cgl0003I 0 fixed, 0 tightened bounds, 1 strengthened rows, 0 substitutions
Cgl0004I processed model has 85 rows, 60 columns (20 integer (20 of which binary)) and 363 elements
Cbc0038I Initial state - 1 integers unsatisfied sum - 0.3
Cbc0038I Pass 1: suminf. 0.00000 (0) obj. 41.2483 iterations 7
Cbc0038I Solution found of 41.2483
Cbc0038I Relaxing continuous gives 41.5574
Cbc0038I Before mini branch and bound, 19 integers at bound fixed and 27 continuous
Cbc0038I Full problem 85 rows 60 columns, reduced to 2 rows 3 columns
Cbc0038I Mini branch and bound improved solution from 41.5574 to 54.4621 (0.00 seconds)
Cbc0038I After 0.00 seconds - Feasibility pump exiting with objective of 54.4621 - took 0.00 seconds
Cbc0012I Integer solution of 54.462053 found by feasibility pump after 0 iterations and 0 nodes (0.00 seconds)
Cbc0001I Search completed - best objective 54.4620528990656, took 0 iterations and 0 nodes (0.00 seconds)
Cbc0035I Maximum depth 0, 0 variables fixed on reduced cost
Cuts at root node changed objective from 54.4621 to 54.4621
Probing was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Gomory was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
2024-04-29 10:00:02,788 - web_server - INFO - Status: Optimal
2024-04-29 10:00:02,788 - web_server - INFO - Total value of the Cost function = 54.46
Knapsack was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Clique was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
MixedIntegerRounding2 was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
FlowCover was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
TwoMirCuts was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
ZeroHalf was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
Result - Optimal solution found
Objective value: 54.46205290
Enumerated nodes: 0
Total iterations: 0
Time (CPU seconds): 0.00
Time (Wallclock seconds): 0.00
Option for printingOptions changed from normal to all
Total time (CPU seconds): 0.01 (Wallclock seconds): 0.01
2024-04-29 10:00:02,908 - web_server - INFO - Passed runtime parameters: {}
2024-04-29 10:00:02,908 - web_server - INFO - >> Setting input data dict
2024-04-29 10:00:02,908 - web_server - INFO - Setting up needed data
2024-04-29 10:00:02,909 - web_server - INFO - >> Publishing data...
2024-04-29 10:00:02,909 - web_server - INFO - Publishing data to HASS instance
2024-04-29 10:00:02,923 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = 3590.4
2024-04-29 10:00:02,926 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 544.0
2024-04-29 10:00:02,929 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2024-04-29 10:00:02,932 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = -3046.39
2024-04-29 10:00:02,936 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 33.68
2024-04-29 10:00:02,941 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = 0.0
2024-04-29 10:00:02,945 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = 54.46
2024-04-29 10:00:02,948 - web_server - INFO - Successfully posted to sensor.optim_status = Optimal
2024-04-29 10:00:02,952 - web_server - INFO - Successfully posted to sensor.unit_load_cost = 17.2606
2024-04-29 10:00:02,957 - web_server - INFO - Successfully posted to sensor.unit_prod_price = 2.737
I do get a warning, but seems no issue, although I donāt understand why I get it.