set_outlet
Switch an outlet on or off and get its state read back from the hub.
Instructions
Switch an outlet on or off and return its state as read back from the hub.
Args: outlet_id: The outlet's id, as returned by list_outlets. on: True to switch the outlet on, False to switch it off.
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": {
"outlet_id": "<outlet_id>",
"on": "<on>"
},
"name": "set_outlet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| outlet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||