Cant add groups mapping in configuration.yaml

I’m trying to set up a presence group based by following a youtube guide. in the video, it said I needed to make sure I have the groups called out in the configuration.yaml file. When I try to add the line I get an error. What am I dong wrong?

Error loading /config/configuration.yaml: mapping values are not allowed here
in "/config/groups.yaml", line 2, column 7

My configuration.yaml file.

# Loads default set of integrations. Do not remove.
default_config:

homeassistant:
  name: Home
  latitude: 1234
  longitude: -1234
  elevation: 1234
  unit_system: imperial 
  currency: USD
  country: US
  time_zone: "America/Chicago"
  external_url: "1234/"
  internal_url: "1234:8123"
  legacy_templates: false

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  ip_ban_enabled: true
  login_attempts_threshold: 20
  use_x_forwarded_for: true
  trusted_proxies: 172.30.33.0/24

frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate
    cache: true
    cache_dir: /tmp/tts
    time_memory: 300
    service_name: google_say

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

camera:
  - platform: xiaomi_cloud_map_extractor
    host: 192.168.1.59
    token: !secret xmtoken
    username: !secret xmuser
    password: !secret xmpass
    draw: ["all"]
    attributes:
      - calibration_points

zha:
  zigpy_config:
    ota:
      ikea_provider: true                        # Auto update Trådfri devices
      ledvance_provider: true                    # Auto update LEDVANCE/OSRAM devices
      salus_provider: true                       # Auto update SALUS/Computime devices
      inovelli_provider: true                    # Auto update INOVELLI devices
      #otau_directory: /path/to/your/ota/folder  # Utilize .ota files to update everything else

group: !include groups.yaml

Well you didn’t share the groups.yaml file so its impossible to tell what you’re doing wrong.

Also not sure what youtube video you’re following but groups are now UI-configurable. So you probably don’t need YAML to do this task anymore.