ESPHome YAML configuration file syntax for Sublime Text based on its YAML syntax.
The easiest way to install is using Package Control. It's listed as ESPHome.
- Open
Command Paletteusing ctrl+shift+P or menu itemTools → Command Palette... - Choose
Package Control: Install Package - Find
ESPHomeand hit Enter
- Download appropriate ESPHome.sublime-package for your Sublime Text build.
- Copy it into Installed Packages directory
Note
To find Installed Packages...
- call Menu > Preferences > Browse Packages..
- Navigate to parent folder
Warning
Manually installed packages are not automatically updated by Package Control.
To apply the syntax, select YAML (esphome) from the Command Palette or from the syntax selector in the status bar.
Since ESPHome configuration files use the .yml/.yaml extension and do not differ much from standard YAML files, there is no easy way to automatically assign it to all ESPHome configuration files (unless you want to use this syntax for all YAML files, which could introduce its own problems). Therefore, it is recommended to use the ApplySyntax or AutoSetSyntax package to assign this syntax based on the file path - most likely on a per-project basis since there is nothing inherently unique about the file names or paths of these configuration files.
