.google_maps_location_sharing.cookies.*
.HA_VERSION
bravia.conf
-home-assistant.log
home-assistant_v2.db
html5_push_registrations.conf
.mercedesme-token-cache
tts/
.uuid
+# Log Files
+*.log
+
# Disabled Files
*.disabled
themes/
www/community
git_repos/
-
-# Scripts
-fix_owner.sh
-upgrade.sh
service: script.notify_text\r
data_template:\r
title: "HACS - Aggiornamento"\r
- message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
+ message: "Sono disponibili aggiornamenti per i moduli HACS"\r
enable_persistant: true\r
+++ /dev/null
-######################################################################
-# Device Tracker: Nmap
-######################################################################
-
-- platform: nmap_tracker
- hosts:
- - s9.giorgioravera.it
- - a5.giorgioravera.it
- - a3.giorgioravera.it
- scan_options: " --privileged -sP "
- # The number of minutes Nmap will not scan this device
- home_interval: 30
-
- # Seconds between each scan for new devices
- interval_seconds: 60
- # Seconds to wait till marking someone as not home after not being seen
- consider_home: 300
- new_device_defaults:
- track_new_devices: true
- hide_if_away: false
--- /dev/null
+######################################################################
+# Device Tracker: Nmap
+######################################################################
+
+- platform: nmap_tracker
+ hosts:
+ - s9.giorgioravera.it
+ - a5.giorgioravera.it
+ - a3.giorgioravera.it
+ scan_options: " --privileged -sP "
+ # The number of minutes Nmap will not scan this device
+ home_interval: 30
+
+ # Seconds between each scan for new devices
+ interval_seconds: 60
+ # Seconds to wait till marking someone as not home after not being seen
+ consider_home: 300
+ new_device_defaults:
+ track_new_devices: true
+ hide_if_away: false
--- /dev/null
+######################################################################
+# Device Tracker: Ping
+######################################################################
+
+- platform: ping
+ hosts:
+ s9: s9.giorgioravera.it
+ a5: a5.giorgioravera.it
+ a3: a3.giorgioravera.it
+ count: 5
+
+ # Seconds between each scan for new devices
+ interval_seconds: 60
+ # Seconds to wait till marking someone as not home after not being seen
+ consider_home: 300
+ new_device_defaults:
+ track_new_devices: true
+ hide_if_away: false
+++ /dev/null
-######################################################################
-# Device Tracker: Ping
-######################################################################
-
-- platform: ping
- hosts:
- s9: s9.giorgioravera.it
- a5: a5.giorgioravera.it
- a3: a3.giorgioravera.it
- count: 5
-
- # Seconds between each scan for new devices
- interval_seconds: 60
- # Seconds to wait till marking someone as not home after not being seen
- consider_home: 300
- new_device_defaults:
- track_new_devices: true
- hide_if_away: false
-homeassistant_upgrade: 'bash /config/homeassistant_upgrade.sh'
+homeassistant_upgrade: 'bash /config/shell_scripts/homeassistant_upgrade.sh'
#!/bin/bash
+HASS_HOME="/config"
+LOG_FILE="$HASS_HOME/home-assistant_upgrade.log"
+
echo "Changed directory to homeassistant home"
-cd
-echo "Activating python environment"
-source bin/activate
-echo "Upgrading homeassistant"
-pip3 install --upgrade homeassistant 2>&1 | tee /var/log/homeassistant/upgrade.log
+cd $HASS_HOME
+#echo "Activating python environment"
+#source bin/activate
+echo "Starting upgrading homeassistant"
+pip3 install --upgrade homeassistant 2>&1 | tee $LOG_FILE
echo "Done"