Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACS installation to wrong place for Homeassistant appdaemon add-on #145

Closed
2 tasks done
rocketraman opened this issue Jan 10, 2024 · 5 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@rocketraman
Copy link

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.

@rocketraman rocketraman added the bug Something isn't working label Jan 10, 2024
@rocketraman
Copy link
Author

Related issue? #132

@Tobbe7612
Copy link

Can anyone confirm that the symlink workaround works?

@rocketraman
Copy link
Author

rocketraman commented Jan 13, 2024

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.

@JosephChristiano
Copy link

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.

@rocketraman
Copy link
Author

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 rocketraman closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants