-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.schema.json
119 lines (119 loc) · 3.9 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
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"pluginAlias": "philipsAir",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge Plugin for Philips Air Purifiers.",
"footerDisplay": "Raise [Issues](https://github.com/NikDevx/homebridge-philips-air/issues) or submit [Pull Requests](https://github.com/NikDevx/homebridge-philips-air/pulls) on [Project Page](https://github.com/NikDevx/homebridge-philips-air).",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "Philips Air",
"description": "A unique name for the accessory. It will be used as the accessory name in HomeKit."
},
"timeout_seconds": {
"title": "Timeout Seconds",
"type": "integer",
"placeholder": 5,
"description": "Number of seconds to wait for a response from the purifier."
},
"devices": {
"title": "Devices",
"type": "array",
"required": true,
"minLength": 1,
"items": {
"title": "Air Purifier",
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"placeholder": "Living Room Purifier",
"description": "Name of your device."
},
"ip": {
"title": "IP Address",
"type": "string",
"required": true,
"format": "ipv4",
"placeholder": "10.0.1.16",
"description": "IP address of your device."
},
"protocol": {
"title": "Protocol",
"type": "string",
"required": true,
"default": "http",
"oneOf": [
{
"title": "HTTP",
"enum": [
"http"
]
},
{
"title": "Plain CoAP",
"enum": [
"plain_coap"
]
},
{
"title": "CoAP",
"enum": [
"coap"
]
}
],
"description": "Protocol used by your device."
},
"sleep_speed": {
"title": "Sleep Speed",
"type": "boolean",
"description": "Does this device support 'sleep' speed?"
},
"light_control": {
"title": "Light Control",
"type": "boolean",
"description": "Expose device lights as lightbulbs."
},
"allergic_func": {
"title": "Allergic mode function",
"type": "boolean",
"description": "Does this device support 'allergic' function?"
},
"temperature_sensor": {
"title": "Temperature sensor",
"type": "boolean",
"description": "Expose device temperature as temperature sensor."
},
"humidity_sensor": {
"title": "Humidity sensor",
"type": "boolean",
"description": "Expose device humidity as humidity sensor."
},
"humidifier": {
"title": "Humidifier",
"type": "boolean",
"description": "Adding humidified support."
},
"logger": {
"title": "Logger",
"type": "boolean",
"description": "Getting data from humidity and temp sensors and save value into txt file."
},
"polling": {
"title": "Polling interval in seconds",
"type": "integer",
"description": "Adding a refresh time for the all sensors and logger in seconds.."
}
}
}
}
}
}
}