forked from tonesto7/homebridge-smartthings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
168 lines (166 loc) · 6.97 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
{
"pluginAlias": "SmartThings-v2",
"pluginType": "platform",
"singular": true,
"footerDisplay": "If you need help or have issues visit: [issues](https://github.com/tonesto7/homebridge-smartthings-v2/issues)",
"schema": {
"name": {
"title": "Name",
"description": "This should default to SmartThings-v2",
"type": "string",
"default": "SmartThings-v2",
"required": true
},
"app_url": {
"title": "App Url",
"description": "To get this information, open Homebridge (SmartThings) SmartApp in your SmartThings Classic Mobile App, and tap on 'View Configuration Data for Homebridge'",
"type": "string",
"required": true
},
"app_id": {
"title": "App ID",
"description": "To get this information, open Homebridge (SmartThings) SmartApp in your SmartThings Classic Mobile App, and tap on 'View Configuration Data for Homebridge'",
"type": "string",
"required": true
},
"access_token": {
"title": "App Token",
"description": "To get this information, open Homebridge (SmartThings) SmartApp in your SmartThings Classic Mobile App, and tap on 'View Configuration Data for Homebridge'",
"type": "string",
"required": true
},
"communityUserName": {
"title": "SmartThings Community Username",
"description": "Only need to set this when you are having issues with the plugin and you want me to be able to identify your reported exception errors.",
"type": "string",
"required": false
},
"direct_ip": {
"title": "Direct IP",
"description": "Most installations won't need this, but if for any reason it can't identify your ip address correctly, use this setting to force the IP presented to SmartThings for the hub to send to.",
"type": "string",
"required": false
},
"direct_port": {
"title": "Direct Port",
"description": "This is the port that the plugin will listen on for traffic from your hub. Make sure your firewall allows incoming traffic on this port from your hub's IP address. (This is now a dynamic port selection)",
"type": "integer",
"maximum": 65535,
"default": 8000,
"required": false
},
"temperature_unit": {
"title": "Define Temperature Unit",
"type": "string",
"default": "F",
"oneOf": [{
"title": "Fahrenheit",
"enum": [
"F"
]
},
{
"title": "Celcius",
"enum": [
"C"
]
}
]
},
"validateTokenId": {
"title": "Validate SmartApp Access Token and AppID?",
"description": "This will help secure your plugin by validating that the plugin is receiving data from the correct smartapp if you have multiple instances of the SmartApp.",
"type": "boolean",
"required": true,
"default": false
},
"logConfig": {
"type": "object",
"properties": {
"debug": {
"title": "Enable Debug logging?",
"description": "This will show just about every log output available.",
"type": "boolean",
"required": false,
"default": false
},
"showChanges": {
"title": "Show Device Events in the Logs?",
"description": "This will log device event changes received by SmartThings.",
"type": "boolean",
"required": false,
"default": true
},
"hideTimestamp": {
"title": "Hide TimeStamp Prefix inLogs?",
"description": "This will remove the prefix from all console log output.",
"type": "boolean",
"required": false,
"default": true
},
"hideNamePrefix": {
"title": "Hide Plugin Name Prefix in Logs?",
"description": "This will remove the prefix from all console log output.",
"type": "boolean",
"required": false,
"default": true
},
"file": {
"type": "object",
"properties": {
"enabled": {
"title": "Enable Logging to file",
"description": "This log will be created as homebridge-smartthings-v2.log in the same folder as this config.json file.",
"type": "boolean",
"required": false,
"default": true
},
"level": {
"title": "Log File Output Level",
"type": "string",
"default": "good",
"oneOf": [{
"title": "Debug",
"enum": [
"debug"
]
},
{
"title": "Good",
"enum": [
"good"
]
},
{
"title": "Notice",
"enum": [
"pink"
]
},
{
"title": "Alert",
"enum": [
"alert"
]
},
{
"title": "Warnings",
"enum": [
"warn"
]
},
{
"title": "Errors",
"enum": [
"error"
]
}
],
"required": false
}
}
}
}
}
}
}