alpaca_switch_set_value
Set the value of a switch on an ASCOM Alpaca switch device. Ensure the device is connected first.
Instructions
Set the value 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>",
"value": "<value>"
},
"name": "alpaca_switch_set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address of the Alpaca server | |
| port | Yes | Port number of the Alpaca server | |
| value | Yes | Switch value | |
| switch_id | Yes | Switch ID | |
| device_number | No | Device number (default: 0) |