add_device_to_room
Add a device to a room by automatically assigning it to the parent group first, then to the target room group.
Instructions
Add a device to a room with automatic parent group handling.
This function automatically handles the ESP RainMaker hierarchy requirement:
First adds the device to the parent group (e.g., "My Home")
Then adds the device to the target room group (e.g., "Kitchen")
Parameters:
device_node_id: The node ID of the device to add
room_group_id: The group ID of the room to add the device to
This is a convenience function that makes the hierarchical behavior explicit.
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": {
"device_node_id": "<device_node_id>",
"room_group_id": "<room_group_id>"
},
"name": "add_device_to_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_node_id | Yes | ||
| room_group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |