=> The code is now available at Github. Please contribute with your ideas: https://github.com/edwardtfn/HomeAssistant-Config/
I’ve created a new version of my previous Auto-update Home Assistant blueprint, but now based in the new schedule helpers and other improvements. I’m using this blueprint myself.
I still think you should understand the benefits and risks of auto-updating, so I keep suggesting you to take a look on those discussions:
- How to keep everything automatically up to date? - Configuration - Home Assistant Community (home-assistant.io)
- Auto Update feature for Core/Supervisor - Feature Requests - Home Assistant Community (home-assistant.io)
- If you don’t want an auto-update, you might like this blueprint for notifications of new updates: Update notifications (Core, OS, Addons, HACS, etc) - Blueprints Exchange - Home Assistant Community (home-assistant.io)
Please provide feedback. This is based on my other blueprint, just changing the items related to the schedule, so I believe the update mechanism itself is quite well tested, but you know, there are always new ideas or new use cases that we never though about, so let me know your ideas, issues and concerns…
Important notes:
- Supervisor update:
- The update of HA Supervisor is by default set to auto-update by the system, so it will be updated out of this blueprint anyways (and the time of that update is not controlled by this blueprint). There is a way to disable this auto-update (so the blueprint will be able to manage), but there are some important points to take in account, so I would hardly suggest you read carefully the following discussions about this topic:
- If after reading the material you still wanna play with this (under your own risk), here are the instructions: Feature request: block supervisor auto-updates - #62 by CentralCommand
- Add-ons auto-update on the UI:
- All the standard add-ons of Home Assistant support to set “Auto-update” thru the UI. If that is enabled, this blueprint cannot guarantee the time of running the updates for that specific add-on (as it is controlled outside this blueprint).
- HACS update:
- At this moment (2022-09-10), HACS updates are not released, but it is an experimental feature, so, if you enable HACS to use its experimental features, this blueprint will include HACS updates automatically.
- Schedule helper
- You will need a schedule helper indicating the time slots where the updates could start.
- Schedule documentation: https://www.home-assistant.io/integrations/schedule
- The updates will be installed one by one, while inside the schedule windows. It’s not guaranteed that the update will finish inside the schedule windows.
- Now, if one of the updates forces HA to reboot, the automation will restart after the reboot and will resume the updates of all the remaining items.
Change log:
- 2022-09-10 06:10 UTC:
- First time published (this version based on schedule helpers)
- 2022-09-17 07:38 UTC:
- Error handling - The update process will now handle errors gently and continue to the following actions
- 2022-12-08 14:26 UTC:
- Code clean-up (removed commented code)
- Waiting time for backup
- Code moved to Github.
This is the Blueprint:
=> The code is now available at Github. Please contribute with your ideas: