Problem with !include in configuration.yaml

Hi,
I’m trying to put different sensors in a separate file called sensoren.yaml.
To refer to this file from configuration.yaml i add sensors: !include sensoren.yaml
The file is created. The system has rebooted before adding the code. However when trying to validate the configuration.yaml, i get an error: “Component error: sensors - Integration ‘sensors’ not found.”

I cannot figure out why this would not work. Any thoughts?

I’m running Home Assistant OS 6.2 & core-2021.8.8 on a Odroid N2+ device. Installed is MariaDB, Nginx, SSH web terminal, VScode, Samba share, HACS.

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensors: !include sensoren.yaml

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

It’s sensor:

I understand, but this should be just a redirection to a list
instead of sensors there could be blablabla: !include sensoren.yaml but that does also give a similar error.

No. The !include “delegates” the list to a different file, but the “header” must still be a valid one.

From you answer, I understand you still included sensor: in sensoren.yaml?
If so, it’s wrong.

yes. thank you I understand this now!
indeed I put again sensor: in the sensoren.yaml file.