-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.schema.json
71 lines (71 loc) · 2.01 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
{
"pluginAlias": "remo-sensor",
"pluginType": "accessory",
"singular": true,
"headerDisplay": "This is homebridge plugin to get NatureRemo sensor values with Siri and Homekit (Home app on iOS).",
"footerDisplay": "See https://github.com/hirosan18/homebridge-nature-remo-sensor for more details.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "sensor",
"description": "Plugin name as displayed in the Homebridge log"
},
"deviceName": {
"title": "Nature Remo Device NickName",
"type": "string"
},
"schedule": {
"title": "Refresh Schedule",
"type": "string",
"description": "Specify with Cron Syntax",
"placeholder": "*/5 * * * *",
"default": "*/5 * * * *"
},
"cache": {
"title": "Use Cache",
"type": "boolean",
"description": "Whether to return the latest sensors value when requested by Homebridge. If true, only Refresh on Schedule",
"default": false
},
"accessToken": {
"title": "Nature Remo OAuth2 Access Token",
"type": "string",
"required": true,
"description": "Issue at https://home.nature.global/"
},
"mini": {
"title": "Whether to use Nature Remo mini",
"type": "boolean",
"default": false
},
"sensors": {
"title": "Sensors to use",
"type": "object",
"condition": {
"functionBody": "return model.mini === false;"
},
"properties": {
"temperature": {
"title": "Temperature",
"type": "boolean",
"default": true
},
"humidity": {
"title": "Humidity",
"type": "boolean",
"default": true
},
"light": {
"title": "Light",
"type": "boolean",
"default": true
}
}
}
}
}
}