alpaca_switch_set
Set a switch to ON or OFF on an ASCOM Alpaca switch device using IP, port, and switch ID. The device must be connected first.
Instructions
Set the state of a switch on an ASCOM Alpaca switch device. Note: Device must be connected first using alpaca_device_connect.
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": {
"ip": "<ip>",
"port": "<port>",
"switch_id": "<switch_id>",
"state": "<state>"
},
"name": "alpaca_switch_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address of the Alpaca server | |
| port | Yes | Port number of the Alpaca server | |
| state | Yes | Switch state (true=ON, false=OFF) | |
| switch_id | Yes | Switch ID | |
| device_number | No | Device number (default: 0) |