Create System Variable
create_system_variableCreate a new system variable with types bool, float, enum, or string, specifying optional 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 |
|---|---|---|---|
| max | No | Maximum value (float only) | |
| min | No | Minimum value (float only) | |
| name | Yes | New variable name (must not already exist) | |
| type | Yes | Variable type | |
| unit | No | Unit label (float only, e.g. '°C') | |
| values | No | Enum value labels in order (enum only, e.g. ['off','low','high']) | |
| confirm | No | Set true to authorize this write against a protected CCU target (e.g. prod). Unlocks writes to that target for the rest of the session. | |
| description | No | Human-readable description shown in the WebUI |