Snap recipe for the Open source home automation software that puts local control and privacy first.

Joachim M. Giæver 9741a5d198 Final 2023.3 bump 1 year ago
snap 9741a5d198 Final 2023.3 bump 1 year ago
src 13c47700d3 Change dir to prevent error on shell 2 years ago
.gitignore 6e14b10245 Fix so user on a yyyy.x track wont be notified about latest/risks + add gui 2 years ago 0fb8d897a5 Update yaml and license 3 years ago a1056653c8 Get ridd of the hass-term 3 years ago

Home Assistant (snap)

Snap (Snapcraft.yaml) recipe for the Open source home automation software, Home Assistant that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

This page will only include specific information about the snap-version of Home Assistant. For general Home Assistant questions, see their official Help page and Community Forum.

Our tagging is reflecting the Home Assistant version numbers, but we might not release a tag for each version of Home Assistant.

Get it from the Snap Store Donate with PayPal

About this project

This snap-version of Home Assistant was made with the intention of running a home automation system on multiple remote location. Snap was choosen as it is an transactional, self updating package manager, which will let us not have to travel to the location(s) to do updates on each system.

Based on this intention we have choosen a strict confinement, which should work out of the box on the Ubuntu Core operating system and similar. As changes to the snap on these systems are limited we have also built several other snaps that will integrate with this version or help manage devices remotely.

  • Home Assistant Community Store-integration gives you a powerful UI to handle downloads of all your custom needs.
  • HASS Configurator-integration to allow easy configuration of Home Assistant.
  • (SSL): probably the easiest & smartest shell script to automatically issue & renew the free certificates from Let's Encrypt.
  • ddclient: client used to update dynamic DNS entries for accounts on many dynamic DNS services.

We're also working on a solution to extend the installation further so you can add additional libaries (curl, wget, ssh) that you will need to be able to build your system as you want.

Please file all issues using the main git-repository found at

Frequently asked questions

  • How do I configure Home Assistant from this snap
    • If your using Home Assistant on a desktop or server edition you will be able to use your favourite text editor. The configurations files is store in /var/snap/home-assistant-snap/current. You will need to have root access.
    • If you can't locate the configuration files (it may differ on some distributions), log into the daemon' shell with sudo snap run --shell home-assistant-snap and execute echo $SNAP_DATA. This should return a path similar that is mentioned above, but containing a digit (the revision number of the current running version). When you have figured out the path, it's wise to exchange the revision number with current, as this number will change frequently and current will always be linked to the currently used revision.
    • If you don't have root access or want to be able to update the configurations through a web solution, have a look at the home-assistant-configurator.
  • How can I secure my Home Assistant with SSL (HTTPS)?
    • Install acme-sh and connect acme-sh's and home-assistant-snap's slot/plug with snap connect acme-sh:certs home-assistant-snap:certs.
    • After you have issued the certificate, you'll find the decrypted files in /var/snap/home-assistant-snap/current/.ssl. You'll then add a http-entry in your configuration file.
    • Home Assistant is configured to scan for updated certificates, replace them and to restart to use the new version.
  • How do I use dynamic DNS?

Build and installation

Install from The Snap Store (Recommended)

Make sure you have Snapd installed on your system. See Installing snapd for a list of distributions with and without snap pre-installed, including installation instructions for those that have not.

$ snap install home-assistant-snap

Build this snap from source

We recommend that your download a pre-built version of this snap from The Snap Store, or at least make sure that you checkout the latest tag, as the master tag might contain faulty code during development.

  1. Clone this repo and checkout the latest tag
$ git clone

# Go into directory
$ cd ./home-assistant-snap

# Checkout tag
$ git checkout <tag>

NOTE: You can find the latest tag with git ls-remote --tags origin

  1. Build and install

Make sure you have snapd (see Installing snapd) and latest version of Snapcraft. Install Snapcraft with

$ sudo snap install snapcraft --classic

Or update with

$ sudo snap refresh snapcraft

2.2 With multipass

From the «home-assistant-snap»-directory, run

$ snapcraft

Multipass will be installed and a virtual machine will boot up and build your snap. The final snap will be located in the same directory.

2.3 With LXD (required for Raspberry Pie)

Snapcraft will try to install multiplass and build the snap for you, but on Raspberry Pi it will fail. You will have to use an LXD container.

Install LXD and create a container

$ snap install lxd
$ snap lxd init

Make sure your user is a member of lxd-group

$ sudo adduser $USER lxd

Launch an Ubuntu 20.04 container instance

$ lxc launch ubuntu:20.04 home-assistant-snap

Make sure you're in the «home-assistant-snap»-directory and go into the shell of your newly created container

$ lxc exec -- home-assistant-snap /bin/bash

and run


when the build is complete, you'll have to exit the shell and pull the snap-file from the container. See lxc file pull --help.

  1. Install new built snap

    $ sudo snap install ./home-assistant-snap_<source-tag>.snap --dangerous