If you do so, be aware that this is a third-party service and is not maintained by the Home Assistant community. You can use the online service YAML Validator to check if your YAML syntax is correct before loading it into Home Assistant which will save you some time. Convention is to use 2 spaces for each level of indentation. Tabs are not allowed to be used for indentation. Getting the right indentation can be tricky if you’re not using an editor with a fixed width font. So in the above example, platform: pushbullet is a property of (nested inside) the notify integration. Things that are indented are nested “inside” things that are one level higher. Note that indentation is an important part of specifying relationships using YAML. Beware that if you specify duplicate keys, the last value for a key is used. This is somewhat similar to a Hash table or more specifically a dictionary in Python. Each item in a collection starts with a - while mappings have the format key: value. The basics of YAML syntax are block collections and mappings containing key-value pairs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |