shelly_switch_set
Turn a Shelly switch or relay channel on or off, optionally auto-reverting after N seconds. Returns the resulting channel state for local device control.
Instructions
Turn a switch/relay channel on or off (optionally auto-revert after N seconds).
Returns the post-action ChannelState. Audit-logged.
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": "<device>",
"on": "<on>"
},
"name": "shelly_switch_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| device | Yes | ||
| channel | No | ||
| toggle_after_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||