11#! /usr/bin/env bash
22source <( curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3- # Copyright (c) 2021-2025 tteck
4- # Author: tteck (tteckster)
3+ # Copyright (c) 2021-2025 community-scripts ORG
4+ # Author: tteck (tteckster) | Co-Author: MickLesk (CanbiZ)
55# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66# Source: https://www.home-assistant.io/
77
88# App Default Values
99APP=" Home Assistant-Core"
1010var_tags=" automation;smarthome"
1111var_cpu=" 2"
12- var_ram=" 1024 "
13- var_disk=" 8 "
12+ var_ram=" 2048 "
13+ var_disk=" 10 "
1414var_os=" ubuntu"
15- var_version=" 24.04 "
15+ var_version=" 24.10 "
1616var_unprivileged=" 1"
1717
1818# App Output & Base Settings
@@ -51,10 +51,6 @@ function update_script() {
5151 echo -e " ${GN} Updating to Stable Version${CL} "
5252 BR=" "
5353 fi
54- if [[ " $PY " =~ ^python3\. (11| 12)\. [0-9]+$ ]]; then
55- echo -e " ⚠️ Home Assistant will soon require Python 3.13.x" ;
56- fi
57-
5854 msg_info " Stopping Home Assistant"
5955 systemctl stop homeassistant
6056 msg_ok " Stopped Home Assistant"
@@ -75,7 +71,7 @@ function update_script() {
7571 if [ " $UPD " == " 2" ]; then
7672 msg_info " Installing Home Assistant Community Store (HACS)"
7773 apt update & > /dev/null
78- apt install unzip & > /dev/null
74+ apt install -y unzip & > /dev/null
7975 cd .homeassistant
8076 bash <( curl -fsSL https://get.hacs.xyz) & > /dev/null
8177 msg_ok " Installed Home Assistant Community Store (HACS)"
@@ -102,16 +98,19 @@ function update_script() {
10298 msg_ok " Installed FileBrowser"
10399
104100 msg_info " Creating Service"
105- service_path= " /etc/systemd/system/filebrowser.service"
106- echo " [Unit]
101+ cat << EOF > /etc/systemd/system/filebrowser.service
102+ [Unit]
107103Description=Filebrowser
108104After=network-online.target
105+
109106[Service]
110107User=root
111108WorkingDirectory=/root/
112109ExecStart=/usr/local/bin/filebrowser -r /root/.homeassistant
110+
113111[Install]
114- WantedBy=default.target" > $service_path
112+ WantedBy=default.target
113+ EOF
115114
116115 systemctl enable --now -q filebrowser.service
117116 msg_ok " Created Service"
@@ -130,4 +129,4 @@ description
130129msg_ok " Completed Successfully!\n"
131130echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
132131echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
133- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8123${CL} "
132+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8123${CL} "
0 commit comments