Bulk turn on, off or toggle entities
entities_bulk_controlTurn on, turn off, or toggle multiple Home Assistant entities across domains in one call, grouping IDs by domain to send one service call per domain.
Instructions
Turn on, turn off or toggle many entities in one call, grouped by domain.
Groups entity_ids by domain and issues one <domain>.<action> service
call per domain group (e.g. all light.* entities get a single
light.turn_on), instead of one call per entity.
Use when: applying the same on/off/toggle action to many entities across
domains at once.
Not for: writing arbitrary states instead of calling a service — use
entities_bulk_set_state; controlling every entity of one domain in a
single area by area_id rather than an explicit entity_id list — use
areas_control_area.
Returns: dict mapping domain to the number of entities affected.
Errors: raises ValueError when action is not one of turn_on,
turn_off, toggle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Service to call per domain group: 'turn_on', 'turn_off' or 'toggle'. | |
| entity_ids | Yes | Full entity IDs to act on, e.g. ['light.a', 'light.b']. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||