Save ESPHome config
esphome_save_configWrites full YAML content to an ESPHome configuration file, creating a new file. Requires enabled write permissions; follow with validation and upload.
Instructions
Write YAML to an ESPHome configuration file, whole: for a new file. To change part of an existing one, use esphome_edit_config. Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true. Follow with esphome_validate to confirm it compiles, then esphome_upload to flash it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | Full YAML content to write. | |
| 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'. |