Repository navigation
sensor.unit_prod_price work not with dynamic values but load_cost_forecast works perfect with dynamic values .... #1082
Unanswered
devindecorte-dotcom
asked this question in
Q&A
Replies: 1 comment
|
The runtime key is I ran your payload through 0.18.1: as posted I get 0.03 on every step, with only the key renamed the first step is 0.14423. The accepted keys are listed in passing_data.md. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[2026-08-18 11:18:27,637] INFO in web_server: EMHASS server online, serving index.html...
[2026-08-18 11:19:31,540] INFO in web_server: >> Obtaining params:
[2026-08-18 11:19:31,546] INFO in web_server: >> Setting input data dict
[2026-08-18 11:19:31,546] INFO in command_line: Setting up needed data
[2026-08-18 11:19:31,557] INFO in utils: EMHASS 0.18.1 | Python 3.12.14 | CVXPY 1.7.5 (Highs) | Linux-x86_64
[2026-08-18 11:19:31,561] INFO in web_server: >> Publishing data...
[2026-08-18 11:19:31,562] INFO in command_line: Publishing data to HASS instance
[2026-08-18 11:19:31,586] INFO in web_server: >> Obtaining params:
[2026-08-18 11:19:31,590] INFO in web_server: Passed runtime parameters: {'load_cost_forecast': [0.17918, 0.1738, 0.17564, 0.17124, 0.17116, 0.17032, 0.16951, 0.16767, 0.16695, 0.16417, 0.16226, 0.16339, 0.16379, 0.16574, 0.1639, 0.16535, 0.16359, 0.16483, 0.16792, 0.16553, 0.16504, 0.17407, 0.18492, 0.17243, 0.18646, 0.19193, 0.18836, 0.18378, 0.19418, 0.22114, 0.21848, 0.23326, 0.2288, 0.2431, 0.24766, 0.24158, 0.24549, 0.24499, 0.24158, 0.2475, 0.25225, 0.23782, 0.22762, 0.24257, 0.23666, 0.22902, 0.222, 0.23271, 0.21729, 0.21317, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258, 0.20258], 'production_price_forecast': [0.14423, 0.13948, 0.1411, 0.13722, 0.13714, 0.13641, 0.13569, 0.13407, 0.13342, 0.13097, 0.12928, 0.13028, 0.13063, 0.13236, 0.13074, 0.13201, 0.13046, 0.13156, 0.13428, 0.13217, 0.13174, 0.13972, 0.1493, 0.13826, 0.15066, 0.15549, 0.15234, 0.14829, 0.15748, 0.18129, 0.17894, 0.192, 0.18806, 0.20069, 0.20472, 0.19935, 0.2028, 0.20236, 0.19935, 0.20458, 0.20877, 0.19603, 0.18702, 0.20023, 0.195, 0.18825, 0.18206, 0.19152, 0.1779, 0.17425, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649, 0.1649], 'pv_power_forecast': [2732, 2732, 2721, 2721, 2865, 2865, 3066, 3066, 3277, 3277, 3497, 3497, 3696, 3696, 3781, 3781, 3746, 3746, 3605, 3605, 3361, 3361, 2989, 2989, 2494, 2494, 1876, 1876, 1142, 1142, 604, 604, 257, 257, 108, 108, 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 93, 93, 205, 205, 360, 360, 625, 625, 952, 952, 1359, 1359, 1729, 1729, 2056, 2056, 2311, 2311], 'soc_init': 0.54, 'soc_final': 0.9, 'operating_hours_of_each_deferrable_load': [0], 'end_timesteps_of_each_deferrable_load': [51]}
[2026-08-18 11:19:31,591] INFO in web_server: >> Setting input data dict
[2026-08-18 11:19:31,591] INFO in command_line: Setting up needed data
[2026-08-18 11:19:31,601] INFO in utils: EMHASS 0.18.1 | Python 3.12.14 | CVXPY 1.7.5 (Highs) | Linux-x86_64
[2026-08-18 11:19:31,609] INFO in forecast: Retrieving weather forecast data using method = list
[2026-08-18 11:19:31,613] INFO in command_line: Using existing Adjusted PV model (age: 4.6h, max: 24h)
[2026-08-18 11:19:31,613] INFO in command_line: Loading existing adjusted PV model from file
[2026-08-18 11:19:31,614] INFO in retrieve_hass: Successfully posted to sensor.p_load_forecast = 986.22
[2026-08-18 11:19:31,658] INFO in retrieve_hass: Successfully posted to sensor.p_pv_forecast = 5142.75
[2026-08-18 11:19:31,671] WARNING in forecast: Variable sensor.solis_s6_eh1p_household_load_power not found in long_train_data.pkl
[2026-08-18 11:19:31,672] WARNING in forecast: Found legacy column 'sensor.power_load_no_var_loads' in pickle. Renaming to 'sensor.solis_s6_eh1p_household_load_power'
[2026-08-18 11:19:31,980] INFO in command_line: Using existing Battery identification model (age: 2.0h, max: 24h)
[2026-08-18 11:19:31,980] INFO in command_line: Battery identification: capacity 29.41 kWh (CI [28.81, 29.5778]) vs configured 30.00 kWh; round-trip efficiency 0.918 (one-way 0.958) vs configured one-way 0.950.
[2026-08-18 11:19:31,981] INFO in command_line: Battery identification recommendation: consider updating battery_nominal_energy_capacity from 30.00 kWh to 29.41 kWh, and battery_charge_efficiency / battery_discharge_efficiency from 0.95 to 0.9584 (symmetric sqrt of the identified round-trip efficiency).
[2026-08-18 11:19:31,982] INFO in retrieve_hass: Successfully posted to sensor.p_hybrid_inverter = 986.22
[2026-08-18 11:19:32,015] INFO in retrieve_hass: Successfully posted to sensor.p_deferrable0 = 0.0
[2026-08-18 11:19:32,022] INFO in retrieve_hass: Successfully posted to sensor.battery_identified_capacity = 29.4085
[2026-08-18 11:19:32,046] INFO in retrieve_hass: Successfully posted to sensor.p_deferrable0_state = off
[2026-08-18 11:19:32,054] INFO in retrieve_hass: Successfully posted to sensor.battery_identified_round_trip_efficiency = 0.9184
[2026-08-18 11:19:32,055] INFO in web_server: >> Performing dayahead-optim...
[2026-08-18 11:19:32,055] INFO in command_line: Performing day-ahead forecast optimization with soc_init: 0.54, soc_final: 0.9
[2026-08-18 11:19:32,081] INFO in optimization: Perform optimization for the day-ahead with soc_init: 0.54, soc_final: 0.9
[2026-08-18 11:19:32,083] WARNING in optimization: cost_forecast_per_deferrable_load[0] is str (value: 'null'), expected list. Falling back to shared tariff for this load.
[2026-08-18 11:19:32,865] INFO in optimization: Total value of the Cost function = 0.38
[2026-08-18 11:19:32,886] INFO in command_line: Optimization completed in 2.0s (top: optim_solve=0.8s, 40%)
[2026-08-18 11:19:33,401] INFO in retrieve_hass: Successfully posted to sensor.p_batt_forecast = -4156.53
[2026-08-18 11:19:33,426] INFO in retrieve_hass: Successfully posted to sensor.soc_batt_forecast = 68.83
[2026-08-18 11:19:33,455] INFO in retrieve_hass: Successfully posted to sensor.p_grid_forecast = 0.0
[2026-08-18 11:19:33,488] INFO in retrieve_hass: Successfully posted to sensor.total_cost_fun_value = 0.71
[2026-08-18 11:19:33,508] INFO in retrieve_hass: Successfully posted to sensor.optim_status = Optimal
[2026-08-18 11:19:33,531] INFO in retrieve_hass: Successfully posted to sensor.unit_load_cost = 0.1792
[2026-08-18 11:19:33,557] INFO in retrieve_hass: Successfully posted to sensor.unit_prod_price = 0.03
[2026-08-18 11:19:53,499] INFO in web_server: >> Obtaining params:
[2026-08-18 11:19:53,502] INFO in web_server: >> Setting input data dict
[2026-08-18 11:19:53,503] INFO in command_line: Setting up needed data
[2026-08-18 11:19:53,516] INFO in utils: EMHASS 0.18.1 | Python 3.12.14 | CVXPY 1.7.5 (Highs) | Linux-x86_64
[2026-08-18 11:19:53,521] INFO in web_server: >> Publishing data...
[2026-08-18 11:19:53,521] INFO in command_line: Publishing data to HASS instance
[2026-08-18 11:19:53,576] INFO in retrieve_hass: Successfully posted to sensor.p_load_forecast = 986.22
[2026-08-18 11:19:53,605] INFO in retrieve_hass: Successfully posted to sensor.p_pv_forecast = 5142.75
[2026-08-18 11:19:53,642] INFO in retrieve_hass: Successfully posted to sensor.p_hybrid_inverter = 986.22
[2026-08-18 11:19:53,671] INFO in retrieve_hass: Successfully posted to sensor.p_deferrable0 = 0.0
[2026-08-18 11:19:53,697] INFO in retrieve_hass: Successfully posted to sensor.p_deferrable0_state = off
[2026-08-18 11:19:53,722] INFO in retrieve_hass: Successfully posted to sensor.p_batt_forecast = -4156.53
[2026-08-18 11:19:53,750] INFO in retrieve_hass: Successfully posted to sensor.soc_batt_forecast = 57.29
[2026-08-18 11:19:53,819] INFO in retrieve_hass: Successfully posted to sensor.p_grid_forecast = 0.0
[2026-08-18 11:19:53,840] INFO in retrieve_hass: Successfully posted to sensor.total_cost_fun_value = 0.71
[2026-08-18 11:19:53,862] INFO in retrieve_hass: Successfully posted to sensor.optim_status = Optimal
[2026-08-18 11:19:53,886] INFO in retrieve_hass: Successfully posted to sensor.unit_load_cost = 0.1792
[2026-08-18 11:19:53,913] INFO in retrieve_hass: Successfully posted to sensor.unit_prod_price = 0.03
[2026-08-18 11:23:58,303] INFO in web_server: EMHASS server online, serving index.html...
[2026-08-18 11:24:02,081] INFO in web_server: serving configuration.html...
[2026-08-18 11:24:02,233] INFO in utils: Obtaining parameters from config.json:
It does't accept the dynamic values ...
Constant PV power production price:
photovoltaic_production_sell_price
0,03
The paid price for energy injected to the grid from excess PV production in currency/kWh.
All reactions