-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconfig.schema.json
155 lines (155 loc) · 4.59 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"pluginAlias": "MiHumidifier",
"pluginType": "platform",
"schema": {
"devices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"disabled": {
"title": "Disable the device",
"type": "boolean",
"default": false
},
"name": {
"title": "Name",
"type": "string",
"default": "Humidifier",
"minLength": 1
},
"address": {
"title": "IP address",
"type": "string",
"required": true
},
"token": {
"title": "Token",
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"required": true
},
"model": {
"title": "Model",
"type": "string",
"enum": [
"zhimi.humidifier.v1",
"zhimi.humidifier.ca1",
"zhimi.humidifier.cb1",
"zhimi.humidifier.ca4",
"deerma.humidifier.mjjsq",
"deerma.humidifier.jsq1",
"deerma.humidifier.jsq2w",
"deerma.humidifier.jsq3",
"deerma.humidifier.jsq4",
"deerma.humidifier.jsq5",
"deerma.humidifier.jsqs",
"shuii.humidifier.jsq001"
],
"default": "zhimi.humidifier.v1"
},
"updateInterval": {
"title": "Parameters update interval",
"type": "number",
"default": 30
},
"autoSwitchToHumidityMode": {
"title": "Automatically switches mode to \"humidity\" when target humidity is changed.",
"type": "boolean",
"default": false
},
"disableTargetHumidity": {
"title": "Disables ability to control target humidity. In this case long press on device in Home.app will allow to control fan speed instead of target humidity.",
"type": "boolean",
"default": false
},
"temperatureSensor": {
"title": "Temperature sensor",
"type": "object",
"properties": {
"enabled": {
"title": "Enable temperature sensor",
"type": "boolean",
"default": false
},
"name": {
"title": "Temperature sensor name",
"type": "string",
"default": "Temperature",
"minLength": 1
}
}
},
"humiditySensor": {
"title": "Humidity sensor",
"type": "object",
"properties": {
"enabled": {
"title": "Enable humidity sensor",
"type": "boolean",
"default": false
},
"name": {
"title": "Humidity sensor name",
"type": "string",
"default": "Humidity",
"minLength": 1
}
}
},
"ledBulb": {
"title": "Led backlight bulb",
"type": "object",
"properties": {
"enabled": {
"title": "Enable led backlight bulb",
"type": "boolean",
"default": false
},
"name": {
"title": "Led backlight bulb name",
"type": "string",
"default": "Led",
"minLength": 1
}
}
},
"buzzerSwitch": {
"title": "Buzzer switch",
"type": "object",
"properties": {
"enabled": {
"title": "Enable buzzer switch",
"type": "boolean",
"default": false
},
"name": {
"title": "Buzzer switch name",
"type": "string",
"default": "Buzzer",
"minLength": 1
}
}
},
"cleanModeSwitch": {
"title": "Clean mode switch (only for zhimi.humidifier.ca4)",
"type": "object",
"properties": {
"enabled": {
"title": "Enable clean mode switch",
"type": "boolean",
"default": false
},
"name": {
"title": "Clean mode switch name",
"type": "string",
"default": "Clean Mode",
"minLength": 1
}
}
}
}
}
}
}
}