prefixkit Ask an engineerAsk Support RU

Error reference · Home Assistant

Home Assistant: Invalid config for 'automation' at automations.yaml, line 3: required key 'triggers' not provided

Invalid config for 'automation' at automations.yaml, line 3: required key 'triggers' not provided

What it means

Home Assistant could not load part of the configuration: a required key is missing or a value has the wrong type. The rest loads, but this automation (or integration) is skipped.

Why it happens

  • A typo or wrong indentation moved a key into another block.
  • An unquoted template or on/off turned into the wrong type.
  • A key from newer or older documentation that this version does not know.

How to fix it

  1. Open the file at the line in the message and compare the structure with the documentation.
  2. Paste the file into the YAML checker: it finds unquoted templates, bad indentation and unknown keys.
  3. Developer tools → YAML → Check configuration before every restart.

Useful tools

/home-assistant-yaml-checker/

Other Home Assistant errors

Idea?