XaF/qolsysgw

HACS installation to wrong place for Homeassistant appdaemon add-on

Closed this issue · 5 comments

Before submitting this form

  • I have checked that there hasn't been a similar issue submitted in the past

  • I have updated the issue title to something relevant and clear to understand the bug I'm facing

Description of the bug

The HACS installation on HomeAssistant OS is not in the right place for recent versions of HomeAssistant that use the AppDaemon add-on.

Expected behavior

The HACS installation places qolsysgw in /homeassistant/appdaemon/apps/qolsysgw/.

However appdaemon is now relocated to /addon_configs with a prefix. See forum post: https://community.home-assistant.io/t/appdaemon-yaml-file-disappeared/641398/2.

DEBUG logs

Not applicable

Additional context

Workaround appears to be to first install the appdaemon addon, then create a symlink:

# prefix may be different?
ln -s /addon_configs/a0d7b954_appdaemon /homeassistant/appdaemon

Then download qolsysgw from HACS again.

Related issue? #132

Can anyone confirm that the symlink workaround works?

One note: after the update to HomeAssistant today, my symlink was destroyed. Attempting to apply the update to qolsysgw 1.6.0, I got the error that "/config/appdaemon/apps" did not exist. Recreating the symlink does not fix the update for some reason -- maybe its ignoring symlinks?

Using a mount --bind did not work either -- the docker container used by HomeAssistatn OS doesn't have CAP_SYS_ADMIN, so we get a permission denied error inside the container.

So I created /config/appdaemon/apps (which is symlinked to /homeassistant/appdaemon/apps) manually, did the qolsysgw update, then moved the qolsysgw files to the right place manually.

Using the file editor in home assistant, or vi via the command prompt.
Edit the file /addon_configs/xxxxxxxx_appdaemon/appdaemon.yaml

Replace the x's with your specific folder name.

Add the following line.
app_dir: /homeassistant/appdaemon/apps/

This will get Appdaemon to look in the old folder without a symlink.

It doesn't seem as if this is an issue any more -- in checking my system now, my manually created symlink is gone, qolsysgw is installed in the new and correct location /addon_configs/xxxxxxxx_appdaemon/apps.

I don't know if a qolsysgw update, or HACS update, or appdaemon update "fixed" this, or one or more of the above, but it appears to be a non-issue now.

Thanks and closing!