-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.schema.json
141 lines (141 loc) · 5.19 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
{
"pluginAlias": "xiaomifan",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for Xiaomi Fans",
"footerDisplay": "For a detailed description, see the [README](https://github.com/merdok/homebridge-xiaomi-fan#platform-configuration-fields)",
"schema": {
"devices": {
"title": "Devices",
"type": "array",
"required": true,
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of your fan.",
"type": "string",
"default": "My Xiaomi Fan",
"minLength": 1,
"required": true
},
"ip": {
"title": "Fan ip address",
"description": "The ip address of your fan.",
"type": "string",
"format": "ipv4",
"required": true
},
"token": {
"title": "Fan device token",
"description": "The token of your fan.",
"type": "string",
"required": true
},
"deviceId": {
"title": "Fan device id",
"description": "The device id of your fan.",
"type": "string",
"required": false
},
"model": {
"title": "The fan model",
"description": "The model of your fan. If specified then the accessory will be created instantly without the need to first discover and identify the fan.",
"type": "string",
"required": false
},
"prefsDir": {
"title": "Prefs directory",
"description": "The location where to store fan information. Default is: ~/.homebridge/.xiaomiFan",
"type": "string",
"required": false
},
"pollingInterval": {
"title": "Background polling interval",
"description": "How often to check the status of the fan in seconds.",
"type": "number",
"default": 5,
"required": false
},
"deepDebugLog": {
"title": "Enable deep debug log",
"description": "Enables additional more detailed debug log. Useful when trying to figure out issues with the plugin.",
"type": "boolean"
},
"buzzerControl": {
"title": "Buzzer control service",
"description": "Whether to show buzzer control buttons.",
"type": "boolean",
"default": true,
"required": false
},
"ledControl": {
"title": "Led control service",
"description": "Whether to show led control buttons.",
"type": "boolean",
"default": true,
"required": false
},
"naturalModeControl": {
"title": "Natural mode control service",
"description": "Whether to show a switch which allows to quickly enable/disable the natural mode. Only on supported devices!",
"type": "boolean",
"default": true,
"required": false
},
"sleepModeControl": {
"title": "Sleep mode control service",
"description": "Whether to show a switch which allows to quickly enable/disable the sleep mode. Only on supported devices!",
"type": "boolean",
"default": true,
"required": false
},
"moveControl": {
"title": "Move control service",
"description": "Whether to show switches which allows to move the fan left or right. Only on supported devices!",
"type": "boolean",
"default": false,
"required": false
},
"shutdownTimer": {
"title": "Shutdown timer service",
"description": "Show a slider (light bulb) to control the auto shutdown timer.",
"type": "boolean",
"default": false,
"required": false
},
"angleButtons": {
"title": "Angle buttons",
"description": "Allows to create buttons that can switch between oscillation angles. Only on supported devices!",
"type": "array",
"items": {
"type": "integer"
}
},
"verticalAngleButtons": {
"title": "Vertical angle buttons",
"description": "Allows to create buttons that can switch between vertical oscillation angles. Only on supported devices!",
"type": "array",
"items": {
"type": "integer"
}
},
"ioniserControl": {
"title": "Ioniser control service",
"description": "Show a switch which allows to quickly enable/disable the ioniser on your fan. Only on supported devices!",
"type": "boolean",
"default": false,
"required": false
},
"fanLevelControl": {
"title": "Fan level service",
"description": "Show fan level switches which allow to change the fan level. Only on supported devices!",
"type": "boolean",
"required": false
}
}
}
}
}
}