MyStrom Setup Failure

I have 4 MyStrom Switches and want them add to HA. I followed the explenations on https://www.home-assistant.io/integrations/mystrom/#switch, first I got too entities. After creating a seperate yaml file for the mystroms switches and using the secret file, I get alway an error in the HA log:

configuration.yaml

mystrom: !include mystrom.yaml

mystrom.yaml

#Configuration MyStrom
switch:
  - platform: mystrom
    host: !secret mystrom_switch4

secrets.yaml

#MyStrom
mystrom_switch4: 192.168.1.62

When I put this code back in configuartion.yaml, the entity is created.

#Configuration MyStrom
switch:
  - platform: mystrom
    host: !secret mystrom_switch4

So it have to be something with the file mystrom.yaml…
Anyone who have a solution?

Oh, I see, I have to use always a “keyword” before the !include filenname…
Here it’s switch: and in the additional file, switch: is no longer needed.

configuration.yaml

switch: !include mystrom.yaml

mystrom.yaml

  - platform: mystrom
    host: !secret mystrom_switch4
    name: "Apple-Ladestation"
  - platform: mystrom
    host: !secret mystrom_switch1
    name: "MyStrom-1"
  - platform: mystrom
    host: !secret mystrom_switch2
    name: "MyStrom-2"
  - platform: mystrom
    host: !secret mystrom_switch3
    name: "MyStrom-3"

Can I use switch: on multiple lines to include different switch confiugration from different files?