Edit ESPHome config
esphome_edit_configChange part of an ESPHome configuration in place by replacing exact text, so you avoid resending a full multi-thousand-line YAML file.
Instructions
Change part of an ESPHome configuration file in place: each edit replaces one exact piece of text with another, and must match exactly once. Prefer this to esphome_save_config for any change to an existing file: a real device's YAML runs to thousands of lines, and resending all of it to change a few is slow and risks a slip anywhere in it. Nothing is saved unless every edit applies. Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true. Follow with esphome_validate, then esphome_upload to flash it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Applied in order, each to the result of the one before. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. | |
| configuration | Yes | Configuration filename, e.g. 'living-room.yaml'. |