change_config
Dynamically update the integration’s connection settings — API key, Base URL, provider, and more — without restarting Home Assistant. The new values are validated against the API before being saved.Parameters
At least one optional parameter must be provided. Calling the service with only
config_entry does nothing.Examples
How to find config_entry
- Go to Settings → Devices & Services
- Click Extended OpenAI Conversation
- The entry ID is in the browser URL:
.../config/integrations/integration/extended_openai_conversation#ENTRY_ID
Behavior notes
- Validation first: The service connects to the API with the new credentials before saving. If the connection fails, the existing config is preserved and an error is raised.
- OpenAI default URL: Setting
base_urltohttps://api.openai.com/v1is treated as “no custom URL” — the integration uses OpenAI’s default endpoint, which is resilient to future URL changes by OpenAI. - Partial updates: Only the fields you provide are changed. Unspecified fields keep their current values.
query_image
Send an image (local file or public URL) to a vision-capable model and get a text response back. The service returns the full API response object.Parameters
Examples
For local file paths, the path must be allowed in
allowlist_external_dirs in your configuration.yaml.Return value
The service returns the full OpenAI chat completion response:reload_skills
Reload all skills from the skills directory without restarting Home Assistant. Use this after manually adding or editing skill files.Parameters
None.Example
Return value
The
download_skill service automatically reloads skills after downloading, so a manual reload is only needed when you edit skill files directly.