/
config.schema.json
63 lines (63 loc) · 1.94 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
{
"pluginAlias": "Motion Plus Sensor",
"pluginType": "accessory",
"singular": false,
"headerDisplay": "Depending on the sensor type a few adjustments can be made to each individual preference. Try to tweak the values until your use-case is fulfilled.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "Motion Sensor",
"required": true
},
"sensorType": {
"title": "sensorType",
"type": "string",
"required": true,
"default": "pir",
"oneOf": [
{"title": "PIR Sensor", "enum": ["pir"]},
{"title": "Dopplerradar", "enum": ["radar"]}
],
"description": "The type of motion sensor you are using."
},
"gpioPin": {
"title": "gpioPin",
"type": "integer",
"required": true,
"default": 4,
"description": "To which GPIO pin your sensor is connected"
},
"timeoutSeconds": {
"title": "timeoutSeconds",
"type": "integer",
"required": false,
"default": 10,
"description": "Number of seconds to wait until checking for new movements"
},
"cacheSeconds": {
"title": "cacheSeconds",
"type": "integer",
"required": false,
"default": 0,
"description": "Cache last movement and consider it after timeout. If movements were detected while waiting for timeout restart timeout."
},
"delayMilliseconds": {
"title": "delayMilliseconds",
"type": "integer",
"required": false,
"default": 0,
"description": "Number of milliseconds to wait until notifying movement"
},
"delayCacheSeconds": {
"title": "delayCacheSeconds",
"type": "integer",
"required": false,
"default": 0,
"description": "Cache last movement and consider it after delay."
}
}
}
}