Automation Not Working

So I updated to 0.28 and I keep getting this in the log.

16-09-11 18:07:45 homeassistant.bootstrap: Error during setup of component automation

It was working before that. Here is the automation part of my config.

automation:
  alias: Turn on light when sun sets
  trigger:
    platform: sun
    event: sunset
  condition:
    condition: state
    entity_id: input_boolean.slight
    state: 'on'
  action:
    service: homeassistant.turn_on
    entity_id: switch.f_lamp

automation 2:
  alias: fan on
  trigger:
    platform: sun
    event: sunset
    offset: '-01:00:00'
  condition:
    condition: state
    entity_id: input_boolean.sfan
    state: 'on'
  action:
    service: homeassistant.turn_on
    entity_id: switch.fan

automation 3:
  alias: fan off
  trigger:
    platform: sun
    event: sunset
    offset: '+02:00:00'
  condition:
    condition: state
    entity_id: input_boolean.sfan
    state: 'on'
  action:
    service: homeassistant.turn_off
    entity_id: switch.fan

automation 4:
  alias: litter
  trigger:
    platform: sun
    event: sunset
    offset: '-05:00:00'
  condition:
    condition: time
    weekday:
     - sun
     - wed
  action:
    service: persistent_notification.create
    data:
      message: "Do cat litter"
      title: "Reminder"

automation 5:
  alias: “6AM alarm”
  trigger:
    platform: time
    after: '05:58:00'
  condition:
    condition: state
    entity_id: input_select.nalarm
    state: '6AM'
  action:
    service: switch.turn_on
    entity_id: switch.nathans_bebroom

automation 6:
  alias: “7AM alarm”
  trigger:
    platform: time
    after: '06:58:00'
  condition:
    condition: state
    entity_id: input_select.nalarm
    state: '7AM'
  action:
    service: switch.turn_on
    entity_id: switch.nathans_bebroom

automation 7:
  alias: “8AM alarm”
  trigger:
    platform: time
    after: '07:58:00'
  condition:
    condition: state
    entity_id: input_select.nalarm
    state: '8AM'
  action:
    service: switch.turn_on
    entity_id: switch.nathans_bebroom

automation 8:
  alias: “10AM alarm”
  trigger:
    platform: time
    after: '09:58:00'
  condition:
    condition: state
    entity_id: input_select.nalarm
    state: '10AM'
  action:
    service: switch.turn_on
    entity_id: switch.nathans_bebroom

automation 9:
  alias: "midlights"
  trigger:
    platform: time
    after: '23:59:00'
  condition:
    condition: state
    enttity_id: input_boolean.mlights
  action:
    service: scene.turn_on
    entity_id: scene.mlights

Thanks
Edit: formating

Post in code tags so indentation is retained

Thanks for the tip.

@Naypalm

My try not using automation_1:, automation_2:, etc.

try…

automation :
  - alias: “10AM alarm”
    trigger:
      platform: time
      after: '09:58:00'
    condition:
      condition: state
      entity_id: input_select.nalarm
      state: '10AM'
    action:
      service: switch.turn_on
      entity_id: switch.nathans_bebroom

 - alias: "midlights"
     trigger:
       platform: time
       after: '23:59:00'
     condition:
       condition: state
       enttity_id: input_boolean.mlights
     action:
       service: scene.turn_on
       entity_id: scene.mlights

and so one.

Forgive me if my formatting is not exact.

Regards,

I’m still getting the same error.

16-09-11 19:05:40 homeassistant.bootstrap: Error during setup of component automation

In you 10 AM automation, the state: 10am is not needed.

It should probably look like my office light automation.

Also change this to
automation:

(Lose the space between automation and the colon.)

The alarms automatons uses a input select.

input_select:
  nalarm:
    name: Alarm
    options:
     - None
     - 6AM
     - 7AM
     - 8AM
     - 10AM
    initial: None
    icon: mdi:alarm