forked from jimhe/homebridge-infinitude
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
106 lines (106 loc) · 4.5 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
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"pluginAlias": "InfinitudePlatform",
"pluginType": "platform",
"singular": true,
"headerDisplay": "<p align=\"center\"><img width=\"30%\" src=\"https://user-images.githubusercontent.com/8211291/131715404-6aa429a1-6a57-447c-b1b6-7ac84ee79977.jpg\"</p>",
"schema": {
"name": {
"default": "Infinitude",
"type": "string",
"required": true,
"Description": "Name for Logs. Intentionally Hidden.",
"condition": {
"functionBody": "return model.hidden === 'onPurpose';"
}
},
"thermostats": {
"type": "array",
"items": {
"title": "Thermostats",
"description": "Add one thermostat for each instance of Infinitude",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true
},
"advancedDetails": {
"type": "object",
"title": "Detailed Information",
"expandable": "true",
"properties": {
"manufacturer": {
"title": "Manufacturer",
"default": "Default-Manufacturer",
"type": "string"
},
"model": {
"title": "Model",
"default": "Default-Model",
"type": "string"
},
"serial": {
"title": "Serial Number",
"default": "Default-SerialNumber",
"type": "string"
}
}
},
"url": {
"title": "Infinitude URL",
"placeholder": "http://{host}:{port}",
"type": "string",
"format": "uri",
"required": true
},
"holdUntil": {
"title": "Time to hold",
"description": "Time to hold until (will hold forever if not specified), also used when no activity is scheduled",
"type": "string",
"pattern": "^([0-1][0-9]|2[0-3]):[0-5][0-9]$"
},
"shutOffAway": {
"title": "Away shut off",
"description": "Set system to Away when set to Off in HomeKit",
"type": "boolean",
"default": false
},
"holdUntilNextActivity": {
"title": "Activity Hold",
"description": "Hold until next scheduled activity for this system",
"type": "boolean",
"default": false
},
"useFan": {
"title": "Configure Fan",
"description": "Create an accessory for the fan blower",
"type": "boolean",
"default": false
},
"useOutdoorTemperatureSensor": {
"title": "Configure Outdoor Sensor",
"description": "Create outdoor temperature sensor for this system",
"type": "boolean",
"default": true
},
"sensorpoll": {
"title": "Sensor Update Frequency",
"description": "Requests Current Temperature Update on set interval in milliseconds",
"type": "number",
"default": 120000,
"condition": {
"functionBody": "return model.thermostats[arrayIndices].useOutdoorTemperatureSensor === true;"
}
}
}
}
},
"verbose": {
"title": "Verbose Logging",
"description": "Enable additional logging for diagnosing issues",
"type": "boolean",
"default": false
}
}
}