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.
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) |