Create or Update Group
ha_config_set_groupCreate or update service-based Home Assistant entity groups via group.set to combine entities or edit members, for existing YAML or legacy group setups.
Instructions
Create or update a service-based Home Assistant entity group via the group.set service.
When NOT to use: for typical "combine these entities into one controllable group"
requests, prefer ha_config_set_helper(helper_type="group", ...). Config-entry-backed
groups are registered in the entity registry, so ha_set_entity can assign them to
areas and they are deletable via ha_remove_helpers_integrations.
When to use: compatibility with existing groups already configured via group.set
or YAML, or the rare case where entity-registry membership is explicitly unwanted.
Groups created here are only removable via ha_config_remove_group —
ha_remove_helpers_integrations will not find them.
For NEW groups: Provide object_id and entities (required). For EXISTING groups: Provide object_id and any fields to update. entities, add_entities, and remove_entities are mutually exclusive.
EXAMPLES:
Create: ha_config_set_group("bedroom_lights", entities=["light.lamp", "light.ceiling"], name="Bedroom Lights")
Add entities: ha_config_set_group("lights", add_entities=["light.extra"])
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Material Design Icon (e.g., 'mdi:lightbulb-group') | |
| name | No | Friendly display name for the group | |
| wait | No | Wait for group to be queryable before returning. Set to False for bulk operations. | |
| all_on | No | If True, all entities must be on for group to be on | |
| entities | No | List of entity IDs for the group. When updating, replaces all entities. | |
| object_id | Yes | Group identifier without 'group.' prefix (e.g., 'living_room_lights') | |
| add_entities | No | Add these entities to an existing group | |
| remove_entities | No | Remove these entities from an existing group |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||