Create or Update Helper
ha_config_set_helperCreate or update Home Assistant helpers, including simple types, flow-based helpers, and config subentries, by submitting form answers step by step or in one call.
Instructions
Create or update Home Assistant helpers: storage types, every helper flow HA lists, and config subentries.
MUST call ha_get_skill_guide OR refer to your locally installed skills first.
helper-selection.md ships under skill_content by default.
SIMPLE types, written in one call: input_boolean, input_button, input_select, input_number, input_text, input_datetime, counter, timer, schedule, zone, person, tag.
FLOW types: every helper flow Home Assistant lists, read from it at
call time — template, group, utility_meter, derivative, min_max,
threshold, integration, statistics, trend, ... and custom helper
integrations. Creating one runs its config flow; helper_id (the
config entry id) runs its options flow instead.
Do not create otp here although Home Assistant lists it: the user sets
it up in the HA UI, since its secret is a credential they enroll in an
authenticator app.
CONFIG_SUBENTRY type: pass entry_id and subentry_type; with
subentry_id the subentry's reconfigure flow runs, without it its
create flow.
Flows, one step per call, as the HA UI runs them: a call answers the step the flow is at and returns Home Assistant's next answer. A form comes back with its fields (type, default, current value, Home Assistant's help text) and flow_id; a menu with menu_options. Answer with flow_id and config (a form) or menu_choice (a menu); flow_id alone returns the step again, and flow_id with abort=True ends the flow. Without flow_id a new flow starts: menu_choice answers its opening menu and config the form after it, so a one-form helper is created or updated in one call; without config the call returns the form, and its later_forms when the helper has more than one (statistics, history_stats, generic_thermostat, ...). With a config list the call answers form after form and returns at the first one Home Assistant rejects, or once the answers run out. A rejected form is an error with Core's text, and the flow stays open to correct it. Nothing is saved until the flow finishes.
WHEN NOT TO USE:
An integration that is not a helper: ha_set_integration.
Removing a helper: ha_remove_helpers_integrations.
Renaming a flow helper's entity, or its registry settings alone: ha_set_entity.
Behavior:
A SIMPLE update preserves type-specific fields not re-passed (a rename never wipes initial/icon/etc.).
Omitted
action: update whenhelper_id(for a config subentry,subentry_id) is given, else create.area_id, labels, category and icon are applied to a flow helper's entities by the call that finishes the flow.
A progress step (Home Assistant working in the background) is waited out for up to 120 s. When Home Assistant does not answer a submit, the error carries status applied_but_unverified: check the helper before retrying.
EXAMPLES:
input_number: ha_config_set_helper(helper_type="input_number", name="Target", config={"min": 0, "max": 100, "step": 5})
template sensor: ha_config_set_helper(helper_type="template", menu_choice="sensor", config={"name": "Room Temp", "state": "{{ states('sensor.x')|float }}", "unit_of_measurement": "°C"})
group: ha_config_set_helper(helper_type="group", menu_choice="light", config={"name": "Kitchen Lights", "entities": ["light.a", "light.b"]})
see a form first: ha_config_set_helper(helper_type="statistics"), then answer it: ha_config_set_helper(helper_type="statistics", flow_id="...", config={...})
several forms in one call: ha_config_set_helper(helper_type="statistics", config=[{"name": "Temp Mean", "entity_id": "sensor.temp"}, {"state_characteristic": "mean"}, {"sampling_size": 20}])
update one option: ha_config_set_helper(helper_type="group", helper_id="01HXYZ...", config={"hide_members": true})
config subentry: ha_config_set_helper(helper_type="config_subentry", entry_id="01HXYZ...", subentry_type="conversation", config={"name": "Local agent", "model": "gemma3:27b"})
If a Claude Desktop user gets a 4-minute timeout with no result on this call, read the target back before repeating it, and tell them to wait a few seconds before clicking the manual-approve button, as clicking it too quickly is known to cause hangs in Claude Desktop. This workaround is specific to Claude Desktop.
create update new add helper input_boolean input_button input_number input_text input_datetime input_select counter timer schedule zone person tag template group utility_meter derivative min_max threshold integration statistics trend random filter tod generic_thermostat switch_as_x generic_hygrostat history_stats mold_indicator
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"helper_type": "<helper_type>"
},
"name": "ha_config_set_helper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Material Design Icon (e.g., 'mdi:bell'); '' or ' ' clears it, except a zone's stored icon, which Home Assistant keeps on update as the zone dialog does: it can be changed but not removed. A storage helper's icon goes into its stored config when Home Assistant's schema for the type has an icon field, as the helper's own dialog stores it, and the entity registry is left alone; otherwise (person, tag, or another type without the ha_mcp_tools component) it goes into the entity registry. An icon override in the entity registry is set or cleared with ha_set_entity. Restoring a storage helper's automatic backup also puts back its registry icon, unless the backup predates registry icons being recorded; a flow helper's backup holds no icon, so its restore does not set one | |
| name | No | Display name. Home Assistant decides which SIMPLE helper types need one to be created; optional on an update. Creating a FLOW helper, it answers the form's `name` field when the form has one and config sets none; a FLOW update does not use it (rename the entity with ha_set_entity). Not used by config_subentry. | |
| wait | No | Wait for helper entity to be queryable before returning. Set to False for bulk operations. | |
| abort | No | With flow_id: end the open flow without saving. | |
| action | No | Explicit intent: 'create' a new helper or 'update' an existing one. Pass it so a helper_id typo fails as 'helper not found' instead of creating a helper. | |
| config | No | Type-specific fields. On update it is a patch: a field you omit keeps its current value, and a SIMPLE type's field set to null is removed. SIMPLE types take these keys: the fields of the type's own Home Assistant schema, under its names; Home Assistant validates them and its error names any mistake. With the ha_mcp_tools component installed, ha_config_list_helpers(helper_type, describe=True) lists a type's fields. FLOW types and config_subentry: the answers to the form the flow is at, under the form's own field names (a section's fields nested under the section's name). On an update a field you omit is sent as the form shows it (its `current` value); a field set to null is left empty. Home Assistant validates the answer. A list answers several forms: one object per form, in the order Home Assistant asks for them. | |
| labels | No | Labels to categorize the helper | |
| area_id | No | Area ID for the helper; '' or ' ' clears it | |
| flow_id | No | Continue an open flow: the flow_id a previous call returned, with the same helper_type and helper_id (or entry_id, subentry_type and subentry_id). | |
| category | No | Category ID for this helper (ha_config_get_category(scope='helpers') lists them, ha_config_set_category() creates one); '' or ' ' clears it. | |
| entry_id | No | Parent config entry ID when helper_type='config_subentry'. Use ha_get_integration() to find entry IDs. | |
| helper_id | No | The helper's storage id ('my_button'), not the name of its entity, or its full entity_id ('input_button.my_button'); for a FLOW helper its config entry id. Omit to create a new helper. | |
| helper_type | Yes | Type of helper to create or update. | |
| menu_choice | No | FLOW types and config_subentry: the option to pick at a menu step (template and group open with one). | |
| subentry_id | No | Existing config subentry ID to reconfigure when helper_type='config_subentry'. | |
| MandatoryBPS | No | ||
| subentry_type | No | Integration-defined subentry type when helper_type='config_subentry'. | |
| BestPracticeKey | No | Read-receipt for the home-assistant-best-practices skill; required when strict best-practices mode is enabled. Not a secret or credential: the current value is an attestation phrase published openly at the top of the skill content served by ha_get_skill_guide. Read that content, then pass the value back verbatim — this round-trip is the server's designed protocol confirming the practices were read before writing. | |
| show_advanced_options | No | When helper_type='config_subentry', ask older Home Assistant versions to expose advanced flow options. No-op on HA 2026.6+; pending removal before HA 2027.6. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||