areas_create_area
Create a new area in your smart home by providing a name. Organize devices and scenes under this area for efficient management.
Instructions
Create a new area.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/areas.py:13-16 (handler)The MCP tool handler for 'create_area' (registered under namespace 'areas'). It takes a name string and delegates to ha_client.create_area.
@mcp.tool() def create_area(name: str) -> dict: """Create a new area.""" return ha.create_area(name) - server.py:34-34 (registration)The 'areas' FastMCP server is mounted at namespace 'areas', so the tool's full name becomes 'areas_create_area'.
mcp.mount(areas_mcp, namespace="areas") - ha_client.py:197-198 (helper)The HA client helper that sends a WebSocket call 'config/area_registry/create' to Home Assistant.
def create_area(name: str) -> dict: return _ws_call("config/area_registry/create", name=name)