create_group
Create groups to organize ESP RainMaker devices into homes, rooms, or custom categories. Specify parent groups and add nodes as needed.
Instructions
Create a new group (home, room, or custom group) using Python library API.
Parameters:
name: Name of the group (required)
group_type: Type of group ('home', 'room', or custom type)
description: Description of the group (optional)
mutually_exclusive: Set mutually exclusive flag (recommended for homes and rooms)
parent_group_id: Parent group ID (required for rooms under a home)
nodes: Comma-separated list of node IDs to add to the group (optional)
custom_data: Custom data as JSON string (optional)
Examples:
Create home: create_group("My Home", "home", mutually_exclusive=True)
Create room: create_group("Living Room", "room", mutually_exclusive=True, parent_group_id="home_id")
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": {
"name": "<name>"
},
"name": "create_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| group_type | No | ||
| description | No | ||
| mutually_exclusive | No | ||
| parent_group_id | No | ||
| nodes | No | ||
| custom_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |