Variable Object
| Property | Type | Description |
|---|---|---|
| id | String | ID of Variable |
| Label | String | Label of Variable |
| name | String | Name of Variable |
| createdAt | String | Date Variable was created |
| syntheticExpression | String | Synthetic Expression of a the Synthetic Variable |
| description | String | Description of Variable |
| device | Object | Device it belongs to |
| lastActivity | Number | Date of of Variables's last activity |
| lastValue | Object | Last value of the Variable |
| properties | Object | Properties of Variable, including support for: - _color: Variable's color in #rrggbb hexadecimal format. - _icon: Font Awesome name of Variable's icon. - minimum_value: Variable's minimum value of allowed values. - maximum_value: Variable's maximum value of allowed values. |
| tags | String Array | Tags of device |
| type | String | "raw" or "synthetic" |
| unit | String | Unit of Variable, can be anything |
| url | String | Url of Variable |
| valuesUrl | String | URL of Values of the Variable |
Variable Filters
| Filter Attribute | Filter Type | Available Filters |
|---|---|---|
| id | id | exact, in |
| Label | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull |
| name | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull |
| createdAt | Date | exact (=), date, year, quarter, month, week, day, hour, minute, second, isnull |
| description | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull |
| device | Related Filter of Device | |
| tags | String List | exact, contains, contained_by, overlap, len, isnull |
| lastValue | Object | Last value of the Variable |
| properties | Object | Properties of Variable, including support for: - _color: Variable's color in #rrggbb hexadecimal format. - _icon: Font Awesome name of Variable's icon. - minimum_value: Variable's minimum value of allowed values. - maximum_value: Variable's maximum value of allowed values. |
| tags | String List | exact, contains, contained_by, overlap, len, isnull |
| unit | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull |
| properties | Object | contains, contained_by, has_key, has_any_keys, has_keys, isnull |
| type | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull |