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.
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
at
in packages
and atd
in init_commands
. The yamlpackages:
- at
init_commands:
- atd
ha core update|at 23:30
atq
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
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: ""
trigger:
- platform: time
at: "06:30:00"
condition:
- condition: state
entity_id: input_boolean.core_updater
state: "on"
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.core_updater
- service: update.install
data:
backup: true
target:
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.