1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| 2026-03-25 19:49:52 debug: query get column data da:
SELECT strftime(?, datetime(prognoses.time, ?, ?)) AS uur, prognoses.time AS time, prognoses.time AS utc, prognoses.value AS value
FROM prognoses, variabel
WHERE variabel.code = ? AND prognoses.variabel = variabel.id AND prognoses.time >= strftime(?, ?, ?) AND prognoses.time < strftime(?, ?, ?) ORDER BY time
2026-03-25 19:49:52 debug: query get column data da:
SELECT strftime(?, datetime(prognoses.time, ?, ?)) AS uur, prognoses.time AS time, prognoses.time AS utc, prognoses.value AS value
FROM prognoses, variabel
WHERE variabel.code = ? AND prognoses.variabel = variabel.id AND prognoses.time >= strftime(?, ?, ?) AND prognoses.time < strftime(?, ?, ?) ORDER BY time
2026-03-25 19:49:52 debug: query get column data da:
SELECT strftime(?, datetime(prognoses.time, ?, ?)) AS uur, prognoses.time AS time, prognoses.time AS utc, prognoses.value AS value
FROM prognoses, variabel
WHERE variabel.code = ? AND prognoses.variabel = variabel.id AND prognoses.time >= strftime(?, ?, ?) AND prognoses.time < strftime(?, ?, ?) ORDER BY time
2026-03-25 19:49:52 fout: Er is een fout opgetreden, zie de fout-tracering
Traceback (most recent call last):
File "/root/dao/prog/da_base.py", line 694, in run_task_function
getattr(self, run_task["function"])()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/da_base.py", line 538, in calc_optimum_met_debug
dacalc.calc_optimum()
~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/day_ahead.py", line 288, in calc_optimum
solar_prog = self.calc_solar_predictions(
self.solar[s], start_interval_dt, end, self.interval
)
File "/root/dao/prog/da_base.py", line 587, in calc_solar_predictions
solar_prog = solar_predictor.predict_solar_device(
solar_option, vanaf, tot
)
File "/root/dao/prog/solar_predictor.py", line 1024, in predict_solar_device
prediction = self.predict(weather_data)
File "/root/dao/prog/solar_predictor.py", line 702, in predict
prediction = self.model.predict(featured_df)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/sklearn.py", line 1446, in predict
predts = self.get_booster().inplace_predict(
data=X,
...<4 lines>...
validate_features=validate_features,
)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 2865, in inplace_predict
raise ValueError(
...<2 lines>...
)
ValueError: Feature shape mismatch, expected: 8, got 9
2026-03-25 19:49:52 debug: Starting new HTTP connection (1): 192.168.1.7:8123
2026-03-25 19:49:52 debug: http://192.168.1.7:8123 "POST /api/services/input_text/set_value HTTP/1.1" 200 331
2026-03-25 19:49:52 INFO: Loaded 6 secrets from ../data/secrets.json
2026-03-25 19:49:52 INFO: Validating configuration with ConfigurationV0
2026-03-25 19:49:52 debug: Starting new HTTP connection (1): 192.168.1.7:8123
2026-03-25 19:49:52 debug: http://192.168.1.7:8123 "GET /api/ HTTP/1.1" 200 34
2026-03-25 19:49:52 debug: Starting new HTTP connection (1): 192.168.1.7:8123
2026-03-25 19:49:52 debug: http://192.168.1.7:8123 "GET /api/config HTTP/1.1" 200 2420
2026-03-25 19:49:52 debug: hass/api/config: {"allowlist_external_dirs":["/media","/config/www"],"allowlist_external_urls":[],"components":["light","nederlandse_spoorwegen.sensor","derivative","tuya.sensor","version.binary_sensor","filter.sensor","auto_backup.button","ical","proxmoxve.sensor","tuya.number","homeassistant","my","auto_backup","mqtt.select","sessy.button","alarm_control_panel","tuya.event","localtuya","input_boolean","tuya.light","samsungtv_smart.media_player","proxmoxve.binary_sensor","spook.time","sessy.select","panel_custom","wake_word","history","persistent_notification","lovelace","nodered.number","mqtt.binary_sensor","adguard","spotifyplus","browser_mod.light","buienradar.weather","trace","sql","history_stats.sensor","climate","generic_thermostat.climate","media_source","number","google_generative_ai_conversation.conversation","zwave_js.siren","tuya.climate","spook.sensor","google_generative_ai_conversation.tts","zwave_js.binary_sensor","solaredgeoptimizers.sensor","cloud.stt","smartthings.event","blueprint","ping.sensor","solaredge_modbus","zwave_js.number","github","tado_hijack.binary_sensor","systemmonitor","zwave_js.sensor","ping.binary_sensor","conversation","recorder","tuya","sessy.switch","fan","workday.binary_sensor","mqtt.sensor","samsungtv.remote","local_todo","smartthings","tuya.alarm_control_panel","afvalwijzer.sensor","nodered.sensor","tado_hijack.sensor","github.sensor","tado_hijack.climate","tado_hijack.switch","wake_on_lan.switch","smartthings.binary_sensor","mpd","text","web_rtc","solaredge_modbus.sensor","template.select","smartthings.light","smartthings.climate","http","twinkly","mqtt.switch","tado_local","smartthings.water_heater","smartthings.number","camera","local_calendar.calendar","schedule","min_max.sensor","cloud","auto_backup.binary_sensor","zwave_js.humidifier","afvalwijzer","auth","tuya.valve","hacs","co2signal.sensor","notify","hacs.switch","cover","labs","esphome","buienradar.sensor","spook.switch","dsmr_reader","template.switch","image_upload","watchman.sensor","nodered.text","smartthings.valve","utility_meter","weather","workday.calendar","spotifyplus.media_player","onboarding","mqtt.number","solaredge_modbus.number","systemmonitor.sensor","tado_hijack.button","cloud.binary_sensor","esphome_designer","local_todo.todo","mqtt.event","smartthings.scene","tuya.vacuum","tod","mqtt","ical.sensor","zone","input_number","esphome.event","utility_meter.select","tibber","bluetooth","switch_as_x.light","media_player","wake_on_lan","esphome.cover","hassio.switch","browser_mod.binary_sensor","scene","smartthings.sensor","sessy.number","mobile_app.notify","energy_meter.sensor","intent","hassio.sensor","esphome.media_player","forecast_solar.sensor","adguard.sensor","cast.media_player","openweathermap.weather","tado_hijack.water_heater","ai_task","assist_pipeline","smartthings.select","diagnostics","input_datetime","pvoutput.sensor","logbook","ping","solaredgeoptimizers","mpd.media_player","zwave_js","spook","input_text","lock","siren","sun.sensor","mobile_app.binary_sensor","openweathermap.sensor","tuya.select","zwave_js.button","adguard.switch","plant","search","spook.button","api","zwave_js.update","network","mqtt.text","localtuya.number","group","rest","localtuya.sensor","repairs","tado_hijack.select","unifi","device_automation","tuya.humidifier","threshold.binary_sensor","kleenex_pollenradar","mobile_app.device_tracker","homeassistant.scene","nodered","button","browser_mod.sensor","config","statistics","integration.sensor","counter","nodered.select","spotify","nodered.time","utility_meter.sensor","smartthings.fan","esphome.camera","google_generative_ai_conversation","samsungtv","input_button","adguard.update","systemmonitor.binary_sensor","watchman.button","samsungtv_smart","zwave_js.fan","cloud.tts","esphome.switch","integration","watchman.text","tuya.camera","usb","tibber.sensor","spook.event","sensor","ffmpeg","remote","smartthings.lock","utility_meter_next_gen","websocket_api","sessy","script","zeroconf","binary_sensor","statistics.sensor","version.sensor","nederlandse_spoorwegen","smartthings.vacuum","samsungtv.media_player","ical.calendar","hassio.binary_sensor","zwave_js.light","buienradar","utility_meter_next_gen.sensor","esphome.number","tuya.button","backup.sensor","tuya.cover","auto_backup.sensor","nederlandse_spoorwegen.binary_sensor","zwave_js.select","humidifier","ssdp","smartthings.media_player","scheduler.switch","frontend","template.binary_sensor","sun","forecast_solar","tuya.binary_sensor","smartthings.update","calendar","energy.sensor","esphome.sensor","watchman","smartthings.cover","backup.event","tado_local.sensor","switch","tag","pvoutput","browser_mod.camera","timer","energy","smartthings.switch","event","universal.media_player","spook.binary_sensor","sql.sensor","command_line","rest.sensor","system_log","backup","mobile_app","openweathermap","mobile_app.sensor","template.sensor","rest_command","tado_local.climate","stt","threshold","mqtt.climate","scheduler","sessy.update","smart_thermostat.climate","buienalarm","time","smartthings.button","spotify.media_player","esphome.light","samsungtv_smart.remote","analytics","input_select","file_upload","tado_hijack.number","dsmr_reader.sensor","command_line.sensor","zwave_js.switch","esphome.select","tuya.siren","todo","hardware","tuya.switch","esphome.button","sessy.sensor","buienalarm.sensor","mqtt.light","min_max","select","buienradar.camera","system_health","tuya.fan","kleenex_pollenradar.sensor","proxmoxve","automation","valve","browser_mod","tts","application_credentials","sun.binary_sensor","energy_meter","esphome.binary_sensor","device_tracker","tado_hijack","ping.device_tracker","hassio","zwave_js.event","water_heater","nodered.switch","group.notify","localtuya.switch","bluetooth_adapters","co2signal","tuya.scene","nodered.button","group.light","zwave_js.climate","switch_as_x","logger","solaredge_modbus.select","google_generative_ai_conversation.ai_task","zwave_js.lock","version","local_calendar","nodered.binary_sensor","time_date.sensor","spook.select","tibber.notify","workday","browser_mod.media_player","cast","sessy.binary_sensor","derivative.sensor","vacuum","proxmoxve.button","webhook","mqtt.fan","spook.number","update","hassio.update","person","tado_local.text","hacs.update","tibber.binary_sensor","zwave_js.cover","tod.binary_sensor","shell_command","brands","esphome.update","template","google_generative_ai_conversation.stt","sessy.time"],"config_dir":"/config","config_source":"storage","country":"NL","currency":"EUR","debug":false,"elevation":0,"external_url":null,"internal_url":null,"language":"en","latitude":52.01789586139738,"location_name":"Home","longitude":4.3583106994628915,"radius":100,"recovery_mode":false,"safe_mode":false,"state":"RUNNING","time_zone":"Europe/Amsterdam","unit_system":{"length":"km","accumulated_precipitation":"mm","area":"m²","mass":"g","pressure":"Pa","temperature":"°C","volume":"L","wind_speed":"m/s"},"version":"2026.3.4","whitelist_external_dirs":["/media","/config/www"]}
2026-03-25 19:49:52 debug: Starting new HTTP connection (1): 192.168.1.7:8123
2026-03-25 19:49:52 debug: http://192.168.1.7:8123 "GET /api/states/input_select.dao_strategy HTTP/1.1" 200 429
2026-03-25 19:49:52 debug: Starting new HTTP connection (1): 192.168.1.7:8123
2026-03-25 19:49:52 debug: http://192.168.1.7:8123 "POST /api/services/input_datetime/set_datetime HTTP/1.1" 200 323
2026-03-25 19:49:52 debug: Connection status Pool size: 5 Connections in pool: 1 Current Overflow: -4 Current Checked out connections: 0 at line 198 in /root/dao/prog/da_base.py
Traceback (most recent call last):
File "/root/dao/webserver/../prog/day_ahead.py", line 4707, in <module>
main()
~~~~^^
File "/root/dao/webserver/../prog/day_ahead.py", line 4678, in main
da_calc.run_task_function("calc_optimum_met_debug")
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/dao/prog/da_base.py", line 694, in run_task_function
getattr(self, run_task["function"])()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/da_base.py", line 538, in calc_optimum_met_debug
dacalc.calc_optimum()
~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/day_ahead.py", line 288, in calc_optimum
solar_prog = self.calc_solar_predictions(
self.solar[s], start_interval_dt, end, self.interval
)
File "/root/dao/prog/da_base.py", line 587, in calc_solar_predictions
solar_prog = solar_predictor.predict_solar_device(
solar_option, vanaf, tot
)
File "/root/dao/prog/solar_predictor.py", line 1024, in predict_solar_device
prediction = self.predict(weather_data)
File "/root/dao/prog/solar_predictor.py", line 702, in predict
prediction = self.model.predict(featured_df)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/sklearn.py", line 1446, in predict
predts = self.get_booster().inplace_predict(
data=X,
...<4 lines>...
validate_features=validate_features,
)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 2865, in inplace_predict
raise ValueError(
...<2 lines>...
)
ValueError: Feature shape mismatch, expected: 8, got 9 |