sprut_set_switch
Turns a SprutHub switch, light, or relay on or off by accessory ID, with an optional service ID when a device has multiple switches.
Instructions
Turn a switch, light, or relay ON or OFF.
Args: accessory_id: The ID of the accessory (e.g. 1155). on: True to turn ON, False to turn OFF. service_id: Optional service ID if the accessory has multiple switches. If omitted, the first Switch service is used automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| service_id | No | ||
| accessory_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |