Dear all,
I am testing EMHASS as an add-on to HA and I am seeing some weird behaviour of my battery. It looks like it’s charging although I am having almost no production from my PV here in dark Europe these days. If there is some production this is instantly consumed by the current home loads I have active.
Below are extracts from my config file showing the battery parameters and some graphs of the result of todays dah ahead optimisation.
“hass_url”: “empty”,
“long_lived_token”: “empty”,
“costfun”: “cost”,
“logging_level”: “DEBUG”,
“optimization_time_step”: 60,
“historic_days_to_retrieve”: 2,
“method_ts_round”: “nearest”,
“set_total_pv_sell”: false,
“lp_solver”: “COIN_CMD”,
“lp_solver_path”: “/usr/bin/cbc”,
“set_nocharge_from_grid”: true,
“set_nodischarge_to_grid”: true,
“set_battery_dynamic”: false,
“battery_dynamic_max”: 0.9,
“battery_dynamic_min”: -0.9,
“weight_battery_discharge”: 1.0,
“weight_battery_charge”: 1.0,
“load_forecast_method”: “naive”,
….
“set_use_battery”: true,
“battery_discharge_power_max”: 3840,
“battery_charge_power_max”: 3840,
“battery_discharge_efficiency”: 0.95,
“battery_charge_efficiency”: 0.95,
“battery_nominal_energy_capacity”: 10515,
“battery_minimum_state_of_charge”: 0.05,
“battery_maximum_state_of_charge”: 1.0,
“battery_target_state_of_charge”: 0.05
ts |
P_PV |
P_Load |
P_deferrable0 |
P_deferrable1 |
P_grid_pos |
P_grid_neg |
P_grid |
P_batt |
SOC_opt |
unit_load_cost |
unit_prod_price |
cost_profit |
cost_fun_cost |
optim_status |
2024-01-06 00:00:00+01:00 |
0 |
1656.0 |
0.0 |
0.0 |
1656.0 |
0.0 |
1656.0 |
0.0 |
0.05 |
0.21 |
0.09 |
-0.34 |
-0.34 |
Optimal |
2024-01-06 01:00:00+01:00 |
0 |
1765.0 |
0.0 |
0.0 |
1765.0 |
0.0 |
1765.0 |
0.0 |
0.05 |
0.20 |
0.08 |
-0.36 |
-0.36 |
Optimal |
2024-01-06 02:00:00+01:00 |
0 |
1716.0 |
0.0 |
0.0 |
1716.0 |
0.0 |
1716.0 |
0.0 |
0.05 |
0.20 |
0.08 |
-0.34 |
-0.34 |
Optimal |
2024-01-06 03:00:00+01:00 |
0 |
1737.0 |
0.0 |
0.0 |
1737.0 |
0.0 |
1737.0 |
0.0 |
0.05 |
0.20 |
0.08 |
-0.34 |
-0.34 |
Optimal |
2024-01-06 04:00:00+01:00 |
0 |
1666.0 |
2300.0 |
700.0 |
4666.0 |
0.0 |
4666.0 |
0.0 |
0.05 |
0.19 |
0.07 |
-0.90 |
-0.90 |
Optimal |
2024-01-06 05:00:00+01:00 |
0 |
1705.0 |
2300.0 |
700.0 |
4705.0 |
0.0 |
4705.0 |
0.0 |
0.05 |
0.19 |
0.07 |
-0.91 |
-0.91 |
Optimal |
2024-01-06 06:00:00+01:00 |
0 |
1701.0 |
2300.0 |
0.0 |
4001.0 |
0.0 |
4001.0 |
0.0 |
0.05 |
0.19 |
0.07 |
-0.78 |
-0.78 |
Optimal |
2024-01-06 07:00:00+01:00 |
0 |
2122.0 |
0.0 |
0.0 |
2122.0 |
0.0 |
2122.0 |
0.0 |
0.05 |
0.19 |
0.08 |
-0.41 |
-0.41 |
Optimal |
2024-01-06 08:00:00+01:00 |
0 |
2072.0 |
0.0 |
0.0 |
2072.0 |
0.0 |
2072.0 |
0.0 |
0.05 |
0.20 |
0.08 |
-0.42 |
-0.42 |
Optimal |
2024-01-06 09:00:00+01:00 |
140 |
1914.0 |
0.0 |
0.0 |
1914.0 |
0.0 |
1914.0 |
-140.0 |
0.06 |
0.21 |
0.09 |
-0.40 |
-0.40 |
Optimal |
2024-01-06 10:00:00+01:00 |
502 |
1905.0 |
0.0 |
0.0 |
1905.0 |
0.0 |
1905.0 |
-502.0 |
0.11 |
0.21 |
0.09 |
-0.41 |
-0.41 |
Optimal |
2024-01-06 11:00:00+01:00 |
990 |
2004.0 |
0.0 |
0.0 |
2004.0 |
0.0 |
2004.0 |
-990.0 |
0.20 |
0.22 |
0.10 |
-0.44 |
-0.44 |
Optimal |
2024-01-06 12:00:00+01:00 |
1203 |
2184.0 |
0.0 |
0.0 |
2184.0 |
0.0 |
2184.0 |
-1203.0 |
0.31 |
0.22 |
0.10 |
-0.48 |
-0.48 |
Optimal |
2024-01-06 13:00:00+01:00 |
1203 |
1946.0 |
0.0 |
0.0 |
1946.0 |
0.0 |
1946.0 |
-1203.0 |
0.41 |
0.22 |
0.10 |
-0.43 |
-0.43 |
Optimal |
2024-01-06 14:00:00+01:00 |
941 |
1911.0 |
0.0 |
0.0 |
1911.0 |
0.0 |
1911.0 |
-941.0 |
0.50 |
0.21 |
0.09 |
-0.41 |
-0.41 |
Optimal |
2024-01-06 15:00:00+01:00 |
456 |
1876.0 |
0.0 |
0.0 |
1876.0 |
0.0 |
1876.0 |
-456.0 |
0.54 |
0.21 |
0.09 |
-0.40 |
-0.40 |
Optimal |
2024-01-06 16:00:00+01:00 |
93 |
1841.0 |
0.0 |
0.0 |
1841.0 |
0.0 |
1841.0 |
-93.0 |
0.55 |
0.21 |
0.09 |
-0.39 |
-0.39 |
Optimal |
2024-01-06 17:00:00+01:00 |
0 |
1817.0 |
0.0 |
0.0 |
1817.0 |
0.0 |
1817.0 |
0.0 |
0.55 |
0.21 |
0.09 |
-0.38 |
-0.38 |
Optimal |
2024-01-06 18:00:00+01:00 |
0 |
1850.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
1850.0 |
0.36 |
0.23 |
0.10 |
-0.00 |
-0.00 |
Optimal |
2024-01-06 19:00:00+01:00 |
0 |
2018.0 |
0.0 |
0.0 |
0.0 |
0.0 |
0.0 |
2018.0 |
0.16 |
0.22 |
0.10 |
-0.00 |
-0.00 |
Optimal |
2024-01-06 20:00:00+01:00 |
0 |
2657.0 |
0.0 |
0.0 |
1538.0 |
0.0 |
1538.0 |
1119.0 |
0.05 |
0.22 |
0.10 |
-0.34 |
-0.34 |
Optimal |
2024-01-06 21:00:00+01:00 |
0 |
2192.0 |
0.0 |
0.0 |
2192.0 |
0.0 |
2192.0 |
0.0 |
0.05 |
0.21 |
0.09 |
-0.47 |
-0.47 |
Optimal |
2024-01-06 22:00:00+01:00 |
0 |
2023.0 |
0.0 |
0.0 |
2023.0 |
0.0 |
2023.0 |
0.0 |
0.05 |
0.21 |
0.09 |
-0.42 |
-0.42 |
Optimal |
2024-01-06 23:00:00+01:00 |
0 |
2029.0 |
0.0 |
0.0 |
2029.0 |
0.0 |
2029.0 |
0.0 |
0.05 |
0.21 |
0.09 |
-0.42 |
-0.42 |
Optimal |
So bottom line I don’t understand why my battery charges to 50%, which explains the discharge around 18h.
Thanks
Yves