From 7f8b75fa026ecb42d6054e9a1c5eab8efb71e3bf Mon Sep 17 00:00:00 2001 From: Ari Date: Tue, 17 May 2022 21:46:47 -0400 Subject: [PATCH] added installation instructions --- README.md | 16 ++++++++++++++++ example/containerized/docker-compose.yaml | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 example/containerized/docker-compose.yaml diff --git a/README.md b/README.md index ee7856e..61f410c 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,22 @@ A [home-assistant addon](https://www.home-assistant.io/addons/) for a better UI See roadmap in [Version 1 Github Project](https://github.com/asosnovsky/Shortumation/projects/1). +## Installation + +### Addon + +Add the repository URL under **Supervisor → Add-on store → ⋮ → Manage add-on repositories**: + + https://github.com/asosnovsky/Shortumation + +It should now appear in your `Add-on Store` and you should be able to install it! + +### Containerized + +Please note that this way of using Shortumation is **not future proof**, currently we use the `/config/automation.yaml` file as our source of truth for the automations. Which means that we do not need access to the HA API or Websockets. In future release you may need to configure some additional compomenents to enable this. + +If this warning does not scare you or you still want to try things out, then take a look at the example [docker-compose.yaml](example/containerized/docker-compose.yaml). + ## FAQ diff --git a/example/containerized/docker-compose.yaml b/example/containerized/docker-compose.yaml new file mode 100644 index 0000000..9421139 --- /dev/null +++ b/example/containerized/docker-compose.yaml @@ -0,0 +1,21 @@ +version: '3' +services: + homeassistant: + container_name: homeassistant + image: "ghcr.io/home-assistant/home-assistant:stable" + volumes: + - config:/config + restart: unless-stopped + privileged: true + network_mode: host + + shortumation: + # make sure to replace the ARCH with whatever system you are running! + image: "asosnovsky/shortumation-${ARCH:-amd64}:latest" + volumes: + - config:/config + ports: + - 8081:8000 + +volumes: + config: