danielwelch / hassio-zigbee2mqtt

Hass.io add-on for zigbee2mqtt
Apache License 2.0
565 stars 190 forks source link

Addon fails to store persistent data in host's filesystem #512

Closed garethhowell closed 3 years ago

garethhowell commented 3 years ago

zigbee2mqtt add-on version (if edge, please report commit hash): 1.17 but applies to all

Operating environment (HassOS, Virtual Machine, Device/platform running Home Assistant):

docker supervised install on Pi3 running raspbian

Description of problem: Persistent data (e.g. database.db) is stored in /usr/share/zigbee2mqtt but this folder is not mapped from a host folder. Most other addons store persistent data in a folder that is accessible outside of the container and is thus accessible even if the container is not running.

ciotlosm commented 3 years ago

You can switch to https://github.com/zigbee2mqtt/hassio-zigbee2mqtt that uses /config by default however you can switch where z2m stores the config from the add-on UI. it's up to you to decide where you want to store data about it.

garethhowell commented 3 years ago

Thanks, @ciotlosm. I'll switch over to that.