Type Definitions
object-array
Object containing array elements within an object named with the index of the element.
{
"0" : [...], //Type Array
"1" : {...}, //Type Object
"2" : "...", //Type String
"3" : 0 //Type Integer
}
request-array
Table containing variables for HTTP requests. Does not accept the HTTPS protocol.
[
"http://domain/path/endpoint",
1,
"text/plain",
"data1=value1&data2=value2"
]
- Type:
Array
- Size:
4
Item 0
Request url
- Type:
String
Item 1
Request method
- Type:
Integer
- Value:
0 : GET
1 : POST
Item 2
Content type for POST request.
- Type:
String
- Format:
HTTP MIME types
Item 3
POST data.
- Type:
String
- Format:
data1=value1&data2=value2
light-array
Table containing variables for light device configuration.
[
"Name",
0,
0,
1,
"unique-id"
]
- Type:
Array
- Size:
5
Item 0
Light name.
- Type:
String
Item 1
Active light brightness.
- Type:
Integer
- Value:
0 : No
1 : Yes
Item 2
Active light color.
- Type:
Integer
- Value:
0 : No
1 : Yes
Item 3
Show Buttons.
- Type:
Integer
- Value:
0 : No
1 : Yes
2 : Only ON
3 : Only OFF
Item 4
Light unique id. Use for the third-party application, if you change the unique id you must reconfigure the device in the third-party application.
- Type:
String
action-array
Table containing variables for configuration of action and home button.
[
1,
"Text ON",
0,
"Text OFF",
0,
"unique-id"
]
- Type:
Array
- Size:
6
Item 0
Button Type.
- Type:
Integer
- Value:
0 : Change screen view (only for home buttons)
1 : Action with only off state
2 : Action with on/off state
3 : Action with on/off state, the state changes automatically when touch.
Item 1
Icon when button is off or change screen view mode.
- Type:
Integer or String
- Value Type Integer :
image-id
- Value Type String : Image path
For image from Micro SD Card :sd://folder/img.jpg
Item 2
Text when button is off or change screen view mode.
- Type:
String
Item 3 (Change screen view mode)
View to be displayed.
- Type:
Integer
- Value Type Integer :
view-id
Item 3 (Action with on/off state)
Icon when button is on.
- Type:
Integer or String
- Value Type Integer :
image-id
- Value Type String : Image path
For image from Micro SD Card :sd://folder/img.jpg
Item 4
Text when button is on or ID of view list when change screen view mode
- Type:
String
Item 5
Button unique id. Use for the third-party application, if you change the unique id you must reconfigure the device in the third-party application.
- Type:
String
heat-array
Table containing variables for configuration of heat device.
[
"name",
0,
"mode 1 name",
"mode 2 name",
"mode 3 name",
"mode 4 name",
"unique-id"
]
- Type:
Array
- Size:
7
Item 0
Heat device name.
- Type:
String
Item 1
Active set point.
- Type:
Integer
- Value:
0 : No
1 : Yes
Item 2
Mode 1 name. If the string is empty, the mode will be deactivated
- Type:
String
Item 3
Mode 2 name. If the string is empty, the mode will be deactivated
- Type:
String
Item 4
Mode 3 name. If the string is empty, the mode will be deactivated
- Type:
String
Item 5
Mode 5 name. If the string is empty, the mode will be deactivated
- Type:
String
Item 6
Heat device unique id. Use for the third-party application, if you change the unique id you must reconfigure the device in the third-party application.
- Type:
String
opening-array
Table containing variables for configuration of opening device.
[
"name",
0,
"unique-id"
]
- Type:
Array
- Size:
3
Item 0
Opening device name.
- Type:
String
Item 1
Button Type.
- Type:
Integer
- Value:
0 : UP/STOP/DOWN
1 : LEFT/STOP/RIGHT
Item 2
Opening device unique id. Use for the third-party application, if you change the unique id you must reconfigure the device in the third-party application.
- Type:
String
zone-array
Table containing variables for configuration of alarm zone.
[
"name",
"unique-id"
]
- Type:
Array
- Size:
2
Item 0
Alarm zone name.
- Type:
String
Item 1
Alarm zone unique id. Use for the third-party application, if you change the unique id you must reconfigure the device in the third-party application.
- Type:
String
json-tcp-parameter-array
Data parameters for JSON TCP requests.
[
"attribute",
"value"
]
- Type:
Array
- Size:
2
Item 0
Parameter name.
- Type:
String
Item 1
Parameter value. JSON needs to be stringified.
- Type:
String