Simple Blink Hub arming based on my location....?

Hi all,
HNY :slight_smile:

I’ve followed the sample script for an automation to arm my Blink cameras when I’m away, but getting an error when checking validation. Code below:

    id: arm_blink_when_away
    alias: 'Arm Blink When Away'
        platform: state
        entity_id: device_tracker.pete_phone
        to: 'not_home'
        service: alarm_control_panel.alarm_arm_away
        entity_id: alarm_control_panel.blink_mansfield_blink_hub

I have blink added ok and can arm disarm from an overview panel. I also have tracking on my (Android phone) also displayed in a tile.

I’m sure it’s just syntax, I’m very new to programming and YAML .
Thanks in advance

Footnote: This is the error I get when validating configuration:

Configuration invalid
Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 12). Please check the docs at