I'm new to snap, so you may point me to some generic docs... but googling for that led me to couple of results that I don't think are correct. One said "uninstall snap and install regular packages" and another said "copy files over /var/snap/${PKG}/current/... which seems bit awkward.
How is the proper way to install HACKS https://hacs.xyz/docs/installation/manual or other plugins (ie: https://github.com/AlexxIT/SonoffLAN) with this snap app?
I'm new to snap, so you may point me to some generic docs... but googling for that led me to couple of results that I don't think are correct. One said "uninstall snap and install regular packages" and another said "copy files over /var/snap/${PKG}/current/... which seems bit awkward.
Add to you configuration as described in section 6.
Hi,
I haven't used Hacs myself, but from the documentation, this seems to be what you have to do, considering you're using Linux.
Download hacs
```
$ wget https://github.com/hacs/integration/releases/download/1.3.3/hacs.zip
```
Create the folder `custom_components` if this is your first custom component, which should be `/var/snap/home-assistant-snap/current`:
```
$ sudo mkdir /var/snap/home-assistant-snap/current/custom_components
```
Then unzip Hacs into this directory
```
$ sudo unzip hacs.zip -d /var/snap/home-assistant-snap/current/custom_components/hacs
```
Restart Home Assistant with
```
sudo snap restart home-assistant-snap
```
Add to you configuration as described in [section 6](https://hacs.xyz/docs/installation/manual#step-6---%EF%B8%8F).
I tried to follow this, and it works - however hacs has it's own dependencies, which HA tries to install. This fails because HA doesn't have access to write to the R-O file system. I'm looking into a solution for it. :)
I tried to follow this, and it works - however hacs has it's own dependencies, which HA tries to install. This fails because HA doesn't have access to write to the R-O file system. I'm looking into a solution for it. :)
Yes, I saw and tried that approach, but doesn't seem right to manually edit /var/snap/*/current files...
And I also noticed the deps problem. I'm using the container, for the time being... also noticed the container version (Core) lacks the addons... :-/
Anyway, thanks for your work!
Yes, I saw and tried that approach, but doesn't seem right to manually edit /var/snap/*/current files...
And I also noticed the deps problem. I'm using the container, for the time being... also noticed the container version (Core) lacks the addons... :-/
Anyway, thanks for your work!
Actually, since Snap-packages is running in an isolated environment, «/var/snap//current» (or revision #no) is one of the few R-W locations that a snap can read and write to.
This is the location you'll also find configuration.yaml too! :)
Regarding the «add-ons»;
Add-ons are only available if you've used the Home Assistant installer. If you installed Home Assistant using any other method then you cannot use add-ons (but you can achieve the same result manually).
Actually, since Snap-packages is running in an isolated environment, «/var/snap/<package>/current» (or revision #no) is one of the few R-W locations that a snap can read and write to.
This is the location you'll also find `configuration.yaml` too! :)
Regarding the «add-ons»;
> Add-ons are only available if you've used the Home Assistant installer. If you installed Home Assistant using any other method then you cannot use add-ons (but you can achieve the same result manually).
[Source](https://www.home-assistant.io/addons/)
I've updated the candidate channel with a version where HA is allowed to install requirements Hacs (and its add-ons) needs. Additional data will be installed in the --user install directory for your platform. That should be within the .local directory, in the directory /var/snap/home-assistant-snap/current/.
Note! I had to restart HA trying to add the integration the first time, when it bounces back to the list of available integrations. After a restart it gave me the option to add the Github-token. When I had added the token I had to clear browser cache (as described) and restart HA again for the repositories to show up.
I've updated the candidate channel with a version where HA is allowed to install requirements Hacs (and its add-ons) needs. Additional data will be installed in the `--user` install directory for your platform. That should be within the `.local` directory, in the directory `/var/snap/home-assistant-snap/current/`.
I used the [description given above](https://git.giaever.org/joachimmg/home-assistant-snap/issues/1#issuecomment-1).
Note! I had to restart HA trying to add the integration the first time, when it bounces back to the list of available integrations. After a restart it gave me the option to add the Github-token. When I had added the token I had to clear browser cache (as described) and restart HA again for the repositories to show up.
How is the proper way to install HACKS https://hacs.xyz/docs/installation/manual or other plugins (ie: https://github.com/AlexxIT/SonoffLAN) with this snap app?
I'm new to snap, so you may point me to some generic docs... but googling for that led me to couple of results that I don't think are correct. One said "uninstall snap and install regular packages" and another said "copy files over /var/snap/${PKG}/current/... which seems bit awkward.
Hi,
I haven't used Hacs myself, but from the documentation, this seems to be what you have to do, considering you're using Linux.
Download hacs
Create the folder
custom_components
if this is your first custom component, which should be/var/snap/home-assistant-snap/current
:Then unzip Hacs into this directory
Restart Home Assistant with
Add to you configuration as described in section 6.
I tried to follow this, and it works - however hacs has it's own dependencies, which HA tries to install. This fails because HA doesn't have access to write to the R-O file system. I'm looking into a solution for it. :)
Yes, I saw and tried that approach, but doesn't seem right to manually edit /var/snap/*/current files...
And I also noticed the deps problem. I'm using the container, for the time being... also noticed the container version (Core) lacks the addons... :-/
Anyway, thanks for your work!
Actually, since Snap-packages is running in an isolated environment, «/var/snap//current» (or revision #no) is one of the few R-W locations that a snap can read and write to.
This is the location you'll also find
configuration.yaml
too! :)Regarding the «add-ons»;
Source
I've updated the candidate channel with a version where HA is allowed to install requirements Hacs (and its add-ons) needs. Additional data will be installed in the
--user
install directory for your platform. That should be within the.local
directory, in the directory/var/snap/home-assistant-snap/current/
.I used the description given above.
Note! I had to restart HA trying to add the integration the first time, when it bounces back to the list of available integrations. After a restart it gave me the option to add the Github-token. When I had added the token I had to clear browser cache (as described) and restart HA again for the repositories to show up.
Ok, Thanks! Closing this issue :-)