Create System Variable
create_system_variableCreate a new system variable with specified type (bool, float, enum, string) and optional properties like min, max, unit, or enum values.
Instructions
Create a new system variable. Types: 'bool', 'float' (optional min/max/unit), 'enum' (requires values list), 'string'. Use set_system_variable to write it afterwards, list_system_variables to see existing ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New variable name (must not already exist) | |
| type | Yes | Variable type | |
| description | No | Human-readable description shown in the WebUI | |
| unit | No | Unit label (float only, e.g. '°C') | |
| min | No | Minimum value (float only) | |
| max | No | Maximum value (float only) | |
| values | No | Enum value labels in order (enum only, e.g. ['off','low','high']) |