Describe the bug
Since the last update I'm seeing this error in the emhass logs
[2025-04-22 09:15:00 +0200] [25] [ERROR] The retrieved JSON is empty, A sensor:sensor.p_pv_forecast may have 0 days of history, passed sensor may not be correct, or days to retrieve is set too heigh
To Reproduce
Update to latest version
Expected behavior
No errors in the log
Screenshots
emhass config:
{
"adjusted_pv_regression_model": "LassoRegression",
"adjusted_pv_solar_elevation_threshold": 10,
"battery_charge_efficiency": 0.95,
"battery_charge_power_max": 1000,
"battery_discharge_efficiency": 0.95,
"battery_discharge_power_max": 1000,
"battery_dynamic_max": 0.9,
"battery_dynamic_min": -0.9,
"battery_maximum_state_of_charge": 0.9,
"battery_minimum_state_of_charge": 0.3,
"battery_nominal_energy_capacity": 5000,
"battery_target_state_of_charge": 0.6,
"compute_curtailment": false,
"continual_publish": false,
"costfun": "profit",
"delta_forecast_daily": 1,
"end_timesteps_of_each_deferrable_load": [
0,
0,
0,
0,
0
],
"historic_days_to_retrieve": 360,
"inverter_is_hybrid": false,
"load_cost_forecast_method": "hp_hc_periods",
"load_forecast_method": "mlforecaster",
"load_negative": false,
"load_offpeak_hours_cost": 0.164497535,
"load_peak_hour_periods": {
"period_hp_1": [
{
"start": "08:00"
},
{
"end": "09:00"
}
],
"period_hp_2": [
{
"start": "09:00"
},
{
"end": "10:00"
}
],
"period_hp_3": [
{
"start": "11:00"
},
{
"end": "12:00"
}
],
"period_hp_4": [
{
"start": "13:00"
},
{
"end": "14:00"
}
],
"period_hp_5": [
{
"start": "15:00"
},
{
"end": "16:00"
}
]
},
"load_peak_hours_cost": 0.164497535,
"logging_level": "DEBUG",
"lp_solver": "COIN_CMD",
"lp_solver_path": "/usr/bin/cbc",
"lp_solver_timeout": 45,
"maximum_power_from_grid": 14000,
"maximum_power_to_grid": 9000,
"method_ts_round": "first",
"minimum_power_of_deferrable_loads": [
0,
0
],
"modules_per_string": [
16
],
"nominal_power_of_deferrable_loads": [
2000,
2000,
1700,
900,
2000
],
"number_of_deferrable_loads": 5,
"open_meteo_cache_max_age": 30,
"operating_hours_of_each_deferrable_load": [
2,
2,
2.5,
1,
0
],
"optimization_time_step": 15,
"photovoltaic_production_sell_price": 0,
"production_price_forecast_method": "constant",
"pv_inverter_model": [
"SolarEdge_Technologies_Ltd___SE3000__240V_",
"Chint_Solar_Zhejiang__CHPI4KTL_US__240V_"
],
"pv_module_model": [
"CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M"
],
"sensor_linear_interp": [
"sensor.emhass_huidige_opbrengst",
"sensor.huidig_verbruik_zonder_wp"
],
"sensor_power_load_no_var_loads": "sensor.huidig_verbruik_zonder_wp",
"sensor_power_photovoltaics": "sensor.emhass_huidige_opbrengst",
"sensor_power_photovoltaics_forecast": "sensor.p_pv_forecast",
"sensor_replace_zero": [
"sensor.emhass_huidige_opbrengst"
],
"set_battery_dynamic": false,
"set_deferrable_load_single_constant": [
true,
true,
true,
false,
false
],
"set_deferrable_startup_penalty": [
0,
0,
0,
0,
0
],
"set_nocharge_from_grid": false,
"set_nodischarge_to_grid": true,
"set_total_pv_sell": false,
"set_use_adjusted_pv": false,
"set_use_battery": false,
"set_use_pv": true,
"set_zero_min": true,
"start_timesteps_of_each_deferrable_load": [
0,
0,
0,
0,
0
],
"strings_per_inverter": [
1
],
"surface_azimuth": [
205
],
"surface_tilt": [
30
],
"treat_deferrable_load_as_semi_cont": [
true,
true,
true,
true,
true
],
"weather_forecast_method": "open-meteo",
"weight_battery_charge": 1,
"weight_battery_discharge": 1
}
v0.13
[2025-04-22 09:00:00 +0200] [27] [INFO] >> Obtaining params:
[2025-04-22 09:00:00 +0200] [27] [INFO] Passed runtime parameters: {'prod_price_forecast': [-0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11], 'load_cost_forecast': [0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535], 'pv_power_forecast': [632, 904, 1038, 1138, 1238, 1388, 1653, 2058, 2550, 3046, 3475, 3857, 4199, 4505, 4770, 5066, 5294, 5329, 5070, 4439, 3664, 2990, 2608, 2443, 2369, 2281, 2074, 1755, 1449, 1268, 1325, 1646, 1997, 2155, 1945, 1452, 940, 571, 444, 467, 515, 517, 448, 341, 224, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'prediction_horizon': 60, 'model_type': 'load_forecast', 'alpha': 1, 'beta': 0, 'num_def_loads': 5, 'p_deferrable_nom': [2000, 2000, 1700, 900, 2000], 'def_total_hours': [0.0, 0.0, 0.0, 1.5, 0.0], 'set_def_constant': [True, True, True, True, True], 'def_start_timestep': [0, 0, 0, 0, 0], 'def_end_timestep': [0, 0, 0, 56, 0], 'def_current_state': [False, False, False, False, False]}
[2025-04-22 09:00:00 +0200] [27] [INFO] >> Setting input data dict
[2025-04-22 09:00:00 +0200] [27] [INFO] Setting up needed data
[2025-04-22 09:00:00 +0200] [27] [INFO] Retrieve hass get data method initiated...
[2025-04-22 09:00:01 +0200] [27] [INFO] Retrieving weather forecast data using method = list
[2025-04-22 09:00:01 +0200] [27] [DEBUG] get_weather_forecast returning:
yhat
ts
2025-04-22 09:00:00+02:00 632
2025-04-22 09:15:00+02:00 904
2025-04-22 09:30:00+02:00 1038
2025-04-22 09:45:00+02:00 1138
2025-04-22 10:00:00+02:00 1238
2025-04-22 10:15:00+02:00 1388
2025-04-22 10:30:00+02:00 1653
2025-04-22 10:45:00+02:00 2058
2025-04-22 11:00:00+02:00 2550
2025-04-22 11:15:00+02:00 3046
2025-04-22 11:30:00+02:00 3475
2025-04-22 11:45:00+02:00 3857
2025-04-22 12:00:00+02:00 4199
2025-04-22 12:15:00+02:00 4505
2025-04-22 12:30:00+02:00 4770
2025-04-22 12:45:00+02:00 5066
2025-04-22 13:00:00+02:00 5294
2025-04-22 13:15:00+02:00 5329
2025-04-22 13:30:00+02:00 5070
2025-04-22 13:45:00+02:00 4439
2025-04-22 14:00:00+02:00 3664
2025-04-22 14:15:00+02:00 2990
2025-04-22 14:30:00+02:00 2608
2025-04-22 14:45:00+02:00 2443
2025-04-22 15:00:00+02:00 2369
2025-04-22 15:15:00+02:00 2281
2025-04-22 15:30:00+02:00 2074
2025-04-22 15:45:00+02:00 1755
2025-04-22 16:00:00+02:00 1449
2025-04-22 16:15:00+02:00 1268
2025-04-22 16:30:00+02:00 1325
2025-04-22 16:45:00+02:00 1646
2025-04-22 17:00:00+02:00 1997
2025-04-22 17:15:00+02:00 2155
2025-04-22 17:30:00+02:00 1945
2025-04-22 17:45:00+02:00 1452
2025-04-22 18:00:00+02:00 940
2025-04-22 18:15:00+02:00 571
2025-04-22 18:30:00+02:00 444
2025-04-22 18:45:00+02:00 467
2025-04-22 19:00:00+02:00 515
2025-04-22 19:15:00+02:00 517
2025-04-22 19:30:00+02:00 448
2025-04-22 19:45:00+02:00 341
2025-04-22 20:00:00+02:00 224
2025-04-22 20:15:00+02:00 78
2025-04-22 20:30:00+02:00 0
2025-04-22 20:45:00+02:00 0
2025-04-22 21:00:00+02:00 0
2025-04-22 21:15:00+02:00 0
2025-04-22 21:30:00+02:00 0
2025-04-22 21:45:00+02:00 0
2025-04-22 22:00:00+02:00 0
2025-04-22 22:15:00+02:00 0
2025-04-22 22:30:00+02:00 0
2025-04-22 22:45:00+02:00 0
2025-04-22 23:00:00+02:00 0
2025-04-22 23:15:00+02:00 0
2025-04-22 23:30:00+02:00 0
2025-04-22 23:45:00+02:00 0
[2025-04-22 09:00:01 +0200] [27] [DEBUG] get_power_from_weather returning:
ts
2025-04-22 09:00:00+02:00 632
2025-04-22 09:15:00+02:00 904
2025-04-22 09:30:00+02:00 1038
2025-04-22 09:45:00+02:00 1138
2025-04-22 10:00:00+02:00 1238
2025-04-22 10:15:00+02:00 1388
2025-04-22 10:30:00+02:00 1653
2025-04-22 10:45:00+02:00 2058
2025-04-22 11:00:00+02:00 2550
2025-04-22 11:15:00+02:00 3046
2025-04-22 11:30:00+02:00 3475
2025-04-22 11:45:00+02:00 3857
2025-04-22 12:00:00+02:00 4199
2025-04-22 12:15:00+02:00 4505
2025-04-22 12:30:00+02:00 4770
2025-04-22 12:45:00+02:00 5066
2025-04-22 13:00:00+02:00 5294
2025-04-22 13:15:00+02:00 5329
2025-04-22 13:30:00+02:00 5070
2025-04-22 13:45:00+02:00 4439
2025-04-22 14:00:00+02:00 3664
2025-04-22 14:15:00+02:00 2990
2025-04-22 14:30:00+02:00 2608
2025-04-22 14:45:00+02:00 2443
2025-04-22 15:00:00+02:00 2369
2025-04-22 15:15:00+02:00 2281
2025-04-22 15:30:00+02:00 2074
2025-04-22 15:45:00+02:00 1755
2025-04-22 16:00:00+02:00 1449
2025-04-22 16:15:00+02:00 1268
2025-04-22 16:30:00+02:00 1325
2025-04-22 16:45:00+02:00 1646
2025-04-22 17:00:00+02:00 1997
2025-04-22 17:15:00+02:00 2155
2025-04-22 17:30:00+02:00 1945
2025-04-22 17:45:00+02:00 1452
2025-04-22 18:00:00+02:00 940
2025-04-22 18:15:00+02:00 571
2025-04-22 18:30:00+02:00 444
2025-04-22 18:45:00+02:00 467
2025-04-22 19:00:00+02:00 515
2025-04-22 19:15:00+02:00 517
2025-04-22 19:30:00+02:00 448
2025-04-22 19:45:00+02:00 341
2025-04-22 20:00:00+02:00 224
2025-04-22 20:15:00+02:00 78
2025-04-22 20:30:00+02:00 0
2025-04-22 20:45:00+02:00 0
2025-04-22 21:00:00+02:00 0
2025-04-22 21:15:00+02:00 0
2025-04-22 21:30:00+02:00 0
2025-04-22 21:45:00+02:00 0
2025-04-22 22:00:00+02:00 0
2025-04-22 22:15:00+02:00 0
2025-04-22 22:30:00+02:00 0
2025-04-22 22:45:00+02:00 0
2025-04-22 23:00:00+02:00 0
2025-04-22 23:15:00+02:00 0
2025-04-22 23:30:00+02:00 0
2025-04-22 23:45:00+02:00 0
dtype: int64
[2025-04-22 09:00:01 +0200] [27] [INFO] Retrieving data from hass for load forecast using method = mlforecaster
[2025-04-22 09:00:01 +0200] [27] [INFO] Retrieve hass get data method initiated...
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Number of ML predict forcast data generated (lags_opt): 96
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Number of forcast dates obtained: 60
[2025-04-22 09:00:03 +0200] [27] [INFO] >> Performing naive MPC optimization...
[2025-04-22 09:00:03 +0200] [27] [INFO] Performing naive MPC optimization
/app/src/emhass/forecast.py:1453: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
/app/src/emhass/forecast.py:1525: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
[2025-04-22 09:00:03 +0200] [27] [INFO] Perform an iteration of a naive MPC controller
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 0: Proposed optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 0: Validated optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 1: Proposed optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 1: Validated optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 2: Proposed optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 2: Validated optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 3: Proposed optimization window: 0 --> 56
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 3: Validated optimization window: 0 --> 56
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 4: Proposed optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [DEBUG] Deferrable load 4: Validated optimization window: 0 --> 0
[2025-04-22 09:00:03 +0200] [27] [INFO] Status: Optimal
[2025-04-22 09:00:03 +0200] [27] [INFO] Total value of the Cost function = -2.33
[2025-04-22 09:00:43 +0200] [27] [INFO] >> Obtaining params:
[2025-04-22 09:00:43 +0200] [27] [INFO] Passed runtime parameters: {'custom_deferrable_forecast_id': [{'entity_id': 'sensor.emhass_wasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass wasmachien'}, {'entity_id': 'sensor.emhass_droogkast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass droogkast'}, {'entity_id': 'sensor.emhass_afwasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass afwasmachien'}, {'entity_id': 'sensor.emhass_warmtepompboiler', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepompboiler'}, {'entity_id': 'sensor.emhass_warmtepomp', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepomp'}], 'custom_pv_forecast_id': {'entity_id': 'sensor.emhass_pv_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass pv forecast'}, 'custom_load_forecast_id': {'entity_id': 'sensor.emhass_load_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass load forecast'}, 'custom_grid_forecast_id': {'entity_id': 'sensor.emhass_grid_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass grid forecast'}, 'custom_unit_load_cost_id': {'entity_id': 'sensor.emhass_load_cost', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass load cost'}, 'custom_unit_prod_price_id': {'entity_id': 'sensor.emhass_prod_price', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass production price'}, 'custom_pv_curtailment_id': {'entity_id': 'sensor.emhass_curtailment', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass curtailment'}, 'publish_prefix': ''}
[2025-04-22 09:00:43 +0200] [27] [INFO] >> Setting input data dict
[2025-04-22 09:00:43 +0200] [27] [INFO] Setting up needed data
[2025-04-22 09:00:43 +0200] [27] [INFO] >> Publishing data...
[2025-04-22 09:00:43 +0200] [27] [INFO] Publishing data to HASS instance
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_pv_forecast = 632
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_load_forecast = 405.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_wasmachien = 0.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_droogkast = 0.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_afwasmachien = 0.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_warmtepompboiler = 0.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_warmtepomp = 0.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_grid_forecast = -227.0
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.total_cost_fun_value = -2.33
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.optim_status = Optimal
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_load_cost = 0.1745
[2025-04-22 09:00:43 +0200] [27] [INFO] Successfully posted to sensor.emhass_prod_price = -0.11
v0.13.1
[2025-04-22 09:15:00 +0200] [25] [INFO] >> Obtaining params:
[2025-04-22 09:15:00 +0200] [25] [INFO] Passed runtime parameters: {'prod_price_forecast': [-0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11, -0.11], 'load_cost_forecast': [0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.174497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535, 0.164497535], 'pv_power_forecast': [729, 894, 1039, 1206, 1372, 1507, 1589, 1663, 1790, 2038, 2396, 2846, 3317, 3811, 4440, 5033, 5369, 5213, 4467, 3504, 2741, 2521, 2743, 3123, 3392, 3288, 2899, 2423, 2031, 1841, 1783, 1773, 1732, 1604, 1426, 1247, 1082, 923, 779, 640, 517, 413, 313, 216, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'prediction_horizon': 59, 'model_type': 'load_forecast', 'alpha': 1, 'beta': 0, 'num_def_loads': 5, 'p_deferrable_nom': [2000, 2000, 1700, 900, 2000], 'def_total_hours': [0.0, 0.0, 0.0, 1.5, 0.0], 'set_def_constant': [True, True, True, True, True], 'def_start_timestep': [0, 0, 0, 0, 0], 'def_end_timestep': [0, 0, 0, 55, 0], 'def_current_state': [False, False, False, False, False]}
[2025-04-22 09:15:00 +0200] [25] [INFO] >> Setting input data dict
[2025-04-22 09:15:00 +0200] [25] [INFO] Setting up needed data
[2025-04-22 09:15:00 +0200] [25] [INFO] Retrieve hass get data method initiated...
[2025-04-22 09:15:00 +0200] [25] [ERROR] The retrieved JSON is empty, A sensor:sensor.p_pv_forecast may have 0 days of history, passed sensor may not be correct, or days to retrieve is set too heigh
[2025-04-22 09:15:40 +0200] [25] [INFO] >> Obtaining params:
[2025-04-22 09:15:40 +0200] [25] [INFO] Passed runtime parameters: {'custom_deferrable_forecast_id': [{'entity_id': 'sensor.emhass_wasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass wasmachien'}, {'entity_id': 'sensor.emhass_droogkast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass droogkast'}, {'entity_id': 'sensor.emhass_afwasmachien', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass afwasmachien'}, {'entity_id': 'sensor.emhass_warmtepompboiler', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepompboiler'}, {'entity_id': 'sensor.emhass_warmtepomp', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass warmtepomp'}], 'custom_pv_forecast_id': {'entity_id': 'sensor.emhass_pv_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass pv forecast'}, 'custom_load_forecast_id': {'entity_id': 'sensor.emhass_load_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass load forecast'}, 'custom_grid_forecast_id': {'entity_id': 'sensor.emhass_grid_forecast', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass grid forecast'}, 'custom_unit_load_cost_id': {'entity_id': 'sensor.emhass_load_cost', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass load cost'}, 'custom_unit_prod_price_id': {'entity_id': 'sensor.emhass_prod_price', 'unit_of_measurement': '€/kWh', 'friendly_name': 'Emhass production price'}, 'custom_pv_curtailment_id': {'entity_id': 'sensor.emhass_curtailment', 'unit_of_measurement': 'W', 'friendly_name': 'Emhass curtailment'}, 'publish_prefix': ''}
[2025-04-22 09:15:40 +0200] [25] [INFO] >> Setting input data dict
[2025-04-22 09:15:40 +0200] [25] [INFO] Setting up needed data
[2025-04-22 09:15:40 +0200] [25] [INFO] >> Publishing data...
[2025-04-22 09:15:40 +0200] [25] [INFO] Publishing data to HASS instance
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_pv_forecast = 904
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_load_forecast = 434.97
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_wasmachien = 0.0
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_droogkast = 0.0
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_afwasmachien = 0.0
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_warmtepompboiler = 0.0
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_warmtepomp = 0.0
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_grid_forecast = -469.03
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.total_cost_fun_value = -2.33
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.optim_status = Optimal
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_load_cost = 0.1745
[2025-04-22 09:15:40 +0200] [25] [INFO] Successfully posted to sensor.emhass_prod_price = -0.11
Home Assistant installation type
Your hardware
- OS: HA OS
- Architecture: amd64
EMHASS installation type
Additional context
Add any other context about the problem here.
Describe the bug
Since the last update I'm seeing this error in the emhass logs
To Reproduce
Update to latest version
Expected behavior
No errors in the log
Screenshots
emhass config:
v0.13
v0.13.1
Home Assistant installation type
Your hardware
EMHASS installation type
Additional context
Add any other context about the problem here.