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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_node_id | Yes | ||
| room_group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |