Invalid config for [automation]: template value should be a string for dictionary value @ data['action'][0]['data']. Got None. (See ?, line ?)

I have this error for over a year now.
The problem is I don’t know when it started appearing, so I don’t know what automation to check.

Since the error is not giving the automation-alias nor the yaml-file-name, it’s very difficult to solve.

Any tricks I can use to find the error?

Comment out half your automations. Run the config check. If it passes, then the issue is in the commented part. If it does not pass it is in the uncommented section.

Keep halving the section that contains the error.

You should be able to narrow it down from 256 automations to 1 in only 8 halvings.

1 Like

Good idea, but with over 130 yaml-files it’s going to take a while :slight_smile:
I must do this when the house is more or less idle. It’s going to be late tonight…

I’ll rename the yaml-files to filename.yaml.ignore or something like that. Or is there a way to skip complete folders with yaml-files? Renaming a folder to folder.ignore will probably not work (?)

It depends how you’ve included them.

in configuration.yaml:

homeassistant:
  packages: !include_dir_named packages/

# includes
group: !include groups.yaml
automation: !include_dir_merge_list automations
script: !include scripts.yaml
scene: !include scenes.yaml
shell_command: !include shell_commands.yaml
sensor: !include_dir_merge_list sensors/

When I ‘#’ one line, I’m NOT loading, automations, or sensors, or, scripts, …
I’ll start with that. At least I know whether it’s in automations or in packages; and then go from there.

You could move the individual automation directories to a temporary folder elsewhere.