set_relay
Turn a device's relay output on or off to control pumps, valves, sirens, and other equipment connected to ZONT controller discrete outputs.
Instructions
Включить или выключить реле (дискретный выход) устройства.
Параметры: device_id: идентификатор устройства. portname: имя порта реле (из z3k_config или io устройства). Примеры: "relay1", "relay2", "siren". enabled: True — включить, False — выключить.
Используй для управления насосами, клапанами, сиренами и любым оборудованием, подключённым к дискретным выходам контроллера.
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": {
"device_id": "<device_id>",
"portname": "<portname>",
"enabled": "<enabled>"
},
"name": "set_relay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| portname | Yes | ||
| device_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |