Add user variable
add_user_variableAdd a new user variable to Domoticz. Specify name, value, and type: integer, float, string, date, or time.
Instructions
Add var. vtype: 0=Int, 1=Float, 2=Str, 3=Date, 4=Time. Cross-ref: domoticz://user-variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New user variable name | |
| value | Yes | Initial user variable value | |
| vtype | Yes | Variable type: 0 integer, 1 float, 2 string, 3 date, 4 time |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional Domoticz response title | |
| status | Yes | Status returned by Domoticz, normally OK |