LukasGrebe / ha-addons

Addons for Home Assistant
GNU General Public License v3.0
43 stars 49 forks source link

Config files not found #150

Closed dietersiebs closed 2 days ago

dietersiebs commented 5 days ago

Hello,

I installed the Add-On in my Home Assistant (on Raspberry Pi4) and it seems mostly working, connection to the EBUS-Adapter works but when I start the AddOn I get errors in Logfiles, that the config files will not be found:

2024-11-20 20:18:36.132 [main notice] ebusd 23.2.p20230716 started with auto scan on device: 192.168.178.xxx:9999, enhanced 2024-11-20 20:18:36.138 [main error] error reading templates in /: ERR: element not found, last error: _templates.csv:49: ERR: element not found, field type TEMP in field 0 2024-11-20 20:18:36.141 [main error] error reading config files from /config/ebusdconfig/: ERR: element not found, last error: 52.vr_70.csv:6: ERR: element not found, field type TEMP1 in field 1

I configured the config path with "/config/ebusdconfig", I created with "Studio Code Server" the path and uploaded with it all files of the de/Vaillant-Path from John30. The missed file "52.vr_70.csv is located in /config/ebusdconfig

After that there are many enties in the logfile like

2024-11-20 20:30:35.413 [update notice] received unknown MS cmd: 7

Whats getting wrong?

Best regards Dieter

cociweb commented 4 days ago

I think you are looking for one of the paths: /addons/data/XXXXXXXX_ebusd/or /config/addons/data/XXXXXXXX_ebusd/ or /addon_configs/ or /config/addon_configs/ or /homeassistant/addons/ or /config/config/.... or their combinations. :D it's really depend on your configuration and the first HA version installed. Good luck to find your correct path! ;)

Have you tried the /config/addons/data/XXXXXXXX_ebusd/yourconfig.file as /data/yourconfig.file here you have less variant. Maybe your addon instance has no proper permission to read the file?

dietersiebs commented 2 days ago

Thanks for your reply.

I tested more time and it seem, that I interpreted the error mesages wrong. While my testing, I got an other error:

2024-11-22 17:56:39.543 [main error] error reading config files from /config/ebcfg/vaillant/: ERR: element not found, last error: 15.ctlv.SW0514.HW1104.csv:26: ERR: element not found, field type ENERGY4 in field 1

And the file "15.ctlv.SW0514.HW1104.csv:26" isn't in the repository of John30, so it must be found local. So the addon already finds the .csv files in the configured folder, but it didn't find the variables or parameters in the files. So if in the logfile reported

2024-11-20 20:18:36.138 [main error] error reading templates in /: ERR: element not found, last error: _templates.csv:49: ERR: element not found, field type TEMP in field 0

this means, the file is found, but in the file it would't found the parameter TEMP in _templates.

Now I searched for the missing entries and it works. There any still messages " received unknown MS " but I think this is related, that not all needed .csv files are in my folder, or not all values are in the .csv-files.

But overall, this issue could be closed - it was not an issue...

dietersiebs commented 2 days ago

Was not an issue of the AddOn.