Error validating Automation but doesn't tell where

Hello, I have an error while Checking config:

Invalid config for [automation]: expected dict for dictionary value @ data['action'][0]['data']. Got None. (See /config/configuration.yaml, line 16). Please check the docs at https://home-assistant.io/integrations/automation/

The problem is, line 16 of config.yaml is just

zeroconf:

When I delete/move this line, the error message just goes up (from 16 to 15, 15 to 14 etc.

Here’s my automation.yaml

Any clue?

Do you have a line like this in your configuration.yaml file?

automation: !include automation.yaml

Indentation in the action block starting on line 83 in what you shared is wrong. Plus you don’t actually need data: there either. Service and entity ID is sufficient.

1 Like

That particular automation was created inside HA Configuration GUI and not modified manually but yes, removing line 83 “- data” fixed the issue. Thanks!