Where can I look for this error?

Unfortunately it’s been too long since I wrote this automation…
Now I see the lines below in the logs, and I want to find the error and fix it.

Any suggestions how I could find it? I have, of course tens of automations written in YAML.

Invalid config for [automation]: [minutes] 
is an invalid option for [automation]. 

Check: automation->trigger->0->minutes. 
(See ?, line ?). Please check the docs at 
https://home-assistant.io/integrations/automation/

It’s the first trigger in one of your automations. Seach the file for ‘minutes’, when you see it occur in the trigger section of an automation look closely.

1 Like

You probably didn’t indent properly. So you probably have:

trigger:
  ...
  for:
  minutes: N

instead of:

trigger:
  ...
  for:
    minutes: N
1 Like

Just curious: How can you tell it’s the first trigger (in one of my automations)?

Triggers, conditions and actions are counted 0, 1, 2, 3, …

1 Like