**Describe the bug**
When using the thermal model, other deferrable loads see…m to get clobbered; def_hours set to zero? = not scheduled:
```json
"def_load_config": [{}, {}, {},
{"thermal_config":
{ "heating_rate": -5.0,
"sense": "cool",
"cooling_constant": 0.2,
"overshoot_temperature": 11.0,
"start_temperature": 15.9,
"desired_temperatures": [26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26]
}
}, {}, {}],
"outdoor_temperature_forecast": [15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 18, 18, 21, 21, 23, 23, 25, 25, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 27, 27, 25, 25, 23, 23, 21, 21, 21, 21, 20, 20, 19, 19],
```
Below I'm using the thermal model for deferrable load 3, my HVAC, but the other loads are not scheduled, you can see lots of PV_curtailment so I have lots of additional capacity available.
![Screenshot 2024-10-04 22 54 25](https://github.com/user-attachments/assets/c51b2d4f-4f53-400c-9d8d-73030fda46a4)
```logs
2024-10-04 22:53:00,271 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [0.23, 0.2, 0.19, 0.18, 0.18, 0.18, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.16, 0.12, 0.09, 0.07, 0.07, 0.07, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.05, 0.06, 0.08, 0.25, 0.3, 0.34, 0.36, 0.37, 0.36, 0.35, 0.34, 0.34, 0.34, 0.21, 0.2, 0.2, 0.2], 'prod_price_forecast': [0.1, 0.08, 0.07, 0.07, 0.06, 0.06, 0.06, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.04, 0.01, -0.02, -0.04, -0.04, -0.04, -0.04, -0.04, -0.04, -0.05, -0.04, -0.04, -0.04, -0.04, -0.04, -0.04, -0.04, -0.04, -0.03, -0.01, 0.01, 0.06, 0.09, 0.11, 0.12, 0.11, 0.1, 0.09, 0.09, 0.09, 0.09, 0.08, 0.08, 0.08], 'load_power_forecast': [531, 300, 300, 300, 300, 300, 300, 700, 700, 1200, 400, 400, 300, 300, 300, 300, 800, 1000, 1000, 2000, 1000, 500, 500, 500, 600, 600, 3100, 3100, 300, 300, 300, 300, 300, 300, 300, 300, 600, 700, 700, 1700, 1200, 800, 600, 500, 400, 500, 600, 700, 300, 300, 300, 300, 300, 300, 300, 700, 700, 1200, 400, 400, 300, 300, 300, 300, 800, 1000, 1000, 2000, 1000, 500, 500, 500, 600, 600, 3100, 3100, 300, 300, 300, 300, 300, 300, 300, 300, 600, 700, 700, 1700, 1200, 800, 600, 500, 400, 500, 600, 700], 'prediction_horizon': 48, 'def_load_config': [{}, {}, {}, {'thermal_config': {'heating_rate': -5.0, 'sense': 'cool', 'cooling_constant': 0.2, 'overshoot_temperature': 11.0, 'start_temperature': 15.7, 'desired_temperatures': [26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26]}}, {}, {}], 'outdoor_temperature_forecast': [15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 18, 18, 21, 21, 23, 23, 25, 25, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 27, 27, 25, 25, 23, 23, 21, 21, 21, 21, 20, 20], 'alpha': 1, 'beta': 0, 'num_def_loads': 6, 'def_total_hours': [0, 9, 0, 6, 9, 4], 'def_end_timestep': [0, 0, 0, 0, 0, 0], 'P_deferrable_nom': [300, 6333, 11520, 11000, 600, 11520], 'def_current_state': [0, 0, 0, 0, 0, 0], 'def_start_penalty': [1, 1, 1, 1, 1, 1], 'treat_def_as_semi_cont': [1, 1, 0, 0, 1, 0], 'set_def_constant': [0, 0, 0, 0, 0, 0], 'soc_init': 0.11, 'soc_final': 1}
2024-10-04 22:53:00,272 - web_server - INFO - >> Setting input data dict
2024-10-04 22:53:00,272 - web_server - INFO - Setting up needed data
2024-10-04 22:53:00,278 - web_server - INFO - Retrieve hass get data method initiated...
2024-10-04 22:53:02,175 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2024-10-04 22:53:05,624 - web_server - INFO - >> Performing naive MPC optimization...
2024-10-04 22:53:05,625 - web_server - INFO - Performing naive MPC optimization
2024-10-04 22:53:05,656 - web_server - INFO - Perform an iteration of a naive MPC controller
2024-10-04 22:53:05,880 - web_server - DEBUG - Deferrable load 0: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,881 - web_server - DEBUG - Deferrable load 0: Validated optimization window: 0 --> 0
2024-10-04 22:53:05,890 - web_server - DEBUG - Deferrable load 1: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,891 - web_server - DEBUG - Deferrable load 1: Validated optimization window: 0 --> 0
2024-10-04 22:53:05,900 - web_server - DEBUG - Deferrable load 2: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,900 - web_server - DEBUG - Deferrable load 2: Validated optimization window: 0 --> 0
2024-10-04 22:53:05,920 - web_server - DEBUG - Deferrable load 3: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,920 - web_server - DEBUG - Deferrable load 3: Validated optimization window: 0 --> 0
2024-10-04 22:53:05,926 - web_server - DEBUG - Deferrable load 4: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,926 - web_server - DEBUG - Deferrable load 4: Validated optimization window: 0 --> 0
2024-10-04 22:53:05,935 - web_server - DEBUG - Deferrable load 5: Proposed optimization window: 0 --> 0
2024-10-04 22:53:05,936 - web_server - DEBUG - Deferrable load 5: Validated optimization window: 0 --> 0
2024-10-04 22:53:07,124 - web_server - INFO - Status: Optimal
2024-10-04 22:53:07,125 - web_server - INFO - Total value of the Cost function = -0.84
2024-10-04 22:53:08,284 - web_server - INFO - Passed runtime parameters: {'custom_unit_load_cost_id': {'entity_id': 'sensor.unit_load_cost', 'unit_of_measurement': '$/kWh', 'friendly_name': 'Load Cost'}, 'custom_unit_prod_price_id': {'entity_id': 'sensor.unit_prod_price', 'unit_of_measurement': '$/kWh', 'friendly_name': 'Prod Price'}}
2024-10-04 22:53:08,284 - web_server - INFO - >> Setting input data dict
2024-10-04 22:53:08,284 - web_server - INFO - Setting up needed data
2024-10-04 22:53:08,288 - web_server - INFO - >> Publishing data...
2024-10-04 22:53:08,289 - web_server - INFO - Publishing data to HASS instance
2024-10-04 22:53:08,318 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = -11.5
2024-10-04 22:53:08,339 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 531
2024-10-04 22:53:08,363 - web_server - INFO - Successfully posted to sensor.p_pv_curtailment = 0.0
2024-10-04 22:53:08,385 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2024-10-04 22:53:08,407 - web_server - INFO - Successfully posted to sensor.p_deferrable1 = 0.0
2024-10-04 22:53:08,430 - web_server - INFO - Successfully posted to sensor.p_deferrable2 = 0.0
2024-10-04 22:53:08,451 - web_server - INFO - Successfully posted to sensor.p_deferrable3 = 0.0
2024-10-04 22:53:08,474 - web_server - INFO - Successfully posted to sensor.p_deferrable4 = 0.0
2024-10-04 22:53:08,496 - web_server - INFO - Successfully posted to sensor.p_deferrable5 = 0.0
2024-10-04 22:53:08,522 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = 2203.5
2024-10-04 22:53:08,549 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 8.14
2024-10-04 22:53:08,571 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = -1661.0
2024-10-04 22:53:08,588 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = -0.62
2024-10-04 22:53:08,603 - web_server - INFO - Successfully posted to sensor.optim_status = Optimal
2024-10-04 22:53:08,621 - web_server - INFO - Successfully posted to sensor.unit_load_cost = 0.23
2024-10-04 22:53:08,639 - web_server - INFO - Successfully posted to sensor.unit_prod_price = 0.1
```
**To Reproduce**
Setup MPC call with one thermal model and one other deferrable load.
**Expected behavior**
I am expecting that the thermal model and other deferrable loads could co-exist. Here is my hvac scheduled without using the thermal model.
![image](https://github.com/user-attachments/assets/e6be8e7c-5f4a-407a-9fc6-cac9b5cd1a55)