Triggering from Nest away mode always causing validation to fail

I’m really struggling trying to get anything to trigger if my nest goes into away mode. I’m only currently trying to send a pushover notification, but every time I run the configuration checker, it spits out loads of errors. If I comment out my nest away automation, it passes with success. I’ve been battling with this for days now, can anyone see where I’m going wrong?

I can see the nest under dev-tools as

climate.hallway	

state:
heat	

attributes:
current_temperature: 18
min_temp: 9
max_temp: 32
temperature: 12
operation_mode: heat
operation_list: off,heat,eco
away_mode: off
unit_of_measurement: °C
friendly_name: Hallway

I’m running Home Assistant from the Hassio image on a Pi3.

My config (I have changed all passwords and API credentials)

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: removed
  longitude: removed
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 97
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/London
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
#introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

#Sensors
sensor:
  - platform: wunderground
    api_key: 78dfhhfka98fyfjsfhakjfh
    monitored_conditions:
      - alerts
      - precip_today_string
      - temp_c
      - temp_high_avg_c
      - temp_low_avg_c
      - weather_1d_metric
      - weather_1n_metric
      - weather_2d_metric
      - weather_2n_metric
      - weather_3d_metric
      - weather_3n_metric

  - platform: plex
    host: my.external.plex.com
    port: 32400
    name: MyServer
    username: username
    password: "sdhjhfjhasjdhgajhfg%NPLi&JIW"
 
#  - platfrom: template
#      are_we_home:
#        entity_id: climate.hallway          
#        value_template: "{{ is_state_attr('climate.hallway', 'away_mode', 'on') }}"

# Text to speech
tts:
  - platform: google
  
nest:
  client_id: 5dfhjdhfd8dfjhsdjfhjsdhfksdjhf
  client_secret: hfjdhfjsdhfkjsdhfkjhsdkjfh

group: !include groups.yaml

automation: !include automations.yaml

script: !include scripts.yaml

notify:
  - platform: pushover
    name: Pushover
    api_key: dfhkdsjfhskjdfhkjsdfhsdf
    user_key: fsdjfhksjhfksdjhfkjsdhfkjsf

My automations

##############
# Switch on lights if plex is playing - will eventually dim lights
##############
- alias: "Test my first one"
  trigger:
    platform: numeric_state
    entity_id: sensor.thebeast
    above: 0
  action:
    service: light.turn_on
    entity_id:
      - light.kitchen_strip

##############
# Send pushover at sunset
##############
- id: SendPushoverAtSunset
  alias: Send Pushover at Sunset
  trigger:
    platform: sun
    event: sunset
  action:
    service: notify.pushover
    data:
      message: "The sun has set at home."
      title: "Sun Monitor"

##############
# Send pushover is house goes into away mode
##############

- id: NestAwayModeTestv2
  alias: Testing Nest is away
  trigger:
    platfrom: template
    value_template: "{{ is_state_attr('climate.hallway', 'away_mode', 'on') }}"
  action:
    service: notify.pushover
    data:
      message: "Home has gone into away mode."
      title: "Nest Monitor"

Output of hassio homeassistant check

core-ssh:/config# hassio homeassistant check
Error on homeassistant/check: starting version 3.2.2
Testing configuration at /config
2017-09-27 09:20:06 ERROR (MainThread) [homeassistant.bootstrap] Unable to setup error log /config/home-assistant.log (access denied)
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up http
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up history
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up api
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up group
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-09-27 09:20:08 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: required key not provided @ data['trigger'][0]['platform']. Got None. (See /config/configuration.yaml, line 93). Please check the docs at https://home-assistant.io/components/automation/
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up nest
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-09-27 09:20:08 INFO (MainThread) [homeassistant.setup] Setting up notify
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain nest took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
2017-09-27 09:20:09 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
          message: The sun has set at home.
          title: Sun Monitor
        service: notify.pushover
      alias: Send Pushover at Sunset
      id: SendPushoverAtSunset
      trigger: [source /config/automations.yaml:20]
        platform: sun
        event: sunset
    - action: [source /config/automations.yaml:38]
        data: [source /config/automations.yaml:40]
          message: Home has gone into away mode.
          title: Nest Monitor
        service: notify.pushover
      alias: Testing Nest is away
      id: NestAwayModeTestv2
      trigger: [source /config/automations.yaml:35]
        platfrom: template
        value_template: {{ is_state_attr('climate.hallway', 'away_mode', 'on') }}
Successful config (partial)
  automation:
    - action: ?
        - entity_id: ?
            - light.kitchen_strip
          service: light.turn_on
      alias: Test my first one
      hide_entity: False
      trigger: ?
        - platform: numeric_state
          above: 0.0
          entity_id: ?
            - sensor.thebeast
    - action: ?
        - data: [source /config/automations.yaml:25]
            message: The sun has set at home.
            title: Sun Monitor
          service: notify.pushover
      alias: Send Pushover at Sunset
      hide_entity: False
      id: SendPushoverAtSunset
      trigger: ?
        - platform: sun

I’m such an idiot, I fixed it!

In my automation I had platfrom: instead of platform:

Doh!