Do as @AhmadK said and the problem is probably the switch: in the beginning. You don’t need this when all your switches are configured in a separate file. Do you have something like
@Burningstone Yes I have “switch: !include switches.yaml” and it works.
The problem is when I add “platform:rest”
I can validate the yaml file in configurator is ok
but in the server I get this error
Invalid config for [switch.command_line]: expected a dictionary for dictionary value @ data[‘switches’][‘body_off’]. Got ‘{“state”: “stop”}’
expected a dictionary for dictionary value @ data[‘switches’][‘body_on’]. Got ‘{“state”: “start”}’
expected a dictionary for dictionary value @ data[‘switches’][‘name’]. Got ‘Grafana’
expected a dictionary for dictionary value @ data[‘switches’][‘platform’]. Got ‘rest’
expected a dictionary for dictionary value @ data[‘switches’][‘resource’]. Got ‘http://127.0.0.1:8126/container/grafana’. (See ?, line ?).