Browse Source

Add home-assistant app

master-prepare
Luke Childs 3 years ago
parent
commit
9d79cffae6
  1. 0
      apps/home-assistant/data/.gitkeep
  2. 12
      apps/home-assistant/docker-compose.yml
  3. 22
      apps/registry.json
  4. 4
      scripts/configure
  5. 2
      templates/.env-sample
  6. 4
      templates/torrc-sample

0
apps/home-assistant/data/.gitkeep

12
apps/home-assistant/docker-compose.yml

@ -0,0 +1,12 @@
version: "3.7"
services:
server:
image: homeassistant/home-assistant:2021.7.4@sha256:ba02887fcde92e57a08e3376479e24cddb62a4198a8f3ff0a6f77f426ecc33da
ports:
- "${APP_HOME_ASSISTANT_PORT}:8123"
volumes:
- ${APP_DATA_DIR}/data:/config
networks:
default:
ipv4_address: $APP_HOME_ASSISTANT_IP

22
apps/registry.json

@ -43,6 +43,28 @@
"defaultPassword": "",
"torOnly": false
},
{
"id": "home-assistant",
"category": "Automation",
"name": "Home Assistant",
"version": "2021.06.3",
"tagline": "Home automation that puts local control & privacy first",
"description": "Open source home automation that puts local control and privacy first, powered by a worldwide community of tinkerers and DIY enthusiasts. Home Assistant integrates with over a thousand different devices and services. Once you have integrated all your devices at home, you can unleash Home Assistant’s advanced automation engine to make your home work for you. Examples: \n\n- Turn on the light when the sun sets or when coming home \n- Alert you when you leave your garage door open \n\nAll your smart home data stays local. Home Assistant communicates with your devices locally, and will fallback to pulling in data from the cloud if there is no other option. No data is stored in the cloud, and everything is processed locally.",
"developer": "Home Assistant",
"website": "https://home-assistant.io",
"dependencies": [],
"repo": "https://github.com/home-assistant/core",
"support": "https://community.home-assistant.io",
"port": 8083,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": "",
"torOnly": false
},
{
"id": "mempool",
"category": "Explorers",

4
scripts/configure

@ -165,6 +165,8 @@ APP_NEXTCLOUD_REDIS_IP="10.21.21.34"
APP_NEXTCLOUD_CRON_IP="10.21.21.35"
APP_PIHOLE_PORT="8082"
APP_PIHOLE_IP="10.21.21.36"
APP_HOME_ASSISTANT_PORT="8083"
APP_HOME_ASSISTANT_IP="10.21.21.37"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -335,6 +337,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-nextcloud-cron-ip>/${APP_NEXTCLOUD_CRON_IP}/g" "${template}"
sed -i "s/<app-pihole-port>/${APP_PIHOLE_PORT}/g" "${template}"
sed -i "s/<app-pihole-ip>/${APP_PIHOLE_IP}/g" "${template}"
sed -i "s/<app-home-assistant-port>/${APP_HOME_ASSISTANT_PORT}/g" "${template}"
sed -i "s/<app-home-assistant-ip>/${APP_HOME_ASSISTANT_IP}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -68,3 +68,5 @@ APP_NEXTCLOUD_REDIS_IP=<app-nextcloud-redis-ip>
APP_NEXTCLOUD_CRON_IP=<app-nextcloud-cron-ip>
APP_PIHOLE_PORT=<app-pihole-port>
APP_PIHOLE_IP=<app-pihole-ip>
APP_HOME_ASSISTANT_PORT=<app-home-assistant-port>
APP_HOME_ASSISTANT_IP=<app-home-assistant-ip>

4
templates/torrc-sample

@ -92,4 +92,8 @@ HiddenServicePort 80 <app-nextcloud-ip>:80
HiddenServiceDir /var/lib/tor/app-pihole
HiddenServicePort 80 <app-pihole-ip>:80
# home-assistant Hidden Service
HiddenServiceDir /var/lib/tor/app-home-assistant
HiddenServicePort 80 <app-home-assistant-ip>:8123
HashedControlPassword <password>

Loading…
Cancel
Save