io_add_virtual_input
Creates a virtual input in a Loxone Miniserver for HTTP-set values from clients like Home Assistant, with options for text/analog type, units, and app visibility.
Instructions
Adds a virtual input under 'Virtual inputs'. Values are set via HTTP (/dev/sps/io//), e.g. from Home Assistant. visu=True shows it in the app, unit is the display format (e.g. '<v.1>°'). text=True creates a text input (send the value URL-encoded; WARNING: querying /state on a text input overwrites it). desc is the name in the app. System variables are fed via an output placeholder of the system variable, not via 'source'.
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": {
"title": "<title>"
},
"name": "io_add_virtual_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | ||
| room | No | ||
| text | No | ||
| unit | No | ||
| visu | No | ||
| title | Yes | ||
| analog | No | ||
| max_val | No | ||
| min_val | No | ||
| category | No |