From b13fc91e5821d40d288f362f998b39f7b614fecc Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 30 Oct 2022 15:22:17 +0100 Subject: [PATCH] clarify instructions for docker fixes #551 --- docs/prepare_ha.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/prepare_ha.md b/docs/prepare_ha.md index 611957f8..498f3fe2 100644 --- a/docs/prepare_ha.md +++ b/docs/prepare_ha.md @@ -9,6 +9,45 @@ The easiest way to install it is through Home Assistant's Supervisor Add-on Stor ![hass-add-on-store](img/hass-add-on-store.png) +
+Instructions for users of HomeAssistant Core installed through docker containers. + +In case you have a homeassistant setup using docker cotainers and the Add-on Store is not available to you, you can follow this guide for setting up AppDaemon. [AppDaemon Docker Tutorial](https://appdaemon.readthedocs.io/en/latest/DOCKER_TUTORIAL.html). +Please also pay attention to the correct volume mount for the conf folder of appdaemon, that has to point to the appdaemon folder within your homeassistant config folder. + +Here is an example docker compose file for homeassistant and appdaemon: + +``` +version: "3.5" +services: + homeassistant: + image: ghcr.io/home-assistant/home-assistant:stable + container_name: homeassistant + network_mode: host + volumes: + - ./docker-data/homeassistant/:/config + - /etc/localtime:/etc/localtime:ro + environment: + - TZ=Europe/Berlin + privileged: true + restart: unless-stopped + + appdaemon: + container_name: appdaemon + image: acockburn/appdaemon:latest + environment: + - HA_URL=http://your-homeassistant-url:8123 + - TOKEN="xxxxxx" + volumes: + - /etc/localtime:/etc/localtime:ro + - ./docker-data/homeassistant/appdaemon:/conf + depends_on: + - homeassistant + restart: unless-stopped +``` +
+ + ### Add babel package to AppDaemon Container (Optional) For localisation (date in your local language) you need to add the python package babel to your AppDaemon Installation.