Sorry for the necro-bump, but I wanted to add my Hass updater script. Has the benefit of not requiring any external scripts, and it seems to work fine (just used it to update from 0.57.3 to 0.59.1).
Finally, I use this to push me a notification when a new version is available (and go ahead and download the update wheels to make the update process much faster):
- id: update_notifications
alias: Home Assistant Update Notifications
trigger:
- platform: state
entity_id: updater.updater
action:
- service: notify.pushover
data:.
title: 'New Home Assistant Release'
message: "Home Assistant {{ states.updater.updater.state }} is now available."
- service: shell_command.make_update_wheel
Hi
for me updater.updater not show any info from 3 days about new versdion 0.65.6 ? Before i has 0.65.5
Now i update manualy…
Why updater.updater not show info ?
When I run this command sudo /bin/bash /home/homeassistant/.homeassistant/misc/scripts/update_ha.sh
directly on the Hassbian console (pi3) it returns this error, via putty.
I’m just testing the stop command in the .sh file and returns the error below.
pi@hassbian:~ $ sudo /bin/bash /home/homeassistant/.homeassistant/misc/scripts/update_ha.sh
/home/homeassistant/.homeassistant/misc/scripts/update_ha.sh: line 2: $'\r': command not found
Failed to stop [email protected]\x0d.service: Unit [email protected]\x0d.service not loaded.
/home/homeassistant/.homeassistant/misc/scripts/update_ha.sh: line 5: $'\r': command not found
Failed to restart home-assistant@hass\x0d.service: Unit home-assistant@hass\x0d.service not found.