Control area entities by domain
areas_control_areaControl every entity of a chosen domain within a Home Assistant area by turning them on, off, or toggling. Use it for whole-room actions like all lights.
Instructions
Turn on, off or toggle every entity of one domain in an area.
Calls service <domain>.<action> over HTTP with {"area_id": area_id}
as the target, so Home Assistant dispatches it to every entity of that
domain in the area. action must be one of turn_on/turn_off/toggle
(ADR-0006 D6) — an unchecked value here could reach an arbitrary
<domain>.<action> service under cover of "controlling an area".
Use when: controlling a whole area by domain, e.g. all lights in a room.
Not for: controlling an explicit list of entity_ids across areas — use
entities_bulk_control.
Returns: list of state-change dicts as returned by the HA service call.
Errors: raises ValueError when action is not one of turn_on,
turn_off, toggle.
Limits: an invalid domain (no such domain, or the domain has no
matching service) fails with the underlying HTTP error from Home
Assistant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Service to call on the domain: 'turn_on', 'turn_off' or 'toggle'. | |
| domain | No | Entity domain to target within the area, e.g. 'light' or 'switch'; defaults to 'light'. | light |
| area_id | Yes | Area registry ID to target; obtain it from areas_list_areas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |