[delay] is an invalid option for [automation]. Check: automation->action->0->delay

I was trying to split up my automations in seperate files for each automation.
The built-in tool to create automations is good but everytime i add a automation it crashes the layout and the formatting i did. So it produces a big wall of text.

This is what my config looks like.

Automations.yaml

- !include automations/home_frontamp_on.yaml
- !include automations/home_frontamp_off.yaml

The home_frontamp_on.yaml

alias: Frontamp_an
trigger:
  - platform: state
    entity_id: remote.heimkino
    from: 'off'
    to: 'on'
action:
  service: light.turn_on
  data:
    entity_id: light.onoff_plug

The home_frontamp_off.yaml

alias: Frontamp_off
trigger:
  - platform: state
    entity_id: remote.heimkino
    from: 'on'
    to: 'off'
action:
  delay: '00:00:10'
  service: light.turn_off
  data:
    entity_id: light.onoff_plug

The On-Automation is fine. No matter if i put the time in ‘’ or using “seconds: 10” it produces the error:

Invalid config for [automation]: [delay] is an invalid option for [automation]. Check: automation->action->0->delay. (See /config/configuration.yaml, line 135). Please check the docs at https://home-assistant.io/components/automation/

Even if i do it in the built-in tool to create automations.

It´s Hass.io (HassOS) 0.75.3 on a Pi 2

Second one needs to be…

alias: Frontamp_off
trigger:
  - platform: state
    entity_id: remote.heimkino
    from: 'on'
    to: 'off'
action:
  - delay: '00:00:10'
  - service: light.turn_off
    data:
      entity_id: light.onoff_plug

(Note the hyphens defining 2 separate actions)