generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
70 lines (70 loc) · 2.66 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
{
"pluginAlias": "DivergenceMeter",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Before using this plugin, please read [the instruction](https://github.com/liuzikai/homebridge-divergence-meter#readme).\n\nAs both this plugin and the WeChat mini program use the same BLE protocol, only one of them can connect at the same time (as long as this plugin is enabled and started, even if the accessory is not added to Home).\n\nDue to the lack of read-back interface, this plugin can be out-of-sync with the actual device. It is not aware of external changes: turning on/off physically, pressing the physical buttons, or changes made by the mini program. In those cases, auto-off will not work, and the accessory status may be out-of-sync.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Accessory Name",
"type": "string",
"required": true,
"default": "Divergence Meter"
},
"use24H": {
"title": "Use 24H for Time Display",
"type": "boolean",
"default": "true"
},
"autoOff": {
"title": "Auto Off",
"type": "boolean",
"default": "true",
"description": "If enabled, turn off the Divergence Meter after some time since the last operation (turning on, changing mode, etc.)"
},
"autoOffTime": {
"title": "Auto-Off After (Seconds)",
"type": "integer",
"minimum": 1,
"default": 300
},
"randomSwitchName": {
"title": "Random Worldline Switch Accessory Name",
"type": "string",
"default": "Random Worldline",
"description": "Turn on the switch to start randomization. Turn off to settle."
},
"randomMin": {
"title": "Controlled Random Min",
"type": "number",
"default": "0.000000",
"description": "Do you know how a negative divergence value is displayed? Try it out"
},
"randomMax": {
"title": "Controlled Random Max",
"type": "number",
"default": "0.999999"
},
"worldlines": {
"title": "Customized Worldlines",
"type": "array",
"items": {
"title": "Customized Worldline",
"type": "string",
"minLength": 8,
"maxLength": 8,
"required": true,
"default": "0.000000"
}
},
"scanningRestartDelay": {
"title": "BLE Scanning Restart Delay (ms)",
"type": "integer",
"minimum": 1,
"default": 10000,
"description": "When multiple plugins use BLE, they may interfere with each other. If that is the case, try increasing this number."
}
}
}
}