Automation Not Working (After Housekeeping)

Morning All,

I’ve started doing a long overdue housekeeping of my HA. About 90% of my automations were done through the front end. These are quite difficult to get your head round when you’re scanning through the automations.yaml.

I went through and changed them all to:

alias
trigger
condition
action

Unfortunately some of them are erroring. The first one I’m trying to tackle is the below

- alias: "tmr_Night Lights"
  id: '5550000000001'
  trigger:
    platform: time
    at: '21:45:00'
  condition: []
  action:
    - service: light.turn_on
      data:
      entity_id: light.landing
    - service: light.turn_off
      data:
      entity_id: group.nightlights
    - delay: 00:02:05
    - service: light.turn_on
      data:
      entity_id: light.landing_light
      brightness: '30'
    - delay: 00:00:20
    - service: light.turn_off
      data:
      entity_id: light.landing

Any ideas what I’m doing wrong here? I can’t see anything in the log at all oddly enough.

Edit: I have also tried using - data followed by service originally which didn’t work either.

your entity_id’s need to be indented 2 more spaces

Thanks will give this a try tonight.