YAML
YAML (www.yaml.org) is a data serialization language created to be used for programming languages. It is used to configure parameters for those who prefer to work with Home Assistant in a programming language style. You do not need to use YAML to do basic configuration, but if you need more complex configuration or if you like programming languages, it is good to know more about it.
The automations.yaml
file is one of the most important files in Home Assistant. It is used to store the automation configured in the system. I will use this file so you can gain an understanding of what the YAML language looks like.
Important note
The automations.yaml
file is managed by the user interface and should not be edited manually. If you want to manually create automation, the configuration.yaml
file should be used instead.
The following YAML code is what is implemented in my home for my homemade motion sensor installed in my garage:
- id: '1634873959087' ...