Rest command automation doesn't run [Solved]

I’ve setup the Google Drive backup add-on and a rest_command to invoke it exists in my configuration.yaml. The command works if I run the URL and my Hassio backups get backed up to Google Drive. I then edited the automation I had to do this with the Dropbox Sync add on weekly but this automation doesn’t work. I removed the weekly parameter and tried rebuilding the automation through the Hassio interface but still no joy. Can anyone suggest what’s wrong / missing?

configuration.yaml entry:

rest_command:
  google_backup:
    url: 'http://localhost:8055/gb/doBackup'
    timeout: '300'

automation.yaml entry:

- id: configsnapshotbackup
  alias: Backup of Weekly Snapshot
  trigger:
  - at: 04:00:00
    platform: time
  condition: []
  action:
  - service: rest_command.google_backup

I have a very similar automation that is working nicely.

https://github.com/SilvrrGIT/HomeAssistant/blob/master/automation/snapshot.yaml

Does it show as triggered?

Anything in the HA log or the google drive backup addon log?

Thanks, I hadn’t thought about adding the command as another part of the backup sequence like that. And it seems to have worked! In case it helps anyone else in the future, my working yaml is:

- id: configsnapshotweekly
  alias: Weekly Snapshot
  initial_state: 'on'
  trigger:
    platform: time
    at: '21:37:00'
  condition: []
  action:
  - service: hassio.snapshot_full
    data_template:
      name: Automated Backup
  - delay: '00:10:00'
  - service: rest_command.google_backup
1 Like