nina_switch_set
Set a switch value such as a relay state or slider position between 0.0 (OFF) and 1.0 (ON) using the switch index.
Instructions
Set a switch value (e.g. relay state or slider value).
switch_index: Index of the switch. Must be >= 0. value: Target state (0.0 for OFF, 1.0 for ON, or intermediate value for sliders).
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": {
"switch_index": "<switch_index>",
"value": "<value>"
},
"name": "nina_switch_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| switch_index | Yes |