set_io_port_value
Sets an arbitrary value on a ZONT device input/output port for nonstandard port types, such as temperature or auto-ignition values.
Instructions
Установить произвольное значение входа/выхода устройства.
Параметры: device_id: идентификатор устройства. portname: имя порта из конфигурации устройства. port_type: тип порта: "bool", "temperature", "auto-ignition" и др. value: значение в виде строки (будет преобразовано в нужный тип). Для bool: "true"/"false". Для temperature: "22.5". Для auto-ignition: '{"state": "enabled"}' или '{"state": "disabled"}'.
Используй set_relay для простых булевых портов. Этот инструмент — для портов с нестандартными типами значений.
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>",
"port_type": "<port_type>",
"value": "<value>"
},
"name": "set_io_port_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| portname | Yes | ||
| device_id | Yes | ||
| port_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |