Snap recipe for the Open source home automation software that puts local control and privacy first. https://www.home-assistant.io/
Joachim M. Giæver 028daa933a Add slot | 4 gadi atpakaļ | |
---|---|---|
snap | 4 gadi atpakaļ | |
.gitignore | 5 gadi atpakaļ | |
LICENSE | 5 gadi atpakaļ | |
README.md | 4 gadi atpakaļ |
Snap (Snapcraft.yaml) recipe for the Open source home automation software that puts local control and privacy first.
Our tagging is reflecting the Home Assistant version numbers.
Simply
Clone repo over HTTPS
git clone https://git.giaever.org/joachimmg/home-assistant-snap.git
Change directory into the cloned repository
$ cd ~/home-assistant-snap/
and checkout the latest tag (e.g $ git checkout 0.112.3
) as the master branch might not be functioning.
Build & install 3.1 Make sure you have snapcraft installed:
sudo snap install snapcraft --classic && hash -r
3.2 Build with
$ snapcraft
3.3 Install with (change «packagename» to filename of the produced snap).
$ ls -al | grep .snap
$ snap install --devmode --dangerous <packagename>.snap
Snapcraft will try to install multipass for you, but on Raspberry Pi it will fail. You will have to use an LXD container, before any of the previous steps.
4.1 Install LXD on the Pi
$ snap install lxd
4.2 Create a container
$ sudo lxd init
4.3 Make sure your user is a member of lxd-group
sudo adduser $USER lxd
(it might tell that you already are...)
4.4 Launch an Ubuntu 20.04 container instance
lxc launch ubuntu:20.04 home-assistant-container
4.5 Go into the shell of the container
lxc exec -- home-assistant-container /bin/bash
4.6 Continue with step 1, but replace step 3.2 with the following:
SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft
as we have to build within the LXD container itself and not through multipass.