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,107 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/timestamp.proto";
|
|
4
|
+
import "weave/common.proto";
|
|
5
|
+
|
|
6
|
+
package nest.services.apigateway;
|
|
7
|
+
|
|
8
|
+
enum InitiatedBy {
|
|
9
|
+
UNSPECIFIED = 0;
|
|
10
|
+
RTS = 1;
|
|
11
|
+
PHX = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message WeaveResourceIdMappingRequest {
|
|
15
|
+
repeated weave.common.ResourceId resourceId = 1;
|
|
16
|
+
bool skipInvalidIds = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message LegacyResourceIdMappingRequest {
|
|
20
|
+
repeated string resourceId = 1;
|
|
21
|
+
bool skipInvalidIds = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message ResourceIdMapping {
|
|
25
|
+
string legacyResourceId = 1;
|
|
26
|
+
weave.common.ResourceId weaveResourceId = 2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message ResourceIdMappingResponse {
|
|
30
|
+
repeated ResourceIdMapping resourceIdMapping = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetUserStructuresRequest {
|
|
34
|
+
weave.common.ResourceId userResourceId = 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message UserStructuresResponse {
|
|
38
|
+
repeated weave.common.ResourceId ownedStructures = 1;
|
|
39
|
+
repeated weave.common.ResourceId memberStructures = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message BorderRouterListRequest {
|
|
43
|
+
string userId = 1;
|
|
44
|
+
string structureId = 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message BorderRouterListResponse {
|
|
48
|
+
repeated string borderRouters = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message PairingTokenRequest {
|
|
52
|
+
string userId = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message PairingTokenResponse {
|
|
56
|
+
string pairingToken = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message PairNFCTokenDeviceRequest {
|
|
60
|
+
uint64 weaveNodeId = 1;
|
|
61
|
+
string userId = 2;
|
|
62
|
+
int32 weaveVendorId = 3;
|
|
63
|
+
int32 weaveProductId = 4;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message PairNFCTokenDeviceResponse {
|
|
67
|
+
string resourceId = 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message UnpairingRequest {
|
|
71
|
+
string resourceId = 1;
|
|
72
|
+
string userId = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message UnpairingResponse {
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message TopazPairingRequest {
|
|
79
|
+
uint64 weaveNodeId = 1;
|
|
80
|
+
string rtsUserId = 2;
|
|
81
|
+
string rtsStructureId = 3;
|
|
82
|
+
string rtsTopazId = 4;
|
|
83
|
+
int32 weaveVendorId = 5;
|
|
84
|
+
int32 weaveProductId = 6;
|
|
85
|
+
string currentSoftwareVersion = 7;
|
|
86
|
+
string serviceGroupId = 8;
|
|
87
|
+
uint64 fabricId = 9;
|
|
88
|
+
google.protobuf.Timestamp pairedAt = 10;
|
|
89
|
+
InitiatedBy pairedBy = 11;
|
|
90
|
+
bool linePowered = 12;
|
|
91
|
+
string whereId = 13;
|
|
92
|
+
string spokenWhereId = 14;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message TopazPairingResponse {
|
|
96
|
+
weave.common.ResourceId resourceId = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
service ResourceRelationshipService {
|
|
100
|
+
rpc GetResourceIdMappingByWeaveIds(WeaveResourceIdMappingRequest) returns (ResourceIdMappingResponse);
|
|
101
|
+
rpc GetResourceIdMappingByLegacyIds(LegacyResourceIdMappingRequest) returns (ResourceIdMappingResponse);
|
|
102
|
+
rpc GetUserStructures(GetUserStructuresRequest) returns(UserStructuresResponse);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
service ProvisioningHelperService {
|
|
106
|
+
rpc Unpair(UnpairingRequest) returns (UnpairingResponse);
|
|
107
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package nest.trait.cellular;
|
|
4
|
+
|
|
5
|
+
message CellularTrait {
|
|
6
|
+
CellularRegistrationStatus registrationStatus = 1;
|
|
7
|
+
CellularCellInformation cellInfo = 2;
|
|
8
|
+
CellularQuality cellQuality = 3;
|
|
9
|
+
bytes imei = 4;
|
|
10
|
+
SIMInformation simInfo = 5;
|
|
11
|
+
CellularConnectionSummary connectionSummary = 6;
|
|
12
|
+
NetworkInformation networkInfo = 7;
|
|
13
|
+
CellularModemInformation modemInfo = 8;
|
|
14
|
+
bool fastScanMode = 9;
|
|
15
|
+
bytes simId = 10;
|
|
16
|
+
|
|
17
|
+
enum CellStatus {
|
|
18
|
+
CELL_STATUS_UNSPECIFIED = 0;
|
|
19
|
+
CELL_STATUS_UNKNOWN = 1;
|
|
20
|
+
CELL_STATUS_CELL_SUITABLE = 2;
|
|
21
|
+
CELL_STATUS_CELL_LOW_PRIORITY = 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enum SIMStatus {
|
|
25
|
+
SIM_STATUS_UNSPECIFIED = 0;
|
|
26
|
+
SIM_STATUS_SIM_NOT_INSERTED = 1;
|
|
27
|
+
SIM_STATUS_SIM_INSERTED = 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
enum SIMType {
|
|
31
|
+
SIM_TYPE_UNSPECIFIED = 0;
|
|
32
|
+
SIM_TYPE_UNKNOWN_SIM = 1;
|
|
33
|
+
SIM_TYPE_NEST_SIM = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
enum CellularQuality {
|
|
37
|
+
CELLULAR_QUALITY_UNSPECIFIED = 0;
|
|
38
|
+
CELLULAR_QUALITY_UNKNOWN = 1;
|
|
39
|
+
CELLULAR_QUALITY_GOOD = 2;
|
|
40
|
+
CELLULAR_QUALITY_BAD = 3;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
enum CellularSubscriptionValue {
|
|
44
|
+
CELLULAR_SUBSCRIPTION_VALUE_UNSPECIFIED = 0;
|
|
45
|
+
CELLULAR_SUBSCRIPTION_VALUE_UNKNOWN = 1;
|
|
46
|
+
CELLULAR_SUBSCRIPTION_VALUE_SUBSCRIBED = 2;
|
|
47
|
+
CELLULAR_SUBSCRIPTION_VALUE_NOT_SUBSCRIBED = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
enum CellularResetAction {
|
|
51
|
+
CELLULAR_RESET_ACTION_UNSPECIFIED = 0;
|
|
52
|
+
CELLULAR_RESET_ACTION_AIRPLANE_MODE = 1;
|
|
53
|
+
CELLULAR_RESET_ACTION_RESTART_MODEM = 2;
|
|
54
|
+
CELLULAR_RESET_ACTION_FLASH_FIRMWARE = 3;
|
|
55
|
+
CELLULAR_RESET_ACTION_FPLMN_CLEAR = 4;
|
|
56
|
+
CELLULAR_RESET_ACTION_DEVICE_REBOOT = 5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
enum CellularTechnology {
|
|
60
|
+
CELLULAR_TECHNOLOGY_UNSPECIFIED = 0;
|
|
61
|
+
CELLULAR_TECHNOLOGY_UNKNOWN = 1;
|
|
62
|
+
CELLULAR_TECHNOLOGY_GSM = 2;
|
|
63
|
+
CELLULAR_TECHNOLOGY_EDGE = 3;
|
|
64
|
+
CELLULAR_TECHNOLOGY_UMTS = 4;
|
|
65
|
+
CELLULAR_TECHNOLOGY_HSPA = 5;
|
|
66
|
+
CELLULAR_TECHNOLOGY_LTE = 6;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
enum CellularRegistrationStatus {
|
|
70
|
+
CELLULAR_REGISTRATION_STATUS_UNSPECIFIED = 0;
|
|
71
|
+
CELLULAR_REGISTRATION_STATUS_UNKNOWN = 1;
|
|
72
|
+
CELLULAR_REGISTRATION_STATUS_UNREGISTERED = 2;
|
|
73
|
+
CELLULAR_REGISTRATION_STATUS_REGISTERED = 3;
|
|
74
|
+
CELLULAR_REGISTRATION_STATUS_SEARCHING = 4;
|
|
75
|
+
CELLULAR_REGISTRATION_STATUS_DENIED = 5;
|
|
76
|
+
CELLULAR_REGISTRATION_STATUS_ROAMING = 6;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
enum CellularRegistrationMode {
|
|
80
|
+
CELLULAR_REGISTRATION_MODE_UNSPECIFIED = 0;
|
|
81
|
+
CELLULAR_REGISTRATION_MODE_AUTO = 1;
|
|
82
|
+
CELLULAR_REGISTRATION_MODE_AUTO_ONLY = 2;
|
|
83
|
+
CELLULAR_REGISTRATION_MODE_MANUAL = 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
enum CellularConnContextStatus {
|
|
87
|
+
CELLULAR_CONN_CONTEXT_STATUS_UNSPECIFIED = 0;
|
|
88
|
+
CELLULAR_CONN_CONTEXT_STATUS_ACTIVATED = 1;
|
|
89
|
+
CELLULAR_CONN_CONTEXT_STATUS_DEACTIVATED = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message NetworkInformation {
|
|
93
|
+
uint32 mcc = 1;
|
|
94
|
+
uint32 mnc = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message SIMInformation {
|
|
98
|
+
bytes simId = 1;
|
|
99
|
+
SIMStatus simStatus = 2;
|
|
100
|
+
SIMType simType = 3;
|
|
101
|
+
repeated string iccIds = 4;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message GsmCellInformation {
|
|
105
|
+
uint32 arfcn = 1;
|
|
106
|
+
uint32 bsic = 2;
|
|
107
|
+
int32 rxLev = 3;
|
|
108
|
+
NetworkInformation networkInfo = 4;
|
|
109
|
+
uint32 cellId = 5;
|
|
110
|
+
CellStatus cellStatus = 6;
|
|
111
|
+
uint32 lac = 7;
|
|
112
|
+
sint32 band = 8;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message UmtsCellInformation {
|
|
116
|
+
uint32 uarfcn = 1;
|
|
117
|
+
uint32 scrCode = 2;
|
|
118
|
+
int32 rxLev = 3;
|
|
119
|
+
NetworkInformation networkInfo = 4;
|
|
120
|
+
uint32 lac = 5;
|
|
121
|
+
CellStatus cellStatus = 6;
|
|
122
|
+
sint32 rscp = 7;
|
|
123
|
+
sint32 ecIo = 8;
|
|
124
|
+
sint32 band = 9;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message LteCellInformation {
|
|
128
|
+
uint32 earfcn = 1;
|
|
129
|
+
uint32 pci = 2;
|
|
130
|
+
NetworkInformation networkInfo = 3;
|
|
131
|
+
string ecgi = 4;
|
|
132
|
+
CellStatus cellStatus = 5;
|
|
133
|
+
sint32 rsrp = 6;
|
|
134
|
+
sint32 rsrq = 7;
|
|
135
|
+
sint32 rssi = 8;
|
|
136
|
+
sint32 band = 9;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message CellularCellInformation {
|
|
140
|
+
CellularTechnology cellTech = 1;
|
|
141
|
+
GsmCellInformation gsmCell = 2;
|
|
142
|
+
UmtsCellInformation umtsCell = 3;
|
|
143
|
+
LteCellInformation lteCell = 4;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message CellularRegistrationInformation {
|
|
147
|
+
CellularRegistrationStatus registrationStatus = 1;
|
|
148
|
+
CellularRegistrationMode registrationMode = 2;
|
|
149
|
+
uint32 areaCode = 3;
|
|
150
|
+
NetworkInformation networkInfo = 4;
|
|
151
|
+
uint32 cellId = 5;
|
|
152
|
+
CellularTechnology cellTech = 6;
|
|
153
|
+
string operatorName = 7;
|
|
154
|
+
CellStatus cellStatus = 8;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message CellularModemInformation {
|
|
158
|
+
bool online = 1;
|
|
159
|
+
bool powered = 2;
|
|
160
|
+
bool lockdown = 3;
|
|
161
|
+
bool emergency = 4;
|
|
162
|
+
string manufacturer = 5;
|
|
163
|
+
string model = 6;
|
|
164
|
+
string revision = 7;
|
|
165
|
+
bytes nestImei = 8;
|
|
166
|
+
bytes vendorImei = 9;
|
|
167
|
+
string ofonoVersion = 10;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message CellularConnectionSummary {
|
|
171
|
+
bool powered = 1;
|
|
172
|
+
bool attached = 2;
|
|
173
|
+
CellularConnContextStatus connectionActivation = 3;
|
|
174
|
+
CellularSettingsTrait.CellularSubscriptionStatus subscriptionStatus = 4;
|
|
175
|
+
CellularRegistrationStatus registrationStatus = 5;
|
|
176
|
+
CellularTechnology cellTech = 6;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message CellularConnectionInformation {
|
|
180
|
+
string type = 1;
|
|
181
|
+
string protocol = 2;
|
|
182
|
+
string accessPointName = 3;
|
|
183
|
+
string iface = 4;
|
|
184
|
+
string method = 5;
|
|
185
|
+
string address = 6;
|
|
186
|
+
string netmask = 7;
|
|
187
|
+
repeated string dnsServers = 8;
|
|
188
|
+
bool suspended = 9;
|
|
189
|
+
bool roamingAllowed = 10;
|
|
190
|
+
string bearer = 11;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message CellularConnectionIPv6Settings {
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message CellularQualityEvent {
|
|
197
|
+
CellularTechnology cellTech = 1;
|
|
198
|
+
sint32 rsrp = 2;
|
|
199
|
+
sint32 rsrq = 3;
|
|
200
|
+
sint32 rscp = 4;
|
|
201
|
+
sint32 ecIo = 5;
|
|
202
|
+
sint32 rssi = 6;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message CellularNetworkEvent {
|
|
206
|
+
CellularRegistrationStatus registrationStatus = 1;
|
|
207
|
+
CellularCellInformation cellInfo = 2;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message CellularTelemetryEvent {
|
|
211
|
+
CellularModemInformation modemInfo = 1;
|
|
212
|
+
CellularCellInformation cellInfo = 2;
|
|
213
|
+
CellularConnectionInformation connInfo = 3;
|
|
214
|
+
CellularRegistrationInformation registrationInfo = 4;
|
|
215
|
+
SIMInformation simInfo = 5;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
message CellularSubscriptionEvent {
|
|
219
|
+
CellularSettingsTrait.CellularSubscriptionStatus subscriptionStatus = 1;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message CellularResetEvent {
|
|
223
|
+
CellularResetAction resetAction = 1;
|
|
224
|
+
uint32 resetCount = 2;
|
|
225
|
+
uint32 recoveryCount = 3;
|
|
226
|
+
uint32 backToBackFailureCount = 4;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message CellularFirmwareUpgradeEvent {
|
|
230
|
+
bool forced = 1;
|
|
231
|
+
string currentVersion = 2;
|
|
232
|
+
string targetVersion = 3;
|
|
233
|
+
uint32 result = 4;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message CellularNetworkErrorEvent {
|
|
237
|
+
uint32 errorCode = 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message CellularErrorEvent {
|
|
241
|
+
uint32 errorCode = 1;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message CellularIRATEvent {
|
|
245
|
+
uint32 reason = 1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message CellularSubscriptionInformationEvent {
|
|
249
|
+
CellularSettingsTrait.CellularSubscriptionStatus subscriptionStatus = 1;
|
|
250
|
+
CellularSettingsTrait.CellularActivationStatus activationStatus = 2;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
message CellularSettingsTrait {
|
|
255
|
+
CarrierType carrier = 1;
|
|
256
|
+
CellularActivationStatus activationStatus = 2;
|
|
257
|
+
CellularSubscriptionStatus subscriptionStatus = 3;
|
|
258
|
+
|
|
259
|
+
enum CellularActivationStatus {
|
|
260
|
+
CELLULAR_ACTIVATION_STATUS_UNSPECIFIED = 0;
|
|
261
|
+
CELLULAR_ACTIVATION_STATUS_NO_ACTIVATION = 1;
|
|
262
|
+
CELLULAR_ACTIVATION_STATUS_ACTIVATION_PENDING = 2;
|
|
263
|
+
CELLULAR_ACTIVATION_STATUS_ACTIVATED = 3;
|
|
264
|
+
CELLULAR_ACTIVATION_STATUS_ACTIVATION_FAILED = 4;
|
|
265
|
+
CELLULAR_ACTIVATION_STATUS_SERVICE_SUSPENDED = 5;
|
|
266
|
+
CELLULAR_ACTIVATION_STATUS_DEACTIVATION_PENDING = 6;
|
|
267
|
+
CELLULAR_ACTIVATION_STATUS_DEACTIVATION_FAILED = 7;
|
|
268
|
+
CELLULAR_ACTIVATION_STATUS_LIMITED_ACTIVATION = 8;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
enum CarrierType {
|
|
272
|
+
CARRIER_TYPE_UNSPECIFIED = 0;
|
|
273
|
+
CARRIER_TYPE_SPRINT = 1;
|
|
274
|
+
CARRIER_TYPE_TMOBILE = 2;
|
|
275
|
+
CARRIER_TYPE_GOOGLE_VOICE = 3;
|
|
276
|
+
CARRIER_TYPE_USCC = 4;
|
|
277
|
+
CARRIER_TYPE_HGES_3UK = 5;
|
|
278
|
+
CARRIER_TYPE_HGES_3HK = 6;
|
|
279
|
+
CARRIER_TYPE_AIRTEL = 7;
|
|
280
|
+
CARRIER_TYPE_AMERICA_MOVIL = 8;
|
|
281
|
+
CARRIER_TYPE_ATT = 9;
|
|
282
|
+
CARRIER_TYPE_AXIATA = 10;
|
|
283
|
+
CARRIER_TYPE_CHINA_MOBILE = 11;
|
|
284
|
+
CARRIER_TYPE_CHINA_TELECOM = 12;
|
|
285
|
+
CARRIER_TYPE_CHINA_UNICOM = 13;
|
|
286
|
+
CARRIER_TYPE_ETISALAT = 14;
|
|
287
|
+
CARRIER_TYPE_IDEA = 15;
|
|
288
|
+
CARRIER_TYPE_MTN = 16;
|
|
289
|
+
CARRIER_TYPE_ORANGE = 17;
|
|
290
|
+
CARRIER_TYPE_SINGTEL = 18;
|
|
291
|
+
CARRIER_TYPE_STC = 19;
|
|
292
|
+
CARRIER_TYPE_TELEFONICA = 20;
|
|
293
|
+
CARRIER_TYPE_TELENOR = 21;
|
|
294
|
+
CARRIER_TYPE_TELIA_SONERA = 22;
|
|
295
|
+
CARRIER_TYPE_VERIZON = 23;
|
|
296
|
+
CARRIER_TYPE_VIMPELCOM = 24;
|
|
297
|
+
CARRIER_TYPE_VODAFONE = 25;
|
|
298
|
+
CARRIER_TYPE_NOVA = 26;
|
|
299
|
+
CARRIER_TYPE_NOVA_PAID_WIFI = 27;
|
|
300
|
+
CARRIER_TYPE_FAKE = 10000;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
enum CellularSubscriptionStatus {
|
|
304
|
+
CELLULAR_SUBSCRIPTION_STATUS_UNSPECIFIED = 0;
|
|
305
|
+
CELLULAR_SUBSCRIPTION_STATUS_INACTIVE = 1;
|
|
306
|
+
CELLULAR_SUBSCRIPTION_STATUS_PENDING = 2;
|
|
307
|
+
CELLULAR_SUBSCRIPTION_STATUS_ACTIVE = 3;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
message CellBackupFirstActivationEvent {
|
|
311
|
+
uint32 unused = 1;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
|
|
5
|
+
package nest.trait.debug;
|
|
6
|
+
|
|
7
|
+
message DebugTrait {
|
|
8
|
+
uint32 productId = 1;
|
|
9
|
+
uint32 buildConfig = 2;
|
|
10
|
+
uint32 buildTag = 3;
|
|
11
|
+
|
|
12
|
+
message StringLogEntryEvent {
|
|
13
|
+
string region = 1;
|
|
14
|
+
string messageTxt = 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message TokenizedLogArguments {
|
|
18
|
+
google.protobuf.Int32Value arg4Byte = 1;
|
|
19
|
+
google.protobuf.Int64Value arg8Byte = 2;
|
|
20
|
+
google.protobuf.StringValue argString = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message TokenizedLogEntryEvent {
|
|
24
|
+
uint32 token = 1;
|
|
25
|
+
repeated TokenizedLogArguments args = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message TokenizedHeaderEntryEvent {
|
|
29
|
+
uint32 productId = 1;
|
|
30
|
+
uint32 buildConfig = 2;
|
|
31
|
+
uint32 buildTag = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message EncodedTokenizedLogEntryEvent {
|
|
35
|
+
string tokenizedString = 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/duration.proto";
|
|
4
|
+
import "google/protobuf/timestamp.proto";
|
|
5
|
+
|
|
6
|
+
package nest.trait.detector;
|
|
7
|
+
|
|
8
|
+
message OpenCloseTrait {
|
|
9
|
+
OpenCloseState openCloseState = 1;
|
|
10
|
+
google.protobuf.Timestamp firstObservedAt = 2;
|
|
11
|
+
google.protobuf.Timestamp firstObservedAtMs = 3;
|
|
12
|
+
|
|
13
|
+
enum OpenCloseState {
|
|
14
|
+
OPEN_CLOSE_STATE_UNSPECIFIED = 0;
|
|
15
|
+
OPEN_CLOSE_STATE_CLOSED = 1;
|
|
16
|
+
OPEN_CLOSE_STATE_OPEN = 2;
|
|
17
|
+
OPEN_CLOSE_STATE_UNKNOWN = 3;
|
|
18
|
+
OPEN_CLOSE_STATE_INVALID_CALIBRATION = 4;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message OpenCloseEvent {
|
|
22
|
+
OpenCloseState openCloseState = 1;
|
|
23
|
+
OpenCloseState priorOpenCloseState = 2;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message AmbientMotionTrait {
|
|
28
|
+
message AmbientMotionEvent {
|
|
29
|
+
google.protobuf.Timestamp startMotion = 1;
|
|
30
|
+
google.protobuf.Duration maxHoldOff = 2;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message AmbientMotionSettingsTrait {
|
|
35
|
+
bool enableDetection = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message AmbientMotionTimingSettingsTrait {
|
|
39
|
+
google.protobuf.Duration maxHoldOff = 1;
|
|
40
|
+
bool overrideMaxHoldOff = 2;
|
|
41
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package nest.trait.diagnostics;
|
|
4
|
+
|
|
5
|
+
message LedTrait {
|
|
6
|
+
LedFaultInformation faultInformation = 1;
|
|
7
|
+
|
|
8
|
+
enum LedScene {
|
|
9
|
+
LED_SCENE_UNSPECIFIED = 0;
|
|
10
|
+
LED_SCENE_BLUE = 1;
|
|
11
|
+
LED_SCENE_GREEN = 2;
|
|
12
|
+
LED_SCENE_YELLOW = 3;
|
|
13
|
+
LED_SCENE_RED = 4;
|
|
14
|
+
LED_SCENE_PATHLIGHT = 5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
enum LedAnimation {
|
|
18
|
+
LED_ANIMATION_UNSPECIFIED = 0;
|
|
19
|
+
LED_ANIMATION_BOOT = 1;
|
|
20
|
+
LED_ANIMATION_STATUS = 2;
|
|
21
|
+
LED_ANIMATION_BYPASS = 3;
|
|
22
|
+
LED_ANIMATION_SWU = 4;
|
|
23
|
+
LED_ANIMATION_PATHLIGHT = 5;
|
|
24
|
+
LED_ANIMATION_PULSE = 6;
|
|
25
|
+
LED_ANIMATION_PIRTEST = 7;
|
|
26
|
+
LED_ANIMATION_SOLID_ON = 8;
|
|
27
|
+
LED_ANIMATION_PULSE_ALARM = 9;
|
|
28
|
+
LED_ANIMATION_PULSE_ALARM_WAIT = 10;
|
|
29
|
+
LED_ANIMATION_PULSE_FAST = 11;
|
|
30
|
+
LED_ANIMATION_PULSE_FAST_WAIT = 12;
|
|
31
|
+
LED_ANIMATION_PULSE_SLOW = 13;
|
|
32
|
+
LED_ANIMATION_PULSE_WAIT = 14;
|
|
33
|
+
LED_ANIMATION_ROTATE = 15;
|
|
34
|
+
LED_ANIMATION_ROTATE_SLOW = 16;
|
|
35
|
+
LED_ANIMATION_SHIMMER = 17;
|
|
36
|
+
LED_ANIMATION_SIDELEFT = 18;
|
|
37
|
+
LED_ANIMATION_SIDERIGHT = 19;
|
|
38
|
+
LED_ANIMATION_WAVE1 = 20;
|
|
39
|
+
LED_ANIMATION_FLASH = 21;
|
|
40
|
+
LED_ANIMATION_PROGRESS = 22;
|
|
41
|
+
LED_ANIMATION_DIM_PULSES_SLOW = 23;
|
|
42
|
+
LED_ANIMATION_NIGHTLIGHT_LOW = 24;
|
|
43
|
+
LED_ANIMATION_NIGHTLIGHT_MEDIUM = 25;
|
|
44
|
+
LED_ANIMATION_NIGHTLIGHT_HIGH = 26;
|
|
45
|
+
LED_ANIMATION_LINE_HIGH = 27;
|
|
46
|
+
LED_ANIMATION_BLINK = 28;
|
|
47
|
+
LED_ANIMATION_BLINK_SLOW = 29;
|
|
48
|
+
LED_ANIMATION_BLINK_INFREQUENT = 30;
|
|
49
|
+
LED_ANIMATION_BREATHE = 31;
|
|
50
|
+
LED_ANIMATION_BREATHE_SLOW = 32;
|
|
51
|
+
LED_ANIMATION_BREATHE_FAST = 33;
|
|
52
|
+
LED_ANIMATION_OFF = 34;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
enum LedFaultType {
|
|
56
|
+
LED_FAULT_TYPE_UNSPECIFIED = 0;
|
|
57
|
+
LED_FAULT_TYPE_NONE = 1;
|
|
58
|
+
LED_FAULT_TYPE_STUCK_ON = 2;
|
|
59
|
+
LED_FAULT_TYPE_SELF_TEST_FAILED = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message LedFaultInformation {
|
|
63
|
+
bool asserted = 1;
|
|
64
|
+
LedFaultType type = 2;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message LedEvent {
|
|
68
|
+
uint32 ledId = 1;
|
|
69
|
+
bool ledOn = 2;
|
|
70
|
+
LedScene ledScene = 3;
|
|
71
|
+
uint32 brightness = 4;
|
|
72
|
+
LedWrgb wrgb = 5;
|
|
73
|
+
LedAnimation ledAnimation = 6;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message LedFaultEvent {
|
|
77
|
+
bool asserted = 1;
|
|
78
|
+
LedFaultType type = 32;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message LedWrgb {
|
|
82
|
+
uint32 blue = 1;
|
|
83
|
+
uint32 green = 2;
|
|
84
|
+
uint32 red = 3;
|
|
85
|
+
uint32 white = 4;
|
|
86
|
+
}
|
|
87
|
+
}
|