send_custom_command
Send a configured command to a ZONT device by device ID and command ID to control heating modes, relays, and other available actions.
Instructions
Отправить пользовательскую команду устройству.
Параметры: device_id: идентификатор устройства. command_id: идентификатор команды из настроек (z3k_config.custom_controls[].commands[].id).
Пользовательские команды настраиваются в веб-интерфейсе ZONT в разделе «Элементы управления». Они могут активировать любое доступное действие: включить режим отопления, управлять реле и т.д.
Внимание: команда отправляется только если устройство на связи. Метод возвращает ok независимо от результата доставки.
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>",
"command_id": "<command_id>"
},
"name": "send_custom_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | ||
| command_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |