|  Developer
Updated on November 13, 2021

Item

  • Device table
fields type description
id string an unique id of item
device_id string an id of a device the item is being registering for
name string a type of the item
value_type string [int : bool : float : string : rgb : scalable : userCode : buttonState : token : dictionary.#subtype : array.#subtype] a type of an item’s value
has_getter bool whether the item provides an ability to get a value
has_setter bool whether the item provides an ability to set a value
show bool whether the item should be shown on UI
enum table [opt] set of values for value type ‘token’
value int : bool : float : string : rgb : scalable : userCode : buttonState : token : dictionary.#subtype : array.#subtype an item’s value
value_min int : float : scalable [opt] lower limit of item’s value
value_max int : float : scalable [opt] upper limit of item’s value
elements_max_number int [opt] max allowed elements of a dictionary or an array value
elements_max_number_%number% int [opt] max allowed elements of a dictionary or an array subtypes value. %number% must be more 1. E.g. elements_max_number_2 means max size of array if value type is dictionary.array
string_restriction string [opt] Regexp restriction for a value in item of value type
user_code_restriction string [opt] Regexp restriction for a field in any value of value type. E.g. it’s used in item .
user_code_modes array of strings [opt] List of available pin code modes. It’s used in item.
elements_max_number_per_array int [opt] max allowed elements of each array ( if array is subtype of dictionary or another array )
one_week_day_cost int [opt] cost of one week day in item
one_shifted_week_day_cost int [opt] cost of one shifted (startTime > stopTime) week day in item
value_indent object [opt] indent between value of another item ({item = “item_id”, min_indent = 3})