forked from MrTomAsh/homebridge-ewelink
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathconfig.schema.json
122 lines (122 loc) · 4.66 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
{
"pluginAlias":"eWeLink",
"pluginType":"platform",
"headerDisplay":"Homebridge plugin to control Sonoff relays with OEM firmware. It uses the same API as the iOS app to communicate with your devices.",
"footerDisplay":"If you have any suggestions, please open an issue on [GitHub](https://github.com/howanghk/homebridge-ewelink/issues).",
"schema":{
"type":"object",
"properties":{
"name":{
"type":"string",
"title":"Name",
"default":"eWeLink"
},
"countryCode":{
"type":"integer",
"title":"Country Code",
"description":"The telephone country code from where you are (based on your public IP).",
"placeholder":"1",
"maximum":999
},
"phoneNumber":{
"type":"string",
"title":"Phone Number",
"description":"The phone number linked to your eWeLink account. Leave blank if you use your email instead.",
"placeholder":""
},
"email":{
"type":"string",
"title":"Email Address",
"description":"The email address linked to your eWeLink account. Leave blank if you use your phone number instead.",
"placeholder":""
},
"password":{
"type":"string",
"title":"Password",
"placeholder":"",
"description":"The password for your eWeLink account."
},
"imei":{
"type":"string",
"title":"IMEI",
"default":"01234567-89AB-CDEF-0123-456789ABCDEF",
"description":"Only change this if you need to."
},
"groups":{
"type":"array",
"title":"Groups",
"description":"You can group channels of multi-switch devices to simulate another accessory instead of having each switch separately. Currently, only 'blind' (WindowCovering) is supported.",
"items":{
"type":"object",
"properties":{
"type":{
"type":"string",
"title":"Type",
"default":"blind",
"description":"A description of this group. Currently must be 'blind'."
},
"deviceId":{
"type":"string",
"title":"Device ID",
"description":"Device ID from your eWelink app."
},
"relay_up":{
"type":"number",
"title":"Relay Up",
"description":"Relay number for the up motor."
},
"relay_down":{
"type":"number",
"title":"Relay Down",
"description":"Relay number for the down motor."
},
"time_up":{
"type":"number",
"title":"Time Up",
"description":"Total time in seconds to fully open blinds (from closed)."
},
"time_down":{
"type":"number",
"title":"Time Down",
"description":"Total time in seconds to completely close blinds (from open)."
},
"time_botton_margin_up":{
"type":"number",
"title":"Time Bottom Margin Up",
"description":"Please refer <a href=\"https://github.com/manolab/homebridge-sonoff-stateful-blinds#readme\" target=\"_blank\">to this link</a> for more information about this setting."
},
"time_botton_margin_down":{
"type":"number",
"title":"Time Bottom Margin Down",
"description":"Please refer <a href=\"https://github.com/manolab/homebridge-sonoff-stateful-blinds#readme\" target=\"_blank\">to this link</a> for more information about this setting."
},
"handle_api_changes":{
"type":"boolean",
"default":true,
"title":"Handle API Changes",
"description":"Uncheck if you don't want this group to respond to eWeLink App changes."
}
}
}
}
},
"oneOf":[
{
"required":[
"email"
]
},
{
"required":[
"phoneNumber"
]
}
],
"required":[
"name",
"countryCode",
"password",
"imei"
]
}
}