Closed aretakisv closed 4 years ago
Database adds files on /usr/src/app/config
Did tou set this as custom path in Zwave settings config path?
no, using the container build from zwave2mqtt-docker, path was empty. I had to set the original Openzwave path: /usr/local/etc/openzwave and then it tried to update that spot, if you do not set it does update the mentioned path.
@billiaz Could you explain it better?
@robertsLando I built the container based on your repo zwave2mqtt-docker. Modified the Dockerfile to use the latest z2m commit for better features
In practice: Starting the container without config or store. Enable the "Update database" function System downloads device database in folder /usr/src/app/config but without the main manufacturer xml Error begins to occure after DB is downloaded.
Searching the container, I do find two locations of configs once the update database is enabled
Changing the path under Settings -> zwave > config path from empty to /usr/local/etc/openzwave fixes the issue, as now the database is updated directly into the lib location
THanks for the clarification @billiaz now I have understand. I don't know how this is handled in ozw side. @Fishwaldo when Update database
option is enabled in OZW what path does it uses to store configurations db update? IS this behaviour a bug or what else?
I would like to know if it is possible to OZW to use data path to store its configurations when that option is enabled
@Fishwaldo News?
Downloads are to the config path. (specified in the Options Class or options.xml)
@Fishwaldo So is there any reason why this has happen? If he enable Update database
option with no config path set (so it sohould use the default /usr/local/etc/openzwave
) It seems is using the process.cwd
dir instead.
I have a strange issue and I do not know if I do something wrong OR is a bug. When I enable on zwave to Autoupdate the database. It cannot recognise device classes anymore Also log has this error: Failed to load device_classes.xml
Database adds files on /usr/src/app/config This way it stops using the /usr/local/etc/openzwave DB Device_classes and other XML are missing from the /usr/src/app/config directory
Original folder
I do not know what the behaviour should be.
I copied .xml and .xsd from the original folder to the new config, and seems that fixes the issue!
Once again TRV and other devices been recognised.
I suspect the Config Path is the parameter to change.