-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
93 lines (93 loc) · 2.67 KB
/
config.schema.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
{
"pluginAlias": "NatureRemoMultiToggleLight",
"pluginType": "accessory",
"headerDisplay": "IMPORTANT: The light must be added to Nature Remo as \"Other\" appliance. Native \"Light\" appliance is not supported.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Appliance Name",
"description": "Name of the light appliance. Must match the name in Nature Remo app.",
"type": "string",
"required": true,
"default": "Light"
},
"buttonName": {
"title": "Button Name",
"description": "Name of the light toggle button. Must match the name in Nature Remo app.",
"type": "string",
"required": true,
"default": "on"
},
"onToggleCount": {
"title": "ON Toggle Count",
"description": "Number of times to toggle the light switch to turn from OFF to ON",
"type": "integer",
"required": true,
"default": 1,
"minimum": 1
},
"offToggleCount": {
"title": "OFF Toggle Count",
"description": "Number of times to toggle the light switch to turn ON to OFF",
"type": "integer",
"required": true,
"default": 1,
"minimum": 1
},
"accessToken": {
"title": "Nature Remo Access Token",
"type": "string",
"required": true,
"description": "Get it from https://home.nature.global/",
"pattern": ""
},
"signalDelay": {
"title": "Toggle Delay",
"description": "Delay between each toggle request to Nature Remo API (in milliseconds)",
"type": "integer",
"required": true,
"default": 100,
"minimum": 0
},
"enableDummySettings": {
"title": "Enable Dummy Settings",
"description": "EXPERIMENTAL: Enable brightness, color temperature, hue, and saturation settings. Does not actually send any signal to the light.",
"type": "boolean",
"required": true,
"default": false
},
"apiEndpoint": {
"title": "Nature Remo Cloud API Endpoint",
"description": "Default: https://api.nature.global/",
"type": "string",
"required": true,
"default": "https://api.nature.global/"
}
}
},
"form": [
"name",
"buttonName",
"accessToken",
{
"type": "fieldset",
"expandable": true,
"title": "Counter",
"items": [
"onToggleCount",
"offToggleCount"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advance",
"items": [
"signalDelay",
"apiEndpoint",
"enableDummySettings"
]
}
]
}