-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
81 lines (79 loc) · 1.84 KB
/
config.schema.json
File metadata and controls
81 lines (79 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"pluginAlias": "IrrigationSystemDomi",
"pluginType": "platform",
"headerDisplay": "Irrigation System",
"schema": {
"title": "Irrigation System",
"type": "object",
"required": ["name", "ip", "token", "pin"],
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Irrigation System"
},
"ip": {
"title": "Blynk Server Address",
"type": "string",
"placeholder": "192.168.2.47"
},
"token": {
"title": "Token",
"type": "string",
"placeholder": "Put token here"
},
"pin": {
"title": "Virtual Pin",
"type": "string",
"placeholder": "Put pin here"
},
"zones": {
"title": "Zones",
"type": "array",
"items": {
"title": "Zone",
"type": "object",
"required": ["zonename", "setDuration"],
"properties": {
"zonename": {
"title": "Zone Name",
"type": "string",
"maxLength": 16,
"placeholder": "zone name"
},
"setDuration": {
"title": "Set Duration Time (minutes)",
"type": "number",
"description": "Default zone duration in minutes [20][1-120]",
"maximum": 120,
"minimum": 1
}
}
}
}
}
},
"layout": [
"name",
"ip",
"token",
"pin",
{
"type": "fieldset",
"title": "Zones",
"expandable": true,
"expanded": false,
"items": [
{
"key": "zones",
"type": "tabarray",
"title": "{{ value.zonename || ('Zone ' + ($index)) }}",
"items": [
"zones[].zonename",
"zones[].setDuration"
]
}
]
}
]
}