homebridge-nest-accfactory 0.0.4-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +176 -0
- package/README.md +121 -0
- package/config.schema.json +107 -0
- package/dist/HomeKitDevice.js +441 -0
- package/dist/HomeKitHistory.js +2835 -0
- package/dist/camera.js +1276 -0
- package/dist/doorbell.js +122 -0
- package/dist/index.js +35 -0
- package/dist/nexustalk.js +741 -0
- package/dist/protect.js +240 -0
- package/dist/protobuf/google/rpc/status.proto +91 -0
- package/dist/protobuf/google/rpc/stream_body.proto +26 -0
- package/dist/protobuf/google/trait/product/camera.proto +53 -0
- package/dist/protobuf/googlehome/foyer.proto +208 -0
- package/dist/protobuf/nest/messages.proto +8 -0
- package/dist/protobuf/nest/services/apigateway.proto +107 -0
- package/dist/protobuf/nest/trait/audio.proto +7 -0
- package/dist/protobuf/nest/trait/cellular.proto +313 -0
- package/dist/protobuf/nest/trait/debug.proto +37 -0
- package/dist/protobuf/nest/trait/detector.proto +41 -0
- package/dist/protobuf/nest/trait/diagnostics.proto +87 -0
- package/dist/protobuf/nest/trait/firmware.proto +221 -0
- package/dist/protobuf/nest/trait/guest.proto +105 -0
- package/dist/protobuf/nest/trait/history.proto +345 -0
- package/dist/protobuf/nest/trait/humanlibrary.proto +19 -0
- package/dist/protobuf/nest/trait/hvac.proto +1353 -0
- package/dist/protobuf/nest/trait/input.proto +29 -0
- package/dist/protobuf/nest/trait/lighting.proto +61 -0
- package/dist/protobuf/nest/trait/located.proto +193 -0
- package/dist/protobuf/nest/trait/media.proto +68 -0
- package/dist/protobuf/nest/trait/network.proto +352 -0
- package/dist/protobuf/nest/trait/occupancy.proto +373 -0
- package/dist/protobuf/nest/trait/olive.proto +15 -0
- package/dist/protobuf/nest/trait/pairing.proto +85 -0
- package/dist/protobuf/nest/trait/product/camera.proto +283 -0
- package/dist/protobuf/nest/trait/product/detect.proto +67 -0
- package/dist/protobuf/nest/trait/product/doorbell.proto +18 -0
- package/dist/protobuf/nest/trait/product/guard.proto +59 -0
- package/dist/protobuf/nest/trait/product/protect.proto +344 -0
- package/dist/protobuf/nest/trait/promonitoring.proto +14 -0
- package/dist/protobuf/nest/trait/resourcedirectory.proto +32 -0
- package/dist/protobuf/nest/trait/safety.proto +119 -0
- package/dist/protobuf/nest/trait/security.proto +516 -0
- package/dist/protobuf/nest/trait/selftest.proto +78 -0
- package/dist/protobuf/nest/trait/sensor.proto +291 -0
- package/dist/protobuf/nest/trait/service.proto +46 -0
- package/dist/protobuf/nest/trait/structure.proto +85 -0
- package/dist/protobuf/nest/trait/system.proto +51 -0
- package/dist/protobuf/nest/trait/test.proto +15 -0
- package/dist/protobuf/nest/trait/ui.proto +65 -0
- package/dist/protobuf/nest/trait/user.proto +98 -0
- package/dist/protobuf/nest/trait/voiceassistant.proto +30 -0
- package/dist/protobuf/nestlabs/eventingapi/v1.proto +83 -0
- package/dist/protobuf/nestlabs/gateway/v1.proto +273 -0
- package/dist/protobuf/nestlabs/gateway/v2.proto +96 -0
- package/dist/protobuf/nestlabs/history/v1.proto +73 -0
- package/dist/protobuf/root.proto +64 -0
- package/dist/protobuf/wdl-event-importance.proto +11 -0
- package/dist/protobuf/wdl.proto +450 -0
- package/dist/protobuf/weave/common.proto +144 -0
- package/dist/protobuf/weave/trait/audio.proto +12 -0
- package/dist/protobuf/weave/trait/auth.proto +22 -0
- package/dist/protobuf/weave/trait/description.proto +32 -0
- package/dist/protobuf/weave/trait/heartbeat.proto +38 -0
- package/dist/protobuf/weave/trait/locale.proto +20 -0
- package/dist/protobuf/weave/trait/network.proto +24 -0
- package/dist/protobuf/weave/trait/pairing.proto +8 -0
- package/dist/protobuf/weave/trait/peerdevices.proto +18 -0
- package/dist/protobuf/weave/trait/power.proto +86 -0
- package/dist/protobuf/weave/trait/schedule.proto +76 -0
- package/dist/protobuf/weave/trait/security.proto +343 -0
- package/dist/protobuf/weave/trait/telemetry/tunnel.proto +37 -0
- package/dist/protobuf/weave/trait/time.proto +16 -0
- package/dist/res/Nest_camera_connecting.h264 +0 -0
- package/dist/res/Nest_camera_connecting.jpg +0 -0
- package/dist/res/Nest_camera_off.h264 +0 -0
- package/dist/res/Nest_camera_off.jpg +0 -0
- package/dist/res/Nest_camera_offline.h264 +0 -0
- package/dist/res/Nest_camera_offline.jpg +0 -0
- package/dist/res/Nest_camera_transfer.jpg +0 -0
- package/dist/streamer.js +344 -0
- package/dist/system.js +3112 -0
- package/dist/tempsensor.js +99 -0
- package/dist/thermostat.js +1026 -0
- package/dist/weather.js +205 -0
- package/dist/webrtc.js +55 -0
- package/package.json +66 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/duration.proto";
|
|
4
|
+
import "google/protobuf/timestamp.proto";
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "../../../nest/trait/selftest.proto";
|
|
7
|
+
import "../../../weave/common.proto";
|
|
8
|
+
|
|
9
|
+
package nest.trait.product.protect;
|
|
10
|
+
|
|
11
|
+
message SelfTestTrait {
|
|
12
|
+
google.protobuf.Timestamp lastMstStart = 1;
|
|
13
|
+
google.protobuf.Timestamp lastMstEnd = 2;
|
|
14
|
+
bool lastMstCancelled = 3;
|
|
15
|
+
google.protobuf.Timestamp lastAstStart = 4;
|
|
16
|
+
google.protobuf.Timestamp lastAstEnd = 5;
|
|
17
|
+
|
|
18
|
+
enum SelfTestType {
|
|
19
|
+
SELF_TEST_TYPE_UNSPECIFIED = 0;
|
|
20
|
+
SELF_TEST_TYPE_AST = 1;
|
|
21
|
+
SELF_TEST_TYPE_MST = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum StartSelfTestStatus {
|
|
25
|
+
START_SELF_TEST_STATUS_UNSPECIFIED = 0;
|
|
26
|
+
START_SELF_TEST_STATUS_OK = 1;
|
|
27
|
+
START_SELF_TEST_STATUS_FAILED = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
enum EndSelfTestStatus {
|
|
31
|
+
END_SELF_TEST_STATUS_UNSPECIFIED = 0;
|
|
32
|
+
END_SELF_TEST_STATUS_OK = 1;
|
|
33
|
+
END_SELF_TEST_STATUS_FAILED = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
enum MstTrigger {
|
|
37
|
+
MST_TRIGGER_UNSPECIFIED = 0;
|
|
38
|
+
MST_TRIGGER_BUTTON = 1;
|
|
39
|
+
MST_TRIGGER_REMOTE = 2;
|
|
40
|
+
MST_TRIGGER_APP = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message StartSelfTestRequest {
|
|
44
|
+
SelfTestType type = 1;
|
|
45
|
+
nest.trait.selftest.SelfTestRunnerTrait.TestId testId = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message StartSelfTestResponse {
|
|
49
|
+
StartSelfTestStatus status = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message EndSelfTestRequest {
|
|
53
|
+
SelfTestType type = 1;
|
|
54
|
+
nest.trait.selftest.SelfTestRunnerTrait.TestId testId = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message EndSelfTestResponse {
|
|
58
|
+
EndSelfTestStatus status = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message MstTransitionEvent {
|
|
62
|
+
MstTrigger trigger = 1;
|
|
63
|
+
uint32 newState = 2;
|
|
64
|
+
uint32 oldState = 3;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message AstTransitionEvent {
|
|
68
|
+
bool orchestrator = 1;
|
|
69
|
+
uint32 newState = 2;
|
|
70
|
+
uint32 oldState = 3;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message LegacyStructureSelfTestTrait {
|
|
75
|
+
bool lastMstCancelled = 1;
|
|
76
|
+
bool mstInProgress = 2;
|
|
77
|
+
google.protobuf.Timestamp lastMstStartUtcSecs = 3;
|
|
78
|
+
google.protobuf.Timestamp lastMstEndUtcSecs = 4;
|
|
79
|
+
google.protobuf.Timestamp lastMstSuccessUtcSecs = 5;
|
|
80
|
+
bool astInProgress = 6;
|
|
81
|
+
google.protobuf.Timestamp lastAstStartUtcSecs = 7;
|
|
82
|
+
google.protobuf.Timestamp lastAstEndUtcSecs = 8;
|
|
83
|
+
google.protobuf.Timestamp astRequestUtcSecs = 9;
|
|
84
|
+
google.protobuf.Timestamp astSkipUtcSecs = 10;
|
|
85
|
+
repeated uint64 astParticipants = 11;
|
|
86
|
+
|
|
87
|
+
enum SelfTestType {
|
|
88
|
+
SELF_TEST_TYPE_UNSPECIFIED = 0;
|
|
89
|
+
SELF_TEST_TYPE_AST = 1;
|
|
90
|
+
SELF_TEST_TYPE_MST = 2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
enum StartSelfTestStatus {
|
|
94
|
+
START_SELF_TEST_STATUS_UNSPECIFIED = 0;
|
|
95
|
+
START_SELF_TEST_STATUS_OK = 1;
|
|
96
|
+
START_SELF_TEST_STATUS_FAILED = 2;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
enum EndSelfTestStatus {
|
|
100
|
+
END_SELF_TEST_STATUS_UNSPECIFIED = 0;
|
|
101
|
+
END_SELF_TEST_STATUS_OK = 1;
|
|
102
|
+
END_SELF_TEST_STATUS_FAILED = 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message StartSelfTestRequest {
|
|
106
|
+
SelfTestType type = 1;
|
|
107
|
+
nest.trait.selftest.SelfTestRunnerTrait.TestId testId = 2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message StartSelfTestResponse {
|
|
111
|
+
StartSelfTestStatus status = 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message EndSelfTestRequest {
|
|
115
|
+
SelfTestType type = 1;
|
|
116
|
+
nest.trait.selftest.SelfTestRunnerTrait.TestId testId = 2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message EndSelfTestResponse {
|
|
120
|
+
EndSelfTestStatus status = 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message AudioTestTrait {
|
|
125
|
+
AudioTestResult speakerResult = 1;
|
|
126
|
+
AudioTestResult buzzerResult = 2;
|
|
127
|
+
|
|
128
|
+
enum AudioTestSource {
|
|
129
|
+
AUDIO_TEST_SOURCE_UNSPECIFIED = 0;
|
|
130
|
+
AUDIO_TEST_SOURCE_AUTOMATIC = 1;
|
|
131
|
+
AUDIO_TEST_SOURCE_MANUAL = 2;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
enum AudioFaultType {
|
|
135
|
+
AUDIO_FAULT_TYPE_UNSPECIFIED = 0;
|
|
136
|
+
AUDIO_FAULT_TYPE_INCONCLUSIVE_OTHER = 1;
|
|
137
|
+
AUDIO_FAULT_TYPE_INCONCLUSIVE_AMBIENT_NOISE = 2;
|
|
138
|
+
AUDIO_FAULT_TYPE_INCONCLUSIVE_ASYNC_INTER = 4;
|
|
139
|
+
AUDIO_FAULT_TYPE_INCONCLUSIVE_DID_NOT_RUN = 8;
|
|
140
|
+
AUDIO_FAULT_TYPE_INCONCLUSIVE_DROPPED_BUFFER = 16;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message AudioTestResult {
|
|
144
|
+
AudioTestSource source = 1;
|
|
145
|
+
bool testPassed = 2;
|
|
146
|
+
repeated AudioFaultType types = 3;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message AudioTestStartEvent {
|
|
150
|
+
AudioTestSource source = 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message AudioTestEndEvent {
|
|
154
|
+
AudioTestResult speakerResult = 1;
|
|
155
|
+
AudioTestResult buzzerResult = 2;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message ReadyActionTrait {
|
|
160
|
+
enum ReadyActionState {
|
|
161
|
+
READY_ACTION_STATE_UNSPECIFIED = 0;
|
|
162
|
+
READY_ACTION_STATE_IDLE = 1;
|
|
163
|
+
READY_ACTION_STATE_START_UX = 2;
|
|
164
|
+
READY_ACTION_STATE_PAIRING_UX = 3;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
enum ReadyStateChangeReason {
|
|
168
|
+
READY_STATE_CHANGE_REASON_UNSPECIFIED = 0;
|
|
169
|
+
READY_STATE_CHANGE_REASON_TIMEOUT = 1;
|
|
170
|
+
READY_STATE_CHANGE_REASON_BUTTON_PRESS = 2;
|
|
171
|
+
READY_STATE_CHANGE_REASON_BLE_TRIGGER = 3;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message ReadyActionStateChangeEvent {
|
|
175
|
+
ReadyActionState newReadyActionState = 1;
|
|
176
|
+
ReadyActionState previousReadyActionState = 2;
|
|
177
|
+
ReadyStateChangeReason changeReason = 3;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message TrapActionTrait {
|
|
182
|
+
enum TrapStatus {
|
|
183
|
+
TRAP_STATUS_UNSPECIFIED = 0;
|
|
184
|
+
TRAP_STATUS_NONE = 1;
|
|
185
|
+
TRAP_STATUS_LAST_GASP_BEGIN = 2;
|
|
186
|
+
TRAP_STATUS_SAFETY_MCU = 3;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message TrapStatusUpdateEvent {
|
|
190
|
+
TrapStatus newTrapStatus = 1;
|
|
191
|
+
TrapStatus previousTrapStatus = 2;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
message SafetyMCUFaultEvent {
|
|
195
|
+
bool asserted = 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message NightTimePromiseTrait {
|
|
200
|
+
enum NtpState {
|
|
201
|
+
NTP_STATE_UNSPECIFIED = 0;
|
|
202
|
+
NTP_STATE_ALL_CLEAR_NTP_ENABLED = 1;
|
|
203
|
+
NTP_STATE_ALL_CLEAR_NTP_DISABLED = 2;
|
|
204
|
+
NTP_STATE_WARNINGS_DISPLAYED = 3;
|
|
205
|
+
NTP_STATE_WARNINGS_SPOKEN = 4;
|
|
206
|
+
NTP_STATE_CRITICAL_WARNINGS_SPOKEN = 5;
|
|
207
|
+
NTP_STATE_DONE = 6;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message NightTimePromiseEvent {
|
|
211
|
+
NtpState state = 1;
|
|
212
|
+
bool usingRemote = 2;
|
|
213
|
+
bool criticalWarnings = 3;
|
|
214
|
+
uint32 warningCount = 4;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
message ProtectDeviceInfoTrait {
|
|
219
|
+
string deviceExternalColor = 1;
|
|
220
|
+
CertRegion certificationBody = 2;
|
|
221
|
+
|
|
222
|
+
enum CertRegion {
|
|
223
|
+
CERT_REGION_UNSPECIFIED = 0;
|
|
224
|
+
CERT_REGION_US = 1;
|
|
225
|
+
CERT_REGION_EU = 2;
|
|
226
|
+
CERT_REGION_AU = 3;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message AppDailyConnectionStatusEvent {
|
|
230
|
+
google.protobuf.Timestamp wdmDisconnectTime = 1;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
message SafetySummaryTrait {
|
|
235
|
+
repeated DeviceStatus criticalDevices = 1;
|
|
236
|
+
repeated DeviceStatus warningDevices = 2;
|
|
237
|
+
int32 totalCriticalFailures = 3;
|
|
238
|
+
int32 totalWarnings = 4;
|
|
239
|
+
nest.trait.selftest.SelfTestRunnerTrait.TestId testId = 5;
|
|
240
|
+
|
|
241
|
+
enum FailureType {
|
|
242
|
+
FAILURE_TYPE_UNSPECIFIED = 0;
|
|
243
|
+
FAILURE_TYPE_SMOKE = 1;
|
|
244
|
+
FAILURE_TYPE_CO = 2;
|
|
245
|
+
FAILURE_TYPE_TEMP = 4;
|
|
246
|
+
FAILURE_TYPE_HUM = 8;
|
|
247
|
+
FAILURE_TYPE_ALS = 16;
|
|
248
|
+
FAILURE_TYPE_US = 32;
|
|
249
|
+
FAILURE_TYPE_PIR = 64;
|
|
250
|
+
FAILURE_TYPE_BUZZER = 128;
|
|
251
|
+
FAILURE_TYPE_EXPIRED = 256;
|
|
252
|
+
FAILURE_TYPE_EXPIRING = 512;
|
|
253
|
+
FAILURE_TYPE_BATT_VERYLOW = 1024;
|
|
254
|
+
FAILURE_TYPE_BATT_LOW = 2048;
|
|
255
|
+
FAILURE_TYPE_WIFI = 4096;
|
|
256
|
+
FAILURE_TYPE_LED = 8192;
|
|
257
|
+
FAILURE_TYPE_AUDIO = 16384;
|
|
258
|
+
FAILURE_TYPE_POWEROUT = 32768;
|
|
259
|
+
FAILURE_TYPE_OFFLINE = 65536;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message DeviceStatus {
|
|
263
|
+
weave.common.ResourceId resourceId = 1;
|
|
264
|
+
weave.common.ResourceId spokenWhereAnnotation = 2;
|
|
265
|
+
repeated FailureType failures = 3;
|
|
266
|
+
repeated FailureType criticalMask = 4;
|
|
267
|
+
uint32 productId = 5;
|
|
268
|
+
uint32 vendorId = 6;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
message ActionSchedulerTrait {
|
|
273
|
+
message ActionSchedulerOpEvent {
|
|
274
|
+
uint32 opId = 1;
|
|
275
|
+
uint32 actionId = 2;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
message AudioPlayTrait {
|
|
280
|
+
message AudioPlayEvent {
|
|
281
|
+
google.protobuf.UInt32Value sentenceId = 1;
|
|
282
|
+
google.protobuf.StringValue sentenceString = 2;
|
|
283
|
+
repeated uint32 sentenceArgIds = 3;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
message LegacyAlarmHistoryTrait {
|
|
288
|
+
repeated AlarmStatus smokeHistory = 1;
|
|
289
|
+
repeated AlarmStatus coHistory = 2;
|
|
290
|
+
|
|
291
|
+
message AlarmStatus {
|
|
292
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
293
|
+
uint32 status = 2;
|
|
294
|
+
bool synced = 3;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message NightTimePromiseSettingsTrait {
|
|
299
|
+
bool greenLedEnabled = 1;
|
|
300
|
+
NightTimePromiseBrightness greenLedBrightness = 2;
|
|
301
|
+
|
|
302
|
+
enum NightTimePromiseBrightness {
|
|
303
|
+
NIGHT_TIME_PROMISE_BRIGHTNESS_UNSPECIFIED = 0;
|
|
304
|
+
NIGHT_TIME_PROMISE_BRIGHTNESS_LOW = 1;
|
|
305
|
+
NIGHT_TIME_PROMISE_BRIGHTNESS_MEDIUM = 2;
|
|
306
|
+
NIGHT_TIME_PROMISE_BRIGHTNESS_HIGH = 3;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
message OutOfBoxTrait {
|
|
311
|
+
message OutOfBoxFinishedEvent {
|
|
312
|
+
bool success = 1;
|
|
313
|
+
bool defaultLanguageSelected = 2;
|
|
314
|
+
bool currentLanguage = 3;
|
|
315
|
+
bool osmSwapPossible = 4;
|
|
316
|
+
uint32 repeatCount = 5;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
message LegacyProtectDeviceInfoTrait {
|
|
321
|
+
string capabilityIdx = 1;
|
|
322
|
+
bool autoAway = 2;
|
|
323
|
+
google.protobuf.FloatValue capabilityLevel = 3;
|
|
324
|
+
bool linePowerCapable = 4;
|
|
325
|
+
string spSoftwareVersion = 5;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
message LegacyProtectDeviceSettingsTrait {
|
|
329
|
+
google.protobuf.Timestamp replaceByDate = 1;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
message LegacySelfTestSettingsTrait {
|
|
333
|
+
bool astEnabled = 1;
|
|
334
|
+
bool astNotify = 2;
|
|
335
|
+
google.protobuf.Duration astRepeatSecs = 3;
|
|
336
|
+
google.protobuf.Duration astForceSecs = 4;
|
|
337
|
+
google.protobuf.Duration astStartOffsetUtcSecs = 5;
|
|
338
|
+
google.protobuf.Duration astEndOffsetUtcSecs = 6;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message SafetyStructureSettingsTrait {
|
|
342
|
+
string structureHushKey = 1;
|
|
343
|
+
bool phoneHushEnabled = 2;
|
|
344
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package nest.trait.promonitoring;
|
|
4
|
+
|
|
5
|
+
message ProMonitoringSettingsTrait {
|
|
6
|
+
BurglaryMonitoringActivationStatus burglaryMonitoringActivationStatus = 1;
|
|
7
|
+
|
|
8
|
+
enum BurglaryMonitoringActivationStatus {
|
|
9
|
+
BURGLARY_MONITORING_ACTIVATION_STATUS_UNSPECIFIED = 0;
|
|
10
|
+
BURGLARY_MONITORING_ACTIVATION_STATUS_NOT_ACTIVATED = 1;
|
|
11
|
+
BURGLARY_MONITORING_ACTIVATION_STATUS_PENDING = 2;
|
|
12
|
+
BURGLARY_MONITORING_ACTIVATION_STATUS_ACTIVATED = 3;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
import "../../weave/common.proto";
|
|
5
|
+
|
|
6
|
+
package nest.trait.resourcedirectory;
|
|
7
|
+
|
|
8
|
+
message RelatedResourcesTrait {
|
|
9
|
+
map<uint32, RelatedResource> relatedResources = 1;
|
|
10
|
+
|
|
11
|
+
message InterfaceStruct {
|
|
12
|
+
weave.common.InterfaceName interfaceName = 1;
|
|
13
|
+
uint32 version = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message RelatedResource {
|
|
17
|
+
weave.common.ResourceId resourceId = 1;
|
|
18
|
+
weave.common.ResourceName resourceTypeName = 2;
|
|
19
|
+
uint32 resourceVersion = 3;
|
|
20
|
+
google.protobuf.UInt32Value vendorId = 4;
|
|
21
|
+
google.protobuf.UInt32Value productId = 5;
|
|
22
|
+
google.protobuf.StringValue softwareVersion = 6;
|
|
23
|
+
repeated InterfaceStruct interfaces = 7;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message SetRelatedResourcesRequest {
|
|
27
|
+
repeated weave.common.ResourceId relatedResourceId = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message ResetRelatedResoucesRequest {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/duration.proto";
|
|
4
|
+
import "../../weave/common.proto";
|
|
5
|
+
import "../../nest/trait/sensor.proto";
|
|
6
|
+
|
|
7
|
+
package nest.trait.safety;
|
|
8
|
+
|
|
9
|
+
message SafetyAlarmTrait {
|
|
10
|
+
uint32 sessionId = 1;
|
|
11
|
+
AlarmState alarmState = 2;
|
|
12
|
+
SilenceState silenceState = 3;
|
|
13
|
+
|
|
14
|
+
enum AlarmLevel {
|
|
15
|
+
ALARM_LEVEL_UNSPECIFIED = 0;
|
|
16
|
+
ALARM_LEVEL_IDLE = 1;
|
|
17
|
+
ALARM_LEVEL_MONITOR = 2;
|
|
18
|
+
ALARM_LEVEL_MODERATE = 3;
|
|
19
|
+
ALARM_LEVEL_SUBSTANTIAL = 4;
|
|
20
|
+
ALARM_LEVEL_SEVERE = 5;
|
|
21
|
+
ALARM_LEVEL_CRITICAL = 6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum AlarmState {
|
|
25
|
+
ALARM_STATE_UNSPECIFIED = 0;
|
|
26
|
+
ALARM_STATE_IDLE = 1;
|
|
27
|
+
ALARM_STATE_HEADS_UP1 = 2;
|
|
28
|
+
ALARM_STATE_HEADS_UP2 = 3;
|
|
29
|
+
ALARM_STATE_ALARM = 4;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
enum SilenceState {
|
|
33
|
+
SILENCE_STATE_UNSPECIFIED = 0;
|
|
34
|
+
SILENCE_STATE_DISALLOWED = 1;
|
|
35
|
+
SILENCE_STATE_ALLOWED = 2;
|
|
36
|
+
SILENCE_STATE_SILENCED = 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message SafetyAlarmChangeEvent {
|
|
40
|
+
uint32 sessionId = 1;
|
|
41
|
+
AlarmLevel alarmLevel = 2;
|
|
42
|
+
AlarmState alarmState = 3;
|
|
43
|
+
AlarmState prevAlarmState = 4;
|
|
44
|
+
SilenceState silenceState = 5;
|
|
45
|
+
SilenceState prevSilenceState = 6;
|
|
46
|
+
google.protobuf.Duration prevStateDuration = 7;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message SafetyAlarmRemoteTrait {
|
|
51
|
+
message SafetyAlarmStatus {
|
|
52
|
+
weave.common.ResourceId originator = 1;
|
|
53
|
+
SafetyAlarmTrait.AlarmState alarmState = 2;
|
|
54
|
+
SafetyAlarmTrait.SilenceState silenceState = 3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message SafetyAlarmRemoteChangeEvent {
|
|
58
|
+
SafetyAlarmStatus remoteStatus = 1;
|
|
59
|
+
SafetyAlarmStatus prevRemoteStatus = 2;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message SafetyAlarmCOTrait {
|
|
64
|
+
uint32 sessionId = 1;
|
|
65
|
+
SafetyAlarmTrait.AlarmState alarmState = 2;
|
|
66
|
+
SafetyAlarmTrait.SilenceState silenceState = 3;
|
|
67
|
+
nest.trait.sensor.CarbonMonoxideTrait.CoSample peakConcentration = 16;
|
|
68
|
+
nest.trait.sensor.CarbonMonoxideTrait.CoSample blameThreshold = 17;
|
|
69
|
+
google.protobuf.Duration blameDuration = 18;
|
|
70
|
+
|
|
71
|
+
message SafetyAlarmCOChangeEvent {
|
|
72
|
+
uint32 sessionId = 1;
|
|
73
|
+
SafetyAlarmTrait.AlarmLevel alarmLevel = 2;
|
|
74
|
+
SafetyAlarmTrait.AlarmState alarmState = 3;
|
|
75
|
+
SafetyAlarmTrait.AlarmState prevAlarmState = 4;
|
|
76
|
+
SafetyAlarmTrait.SilenceState silenceState = 5;
|
|
77
|
+
SafetyAlarmTrait.SilenceState prevSilenceState = 6;
|
|
78
|
+
google.protobuf.Duration prevStateDuration = 7;
|
|
79
|
+
nest.trait.sensor.CarbonMonoxideTrait.CoSample peakConcentration = 16;
|
|
80
|
+
nest.trait.sensor.CarbonMonoxideTrait.CoSample blameThreshold = 17;
|
|
81
|
+
google.protobuf.Duration blameDuration = 18;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message SafetyAlarmRemoteCOTrait {
|
|
86
|
+
message SafetyAlarmRemoteCOChangeEvent {
|
|
87
|
+
SafetyAlarmRemoteTrait.SafetyAlarmStatus remoteStatus = 1;
|
|
88
|
+
SafetyAlarmRemoteTrait.SafetyAlarmStatus prevRemoteStatus = 2;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message SafetyAlarmRemoteSmokeTrait {
|
|
93
|
+
message SafetyAlarmRemoteSmokeChangeEvent {
|
|
94
|
+
SafetyAlarmRemoteTrait.SafetyAlarmStatus remoteStatus = 1;
|
|
95
|
+
SafetyAlarmRemoteTrait.SafetyAlarmStatus prevRemoteStatus = 2;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message SafetyAlarmSmokeTrait {
|
|
100
|
+
uint32 sessionId = 1;
|
|
101
|
+
SafetyAlarmTrait.AlarmState alarmState = 2;
|
|
102
|
+
SafetyAlarmTrait.SilenceState silenceState = 3;
|
|
103
|
+
|
|
104
|
+
message SafetyAlarmSmokeChangeEvent {
|
|
105
|
+
uint32 sessionId = 1;
|
|
106
|
+
SafetyAlarmTrait.AlarmLevel alarmLevel = 2;
|
|
107
|
+
SafetyAlarmTrait.AlarmState alarmState = 3;
|
|
108
|
+
SafetyAlarmTrait.AlarmState prevAlarmState = 4;
|
|
109
|
+
SafetyAlarmTrait.SilenceState silenceState = 5;
|
|
110
|
+
SafetyAlarmTrait.SilenceState prevSilenceState = 6;
|
|
111
|
+
google.protobuf.Duration prevStateDuration = 7;
|
|
112
|
+
bool steamDetected = 16;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message SafetyAlarmSettingsTrait {
|
|
117
|
+
bool headsUpEnabled = 1;
|
|
118
|
+
bool steamDetectionEnabled = 2;
|
|
119
|
+
}
|