forked from talrhv/tuya-homebridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
210 lines (210 loc) · 4.85 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"pluginAlias": "TuyaPlatform",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Official Tuya Homebridge plugin, supported by Tuya Developers.",
"footerDisplay": "",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "TuyaPlatform",
"description": "You shouldn't need to change this."
},
"options": {
"title": "",
"type": "object",
"required": true,
"properties": {
"username": {
"title": "Username",
"type": "string",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true
},
"accessId": {
"title": "Access ID",
"type": "string",
"required": true
},
"accessKey": {
"title": "Access Key",
"type": "string",
"required": true
},
"lang": {
"title": "Language Code",
"type": "string",
"default": "en",
"description": "Your two letter language code",
"required": true
},
"projectType": {
"title": "Project Type",
"type": "string",
"default": "form",
"oneOf": [
{
"title": "PaaS",
"enum": [
"2"
]
},
{
"title": "Custom",
"enum": [
"1"
]
}
],
"required": true
},
"appSchema": {
"title": "PaaS Platform",
"type": "string",
"default": "form",
"oneOf": [
{
"title": "Tuya Smart",
"enum": [
"tuyaSmart"
]
},
{
"title": "Smart Life",
"enum": [
"smartlife"
]
}
],
"required": true
},
"countryCode": {
"title": "Country Code",
"type": "number",
"default": "",
"description": "Your two integer country code",
"required": true
},
"valve": {
"title": "switch with timer",
"type": "array",
"description": "This feature let you use the switch as a valve accessory. it means that you can set countdown directly through the home app which is great for boiler switch the only issue is that valve accessories do not support automation, it can be set only through Tuya / SmartLife App.",
"items": {
"type": "object",
"properties": {
"deviceId": {
"title": "Device Id",
"type": "string"
},
"isActive": {
"title": "active",
"type": "boolean",
"default": true
}
}
}
},
"motion": {
"title": "Motion sensors",
"type": "array",
"description": "There are 2 types of motion sensors: one that goes from detection mode to idle in about 1-2 seconds (like an alarm motion sensor) and one that you can set the time between detection and idle manually through the Tuya / SmartLife app. this configuration let you change the first type of the motion sensors to custom detection time.",
"items": {
"type": "object",
"properties": {
"deviceId": {
"title": "Device Id",
"type": "string"
},
"overrideTuya": {
"title": "Enable time modification",
"type": "integer",
"description": "choose this if you want to override the original time settings. this will work only for the first type of motion sensors. choosing 0 will disable the time modification.",
"default": 0,
"oneOf": [
{
"title": "0",
"enum": [
0
]
},
{
"title": "15",
"enum": [
15
]
},
{
"title": "30",
"enum": [
30
]
},
{
"title": "45",
"enum": [
45
]
},
{
"title": "60",
"enum": [
60
]
},
{
"title": "75",
"enum": [
75
]
},
{
"title": "90",
"enum": [
90
]
},
{
"title": "105",
"enum": [
105
]
},
{
"title": "120",
"enum": [
120
]
}
]
}
}
}
},
"ignoreDevices": {
"title": "ignore specific devices by their device id.",
"description": "for those who wants to use other kind of tuya plugins and don't want to deal with double accessories.",
"type": "array",
"items": {
"title": "Device Id",
"type": "string"
}
},
"debug": {
"title": "Enable Debug Logging",
"type": "boolean",
"default": false,
"required": true
}
}
}
}
}
}