XaF / qolsysgw

Qolsys IQ Panel 2+ gateway to an Home Assistant Alarm Control Panel
MIT License
134 stars 13 forks source link

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

Closed rocketraman closed 6 months ago

rocketraman commented 10 months ago

Before submitting this form

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 commented 10 months ago

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

Tobbe7612 commented 10 months ago

Can anyone confirm that the symlink workaround works?

rocketraman commented 10 months ago

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 commented 6 months ago

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 commented 6 months ago

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!