Scheduled (HA) Updates

From Enterprise-Hardware I know the feature to plan an update.

Would‘nt it be nice to easily (without a automation) to schedule an HA Core Update?

Like: „Oh, an HA Coreupdate, read the docs, schedule it for tonight.“ nice.

That is what the at command traditionally does.

ha core update|at 22:00

Just had a play. Quick tutorial

  1. Have the Advanced SSH & Web Terminal addon installed.
  2. In the configuration for the addon, specify at in packages and atd in init_commands. The yaml
  - at
  - atd
  1. Restart that addon
  2. Now you can run any command at a specific time, eg
ha core update|at 23:30
  1. To see your at queue
  1. To remove from the queue
atrm X

Where X is the number given by atq.


Thx will try this. But, a GUI option direct in the Updateinformation would be a bit more userfriendly :wink:

I have an Input Helper (Toggle) set up. After I review the release notes, I’ll flip it on and then I have this automation which kicks off to update Core the next morning at 6:30am.

alias: Worker - Core Updater
description: ""
  - platform: time
    at: "06:30:00"
  - condition: state
    entity_id: input_boolean.core_updater
    state: "on"
  - service: input_boolean.turn_off
    data: {}
      entity_id: input_boolean.core_updater
  - service: update.install
      backup: true
      entity_id: update.home_assistant_core_update
mode: single

It’s not quite perfect as theoretically if another Core update was released between when I turn on the toggle and when the automation kicks off, a newer version of Core than I expected could be applied. But that’s not occured so far and it likely wouldn’t be a huge deal if it did.

1 Like