-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
platform.schema.json
143 lines (143 loc) · 6.58 KB
/
platform.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
{
"plugin_alias": "Hubitat-v2",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "This should default to Hubitat-v2",
"type": "string",
"default": "Hubitat-v2",
"required": true,
"readOnly": true
},
"app_url_local": {
"title": "App Url Local",
"description": "To get this information, open Homebridge App under Hubitat UI, and tap on 'View Generated Config for HomeBridge'",
"type": "string",
"required": true
},
"app_url_cloud": {
"title": "App Url Cloud",
"description": "To get this information, open Homebridge App under Hubitat UI, and tap on 'View Generated Config for HomeBridge'",
"type": "string",
"required": true
},
"use_cloud": {
"title": "Use Cloud Endpoint instead of local?",
"description": "This will enable the plugin to communicate with the hubitat app via the cloud url. (Mostly useful for troubleshooting local communication issues via ports)",
"type": "boolean",
"required": true,
"default": false
},
"app_id": {
"title": "App ID",
"description": "To get this information, open Homebridge App under Hubitat UI, and tap on 'View Generated Config for HomeBridge'",
"type": "integer",
"required": true
},
"access_token": {
"title": "App Token",
"description": "To get this information, open Homebridge App under Hubitat UI, and tap on 'View Generated Config for HomeBridge'",
"type": "string",
"required": true
},
"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
},
"polling_seconds": {
"title": "Polling Seconds}",
"description": "This is defines how often the plugin will poll the hub on it's own for updated devices and states (This is only used to just make sure everything is in sync state wise. More than once every hour is not recommended)",
"type": "integer",
"maximum": 86400,
"minimum": 60,
"default": 3600,
"required": false
},
"round_levels": {
"title": "Round Levels?",
"description": "Round levels <3% to 0% and >97% to 100%",
"type": "boolean",
"required": false,
"default": true
},
"adaptive_lighting": {
"title": "Support Adaptive Lighting?",
"description": "Adaptive Lighting Description: https://appleinsider.com/articles/20/11/08/how-to-use-homekit-adaptive-lighting-that-adjust-your-lights-throughout-the-day.",
"type": "boolean",
"required": false,
"default": true
},
"adaptive_lighting_offset": {
"title": "Adaptive Lighting (ColorTemp in Mired) Offset",
"description": "For example supplying a value of -10 will reduce the ColorTemperature, which is calculated from the transition schedule, by 10 mired for every change.",
"type": "integer",
"minimum": -100,
"maximum": 100,
"default": 0,
"required": false
},
"consider_fan_by_name": {
"title": "Assign Device as Fan when Device has the word Fan in the Name?",
"description": "By default the plugin will identify a fan device by using a devices label, and whether it has Fan in the label.",
"type": "boolean",
"required": false,
"default": true
},
"consider_light_by_name": {
"title": "Assign Device as Light when Device has the word Light in the Name?",
"description": "By default the plugin will not identify a Light device by using a devices label, and whether it has Light in the label.",
"type": "boolean",
"required": false,
"default": false
},
"temperature_unit": {
"title": "Define Temperature Unit",
"type": "string",
"default": "F",
"enum": [
{
"text": "Fahrenheit",
"value": "F"
},
{
"text": "Celcius",
"value": "C"
}
],
"required": true
},
"validateTokenId": {
"title": "Validate App Endpoint Access Token and AppID?",
"description": "This will help make sure your plugin is receiving data from the correct Hubitat App if you have multiple instances of the App.",
"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 log output?",
"description": "This will log device event changes received by Hubitat.",
"type": "boolean",
"required": false,
"default": true
}
}
}
}
}
}