-
Notifications
You must be signed in to change notification settings - Fork 12
/
manifest.json
188 lines (188 loc) · 6.76 KB
/
manifest.json
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"author": "WebThingsIO",
"description": "WebThings Gateway Virtual Things Adapter",
"gateway_specific_settings": {
"webthings": {
"exec": "{nodeLoader} {path}",
"primary_type": "adapter",
"strict_max_version": "*",
"strict_min_version": "0.10.0"
}
},
"homepage_url": "https://github.com/WebThingsIO/virtual-things-adapter",
"id": "virtual-things-adapter",
"license": "MPL-2.0",
"manifest_version": 1,
"name": "Virtual Things",
"options": {
"default": {
"persistPropertyValues": false,
"randomizePropertyValues": false,
"excludeDefaultThings": false
},
"schema": {
"type": "object",
"required": [
"persistPropertyValues",
"randomizePropertyValues",
"excludeDefaultThings"
],
"properties": {
"persistPropertyValues": {
"description": "Whether or not to persist property values across restarts",
"type": "boolean"
},
"randomizePropertyValues": {
"description": "Whether or not to periodically generate new property values",
"type": "boolean"
},
"excludeDefaultThings": {
"description": "Whether or not to exclude the default virtual things",
"type": "boolean"
},
"customThings": {
"description": "Custom virtual things to create",
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "Human-readable thing name, e.g. \"My Thing\".",
"type": "string"
},
"description": {
"description": "Human-readable description of this thing.",
"type": "string"
},
"id": {
"description": "Unique ID of this thing. This will be generated for you.",
"readOnly": true,
"type": "string"
},
"@context": {
"default": "https://iot.mozilla.org/schemas/",
"description": "Schema context for the following @types.",
"type": "string"
},
"@type": {
"description": "Pre-defined schema types of this thing. See: https://iot.mozilla.org/schemas",
"items": {
"type": "string"
},
"type": "array"
},
"properties": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"title",
"type"
],
"properties": {
"name": {
"description": "Machine-readable property name, e.g. \"prop1\".",
"type": "string"
},
"title": {
"description": "Human-readable property name, e.g. \"My Property 1\".",
"type": "string"
},
"description": {
"description": "Human-readable description of this property.",
"type": "string"
},
"@type": {
"description": "Pre-defined schema type of this property. See: https://iot.mozilla.org/schemas",
"type": "string"
},
"type": {
"description": "Data type of this property",
"enum": [
"string",
"integer",
"number",
"boolean",
"null"
],
"type": "string"
},
"unit": {
"description": "Unit of this property. Only relevant for numeric properties.",
"type": "string"
},
"minimum": {
"description": "Minimum value of this property. Only relevant for numeric properties.",
"type": "number"
},
"maximum": {
"description": "Maximum value of this property. Only relevant for numeric properties.",
"type": "number"
},
"multipleOf": {
"description": "Property values must be a multiple of this number. Only relevant for numeric properties.",
"type": "number"
},
"enum": {
"description": "Property values must be one of these options. Only relevant for string properties.",
"type": "array",
"items": {
"type": "string"
}
},
"readOnly": {
"description": "Whether or not this property is read-only.",
"type": "boolean"
},
"default": {
"description": "Default value of this property. Use true/false for booleans.",
"type": "string"
}
}
}
},
"actions": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"title"
],
"properties": {
"name": {
"description": "Machine-readable action name, e.g. \"action1\".",
"type": "string"
},
"title": {
"description": "Human-readable action name, e.g. \"My Action 1\".",
"type": "string"
},
"description": {
"description": "Human-readable description of this action.",
"type": "string"
},
"input": {
"description": "Optional JSON describing the inputs of this action (No inputs if empty)",
"type": "string"
},
"emitEvent": {
"description": "Emit an event whenever this action gets executed",
"type": "boolean"
}
}
}
}
}
}
}
}
}
},
"short_name": "Virtual",
"version": "0.11.0"
}