Option 1 - Use VS Code Server Add-on
This is the easiest and preferred way to edit configuration.yml if your Home Assistant supports add-ons.- Open the Home Assistant dashboard
- Go to the settings menu.
- Select Add-ons
- Select “Add-on Store”
- Find the add-on called “Studio Code Server”
- Install the addon, and start it.
- Select “Open in Web UI”
- Select “configuration.yaml” in the Explorer list.
- Make any edits needed.
- Save the configuration.yml file.
- Restart Home Assistant for the change to be applied.
Option 2 - Use SSH To Edit The Config
Use this option if your Home Assistant server doesn’t support add-ons and you know how to SSH into it.- SSH into the device running Home Assistant.
- Look for the Home Assistant config file; it could be in a few places.
- /home/homeassistant/.homeassistant/configuration.yaml
- ~/.homeassistant/configuration.yaml
- Use a command-line text editor, such as nano, to edit the file.
- Restart Home Assistant for the change to be applied.

