]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added upgrade script and button
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 22 Feb 2019 07:30:14 +0000 (08:30 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 22 Feb 2019 07:30:14 +0000 (08:30 +0100)
script/home_assistant.yaml
shell_command/homeassistant.yaml
shell_scripts/hass_update.sh [deleted file]
shell_scripts/homeassistant_upgrade.sh [new file with mode: 0755]
themes/midnight.yaml
ui-lovelace.yaml

index 252ccbcb90b64732a1dd0fac37150d42d2426fb4..9f95866cbfac54f1f92ccfe983d423438b692112 100644 (file)
@@ -4,7 +4,7 @@
 ######################################################################
 
 homeassistant_restart:
-  alias: "Riavvio Home Assistant"
+  alias: "Riavvio servizio"
   sequence:
     - service: homeassistant.restart
 
@@ -24,3 +24,13 @@ homeassistant_clearlog:
       data:
         keep_days: 0
 
+######################################################################
+# Home Assistant: Upgrade
+# - homeassistant.restart
+######################################################################
+
+homeassistant_upgrade:
+  alias: "Aggiornamento"
+  sequence:
+    - service: shell_command.homeassistant_upgrade
+
index b730e97038fc4d26e2361a0c38630f6a314da240..bedfd06f479b345fa4052c0eade288c797f84584 100644 (file)
@@ -1 +1 @@
-homeassistant_update: /etc/homeassistant/shell_scripts/hass_update.sh 
+homeassistant_upgrade: /etc/homeassistant/shell_scripts/homeassistant_upgrade.sh 
diff --git a/shell_scripts/hass_update.sh b/shell_scripts/hass_update.sh
deleted file mode 100755 (executable)
index b4451ea..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo "Changed directory to homeassistant home"
-cd
-echo "Activating python environment"
-source bin/activate
-echo "Upgrading homeassistant"
-pip3 install --upgrade homeassistant
-echo "Done"
diff --git a/shell_scripts/homeassistant_upgrade.sh b/shell_scripts/homeassistant_upgrade.sh
new file mode 100755 (executable)
index 0000000..5f1e269
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo "Changed directory to homeassistant home"
+cd
+echo "Activating python environment"
+source bin/activate
+echo "Upgrading homeassistant"
+pip3 install --upgrade homeassistant > /var/log/homeassistant/upgrade.log
+echo "Done"
index e2b3040b861a2c164474b27c00b7363216d91133..516c2c0f60c62843ff33485ebec0578a258a2e0b 100644 (file)
@@ -1,6 +1,7 @@
 # Main colors
 primary-color: '#5294E2'                                                        # Header
-accent-color: '#E45E65'                                                         # Accent color
+#accent-color: '#E45E65'                                                         # Accent color
+accent-color: '#5294E2'                                                         # Accent color
 dark-primary-color: 'var(--accent-color)'                                       # Hyperlinks                                         
 light-primary-color: 'var(--accent-color)'                                      # Horizontal line in about
                                                                              
index 677d34463cbb0c5647c7af9471c8d93c36bc8a17..fa90f1749df620b0a741e82d41d93af2f600e3ec 100644 (file)
@@ -356,4 +356,5 @@ views:
         entities: 
         - script.homeassistant_restart
         - script.homeassistant_clearlog
+        - script.homeassistant_upgrade