and this with 30min:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun emhass (no readiness notification)
s6-rc: info: service legacy-services successfully started
2023-03-13 11:19:19,639 - web_server - INFO - Launching the emhass webserver at: http://0.0.0.0:5000
2023-03-13 11:19:19,640 - web_server - INFO - Home Assistant data fetch will be performed using url: http://supervisor/core/api
2023-03-13 11:19:19,641 - web_server - INFO - The data path is: /share
2023-03-13 11:19:19,650 - web_server - INFO - Using core emhass version: 0.4.5
waitress INFO Serving on http://0.0.0.0:5000
2023-03-13 11:20:00,486 - web_server - INFO - Setting up needed data
2023-03-13 11:20:00,646 - web_server - INFO - >> Publishing dataâŚ
2023-03-13 11:20:00,647 - web_server - INFO - Publishing data to HASS instance
2023-03-13 11:20:00,742 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = 5637.14
2023-03-13 11:20:00,802 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 15568.98
2023-03-13 11:20:00,873 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2023-03-13 11:20:00,944 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = 0.0
2023-03-13 11:20:01,034 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 60.0
2023-03-13 11:20:01,121 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = 9000.0
2023-03-13 11:20:01,212 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = -170.7
but error when running day ahead optimization
2023-03-13 11:21:08,361 - web_server - INFO - Setting up needed data
2023-03-13 11:21:08,386 - web_server - INFO - Retrieving weather forecast data using method = scrapper
2023-03-13 11:21:13,670 - web_server - INFO - Retrieving data from hass for load forecast using method = naive
2023-03-13 11:21:13,672 - web_server - INFO - Retrieve hass get data method initiatedâŚ
2023-03-13 11:21:14,264 - web_server - ERROR - Exception on /action/dayahead-optim [POST]
Traceback (most recent call last):
File â/usr/local/lib/python3.9/dist-packages/flask/app.pyâ, line 2528, in wsgi_app
response = self.full_dispatch_request()
File â/usr/local/lib/python3.9/dist-packages/flask/app.pyâ, line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File â/usr/local/lib/python3.9/dist-packages/flask/app.pyâ, line 1823, in full_dispatch_request
rv = self.dispatch_request()
File â/usr/local/lib/python3.9/dist-packages/flask/app.pyâ, line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File â/usr/local/lib/python3.9/dist-packages/emhass/web_server.pyâ, line 170, in action_call
input_data_dict = set_input_data_dict(config_path, str(data_path), costfun,
File â/usr/local/lib/python3.9/dist-packages/emhass/command_line.pyâ, line 91, in set_input_data_dict
P_load_forecast = fcst.get_load_forecast(method=optim_conf[âload_forecast_methodâ])
File â/usr/local/lib/python3.9/dist-packages/emhass/forecast.pyâ, line 585, in get_load_forecast
rh.get_data(days_list, var_list)
File â/usr/local/lib/python3.9/dist-packages/emhass/retrieve_hass.pyâ, line 140, in get_data
df_tp = df_raw.copy()[[âstateâ]].replace(
File â/usr/local/lib/python3.9/dist-packages/pandas/core/generic.pyâ, line 5920, in astype
new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/internals/managers.pyâ, line 419, in astype
return self.apply(âastypeâ, dtype=dtype, copy=copy, errors=errors)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/internals/managers.pyâ, line 304, in apply
applied = getattr(b, f)(**kwargs)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/internals/blocks.pyâ, line 580, in astype
new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/dtypes/cast.pyâ, line 1292, in astype_array_safe
new_values = astype_array(values, dtype, copy=copy)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/dtypes/cast.pyâ, line 1237, in astype_array
values = astype_nansafe(values, dtype, copy=copy)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/dtypes/cast.pyâ, line 1098, in astype_nansafe
result = astype_nansafe(flat, dtype, copy=copy, skipna=skipna)
File â/usr/local/lib/python3.9/dist-packages/pandas/core/dtypes/cast.pyâ, line 1181, in astype_nansafe
return arr.astype(dtype, copy=True)
ValueError: could not convert string to float: â16513.0 - states(âsensor.battery_charge_discharge_powerâ)|float(0)}}â