Auto-update Home Assistant

Hi @pkejval,

There is a new HAOS update available. I’ve tested here and the exclusion worked properly for me. Could you please confirm if it worked for you or if you still having an issue?
I want to release a new version of the blueprint soon, with more logs, so I wanna know if will need log around this.

Also, could you please share the attributes related to this update from Developer tools > States?

auto_update: false
installed_version: 8.5
in_progress: false
latest_version: 8.5
release_summary: null
release_url: https://github.com/home-assistant/operating-system/releases/tag/8.5
skipped_version: null
title: Home Assistant Operating System
entity_picture: https://brands.home-assistant.io/homeassistant/icon.png
friendly_name: Home Assistant Operating System Update
supported_features: 3

Hi @SilverLeaf, my apologies for my delay in a response.

Could you please give me one more information from Developers tools > States?
I wanna know if you have the entity sensor.backup_state and it’s attributes.

Hi, I don’t have this sensor.

Aha!
I believe this sensor is only available when Google Drive Backup add-on is running, and I was using this in the automation to skip a new backup if another backup was done in the past 2 hours.

Now I know why this isn’t working for you (and probably for other people also).

I will come up if a fix soon.

Yes, I don’t use Google Drive Backup.

Just to confirm. As SilverLeaf I do NOT have the entity. I use Samba backup.

1 Like

Ok. I will take that in account. Hopefully I will have a workaround (backing up regardless if another backup was done recently) later today.

Done!
Took me some time to test as I’ve waited for the new backup, but everything is looking good.

I’ve updated the blueprint in the first post.
Please give me your thoughts.

And I’ve just applied another fix related to the Last Backup sensor.

Tonight HA has been updated, Full BackUp is available!

1 Like

So, I’ve created a new blueprint, this one to use the new schedule helper.
Please take a look here: Scheduled auto-update for Home Assistant - Blueprints Exchange - Home Assistant Community (home-assistant.io)

  • I haven’t changed this one to not mess up with existing implementations, so if you want to use that new one, create a new automation based on that one and remove your previous automation based on the old blueprint.

May I ask a favor to you guys using Samba Backup?

Could you please take a look at the sensor sensor.samba_backup and let me know exactly how is the format of name and for the value of the attribute last backup?
You can see this under Developer Tools, selecting tab States and then typing the sensor name at the search field. (Please make sure Attributes is selected, so you can see the attributes)

I don’t have Samba backup, so I need your help to make sure I’m doing right on the part where the automation should wait for the backup to complete before start the updates.

Hi, good job and thanks for your effort.
Is it possible to add this feature?

  • Don’t update major versions that releases beginning of every month.
  • After major update installed manually, install minor updates automatically.

Thanks

You can use the “first day of the month” input to prevent running it on the beginning at the month. It’s not the same you are asking for, but it might help for now.

I will take a look on how to prevent major releases (selectable via another input) and come back.

By the way, I would suggest you to use this newer Blueprint instead: Scheduled auto-update for Home Assistant as this one is based on Schedule helper (which provides more flexibility to run the updates in the right time windows, and not only a time to trigger per day).

Hi Edward, The samba sensor have these attributed.

friendly_name: Samba Backup
backups_local: 2
backups_remote: 32
total_backups_succeeded: 22
total_backups_failed: 0
last_backup: 2022-09-28 02:15

A screenshot looks like this

1 Like

Thanks!!
I can work with this now.

It is interesting… No timezone info on the last backup timestamp…
Do you know if this is UTC or local time? I mean, do you run your backup at around 02:00AM local time?

The time is local system time. I start the backup at 02.00 local time.

1 Like