Change to time pattern?

I’ve seen this error pop up for a couple of weeks now and just had some time to poke at it. I noticed that one of my automations is now no longer bueno with HA, but wasn’t sure why the change had occurred and if there was another way to go about doing this now.

Here’s the error:

Invalid config for [automation]: must be a value between 0 and 23 for dictionary value @ data['hours']. Got None.

and the associated automation:

- id: '<GUID>'
  alias: Weekly Backup
  description: ''
  trigger:
  - hours: '168'
    platform: time_pattern
  condition: []
  action:
  - data_template:
      name: Automated Backup {{ now().strftime('%Y-%m-%d') }}
    service: hassio.snapshot_full

I would prefer not to have a full snapshot every 24 hours, is there a better way to do this? Thanks in advance!

  • Schedule it with one of the many addons that are specifically for this purpose (Google drive addon being my personal recommendation).

  • Trigger the automation at 1am with a condition that it’s a Monday

Derp. Thanks, that actually makes perfect sense. Never thought of layering additional conditions on it, haha!

1 Like