qolsysgw icon indicating copy to clipboard operation
qolsysgw copied to clipboard

HACS installation to wrong place for Homeassistant appdaemon add-on

Open rocketraman opened this issue 1 year ago • 3 comments

Before submitting this form

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

  • [X] 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.

rocketraman avatar Jan 10 '24 22:01 rocketraman

Related issue? https://github.com/XaF/qolsysgw/issues/132

rocketraman avatar Jan 10 '24 22:01 rocketraman

Can anyone confirm that the symlink workaround works?

Tobbe7612 avatar Jan 12 '24 19:01 Tobbe7612

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.

rocketraman avatar Jan 13 '24 07:01 rocketraman

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.

JosephChristiano avatar May 21 '24 00:05 JosephChristiano

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!

rocketraman avatar May 21 '24 12:05 rocketraman