Getting Started

Installation in

In order to use hass-apps in the ecosystem, you first need to set up an AppDaemon add-on. The recommended add-on is this one.

When you have that up and running, head over to Installation in Docker and choose a hass-apps version to install, BUT instead of storing the chosen string in a ``requirements.txt`` file, you add it to the ``python_packages`` setting of the AppDaemon add-on using’s web interface. It should look like this:

"python_packages": [

Installation in Docker


AppDaemon version 3.0.2 or later is required for this to work.

  1. When you have the official AppDaemon container up and running, create a file named requirements.txt in your apps directory (or one of its sub-directories) with one of the following contents.

    1. To always have the latest stable version of hass-apps installed when AppDaemon starts:

    2. To install a specific version of hass-apps (e.g. v0.20181005.0):

    1. To always have the latest development version installed (don’t do this unless you know what you’re doing):
  1. Continue with the Configuration as normal.

Manual Installation

Hass-apps is a collection of apps for AppDaemon, hence AppDaemon is a dependency of hass-apps and will automatically be installed alongside.

The project itself is developed on GNU/Linux, but since there are no platform-specific Python modules used it should run everywhere Python and AppDaemon are available. However, we’ll assume an installation on GNU/Linux for the rest of this guide. Feel free to apply it to your own operating system.

The minimum required Python version is 3.5. To find out what you have installed, run python3 --version. If your version of Python is recent enough, you may continue with installing.

It is strongly recommended to install hass-apps (+ it’s dependencies like AppDaemon) into a virtualenv, separated even from Home Assistant in order to avoid conflicts with different versions of dependency packages.

Other huge benefits of the virtualenv installation are that you neither need root privileges nor do you pollute your system.with numerous tiny packages that are complicated to remove, should you sometime wish to do so.

The following simple steps will guide you through the installation process.

  1. If you use a distribution like Debian or Ubuntu which doesn’t ship venv with Python by default, install it first. Whithout installing python3-venv, you’d end up with a crippled virtualenv with pip, the Python package manager, not available. Of course you do need root privileges for this particular step.

    sudo apt install python3-venv
  2. Then, create the virtualenv. We do this in a directory named appdaemon in this example inside the user’s home directory.

     mkdir ~/appdaemon
    python3 -m venv ~/appdaemon/venv
  3. Activate the virtualenv.

    cd ~/appdaemon
    source venv/bin/activate
  4. Now install some common packages.

    pip install --upgrade pip setuptools wheel
  5. And finally, install hass-apps.

    1. Install the latest stable version from PyPi (preferred).

      pip install --upgrade hass-apps
    2. Or, as an alternative, install the state from the Git repository to get even the latest changes. But please keep in mind that this shouldn’t be considered stable and isn’t guaranteed to work all the time. Don’t use the development version in production unless you have a good reason to do so.

      pip install --upgrade


When you followed the above steps for installing hass-apps, you automatically installed AppDaemon as well. Configuring AppDaemon is out of the scope of this tutorial, but there is a Configuration Section in the AppDaemon Documentation which describes what to do. We assume that you’ve got a working AppDaemon 4.x for now.

  1. Get yourself a nice cup of coffee or tea. You’ll surely need it.
  2. Store the file in your AppDaemon’s apps directory. This is just a stub which imports the real app’s code.
  3. Pick one or more apps you want to use.
  4. Copy the sample configuration provided for each app in the docs to a new YAML file in your AppDaemon’s apps directory and start editing it. Adapt the sample configuration as necessary. Documentary comments explaining what the different settings mean are included. The sample configurations can also be found in the GitHub repository under docs/apps/<app_name>/sample-apps.yaml.
  5. AppDaemon should have noticed the changes made to the apps directory and start the new app(s) automatically.

You’re done, enjoy hass-apps!