For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /home-assistant/faq/configuration-file.md.

为什么使用 YAML 作为配置文件?

为什么不使用 JSON 或 XML 作为配置文件?因为 YAML 可以手写,你不需要关心逗号或标签,而且它是 JSON 的超集。