Snap recipe for the Open source home automation software that puts local control and privacy first.
Joachim M. Giæver 2fd0e66344 Change root check | преди 4 години | |
---|---|---|
scripts | преди 4 години | |
snap | преди 4 години | |
.gitignore | преди 5 години | |
LICENSE.md | преди 4 години | |
README.md | преди 4 години |
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.