homebridge-nest-accfactory 0.0.5 → 0.2.0
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 +42 -4
- package/README.md +37 -19
- package/dist/HomeKitDevice.js +132 -109
- package/dist/camera.js +344 -262
- package/dist/doorbell.js +5 -3
- package/dist/floodlight.js +4 -4
- package/dist/nexustalk.js +84 -52
- package/dist/protect.js +2 -2
- package/dist/protobuf/googlehome/foyer.proto +216 -160
- package/dist/res/Nest_camera_connecting.h264 +0 -0
- package/dist/res/Nest_camera_off.h264 +0 -0
- package/dist/res/Nest_camera_offline.h264 +0 -0
- package/dist/res/Nest_camera_transfer.h264 +0 -0
- package/dist/streamer.js +100 -71
- package/dist/system.js +1321 -1263
- package/dist/thermostat.js +73 -27
- package/dist/webrtc.js +582 -0
- package/package.json +31 -29
|
@@ -1,216 +1,272 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
|
|
3
5
|
package google.internal.home.foyer.v1;
|
|
4
6
|
|
|
5
|
-
message
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
message GetHomeGraphRequest {
|
|
8
|
+
enum DefaultHiddenDeviceType {
|
|
9
|
+
DEVICE_TYPE_UNKNOWN = 0;
|
|
10
|
+
DEVICE_TYPE_TOPAZ = 1;
|
|
11
|
+
DEVICE_TYPE_KRYPTONITE = 2;
|
|
12
|
+
DEVICE_TYPE_ANTIGUA = 3;
|
|
13
|
+
DEVICE_TYPE_NEST_TAG = 4;
|
|
14
|
+
DEVICE_TYPE_NEST_HEATLINK = 5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
string requestId = 3; // 64 hex characters - random is OK
|
|
18
|
+
int32 unknown1 = 4; // always 1?
|
|
19
|
+
int32 unknown2 = 5; // always 1?
|
|
20
|
+
repeated DefaultHiddenDeviceType deviceTypesToUnhideArray = 10;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message GetHomeGraphResponse {
|
|
24
|
+
uint64 responseTimestamp = 1; // Epoch in ms for this response
|
|
25
|
+
repeated Home homes = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message Home {
|
|
29
|
+
string uuid = 1;
|
|
30
|
+
string name = 2;
|
|
31
|
+
Address address = 3;
|
|
32
|
+
repeated EmailAddress linked_users = 4;
|
|
33
|
+
repeated Room rooms = 6;
|
|
34
|
+
repeated Device devices = 7;
|
|
35
|
+
}
|
|
15
36
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
message Address {
|
|
38
|
+
string line1 = 1;
|
|
39
|
+
message Coordinates {
|
|
40
|
+
double latitude = 1;
|
|
41
|
+
double longitude = 2;
|
|
20
42
|
}
|
|
43
|
+
Coordinates coordinates = 2;
|
|
44
|
+
uint64 timeCreated = 5;
|
|
45
|
+
string timezone = 6;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message EmailAddress {
|
|
49
|
+
string value = 1;
|
|
50
|
+
// field #4 has an unknown varint (1)
|
|
51
|
+
}
|
|
21
52
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
53
|
+
message Room {
|
|
54
|
+
string uuid = 1;
|
|
55
|
+
string name = 3;
|
|
56
|
+
message Category {
|
|
57
|
+
string name = 1;
|
|
25
58
|
}
|
|
59
|
+
Category category = 4;
|
|
60
|
+
repeated Device devices = 5;
|
|
61
|
+
}
|
|
26
62
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
string
|
|
30
|
-
|
|
31
|
-
repeated EmailAddress linked_users = 4;
|
|
32
|
-
repeated Room rooms = 6;
|
|
33
|
-
repeated Device devices = 7;
|
|
63
|
+
message Device {
|
|
64
|
+
message Id {
|
|
65
|
+
string googleUuid = 1;
|
|
66
|
+
ThirdPartyId thirdPartyId = 2;
|
|
34
67
|
}
|
|
35
68
|
|
|
36
|
-
message
|
|
37
|
-
string
|
|
38
|
-
|
|
39
|
-
double latitude = 1;
|
|
40
|
-
double longitude = 2;
|
|
41
|
-
}
|
|
42
|
-
Coordinates coordinates = 2;
|
|
43
|
-
uint64 timeCreated = 5;
|
|
44
|
-
string timezone = 6;
|
|
69
|
+
message ThirdPartyId {
|
|
70
|
+
string idType = 1;
|
|
71
|
+
string id = 2;
|
|
45
72
|
}
|
|
46
73
|
|
|
47
|
-
message
|
|
48
|
-
|
|
49
|
-
// field #4 has an unknown varint (1)
|
|
74
|
+
message OtherThirdPartyIds {
|
|
75
|
+
repeated ThirdPartyId otherThirdPartyId = 1;
|
|
50
76
|
}
|
|
51
77
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
78
|
+
Id id = 1;
|
|
79
|
+
OtherThirdPartyIds otherIds = 39;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message SendTalkbackRequest {
|
|
83
|
+
enum TalkbackCommand {
|
|
84
|
+
COMMAND_UNSPECIFIED = 0;
|
|
85
|
+
COMMAND_START = 1;
|
|
86
|
+
COMMAND_STOP = 2;
|
|
60
87
|
}
|
|
61
88
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
89
|
+
google.protobuf.StringValue googleDeviceId = 1;
|
|
90
|
+
string streamId = 2;
|
|
91
|
+
TalkbackCommand command = 3;
|
|
92
|
+
}
|
|
67
93
|
|
|
68
|
-
|
|
69
|
-
string idType = 1;
|
|
70
|
-
string id = 2;
|
|
71
|
-
}
|
|
94
|
+
message SendTalkbackResponse {
|
|
72
95
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message SendCameraViewIntentRequest {
|
|
99
|
+
enum ViewIntentCommand {
|
|
100
|
+
VIEW_INTENT_UNSPECIFIED = 0;
|
|
101
|
+
VIEW_INTENT_START = 1;
|
|
102
|
+
}
|
|
76
103
|
|
|
77
|
-
|
|
78
|
-
|
|
104
|
+
message ViewIntentRequest {
|
|
105
|
+
google.protobuf.StringValue googleDeviceId = 1;
|
|
106
|
+
ViewIntentCommand command = 2;
|
|
79
107
|
}
|
|
108
|
+
|
|
109
|
+
ViewIntentRequest request = 1;
|
|
80
110
|
}
|
|
81
111
|
|
|
82
|
-
message
|
|
83
|
-
message SendTalkbackRequest {
|
|
84
|
-
enum TalkbackCommand {
|
|
85
|
-
COMMAND_UNSPECIFIED = 0;
|
|
86
|
-
COMMAND_START = 1;
|
|
87
|
-
COMMAND_STOP = 2;
|
|
88
|
-
}
|
|
112
|
+
message SendCameraViewIntentResponse {
|
|
89
113
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message JoinStreamRequest {
|
|
117
|
+
enum JoinStreamRequest_StreamContext {
|
|
118
|
+
STREAM_CONTEXT_UNSPECIFIED = 0;
|
|
119
|
+
STREAM_CONTEXT_DEFAULT = 1;
|
|
120
|
+
STREAM_CONTEXT_SETUP = 2;
|
|
93
121
|
}
|
|
94
122
|
|
|
95
|
-
|
|
123
|
+
enum JoinStreamRequest_EndStreamReason {
|
|
124
|
+
REASON_UNSPECIFIED = 0;
|
|
125
|
+
REASON_UNKNOWN = 1;
|
|
126
|
+
REASON_USER_EXITED_SESSION = 2;
|
|
127
|
+
REASON_VIDEO_TIME_OUT = 3;
|
|
128
|
+
REASON_AUDIO_TIME_OUT = 4;
|
|
129
|
+
REASON_NETWORK_FAILURE = 5;
|
|
130
|
+
REASON_INCOMPATIBLE_VIDEO_CODEC = 6;
|
|
131
|
+
REASON_AUDIO_ENCODE_ERROR = 7;
|
|
132
|
+
REASON_AUDIO_DECODE_ERROR = 8;
|
|
133
|
+
}
|
|
96
134
|
|
|
135
|
+
enum JoinStreamRequest_VideoResolution {
|
|
136
|
+
VIDEO_RESOLUTION_UNSPECIFIED = 0;
|
|
137
|
+
VIDEO_RESOLUTION_STANDARD = 1;
|
|
138
|
+
VIDEO_RESOLUTION_FULL_HIGH = 2;
|
|
97
139
|
}
|
|
98
140
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
141
|
+
string sdp = 1;
|
|
142
|
+
string deviceId = 2;
|
|
143
|
+
string command = 3;
|
|
144
|
+
string streamId = 4;
|
|
145
|
+
bool local = 5;
|
|
146
|
+
JoinStreamRequest_StreamContext streamContext = 6;
|
|
147
|
+
JoinStreamRequest_EndStreamReason endStreamReason = 7;
|
|
148
|
+
JoinStreamRequest_VideoResolution requestedVideoResolution = 8;
|
|
149
|
+
}
|
|
104
150
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
151
|
+
message JoinStreamResponse {
|
|
152
|
+
enum StreamTerminationStatus {
|
|
153
|
+
STATUS_UNSPECIFIED = 0;
|
|
154
|
+
STATUS_STREAM_TERMINATED = 1;
|
|
155
|
+
STATUS_STREAM_NOT_TERMINATED = 2; // e.g. invalid stream ID specified
|
|
156
|
+
}
|
|
109
157
|
|
|
110
|
-
|
|
158
|
+
enum StreamExtensionStatus {
|
|
159
|
+
STATUS_UNSPECIFIED = 0;
|
|
160
|
+
STATUS_STREAM_EXTENDED = 1;
|
|
161
|
+
STATUS_STREAM_NOT_EXTENDED = 2; // e.g. invalid stream ID specified
|
|
111
162
|
}
|
|
112
163
|
|
|
113
|
-
|
|
164
|
+
string sdp = 1;
|
|
165
|
+
string responseType = 2;
|
|
166
|
+
string streamId = 3;
|
|
167
|
+
StreamTerminationStatus streamTerminationStatus = 4;
|
|
168
|
+
StreamExtensionStatus streamExtensionStatus = 5;
|
|
169
|
+
}
|
|
114
170
|
|
|
171
|
+
message UpdateTraitsRequest {
|
|
172
|
+
message Request {
|
|
173
|
+
TargetDevice device = 1;
|
|
174
|
+
TraitToUpdate trait = 2;
|
|
115
175
|
}
|
|
116
176
|
|
|
117
|
-
message
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
STREAM_CONTEXT_SETUP = 2;
|
|
122
|
-
}
|
|
177
|
+
message TargetDevice {
|
|
178
|
+
string googleDeviceId = 1;
|
|
179
|
+
google.protobuf.StringValue service = 2;
|
|
180
|
+
}
|
|
123
181
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
REASON_VIDEO_TIME_OUT = 3;
|
|
129
|
-
REASON_AUDIO_TIME_OUT = 4;
|
|
130
|
-
REASON_NETWORK_FAILURE = 5;
|
|
131
|
-
REASON_INCOMPATIBLE_VIDEO_CODEC = 6;
|
|
132
|
-
REASON_AUDIO_ENCODE_ERROR = 7;
|
|
133
|
-
REASON_AUDIO_DECODE_ERROR = 8;
|
|
134
|
-
}
|
|
182
|
+
message TraitToUpdate {
|
|
183
|
+
string category = 1;
|
|
184
|
+
UpdateTrait updateTrait = 2;
|
|
185
|
+
}
|
|
135
186
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
187
|
+
message UpdateTrait {
|
|
188
|
+
string name = 1;
|
|
189
|
+
TraitValue value = 2;
|
|
190
|
+
}
|
|
141
191
|
|
|
142
|
-
|
|
143
|
-
string
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
JoinStreamRequest_EndStreamReason endStreamReason = 7;
|
|
149
|
-
JoinStreamRequest_VideoResolution requestedVideoResolution = 8;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
message JoinStreamResponse {
|
|
153
|
-
enum StreamTerminationStatus {
|
|
154
|
-
STATUS_UNSPECIFIED = 0;
|
|
155
|
-
STATUS_STREAM_TERMINATED = 1;
|
|
156
|
-
STATUS_STREAM_NOT_TERMINATED = 2; // e.g. invalid stream ID specified
|
|
157
|
-
}
|
|
192
|
+
message TraitValue {
|
|
193
|
+
string string = 3;
|
|
194
|
+
int32 intValue = 4;
|
|
195
|
+
Properties properties = 5;
|
|
196
|
+
PropertyArray array = 6;
|
|
197
|
+
}
|
|
158
198
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
STATUS_STREAM_NOT_EXTENDED = 2; // e.g. invalid stream ID specified
|
|
163
|
-
}
|
|
199
|
+
message PropertyArray {
|
|
200
|
+
repeated TraitValue values = 1;
|
|
201
|
+
}
|
|
164
202
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
string streamId = 3;
|
|
168
|
-
StreamTerminationStatus streamTerminationStatus = 4;
|
|
169
|
-
StreamExtensionStatus streamExtensionStatus = 5;
|
|
203
|
+
message Properties {
|
|
204
|
+
repeated UpdateTrait properties = 1;
|
|
170
205
|
}
|
|
206
|
+
|
|
207
|
+
Request request = 1;
|
|
171
208
|
}
|
|
172
209
|
|
|
173
|
-
message
|
|
174
|
-
message UpdateTraitsRequest {
|
|
175
|
-
message Request {
|
|
176
|
-
TargetDevice device = 1;
|
|
177
|
-
TraitToUpdate trait = 2;
|
|
178
|
-
}
|
|
210
|
+
message UpdateTraitsResponse {
|
|
179
211
|
|
|
180
|
-
|
|
181
|
-
string googleDeviceId = 1;
|
|
182
|
-
google.protobuf.StringValue service = 2;
|
|
183
|
-
}
|
|
212
|
+
}
|
|
184
213
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
214
|
+
message GetAssistantDeviceSettingsResponse {
|
|
215
|
+
message Message1 {
|
|
216
|
+
uint32 num1 = 1;
|
|
217
|
+
uint32 num2 = 2;
|
|
218
|
+
uint32 num4 = 4;
|
|
219
|
+
uint32 num5 = 5;
|
|
220
|
+
uint32 num6 = 6;
|
|
221
|
+
string string10 = 10;
|
|
222
|
+
}
|
|
223
|
+
Message1 message1 = 1;
|
|
224
|
+
}
|
|
189
225
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
TraitValue value = 2;
|
|
193
|
-
}
|
|
226
|
+
message UpdateAssistantDeviceSettingsRequest {
|
|
227
|
+
string string1 = 1;
|
|
194
228
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
int32 intValue = 4;
|
|
198
|
-
Properties properties = 5;
|
|
199
|
-
PropertyArray array = 6;
|
|
200
|
-
}
|
|
229
|
+
message DeviceInfo {
|
|
230
|
+
string device_id = 1;
|
|
201
231
|
|
|
202
|
-
message
|
|
203
|
-
|
|
232
|
+
message ProjectInfo {
|
|
233
|
+
string api_project_id = 1;
|
|
234
|
+
string string2 = 2;
|
|
204
235
|
}
|
|
236
|
+
ProjectInfo project_info = 2;
|
|
237
|
+
}
|
|
238
|
+
DeviceInfo device_info = 2;
|
|
205
239
|
|
|
206
|
-
|
|
207
|
-
|
|
240
|
+
message UpdateData {
|
|
241
|
+
message Message1 {
|
|
242
|
+
uint32 youtube_restricted_mode = 4; // 1=off, 2=on
|
|
243
|
+
uint32 youtube_tv_content_filter = 5; // 1=off, 2=on
|
|
244
|
+
string locale = 10; // local like "en-US"
|
|
208
245
|
}
|
|
209
|
-
|
|
210
|
-
Request request = 1;
|
|
246
|
+
Message1 message1 = 1;
|
|
211
247
|
}
|
|
248
|
+
UpdateData update_data = 3;
|
|
249
|
+
}
|
|
212
250
|
|
|
213
|
-
|
|
251
|
+
message UpdateAssistantDeviceSettingsResponse {
|
|
252
|
+
string string1 = 1;
|
|
253
|
+
}
|
|
214
254
|
|
|
215
|
-
|
|
255
|
+
service StructuresService {
|
|
256
|
+
rpc GetHomeGraph(GetHomeGraphRequest) returns (GetHomeGraphResponse);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
service CameraService {
|
|
260
|
+
rpc SendTalkback(SendTalkbackRequest) returns (SendTalkbackResponse);
|
|
261
|
+
rpc SendCameraViewIntent(SendCameraViewIntentRequest) returns (SendCameraViewIntentResponse);
|
|
262
|
+
rpc JoinStream(JoinStreamRequest) returns (JoinStreamResponse);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
service HomeControlService {
|
|
266
|
+
rpc UpdateTraits(UpdateTraitsRequest) returns (UpdateTraitsResponse);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
service HomeDevicesService {
|
|
270
|
+
rpc GetAssistantDeviceSettings (GetAssistantDeviceSettingsRequest) returns (stream GetAssistantDeviceSettingsResponse);
|
|
271
|
+
rpc UpdateAssistantDeviceSettings (UpdateAssistantDeviceSettingsRequest) returns (stream UpdateAssistantDeviceSettingsResponse);
|
|
216
272
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|