Relay toggle
myio_relay_toggleToggle a myIO relay output to invert its current on or off state and return the state read back from the controller. Use it for switching devices by relay ID.
Instructions
Toggle (invert) a relay output. id = relay id 1..RQ (see myio_info / myio_list_devices). The reply shows the state read back from the controller.
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": {
"id": "<id>"
},
"name": "myio_relay_toggle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | relay id (1..RQ) | |
| server | No | controller name (default Ground floor) |