I’d like to include .yaml files into the configuration.yaml for a cleaner configuration.yaml. So I created a new file with the name Switches.yaml (in this file should go all switches for wake_on_lan as there is one already in it), added the line switch: !include Switches.yaml (don’t know if the switch is correct, but it should be), checked the developer tools.
I got the following error: Invalid config for ‘switch’ at configuration.yaml, line 34: required key ‘platform’ not provided. What is wrong and how can I fix it? Is it correct how I would do it?
Thank you guys for the answer and I hope you’re able to help me out here!
Alright, thank you very much anyways, at least we tried some stuff. I feel like ha isn’t able to get the switch: !include (I mean the first part, but idk). We’ll see if I’m able to figure it out.
Now I changed the name of the file to switch-config, changed it into the configuration.yaml (the line would be: switch-config: !include switch-config.yaml) and got the following error: Integration error: switch-config - Integration ‘switch-config’ not found. I don’t get it…
Allright, thank you very much for your help. Seems like I had to put the mac into “”. Don’t ask me why, but it seems like I was able to add the switch to my dashboard and that’s probably done.