Read or change an integration's options
ha_config_entry_optionsOpen a config entry's options flow to view and submit per-integration settings, reaching hidden switches like ESPHome's allow_service_calls. Read the form first, then resend only changed values.
Instructions
Open a config entry's options flow — the per-integration settings panel — and optionally submit answers to it. Call with entry_id alone to see the current form and its fields, then again with user_input to set them.
This is the only way to reach switches that exist nowhere else in the API. The one asked for most: ESPHome's 'allow the device to perform Home Assistant actions' (field allow_service_calls), which a device needs before it can call HA services and which is buried several clicks deep in the UI. Also on that form: subscribe_logs. Get entry_id from ha_list_config_entries (domain=esphome).
Submitting a form sets every field it contains, so read it first and send the values back with only the ones you mean to change altered — omitting a field is not the same as leaving it alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | No | Existing options flow id to continue. | |
| entry_id | No | Config entry to open the options flow for (from ha_list_config_entries). | |
| user_input | No | Answers for the current step, e.g. { allow_service_calls: true }. | |
| 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. |