From 26c1057ac4d9ff79ebc4846c564f3699e4620960 Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Sat, 27 Jul 2024 23:23:30 +0200 Subject: [PATCH] init home assistant integration --- .gitignore | 2 +- homeassistant/.env.example | 0 homeassistant/README.md | 9 +++++++++ homeassistant/compose.yml | 11 +++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 homeassistant/.env.example create mode 100644 homeassistant/README.md create mode 100644 homeassistant/compose.yml diff --git a/.gitignore b/.gitignore index a58e470..b5c8bae 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ !*/ # But not these files -!**/*.md +!**/README.md !.gitignore !**/compose.yml !**/Caddyfile diff --git a/homeassistant/.env.example b/homeassistant/.env.example new file mode 100644 index 0000000..e69de29 diff --git a/homeassistant/README.md b/homeassistant/README.md new file mode 100644 index 0000000..50f6237 --- /dev/null +++ b/homeassistant/README.md @@ -0,0 +1,9 @@ +I also added HACS via this command inside of the docker: +```bash +docker exec -it homeassistant bash +``` +Then executed +```bash +wget -O - https://get.hacs.xyz | bash - +``` +To install HACS into the Homeassistant installation. Of course restart the docker container afterwards \ No newline at end of file diff --git a/homeassistant/compose.yml b/homeassistant/compose.yml new file mode 100644 index 0000000..ccbc57d --- /dev/null +++ b/homeassistant/compose.yml @@ -0,0 +1,11 @@ +services: + homeassistant: + container_name: homeassistant + image: "ghcr.io/home-assistant/home-assistant:stable" + volumes: + - /opt/stacks/homeassistant/homeassistant/config:/config + - /etc/localtime:/etc/localtime:ro + - /run/dbus:/run/dbus:ro + restart: unless-stopped + privileged: true + network_mode: host \ No newline at end of file