@mega-yfue/eufy-sdk 0.0.4 → 0.1.0-beta.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/README.md +31 -12
- package/dist/client/device-registry.d.ts +343 -0
- package/dist/client/eufy-mega.d.ts +872 -0
- package/dist/client/index.d.ts +1 -6
- package/dist/client/map-channels.d.ts +22 -0
- package/dist/client/types.d.ts +383 -0
- package/dist/core/contracts.d.ts +898 -0
- package/dist/core/crypto.d.ts +98 -0
- package/dist/core/index.d.ts +9 -7
- package/dist/core/logger.d.ts +53 -0
- package/dist/core/lz4-block.d.ts +35 -0
- package/dist/core/raw-dp-hex.d.ts +32 -0
- package/dist/core/raw-dp-writer.d.ts +83 -0
- package/dist/core/store.d.ts +43 -0
- package/dist/core/types.d.ts +169 -0
- package/dist/core/util.d.ts +78 -0
- package/dist/index.d.ts +4 -7
- package/dist/index.js +25526 -14
- package/dist/index.js.map +7 -1
- package/dist/model/capabilities/access.d.ts +127 -0
- package/dist/model/capabilities/arming.d.ts +201 -0
- package/dist/model/capabilities/audio.d.ts +154 -0
- package/dist/model/capabilities/battery.d.ts +363 -0
- package/dist/model/capabilities/camera.d.ts +564 -0
- package/dist/model/capabilities/co.d.ts +40 -0
- package/dist/model/capabilities/contact.d.ts +133 -0
- package/dist/model/capabilities/doorbell.d.ts +345 -0
- package/dist/model/capabilities/dp-catalog.d.ts +38 -0
- package/dist/model/capabilities/index.d.ts +561 -0
- package/dist/model/capabilities/info.d.ts +28 -0
- package/dist/model/capabilities/keypad.d.ts +61 -0
- package/dist/model/capabilities/leak.d.ts +43 -0
- package/dist/model/capabilities/light.d.ts +174 -0
- package/dist/model/capabilities/locate.d.ts +63 -0
- package/dist/model/capabilities/lock.d.ts +242 -0
- package/dist/model/capabilities/manifest.d.ts +107 -0
- package/dist/model/capabilities/members.d.ts +647 -0
- package/dist/model/capabilities/motion.d.ts +377 -0
- package/dist/model/capabilities/person-detection.d.ts +8 -0
- package/dist/model/capabilities/ptz.d.ts +289 -0
- package/dist/model/capabilities/rtsp.d.ts +221 -0
- package/dist/model/capabilities/siren.d.ts +218 -0
- package/dist/model/capabilities/smart-light.d.ts +172 -0
- package/dist/model/capabilities/smoke.d.ts +40 -0
- package/dist/model/capabilities/snapshot.d.ts +6 -0
- package/dist/model/capabilities/storage.d.ts +11 -0
- package/dist/model/capabilities/suction.d.ts +104 -0
- package/dist/model/capabilities/types.d.ts +484 -0
- package/dist/model/capabilities/vacuum-clean.d.ts +1946 -0
- package/dist/model/capabilities/vacuum-dock.d.ts +208 -0
- package/dist/model/capabilities/video.d.ts +6 -0
- package/dist/model/classify.d.ts +78 -0
- package/dist/model/clean-record-detail.d.ts +65 -0
- package/dist/model/clean-records.d.ts +69 -0
- package/dist/model/device-family.d.ts +73 -0
- package/dist/model/device-types.d.ts +123 -0
- package/dist/model/device.d.ts +265 -0
- package/dist/model/index.d.ts +29 -4
- package/dist/model/infer.d.ts +23 -0
- package/dist/model/inspect.d.ts +61 -0
- package/dist/model/life-params.d.ts +21 -0
- package/dist/model/map-pixels.d.ts +70 -0
- package/dist/model/param-dictionary.d.ts +28 -0
- package/dist/model/param-namespace.d.ts +21 -0
- package/dist/model/proto-read.d.ts +53 -0
- package/dist/model/push-events.d.ts +147 -0
- package/dist/model/registry.d.ts +54 -0
- package/dist/model/types.d.ts +301 -0
- package/dist/model/vacuum-map-store.d.ts +92 -0
- package/dist/model/vacuum-map.d.ts +286 -0
- package/dist/model/vacuum-scenes.d.ts +76 -0
- package/dist/model/vacuum-schedules.d.ts +85 -0
- package/dist/transport/dp-preset.d.ts +102 -0
- package/dist/transport/ff09.d.ts +444 -0
- package/dist/transport/ffmpeg.d.ts +86 -0
- package/dist/transport/http/decodeImageV1.d.ts +20 -0
- package/dist/transport/http/decodeImageV2.d.ts +19 -0
- package/dist/transport/http/index.d.ts +5 -0
- package/dist/transport/http/light-catalog.d.ts +62 -0
- package/dist/transport/http/media-download.d.ts +14 -0
- package/dist/transport/http/mega-client.d.ts +514 -0
- package/dist/transport/http/phone-model.d.ts +21 -0
- package/dist/transport/index.d.ts +10 -7
- package/dist/transport/mqtt/app-client-id.d.ts +16 -0
- package/dist/transport/mqtt/availability.d.ts +14 -0
- package/dist/transport/mqtt/bare-ip-tls.d.ts +46 -0
- package/dist/transport/mqtt/biz-stream.d.ts +98 -0
- package/dist/transport/mqtt/broker-discovery.d.ts +55 -0
- package/dist/transport/mqtt/clean-codec.d.ts +14 -0
- package/dist/transport/mqtt/command-router.d.ts +285 -0
- package/dist/transport/mqtt/dp-codec.d.ts +58 -0
- package/dist/transport/mqtt/dp-color.d.ts +14 -0
- package/dist/transport/mqtt/engine.d.ts +16 -0
- package/dist/transport/mqtt/index.d.ts +5 -0
- package/dist/transport/mqtt/secure-mqtt.d.ts +107 -0
- package/dist/transport/mqtt/topics.d.ts +80 -0
- package/dist/transport/p2p/adts.d.ts +91 -0
- package/dist/transport/p2p/annexb.d.ts +124 -0
- package/dist/transport/p2p/codec.d.ts +166 -0
- package/dist/transport/p2p/command-router.d.ts +655 -0
- package/dist/transport/p2p/commands.d.ts +550 -0
- package/dist/transport/p2p/envelope.d.ts +46 -0
- package/dist/transport/p2p/fmp4.d.ts +89 -0
- package/dist/transport/p2p/fragment-recording.d.ts +33 -0
- package/dist/transport/p2p/index.d.ts +13 -0
- package/dist/transport/p2p/lan-ip.d.ts +25 -0
- package/dist/transport/p2p/live-stream.d.ts +223 -0
- package/dist/transport/p2p/live-trace.d.ts +123 -0
- package/dist/transport/p2p/media.d.ts +105 -0
- package/dist/transport/p2p/p2p-session.d.ts +620 -0
- package/dist/transport/p2p/readable-egress.d.ts +27 -0
- package/dist/transport/p2p/session-manager.d.ts +154 -0
- package/dist/transport/p2p/shared-live-source.d.ts +431 -0
- package/dist/transport/p2p/talkback.d.ts +187 -0
- package/dist/transport/p2p/video.d.ts +150 -0
- package/dist/transport/p2p/write-commands.d.ts +21 -0
- package/dist/transport/protobuf.d.ts +5 -0
- package/dist/transport/push/fcm.d.ts +23 -0
- package/dist/transport/push/index.d.ts +6 -0
- package/dist/transport/push/message-tags.d.ts +26 -0
- package/dist/transport/push/parser.d.ts +27 -0
- package/dist/transport/push/proto.d.ts +11 -0
- package/dist/transport/push/push-client.d.ts +64 -0
- package/dist/transport/push/store.d.ts +23 -0
- package/dist/transport/push/types.d.ts +180 -0
- package/dist/transport/raw-dp.d.ts +6 -0
- package/dist/transport/stored-image-cache.d.ts +23 -0
- package/dist/transport/tuya/account.d.ts +44 -0
- package/dist/transport/tuya/client.d.ts +89 -0
- package/dist/transport/tuya/command-router.d.ts +79 -0
- package/dist/transport/tuya/dp-codec.d.ts +56 -0
- package/dist/transport/tuya/index.d.ts +28 -0
- package/dist/transport/tuya/request.d.ts +157 -0
- package/dist/transport/tuya/sign.d.ts +64 -0
- package/package.json +12 -13
- package/dist/client/index.js +0 -2
- package/dist/client/index.js.map +0 -1
- package/dist/core/index.js +0 -2
- package/dist/core/index.js.map +0 -1
- package/dist/model/index.js +0 -2
- package/dist/model/index.js.map +0 -1
- package/dist/transport/index.js +0 -2
- package/dist/transport/index.js.map +0 -1
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
/** Command name → numeric id. */
|
|
2
|
+
export declare const CommandType: {
|
|
3
|
+
readonly CMD_START_REC_BROADCASE: 900;
|
|
4
|
+
readonly CMD_STOP_REC_BROADCASE: 901;
|
|
5
|
+
readonly CMD_FLOODLIGHT_BROADCAST: 902;
|
|
6
|
+
readonly CMD_BIND_BROADCAST: 1000;
|
|
7
|
+
readonly CMD_BIND_SYNC_ACCOUNT_INFO: 1001;
|
|
8
|
+
readonly CMD_UNBIND_ACCOUNT: 1002;
|
|
9
|
+
readonly CMD_START_REALTIME_MEDIA: 1003;
|
|
10
|
+
readonly CMD_STOP_REALTIME_MEDIA: 1004;
|
|
11
|
+
readonly CMD_START_TALKBACK: 1005;
|
|
12
|
+
readonly CMD_STOP_TALKBACK: 1006;
|
|
13
|
+
readonly CMD_START_VOICECALL: 1007;
|
|
14
|
+
readonly CMD_STOP_VOICECALL: 1008;
|
|
15
|
+
readonly CMD_START_RECORD: 1009;
|
|
16
|
+
readonly CMD_STOP_RECORD: 1010;
|
|
17
|
+
readonly CMD_PIR_SWITCH: 1011;
|
|
18
|
+
readonly CMD_CLOSE_PIR: 1012;
|
|
19
|
+
readonly CMD_IRCUT_SWITCH: 1013;
|
|
20
|
+
readonly CMD_CLOSE_IRCUT: 1014;
|
|
21
|
+
readonly CMD_EAS_SWITCH: 1015;
|
|
22
|
+
readonly CMD_CLOSE_EAS: 1016;
|
|
23
|
+
readonly CMD_AUDDEC_SWITCH: 1017;
|
|
24
|
+
readonly CMD_CLOSE_AUDDEC: 1018;
|
|
25
|
+
readonly CMD_DEVS_LOCK: 1019;
|
|
26
|
+
readonly CMD_DEVS_UNLOCK: 1020;
|
|
27
|
+
readonly CMD_RECORD_IMG: 1021;
|
|
28
|
+
readonly CMD_RECORD_IMG_STOP: 1022;
|
|
29
|
+
readonly CMD_STOP_SHARE: 1023;
|
|
30
|
+
readonly CMD_DOWNLOAD_VIDEO: 1024;
|
|
31
|
+
readonly CMD_RECORD_VIEW: 1025;
|
|
32
|
+
readonly CMD_RECORD_PLAY_CTRL: 1026;
|
|
33
|
+
readonly CMD_DELLETE_RECORD: 1027;
|
|
34
|
+
readonly CMD_SNAPSHOT: 1028;
|
|
35
|
+
readonly CMD_FORMAT_SD: 1029;
|
|
36
|
+
readonly CMD_CHANGE_PWD: 1030;
|
|
37
|
+
readonly CMD_CHANGE_WIFI_PWD: 1031;
|
|
38
|
+
readonly CMD_WIFI_CONFIG: 1032;
|
|
39
|
+
readonly CMD_TIME_SYCN: 1033;
|
|
40
|
+
readonly CMD_HUB_REBOOT: 1034;
|
|
41
|
+
readonly CMD_DEVS_SWITCH: 1035;
|
|
42
|
+
readonly CMD_HUB_TO_FACTORY: 1036;
|
|
43
|
+
readonly CMD_DEVS_TO_FACTORY: 1037;
|
|
44
|
+
readonly CMD_DEVS_BIND_BROADCASE: 1038;
|
|
45
|
+
readonly CMD_DEVS_BIND_NOTIFY: 1039;
|
|
46
|
+
readonly CMD_DEVS_UNBIND: 1040;
|
|
47
|
+
readonly P2P_RESET: 1040;
|
|
48
|
+
readonly CMD_RECORDDATE_SEARCH: 1041;
|
|
49
|
+
readonly CMD_RECORDLIST_SEARCH: 1042;
|
|
50
|
+
readonly CMD_GET_UPGRADE_RESULT: 1043;
|
|
51
|
+
readonly CMD_P2P_DISCONNECT: 1044;
|
|
52
|
+
readonly CMD_DEV_LED_SWITCH: 1045;
|
|
53
|
+
readonly CMD_CLOSE_DEV_LED: 1046;
|
|
54
|
+
readonly CMD_COLLECT_RECORD: 1047;
|
|
55
|
+
readonly CMD_DECOLLECT_RECORD: 1048;
|
|
56
|
+
readonly CMD_BATCH_RECORD: 1049;
|
|
57
|
+
readonly CMD_STRESS_TEST_OPER: 1050;
|
|
58
|
+
readonly CMD_DOWNLOAD_CANCEL: 1051;
|
|
59
|
+
readonly CMD_FORMAT_SD_PROGRESS: 1053;
|
|
60
|
+
readonly CMD_BIND_SYNC_ACCOUNT_INFO_EX: 1054;
|
|
61
|
+
readonly CMD_PLAY_BACK_EVENT_STOP: 1055;
|
|
62
|
+
readonly CMD_LIVEVIEW_LED_SWITCH: 1056;
|
|
63
|
+
readonly CMD_REPAIR_SD: 1057;
|
|
64
|
+
readonly CMD_REPAIR_PROGRESS: 1058;
|
|
65
|
+
readonly CMD_SET_CROSS_CAMERA_TRACKING: 1065;
|
|
66
|
+
readonly CMD_SET_TRACKING_ASSISTANCE: 1069;
|
|
67
|
+
readonly CMD_SET_CONTINUOUS_TRACKING_TIME: 1070;
|
|
68
|
+
readonly CMD_SET_CROSS_TRACKING_CAMERA_LIST: 1072;
|
|
69
|
+
readonly CMD_SET_CROSS_TRACKING_GROUP_LIST: 1073;
|
|
70
|
+
readonly CMD_GATEWAYINFO: 1100;
|
|
71
|
+
readonly CMD_GET_BATTERY: 1101;
|
|
72
|
+
readonly CMD_SDINFO: 1102;
|
|
73
|
+
readonly CMD_CAMERA_INFO: 1103;
|
|
74
|
+
readonly CMD_GET_RECORD_TIME: 1104;
|
|
75
|
+
readonly CMD_GET_MDETECT_PARAM: 1105;
|
|
76
|
+
readonly CMD_MDETECTINFO: 1106;
|
|
77
|
+
readonly CMD_GET_ARMING_INFO: 1107;
|
|
78
|
+
readonly CMD_GET_ARMING_STATUS: 1108;
|
|
79
|
+
readonly CMD_GET_AUDDEC_INFO: 1109;
|
|
80
|
+
readonly CMD_GET_AUDDEC_SENSITIVITY: 1110;
|
|
81
|
+
readonly CMD_GET_AUDDE_CSTATUS: 1111;
|
|
82
|
+
readonly CMD_GET_MIRRORMODE: 1112;
|
|
83
|
+
readonly CMD_GET_IRMODE: 1113;
|
|
84
|
+
readonly CMD_GET_IRCUTSENSITIVITY: 1114;
|
|
85
|
+
readonly CMD_GET_PIRINFO: 1115;
|
|
86
|
+
readonly CMD_GET_PIRCTRL: 1116;
|
|
87
|
+
readonly CMD_GET_PIRSENSITIVITY: 1117;
|
|
88
|
+
readonly CMD_GET_EAS_STATUS: 1118;
|
|
89
|
+
readonly CMD_GET_CAMERA_LOCK: 1119;
|
|
90
|
+
readonly CMD_GET_GATEWAY_LOCK: 1120;
|
|
91
|
+
readonly CMD_GET_UPDATE_STATUS: 1121;
|
|
92
|
+
readonly CMD_GET_ADMIN_PWD: 1122;
|
|
93
|
+
readonly CMD_GET_WIFI_PWD: 1123;
|
|
94
|
+
readonly CMD_GET_EXCEPTION_LOG: 1124;
|
|
95
|
+
readonly CMD_GET_NEWVESION: 1125;
|
|
96
|
+
readonly CMD_GET_HUB_TONE_INFO: 1126;
|
|
97
|
+
readonly CMD_GET_DEV_TONE_INFO: 1127;
|
|
98
|
+
readonly CMD_GET_HUB_NAME: 1128;
|
|
99
|
+
readonly CMD_GET_DEVS_NAME: 1129;
|
|
100
|
+
readonly CMD_GET_P2P_CONN_STATUS: 1130;
|
|
101
|
+
readonly CMD_GET_DEV_STATUS: 1131;
|
|
102
|
+
readonly CMD_GET_HUB_LOG: 1132;
|
|
103
|
+
readonly CMD_GET_HUB_UPGRADE: 1133;
|
|
104
|
+
readonly CMD_GET_DEV_UPGRADE: 1134;
|
|
105
|
+
readonly CMD_GET_TFCARD_STATUS: 1135;
|
|
106
|
+
readonly CMD_GET_CHARGE_STATUS: 1136;
|
|
107
|
+
readonly CMD_GET_HUB_POWER_SUPPLY: 1137;
|
|
108
|
+
readonly CMD_GET_BATTERY_TEMP: 1138;
|
|
109
|
+
readonly CMD_PING: 1139;
|
|
110
|
+
readonly CMD_GET_HUB_LOGIG: 1140;
|
|
111
|
+
readonly CMD_GET_SUB1G_RSSI: 1141;
|
|
112
|
+
readonly CMD_GET_WIFI_RSSI: 1142;
|
|
113
|
+
readonly CMD_GET_TFCARD_FORMAT_STATUS: 1143;
|
|
114
|
+
readonly CMD_SDINFO_EX: 1144;
|
|
115
|
+
readonly CMD_NAS_SWITCH: 1145;
|
|
116
|
+
readonly CMD_NAS_TEST: 1146;
|
|
117
|
+
readonly CMD_GET_CUSTOM1_ACTION: 1148;
|
|
118
|
+
readonly CMD_GET_CUSTOM2_ACTION: 1149;
|
|
119
|
+
readonly CMD_GET_CUSTOM3_ACTION: 1150;
|
|
120
|
+
readonly CMD_GET_ALARM_MODE: 1151;
|
|
121
|
+
readonly CMD_GET_DEVICE_PING: 1152;
|
|
122
|
+
readonly CMD_GET_TFCARD_REPAIR_STATUS: 1153;
|
|
123
|
+
readonly ARM_DELAY_HOME: 1157;
|
|
124
|
+
readonly ARM_DELAY_AWAY: 1158;
|
|
125
|
+
readonly ARM_DELAY_CUS1: 1159;
|
|
126
|
+
readonly ARM_DELAY_CUS2: 1160;
|
|
127
|
+
readonly ARM_DELAY_CUS3: 1161;
|
|
128
|
+
readonly SWITCH_TIME: 1162;
|
|
129
|
+
readonly CMD_GET_START_HOMEKIT: 1163;
|
|
130
|
+
readonly CMD_GET_DELAY_ALARM: 1164;
|
|
131
|
+
readonly AUTOMATION_ID_LIST: 1165;
|
|
132
|
+
readonly CMD_ALARM_DELAY_HOME: 1166;
|
|
133
|
+
readonly CMD_ALARM_DELAY_AWAY: 1167;
|
|
134
|
+
readonly CMD_ALARM_DELAY_CUSTOM1: 1168;
|
|
135
|
+
readonly CMD_ALARM_DELAY_CUSTOM2: 1169;
|
|
136
|
+
readonly CMD_ALARM_DELAY_CUSTOM3: 1170;
|
|
137
|
+
readonly CMD_LEAVING_DELAY_HOME: 1171;
|
|
138
|
+
readonly CMD_LEAVING_DELAY_AWAY: 1172;
|
|
139
|
+
readonly CMD_LEAVING_DELAY_CUSTOM1: 1173;
|
|
140
|
+
readonly CMD_LEAVING_DELAY_CUSTOM2: 1174;
|
|
141
|
+
readonly CMD_LEAVING_DELAY_CUSTOM3: 1175;
|
|
142
|
+
readonly CMD_GET_HUB_LAN_IP: 1176;
|
|
143
|
+
readonly CMD_GET_OFF_ACTION: 1177;
|
|
144
|
+
readonly ARM_DELAY_OFF: 1180;
|
|
145
|
+
readonly CMD_GET_DEV_HK_RECORD_STATUS: 1181;
|
|
146
|
+
readonly CMD_GET_DEV_CLOUD_STATUS: 1182;
|
|
147
|
+
readonly CMD_GET_WORKING_DAYS_HB3: 1191;
|
|
148
|
+
readonly CMD_GET_DETECTED_EVENTS_HB3: 1192;
|
|
149
|
+
readonly CMD_GET_RECORDED_EVENTS_HB3: 1193;
|
|
150
|
+
readonly CMD_SET_LANGUAGE: 1200;
|
|
151
|
+
readonly CMD_SET_TONE_FILE: 1201;
|
|
152
|
+
readonly CMD_SET_DEVS_TONE_FILE: 1202;
|
|
153
|
+
readonly CMD_SET_RECORDTIME: 1203;
|
|
154
|
+
readonly CMD_SET_MDETECTPARAM: 1204;
|
|
155
|
+
readonly CMD_SET_RESOLUTION: 1205;
|
|
156
|
+
readonly CMD_SET_BITRATE: 1206;
|
|
157
|
+
readonly CMD_SET_MIRRORMODE: 1207;
|
|
158
|
+
readonly CMD_SET_IRMODE: 1208;
|
|
159
|
+
readonly CMD_SET_PIR_INFO: 1209;
|
|
160
|
+
readonly CMD_SET_PIRSENSITIVITY: 1210;
|
|
161
|
+
readonly CMD_SET_ARMING_SCHEDULE: 1211;
|
|
162
|
+
readonly CMD_SET_AUDDEC_INFO: 1212;
|
|
163
|
+
readonly CMD_SET_AUDDEC_SENSITIVITY: 1213;
|
|
164
|
+
readonly CMD_SET_DEVS_OSD: 1214;
|
|
165
|
+
readonly CMD_SET_TIMEZONE: 1215;
|
|
166
|
+
readonly CMD_SET_HUB_NAME: 1216;
|
|
167
|
+
readonly CMD_SET_DEVS_NAME: 1217;
|
|
168
|
+
readonly CMD_SET_HUB_PIR_STATUS: 1218;
|
|
169
|
+
readonly CMD_SET_HUB_IRCUT_STATUS: 1219;
|
|
170
|
+
readonly CMD_SET_HUB_GS_STATUS: 1220;
|
|
171
|
+
readonly CMD_SET_HUB_MVDEC_STATUS: 1221;
|
|
172
|
+
readonly CMD_SET_HUB_AUDEC_STATUS: 1222;
|
|
173
|
+
readonly CMD_SET_STORGE_TYPE: 1223;
|
|
174
|
+
readonly CMD_SET_ARMING: 1224;
|
|
175
|
+
readonly CMD_GET_HOME_ACTION: 1225;
|
|
176
|
+
readonly CMD_SET_GSSENSITIVITY: 1226;
|
|
177
|
+
readonly CMD_SET_AUDIOSENSITIVITY: 1227;
|
|
178
|
+
readonly CMD_SET_DEV_STORAGE_TYPE: 1228;
|
|
179
|
+
readonly CMD_SET_DEV_MIC_VOLUME: 1229;
|
|
180
|
+
readonly CMD_SET_DEV_SPEAKER_VOLUME: 1230;
|
|
181
|
+
readonly CMD_SET_AI_PHOTO: 1231;
|
|
182
|
+
readonly CMD_DEL_USER_PHOTO: 1232;
|
|
183
|
+
readonly CMD_SET_PRI_ACTION: 1233;
|
|
184
|
+
readonly CMD_DEL_FACE_PHOTO: 1234;
|
|
185
|
+
readonly CMD_SET_HUB_SPK_VOLUME: 1235;
|
|
186
|
+
readonly CMD_SET_AI_SWITCH: 1236;
|
|
187
|
+
readonly CMD_SET_AS_SERVER: 1237;
|
|
188
|
+
readonly CMD_SET_UPGRADE: 1238;
|
|
189
|
+
readonly P2P_ENTER_OTA: 1238;
|
|
190
|
+
readonly CMD_GET_AWAY_ACTION: 1239;
|
|
191
|
+
readonly CMD_SET_DEV_MIC_MUTE: 1240;
|
|
192
|
+
readonly CMD_SET_DEV_SPEAKER_MUTE: 1241;
|
|
193
|
+
readonly CMD_SET_AI_NICKNAME: 1242;
|
|
194
|
+
readonly CMD_SET_PIR_TEST_MODE: 1243;
|
|
195
|
+
readonly CMD_SET_PIR_POWERMODE: 1246;
|
|
196
|
+
readonly CMD_SET_TELNET: 1247;
|
|
197
|
+
readonly CMD_SET_NOTFACE_PUSHMSG: 1248;
|
|
198
|
+
readonly CMD_DEV_RECORD_TIMEOUT: 1249;
|
|
199
|
+
readonly CMD_DEV_RECORD_INTERVAL: 1250;
|
|
200
|
+
readonly CMD_DEV_RECORD_AUTOSTOP: 1251;
|
|
201
|
+
readonly CMD_DEV_PUSHMSG_MODE: 1252;
|
|
202
|
+
readonly CMD_SET_HUB_OSD: 1253;
|
|
203
|
+
readonly CMD_SET_JSON_SCHEDULE: 1254;
|
|
204
|
+
readonly CMD_SET_ALL_ACTION: 1255;
|
|
205
|
+
readonly CMD_SET_CUSTOM_MODE: 1256;
|
|
206
|
+
readonly CMD_SET_SCHEDULE_DEFAULT: 1257;
|
|
207
|
+
readonly CMD_GEO_SET_USER_STATUS: 1258;
|
|
208
|
+
readonly CMD_GEO_ADD_USER_INFO: 1259;
|
|
209
|
+
readonly CMD_GEO_UPDATE_USER_INFO: 1260;
|
|
210
|
+
readonly CMD_GEO_DEL_USER_INFO: 1261;
|
|
211
|
+
readonly CMD_GEO_UPDATE_LOC_SETTING: 1262;
|
|
212
|
+
readonly CMD_GET_REPEATER_SITE_LIST: 1263;
|
|
213
|
+
readonly CMD_SET_REPEATER_PARAMS: 1264;
|
|
214
|
+
readonly CMD_GET_WAN_MODE: 1265;
|
|
215
|
+
readonly CMD_GET_REPEATER_RSSI: 1266;
|
|
216
|
+
readonly CMD_GET_WAN_LINK_STATUS: 1268;
|
|
217
|
+
readonly CMD_REPEATER_RSSI_TEST: 1269;
|
|
218
|
+
readonly CMD_GET_REPEATER_CONN_TEST_RESULT: 1270;
|
|
219
|
+
readonly CMD_SET_SNOOZE_MODE: 1271;
|
|
220
|
+
readonly CMD_SET_MDSENSITIVITY: 1272;
|
|
221
|
+
readonly CMD_SET_DEV_MD_RECORD: 1273;
|
|
222
|
+
readonly CMD_GET_DEVS_RSSI_LIST: 1274;
|
|
223
|
+
readonly CMD_SET_MOTION_SENSITIVITY: 1276;
|
|
224
|
+
readonly CMD_SET_NIGHT_VISION_TYPE: 1277;
|
|
225
|
+
readonly AUTOMATION_DATA: 1278;
|
|
226
|
+
readonly CMD_SET_HUB_ALARM_CLOSE: 1279;
|
|
227
|
+
readonly CMD_SET_HUB_ALARM_AUTO_END: 1280;
|
|
228
|
+
readonly CMD_HUB_ALARM_TONE: 1281;
|
|
229
|
+
readonly CMD_HUB_NOTIFY_ALARM: 1282;
|
|
230
|
+
readonly CMD_HUB_NOTIFY_MODE: 1283;
|
|
231
|
+
readonly CMD_SET_RECORD_QUALITY: 1286;
|
|
232
|
+
readonly CMD_SET_NAS_PASSWD: 1287;
|
|
233
|
+
readonly CMD_SET_AUDIO_MUTE_RECORD: 1288;
|
|
234
|
+
readonly CMD_SET_PUSH_EFFECT: 1289;
|
|
235
|
+
readonly CMD_SET_DOORSENSOR_ALWAYS_OPEN: 1290;
|
|
236
|
+
readonly CMD_SET_DOORSENSOR_ALWAYS_OPEN_DELAY: 1291;
|
|
237
|
+
readonly CMD_SET_PROMPT_VOLUME: 1292;
|
|
238
|
+
readonly CMD_SET_POWER_CHARGE: 1293;
|
|
239
|
+
readonly CMD_GET_SOLAR_SHOW: 1294;
|
|
240
|
+
readonly CMD_SET_PRIVACYPARAM: 1295;
|
|
241
|
+
readonly CMD_SET_MOTION_DETECTION_TYPE_HB3: 1298;
|
|
242
|
+
readonly CMD_VIDEO_FRAME: 1300;
|
|
243
|
+
readonly CMD_AUDIO_FRAME: 1301;
|
|
244
|
+
readonly CMD_STREAM_MSG: 1302;
|
|
245
|
+
readonly CMD_CONVERT_MP4_OK: 1303;
|
|
246
|
+
readonly CMD_DOWNLOAD_FINISH: 1304;
|
|
247
|
+
readonly CMD_DATABASE: 1306;
|
|
248
|
+
readonly CMD_STORAGE_INFO_HB3: 1307;
|
|
249
|
+
readonly CMD_DATABASE_IMAGE: 1308;
|
|
250
|
+
readonly CMD_SET_PAYLOAD: 1350;
|
|
251
|
+
readonly CMD_NOTIFY_PAYLOAD: 1351;
|
|
252
|
+
readonly CMD_RECORD_AUDIO_SWITCH: 1366;
|
|
253
|
+
readonly CMD_SET_AUTO_DELETE_RECORD: 1367;
|
|
254
|
+
readonly CMD_SET_FLOODLIGHT_MANUAL_SWITCH: 1400;
|
|
255
|
+
readonly CMD_SET_FLOODLIGHT_BRIGHT_VALUE: 1401;
|
|
256
|
+
readonly CMD_SET_FLOODLIGHT_STREET_LAMP: 1402;
|
|
257
|
+
readonly CMD_SET_FLOODLIGHT_TOTAL_SWITCH: 1403;
|
|
258
|
+
readonly CMD_SET_FLOODLIGHT_LIGHT_SCHEDULE: 1404;
|
|
259
|
+
readonly CMD_GET_FLOODLIGHT_WIFI_LIST: 1405;
|
|
260
|
+
readonly CMD_SET_FLOODLIGHT_WIFI_CONNECT: 1406;
|
|
261
|
+
readonly CMD_SET_FLOODLIGHT_DETECTION_AREA: 1407;
|
|
262
|
+
readonly CMD_SET_LIGHT_CTRL_PIR_SWITCH: 1408;
|
|
263
|
+
readonly CMD_SET_LIGHT_CTRL_PIR_TIME: 1409;
|
|
264
|
+
readonly CMD_SET_LIGHT_CTRL_LAMP_VALUE: 1410;
|
|
265
|
+
readonly CMD_SET_LIGHT_CTRL_TRIGGER: 1411;
|
|
266
|
+
readonly CMD_SET_LIGHT_CTRL_BRIGHT_PIR: 1412;
|
|
267
|
+
readonly CMD_SET_LIGHT_CTRL_BRIGHT_SCH: 1413;
|
|
268
|
+
readonly CMD_SET_LIGHT_CTRL_SUNRISE_SWITCH: 1414;
|
|
269
|
+
readonly CMD_SET_LIGHT_CTRL_SUNRISE_INFO: 1415;
|
|
270
|
+
readonly CMD_SET_LIGHT_CTRL_BRIGHT_SCH_T8425: 1421;
|
|
271
|
+
readonly CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425: 1422;
|
|
272
|
+
readonly CMD_DOOR_SENSOR_INFO_REPORT: 1500;
|
|
273
|
+
readonly CMD_DOOR_SENSOR_GET_INFO: 1501;
|
|
274
|
+
readonly CMD_DOOR_SENSOR_GET_DOOR_STATE: 1502;
|
|
275
|
+
readonly CMD_DOOR_SENSOR_DOOR_EVT: 1503;
|
|
276
|
+
readonly CMD_DOOR_SENSOR_LOW_POWER_REPORT: 1504;
|
|
277
|
+
readonly CMD_DOOR_SENSOR_ENABLE_LED: 1505;
|
|
278
|
+
readonly CMD_DOOR_SENSOR_ALARM_ENABLE: 1506;
|
|
279
|
+
readonly CMD_SENSOR_SET_CHIRP_TONE: 1507;
|
|
280
|
+
readonly CMD_SENSOR_SET_CHIRP_VOLUME: 1508;
|
|
281
|
+
readonly CMD_ENTRY_SENSOR_STATUS: 1550;
|
|
282
|
+
readonly CMD_ENTRY_SENSOR_CHANGE_TIME: 1551;
|
|
283
|
+
readonly CMD_ENTRY_SENSOR_BAT_STATE: 1552;
|
|
284
|
+
readonly CMD_MOTION_SENSOR_BAT_STATE: 1601;
|
|
285
|
+
readonly CMD_MOTION_SENSOR_PIR_EVT: 1605;
|
|
286
|
+
readonly CMD_MOTION_SENSOR_ENABLE_LED: 1607;
|
|
287
|
+
readonly CMD_MOTION_SENSOR_SET_PIR_SENSITIVITY: 1609;
|
|
288
|
+
readonly CMD_MOTION_SENSOR_EXIT_USER_TEST_MODE: 1610;
|
|
289
|
+
readonly CMD_MOTION_SENSOR_SET_CHIRP_TONE: 1611;
|
|
290
|
+
readonly CMD_MOTION_SENSOR_WORK_MODE: 1612;
|
|
291
|
+
readonly CMD_MOTION_SENSOR_ENTER_USER_TEST_MODE: 1613;
|
|
292
|
+
readonly CMD_KEYPAD_SET_PASSWORD: 1650;
|
|
293
|
+
readonly CMD_KEYPAD_BATTERY_CAP_STATE: 1653;
|
|
294
|
+
readonly CMD_KEYPAD_BATTERY_TEMP_STATE: 1654;
|
|
295
|
+
readonly CMD_KEYPAD_BATTERY_CHARGER_STATE: 1655;
|
|
296
|
+
readonly CMD_KEYPAD_GET_PASSWORD: 1657;
|
|
297
|
+
readonly CMD_KEYPAD_SET_CUSTOM_MAP: 1660;
|
|
298
|
+
readonly CMD_KEYPAD_GET_PASSWORD_LIST: 1662;
|
|
299
|
+
readonly CMD_KEYPAD_PSW_OPEN: 1664;
|
|
300
|
+
readonly CMD_KEYPAD_IS_PSW_SET: 1670;
|
|
301
|
+
readonly CMD_DOORBELL_SET_PAYLOAD: 1700;
|
|
302
|
+
readonly CMD_DOORBELL_NOTIFY_PAYLOAD: 1701;
|
|
303
|
+
readonly CMD_BAT_DOORBELL_CHIME_SWITCH: 1702;
|
|
304
|
+
readonly CMD_BAT_DOORBELL_MECHANICAL_CHIME_SWITCH: 1703;
|
|
305
|
+
readonly CMD_BAT_DOORBELL_WDR_SWITCH: 1704;
|
|
306
|
+
readonly CMD_BAT_DOORBELL_VIDEO_QUALITY: 1705;
|
|
307
|
+
readonly CMD_BAT_DOORBELL_QUICK_RESPONSE: 1706;
|
|
308
|
+
readonly CMD_BAT_DOORBELL_UPDATE_QUICK_RESPONSE: 1707;
|
|
309
|
+
readonly CMD_BAT_DOORBELL_SET_RINGTONE_VOLUME: 1708;
|
|
310
|
+
readonly CMD_BAT_DOORBELL_SET_ELECTRONIC_RINGTONE_TIME: 1709;
|
|
311
|
+
readonly CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE: 1710;
|
|
312
|
+
readonly CMD_BAT_DOORBELL_SET_AC_VALUE: 1714;
|
|
313
|
+
readonly CMD_BAT_DOORBELL_SET_LED_ENABLE: 1716;
|
|
314
|
+
readonly CMD_BAT_DOORBELL_DINGDONG_V: 1717;
|
|
315
|
+
readonly CMD_BAT_DOORBELL_DINGDONG_R: 1718;
|
|
316
|
+
readonly CMD_BAT_DOORBELL_ONLY_AI: 1719;
|
|
317
|
+
readonly CMD_HUB_CLEAR_EMMC_VOLUME: 1800;
|
|
318
|
+
readonly CMD_HUB_NOTIFY_UPDATE: 1829;
|
|
319
|
+
readonly CMD_RF433_DONGLE_STATUS_CHANGE: 1900;
|
|
320
|
+
readonly CMD_RF433_GET_DONGLE_STATE: 1901;
|
|
321
|
+
readonly CMD_RF433_TRIGER_RING: 1902;
|
|
322
|
+
readonly CMD_DOORLOCK_BIND: 1910;
|
|
323
|
+
readonly CMD_DOORLOCK_DATA_PASS_THROUGH: 1911;
|
|
324
|
+
readonly CMD_DOORLOCK_GET_STATE: 1912;
|
|
325
|
+
readonly CMD_DOORLOCK_OTA: 1914;
|
|
326
|
+
readonly CMD_DOORLOCK_ACCOUNT_UNBIND: 1915;
|
|
327
|
+
readonly CMD_DOORLOCK_P2P_SEQ: 1916;
|
|
328
|
+
readonly CMD_DOORLOCK_ONLINE_REPORT: 1917;
|
|
329
|
+
readonly CMD_DOORLOCK_DATA_PASS_THROUGH_ERR: 1918;
|
|
330
|
+
readonly CMD_DOORLOCK_SET_PUSH_MODE: 1919;
|
|
331
|
+
readonly CMD_SET_PAYLOAD_LOCKV12: 1930;
|
|
332
|
+
readonly CMD_WIFILOCK_KEYPAD_ENTER_OTA: 1933;
|
|
333
|
+
readonly CMD_TRANSFER_PAYLOAD: 1940;
|
|
334
|
+
readonly P2P_ADD_PW: 1950;
|
|
335
|
+
readonly P2P_DELETE_USER: 1951;
|
|
336
|
+
readonly P2P_DELETE_FINGER: 1953;
|
|
337
|
+
readonly P2P_QUERY_PW: 1954;
|
|
338
|
+
readonly P2P_QUERY_STATUS_IN_LOCK: 1955;
|
|
339
|
+
readonly P2P_UPDATE_USER_TIME: 1956;
|
|
340
|
+
readonly P2P_UPDATE_PW: 1957;
|
|
341
|
+
readonly P2P_SET_LOCK_PARAM: 1958;
|
|
342
|
+
readonly P2P_GET_LOCK_PARAM: 1959;
|
|
343
|
+
readonly P2P_CALIBRATE_LOCK: 1960;
|
|
344
|
+
readonly P2P_ON_OFF_LOCK: 1961;
|
|
345
|
+
readonly P2P_PULL_BLE: 1962;
|
|
346
|
+
readonly P2P_GET_FINGER_PW_USAGE: 1963;
|
|
347
|
+
readonly P2P_GET_USER_AND_PW_ID: 1964;
|
|
348
|
+
readonly CMD_SMARKLOCK_ADD_FINGER: 1965;
|
|
349
|
+
readonly CMD_SMARKLOCK_CANCLE_FINGER: 1966;
|
|
350
|
+
readonly CMD_SMARKLOCK_ADD_FINGER_STEP: 1967;
|
|
351
|
+
readonly CMD_SMARTLOCK_ALARM_NOTIFY: 1970;
|
|
352
|
+
readonly CMD_SMARTLOCK_ALARM_STOP: 1971;
|
|
353
|
+
readonly CMD_SMARTLOCK_GET_DOOR_STATUS: 1972;
|
|
354
|
+
readonly CMD_SMART_DROP_OPEN_LID: 2100;
|
|
355
|
+
readonly CMD_SMART_DROP_DELIVERY_MODE: 2103;
|
|
356
|
+
readonly CMD_SMART_DROP_OPEN: 2105;
|
|
357
|
+
readonly CMD_SMART_DROP_IS_DENIED_DELIVERY: 2106;
|
|
358
|
+
readonly CMD_SMART_DROP_IS_PIN_REQUIRED: 2107;
|
|
359
|
+
readonly SUB1G_REP_RUNTIME_STATE: 2107;
|
|
360
|
+
readonly SUB1G_REP_CHARGE_STATE: 2108;
|
|
361
|
+
readonly CMD_SMART_DROP_HAS_MASTER_PIN: 2109;
|
|
362
|
+
readonly SUB1G_REP_BIND_FAILED: 2109;
|
|
363
|
+
readonly SUB1G_REP_POWER_OFF: 2110;
|
|
364
|
+
readonly SUB1G_REP_UNPLUG_POWER_LINE: 2111;
|
|
365
|
+
readonly CMD_SET_AUDIO_MOTION_ACTIVATED_PROMPT: 2123;
|
|
366
|
+
readonly CMD_DOORBELL_DUAL_VIEW_MODE: 2700;
|
|
367
|
+
readonly CMD_DOORBELL_DUAL_RADAR_WD_DETECTION_SENSITIVITY: 2705;
|
|
368
|
+
readonly CMD_DOORBELL_DUAL_RADAR_WD_SWITCH: 2706;
|
|
369
|
+
readonly CMD_DOORBELL_DUAL_RADAR_WD_DISTANCE: 2707;
|
|
370
|
+
readonly CMD_DOORBELL_DUAL_RADAR_WD_TIME: 2708;
|
|
371
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_GUARD_SWITCH: 2709;
|
|
372
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_GUARD_VOICE: 2710;
|
|
373
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_GUARD_TIME: 2711;
|
|
374
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_STRAND_SWITCH: 2712;
|
|
375
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_STRAND_TIME: 2713;
|
|
376
|
+
readonly CMD_DOORBELL_DUAL_PACKAGE_ASSISTANT_SWITCH: 2714;
|
|
377
|
+
readonly CMD_DOORBELL_DUAL_RADAR_WD_AUTO_RESPONSE: 2715;
|
|
378
|
+
readonly CMD_DOORBELL_DUAL_RING_AUTO_RESPONSE: 2716;
|
|
379
|
+
readonly CMD_DOORBELL_DUAL_DELIVERY_GUARD_SWITCH: 2723;
|
|
380
|
+
readonly CMD_DOORBELL_DUAL_NOTIFICATION_HUMAN_DETECT: 2725;
|
|
381
|
+
readonly CMD_MOTION_SET_LEAVING_DETECTION: 2726;
|
|
382
|
+
readonly CMD_MOTION_SET_LEAVING_REACTIONS: 2727;
|
|
383
|
+
readonly CMD_BAT_DOORBELL_VIDEO_QUALITY2: 2730;
|
|
384
|
+
readonly CMD_BAT_DOORBELL_RECORD_QUALITY2: 2731;
|
|
385
|
+
readonly CMD_SMARTLOCK_QUERY_STATUS: 6000;
|
|
386
|
+
readonly CMD_SMARTLOCK_QUERY_BATTERY_LEVEL: 6001;
|
|
387
|
+
readonly CMD_INDOOR_SET_CONTINUE_ENABLE: 6010;
|
|
388
|
+
readonly CMD_INDOOR_SET_CONTINUE_TYPE: 6011;
|
|
389
|
+
readonly CMD_INDOOR_SET_RECORD_AUDIO_ENABLE: 6012;
|
|
390
|
+
readonly CMD_INDOOR_CONTINUE_RECORD_SCHEDULE: 6013;
|
|
391
|
+
readonly CMD_INDOOR_LED_SWITCH: 6014;
|
|
392
|
+
readonly CMD_INDOOR_PAN_SPEED: 6015;
|
|
393
|
+
readonly CMD_INDOOR_PAN_MOTION_TRACK: 6016;
|
|
394
|
+
readonly CMD_INDOOR_PAN_CALIBRATION: 6017;
|
|
395
|
+
readonly CMD_INDOOR_PUSH_NOTIFY_TYPE: 6020;
|
|
396
|
+
readonly CMD_INDOOR_PUSH_JUMP_TYPE: 6021;
|
|
397
|
+
readonly CMD_INDOOR_AI_PERSON_ENABLE: 6022;
|
|
398
|
+
readonly CMD_INDOOR_AI_MOTION_ENABLE: 6023;
|
|
399
|
+
readonly CMD_INDOOR_AI_CRYING_ENABLE: 6024;
|
|
400
|
+
readonly CMD_INDOOR_AI_SOUND_ENABLE: 6025;
|
|
401
|
+
readonly CMD_INDOOR_AI_PET_ENABLE: 6026;
|
|
402
|
+
readonly CMD_INDOOR_SET_MOTION_DETECTION_TYPE: 6027;
|
|
403
|
+
readonly CMD_INDOOR_ROTATE: 6030;
|
|
404
|
+
readonly CMD_FLOODLIGHT_SET_MOTION_AUTO_CRUISE: 6031;
|
|
405
|
+
readonly CMD_FLOODLIGHT_SAVE_MOTION_PRESET_POSITION: 6032;
|
|
406
|
+
readonly CMD_FLOODLIGHT_DELETE_MOTION_PRESET_POSITION: 6033;
|
|
407
|
+
readonly CMD_FLOODLIGHT_SET_MOTION_PRESET_POSITION: 6035;
|
|
408
|
+
readonly CMD_OUTDOOR_ROTATE: 6038;
|
|
409
|
+
readonly CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE: 6040;
|
|
410
|
+
readonly CMD_INDOOR_DET_SET_MOTION_SENSITIVITY_IDX: 6041;
|
|
411
|
+
readonly CMD_INDOOR_DET_SET_ACTIVE_ZONE: 6042;
|
|
412
|
+
readonly CMD_INDOOR_DET_SET_SOUND_DETECT_ENABLE: 6043;
|
|
413
|
+
readonly CMD_INDOOR_DET_SET_SOUND_SENSITIVITY_IDX: 6044;
|
|
414
|
+
readonly CMD_INDOOR_DET_SET_MOTION_DETECT_TYPE: 6045;
|
|
415
|
+
readonly CMD_INDOOR_DET_SET_SOUND_DETECT_TYPE: 6046;
|
|
416
|
+
readonly CMD_INDOOR_DET_SET_PET_ENABLE: 6047;
|
|
417
|
+
readonly CMD_INDOOR_DET_SET_PET_EXPEL_RESPONSOR: 6048;
|
|
418
|
+
readonly CMD_INDOOR_DET_SET_PET_EXPEL_RESP_IDX: 6049;
|
|
419
|
+
readonly CMD_INDOOR_NAS_STORAGE_TYPE: 6050;
|
|
420
|
+
readonly CMD_INDOOR_TFCARD_NAS_STATUS: 6051;
|
|
421
|
+
readonly CMD_INDOOR_OWNER_STREAM_TYPE: 6052;
|
|
422
|
+
readonly CMD_INDOOR_EVENT_COUNT: 6053;
|
|
423
|
+
readonly CMD_INDOOR_SHOW_SDCARD: 6054;
|
|
424
|
+
readonly CMD_BATTERY_FALSE_EVENT_COUNT: 6056;
|
|
425
|
+
readonly CMD_INDOOR_HK_ACTIVE_HOMEKIT: 6061;
|
|
426
|
+
readonly CMD_INDOOR_HK_GET_HK_BIND_STATUS: 6062;
|
|
427
|
+
readonly CMD_SET_PIR_SENSITIVITY: 6070;
|
|
428
|
+
readonly CMD_SET_DETECT_TYPE: 6071;
|
|
429
|
+
readonly CMD_IN_TEST_MODE: 6072;
|
|
430
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425: 6073;
|
|
431
|
+
readonly CMD_FLOODLIGHT_GET_WIFI_RSSI_INFO: 6080;
|
|
432
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_LEFT_SENSITIVITY: 6081;
|
|
433
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_MIDDLE_SENSITIVITY: 6083;
|
|
434
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_RIGHT_SENSITIVITY: 6085;
|
|
435
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE: 6086;
|
|
436
|
+
readonly CMD_FLOODLIGHT_SET_DETECTION_RANGE_STD_SENSITIVITY: 6087;
|
|
437
|
+
readonly CMD_INDOOR_ENABLE_PRIVACY_MODE: 6090;
|
|
438
|
+
readonly CMD_INDOOR_SET_PRIVACY_ANGLE: 6091;
|
|
439
|
+
readonly CMD_INDOOR_DEFAULT_ANGLE_SET: 6092;
|
|
440
|
+
readonly CMD_INDOOR_DEFAULT_ANGLE_ENABLE: 6093;
|
|
441
|
+
readonly CMD_INDOOR_DEFAULT_ANGLE_IDLE_TIME: 6094;
|
|
442
|
+
readonly CMD_INDOOR_SET_SOUND_DETECT_ROUND_LOOK: 6095;
|
|
443
|
+
readonly CMD_T8200X_SET_RINGTONE_VOLUME: 6096;
|
|
444
|
+
readonly CMD_FLOODLIGHT_SET_MOTION_OUT_OF_VIEW_DETECTION: 6098;
|
|
445
|
+
readonly CMD_FLOODLIGHT_SET_AUTO_CALIBRATION: 6099;
|
|
446
|
+
readonly CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_MANUAL: 6100;
|
|
447
|
+
readonly CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_MOTION: 6101;
|
|
448
|
+
readonly CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_SCHEDULE: 6102;
|
|
449
|
+
readonly CMD_FLOODLIGHT_SET_VIDEO_NIGHTVISION_IMAGE_ADJUSTMENT: 6105;
|
|
450
|
+
readonly CMD_FLOODLIGHT_SET_VIDEO_COLOR_NIGHTVISION: 6106;
|
|
451
|
+
readonly CMD_FLOODLIGHT_SET_MOTION_TRACKING_SENSITIVITY: 6107;
|
|
452
|
+
readonly CMD_INDOOR_SET_SOUND_DETECT_ROUND_LOOK_S350: 6208;
|
|
453
|
+
readonly CMD_DOORBELL_DUAL_VIEW_MODE2: 6243;
|
|
454
|
+
readonly CMD_INDOOR_ENABLE_PRIVACY_MODE_S350: 6250;
|
|
455
|
+
readonly CMD_OUTDOOR_PAN_CALIBRATION: 6251;
|
|
456
|
+
readonly CMD_WALL_LIGHT_MOTION_DETECTION_TYPE_HUMAN: 6330;
|
|
457
|
+
readonly CMD_WALL_LIGHT_MOTION_DETECTION_TYPE_ALL: 6332;
|
|
458
|
+
readonly CMD_WALL_LIGHT_NOTIFICATION: 6334;
|
|
459
|
+
readonly CMD_WALL_LIGHT_NOTIFICATION_TYPE_HUMAN: 6335;
|
|
460
|
+
readonly CMD_WALL_LIGHT_NOTIFICATION_TYPE_ALL: 6337;
|
|
461
|
+
readonly CMD_WALL_LIGHT_NOTIFICATION_TYPE: 6338;
|
|
462
|
+
readonly CMD_WALL_LIGHT_SPEAKER_VOLUME: 6342;
|
|
463
|
+
readonly CMD_WALL_LIGHT_ALERT_VOLUME: 6347;
|
|
464
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MANUAL_DAILY_LIGHTING: 6361;
|
|
465
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MANUAL_DYNAMIC_LIGHTING: 6366;
|
|
466
|
+
readonly CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DAILY_LIGHTING: 6367;
|
|
467
|
+
readonly CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DYNAMIC_LIGHTING: 6372;
|
|
468
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MOTION_DAILY_LIGHTING: 6373;
|
|
469
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MOTION_DYNAMIC_LIGHTING: 6378;
|
|
470
|
+
readonly CMD_WALL_LIGHT_SETTINGS_COLORED_LIGHTING_COLORS: 6379;
|
|
471
|
+
readonly CMD_WALL_LIGHT_SETTINGS_DYNAMIC_LIGHTING_THEMES: 6380;
|
|
472
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MANUAL_LIGHTING_ACTIVE_MODE: 6381;
|
|
473
|
+
readonly CMD_WALL_LIGHT_SETTINGS_SCHEDULE_LIGHTING_ACTIVE_MODE: 6382;
|
|
474
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MOTION_LIGHTING_ACTIVE_MODE: 6383;
|
|
475
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MANUAL_COLORED_LIGHTING: 6384;
|
|
476
|
+
readonly CMD_WALL_LIGHT_SETTINGS_SCHEDULE_COLORED_LIGHTING: 6385;
|
|
477
|
+
readonly CMD_WALL_LIGHT_SETTINGS_MOTION_COLORED_LIGHTING: 6386;
|
|
478
|
+
readonly CMD_SMARTLOCK_AUTO_LOCK: 6500;
|
|
479
|
+
readonly CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE: 6501;
|
|
480
|
+
readonly CMD_SMARTLOCK_ONE_TOUCH_LOCK: 6502;
|
|
481
|
+
readonly CMD_SMARTLOCK_WRONG_TRY_PROTECT: 6503;
|
|
482
|
+
readonly CMD_SMARTLOCK_SCRAMBLE_PASSCODE: 6504;
|
|
483
|
+
readonly CMD_SMARTLOCK_LOCK_SOUND: 6505;
|
|
484
|
+
readonly CMD_SMARTLOCK_NOTIFICATION: 6506;
|
|
485
|
+
readonly CMD_SMARTLOCK_WIFI_STATUS: 6507;
|
|
486
|
+
readonly CMD_SMARTLOCK_AUTO_LOCK_TIMER: 6600;
|
|
487
|
+
readonly CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_STARTTIME: 6601;
|
|
488
|
+
readonly CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_ENDTIME: 6602;
|
|
489
|
+
readonly CMD_SMARTLOCK_WRONG_TRY_ATTEMPTS: 6603;
|
|
490
|
+
readonly CMD_SMARTLOCK_WRONG_TRY_LOCKDOWN: 6604;
|
|
491
|
+
readonly CMD_SMARTLOCK_NOTIFICATION_UNLOCKED: 6605;
|
|
492
|
+
readonly CMD_SMARTLOCK_NOTIFICATION_LOCKED: 6606;
|
|
493
|
+
readonly CMD_SMARTLOCK_NIGHT_VISION_ENHANCE: 6614;
|
|
494
|
+
readonly CMD_SMARTLOCK_NIGHT_VISION_SIDE: 6615;
|
|
495
|
+
readonly CMD_SMARTLOCK_LEFT_OPEN_ALARM: 6616;
|
|
496
|
+
readonly CMD_SMARTLOCK_TAMPER_ALARM: 6617;
|
|
497
|
+
readonly CMD_SMARTLOCK_VOLUME: 6618;
|
|
498
|
+
readonly CMD_SMARTLOCK_LOG: 6700;
|
|
499
|
+
readonly CELLULAR_INFO: 7002;
|
|
500
|
+
readonly CELLULAR_SIGNAL_STRENGTH: 7006;
|
|
501
|
+
readonly CMD_CAMERA_GARAGE_DOOR_STATUS: 7500;
|
|
502
|
+
readonly CMD_CAMERA_GARAGE_DOOR_SENSORS: 7503;
|
|
503
|
+
readonly CMD_CAMERA_GARAGE_DOOR_CALIBRATE: 7505;
|
|
504
|
+
readonly CMD_CAMERA_GARAGE_DOOR_INFO: 7507;
|
|
505
|
+
readonly CMD_CAMERA_GARAGE_DOOR_STATE: 7509;
|
|
506
|
+
readonly CMD_CAMERA_GARAGE_DOOR_ALIGN_STATUS: 7510;
|
|
507
|
+
readonly CMD_CAMERA_GARAGE_DOOR_CONTROL_WARNING: 7511;
|
|
508
|
+
readonly CMD_CAMERA_GARAGE_DOOR_OPEN_CLOSE: 7512;
|
|
509
|
+
readonly CMD_SET_FLICKER_ADJUSTMENT: 8000;
|
|
510
|
+
readonly CMD_DATABASE_DOWNLOAD: 8001;
|
|
511
|
+
readonly CMD_DATABASE_QUERY: 10000;
|
|
512
|
+
readonly CMD_DATABASE_DELETE: 10001;
|
|
513
|
+
readonly CMD_DATABASE_UPDATE: 10002;
|
|
514
|
+
readonly CMD_DATABASE_SYNC: 10003;
|
|
515
|
+
readonly CMD_DATABASE_COUNT: 10005;
|
|
516
|
+
readonly CMD_DATABASE_QUERY_BY_DATE: 10006;
|
|
517
|
+
readonly CMD_DATABASE_COUNT_BY_DATE: 10008;
|
|
518
|
+
readonly CMD_DATABASE_QUERY_COMBINATION: 10009;
|
|
519
|
+
readonly CMD_DATABASE_QUERY_COMBINATION_WITH_AI: 10011;
|
|
520
|
+
readonly CMD_DATABASE_COUNT_BY_DEVICE: 10012;
|
|
521
|
+
readonly CMD_DATABASE_QUERY_LATEST_INFO: 10013;
|
|
522
|
+
readonly CMD_DATABASE_QUERY_LOCAL: 10017;
|
|
523
|
+
readonly CMD_SYNC_QUERY_RECENT_PACKAGE_INFO: 10018;
|
|
524
|
+
readonly CMD_SMARTSAFE_SETTINGS: 1946157056;
|
|
525
|
+
readonly CMD_SMARTSAFE_STATUS_UPDATE: 1946157057;
|
|
526
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_BEEP: 1946165248;
|
|
527
|
+
readonly CMD_SMARTSAFE_PARAM_BASE: 1946165248;
|
|
528
|
+
readonly CMD_SMARTSAFE_VOLUME: 1946165249;
|
|
529
|
+
readonly CMD_SMARTSAFE_LED_BRIGHTNESS_LEVEL: 1946165250;
|
|
530
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_CRACK_PROTECT: 1946165251;
|
|
531
|
+
readonly CMD_SMARTSAFE_MAX_WRONG_PIN_TIMES: 1946165252;
|
|
532
|
+
readonly CMD_SMARTSAFE_PROTECT_COOLDOWN_SECONDS: 1946165253;
|
|
533
|
+
readonly CMD_SMARTSAFE_IS_PWD_SET: 1946165254;
|
|
534
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_SHAKE_ALARM: 1946165255;
|
|
535
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_TOW_FACTOR_CHK: 1946165256;
|
|
536
|
+
readonly CMD_SMARTSAFE_IS_SET_PREFIX_PWD: 1946165257;
|
|
537
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_STATUS_CHANGE_NOTIFY: 1946165258;
|
|
538
|
+
readonly CMD_SMARTSAFE_RSSI: 1946165259;
|
|
539
|
+
readonly CMD_SMARTSAFE_LOCK_STATUS: 1946165260;
|
|
540
|
+
readonly CMD_SMARTSAFE_LED_BRIGHTNESS_SECOND: 1946165261;
|
|
541
|
+
readonly CMD_SMARTSAFE_IS_ENABLE_LEFT_OPEN: 1946165262;
|
|
542
|
+
readonly CMD_SMARTSAFE_LEFT_OPEN_SECONDS: 1946165263;
|
|
543
|
+
readonly CMD_SMARTSAFE_ALERT_VOLUME: 1946165264;
|
|
544
|
+
readonly CMD_SMARTSAFE_NOTIF: 1946165265;
|
|
545
|
+
readonly CMD_SMARTSAFE_REMOTE_OPEN_TYPE: 1946165266;
|
|
546
|
+
readonly CMD_SMARTSAFE_POWER_SAVE_ON: 1946165267;
|
|
547
|
+
readonly CMD_SMARTSAFE_PANIC_FINGER_COUNT: 1946165268;
|
|
548
|
+
};
|
|
549
|
+
/** Resolve a command id to a name, falling back to `CMD_<id>` for unknowns. */
|
|
550
|
+
export declare function commandName(id: number): string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P2P **envelope / routing command IDs** the command-router itself issues on the wire — the
|
|
3
|
+
* transport-side counterpart to the capability layer's feature ids (declared inline per capability in
|
|
4
|
+
* `model/capabilities/*.ts` as `CAMERA_CMD` / `LIGHT_CMD` / …). These two subsets are disjoint: a
|
|
5
|
+
* capability never names an envelope, and the router never names a feature (it forwards `cmd.param`
|
|
6
|
+
* opaquely), so `model/` and `transport/` share no command vocabulary and neither imports the other.
|
|
7
|
+
*
|
|
8
|
+
* The full id→name catalog ({@link CommandType}) + `commandName()` lookup live in `./commands.ts`;
|
|
9
|
+
* only the handful the router drives directly are named here.
|
|
10
|
+
*/
|
|
11
|
+
export declare const P2P_ENVELOPE: {
|
|
12
|
+
/** SET_PAYLOAD wrapper — `{account_id,cmd,mChannel,mValue3,payload}` envelope. */
|
|
13
|
+
readonly SET_PAYLOAD: 1350;
|
|
14
|
+
/** Generic control wrapper — bare `{commandType,data}` (NOT doorbell-specific despite the name). */
|
|
15
|
+
readonly CONTROL_PAYLOAD: 1700;
|
|
16
|
+
/** GET_CAMERA_INFO param-list query. */
|
|
17
|
+
readonly GET_CAMERA_INFO: 1103;
|
|
18
|
+
/**
|
|
19
|
+
* Privacy / camera-off; the router sends it as a signCode-8 multi-channel burst under SET_PAYLOAD
|
|
20
|
+
* (see `sendPrivacyBurst`).
|
|
21
|
+
*/
|
|
22
|
+
readonly PRIVACY_MODE: 6250;
|
|
23
|
+
/**
|
|
24
|
+
* Rename a device (app `SET_DEVICE_NAME`). ✅ Wire-confirmed on T8425 (
|
|
25
|
+
* replay): outer-cmd 1217, signCode 8, on the STATION channel 255. Body is a 261-byte struct
|
|
26
|
+
* `[u32=0][u8 device_channel][name→pad128][account_id→pad128]`. **P2P-only** — the HomeBase
|
|
27
|
+
* propagates the name to the cloud; no HTTP `update_device_info` call is needed. See `buildDeviceNameBody`.
|
|
28
|
+
*/
|
|
29
|
+
readonly SET_DEVICE_NAME: 1217;
|
|
30
|
+
/**
|
|
31
|
+
* Rename a station/HomeBase (app `SET_HUB_NAME`), cmd 1216 — same struct/transport as
|
|
32
|
+
* {@link SET_DEVICE_NAME}. ✅ Wire-confirmed on a T8030 HomeBase (old name → new name,
|
|
33
|
+
* propagated to the cloud in ~3s).
|
|
34
|
+
*/
|
|
35
|
+
readonly SET_HUB_NAME: 1216;
|
|
36
|
+
/**
|
|
37
|
+
* Restart a HomeBase (app `RESTART_HUB`). ✅ Wire-confirmed byte-exact against the app's
|
|
38
|
+
* own Restart (2026-08-03) and HW-tested — it rebooted the hub. A station-scalar: level-2 signCode
|
|
39
|
+
* 8 on the broadcast channel 255, body `[u32 value][account_id padded]` ({@link buildDirectBinaryBody}
|
|
40
|
+
* with no channel), value `0`. NOT a `1350`/`1700` envelope and NOT an empty frame.
|
|
41
|
+
*
|
|
42
|
+
* ☠️ Neighbours are destructive: 1036 = `APP_CMD_HUB_TO_FACTORY`, 1037 = `APP_CMD_DEVS_TO_FACTORY`.
|
|
43
|
+
* A slip of two here factory-resets the hub. Do not probe nearby ids.
|
|
44
|
+
*/
|
|
45
|
+
readonly RESTART_HUB: 1034;
|
|
46
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { LiveAudioFrame, LiveVideoFrame, MediaFragment } from "../../core/contracts.js";
|
|
2
|
+
export interface Fmp4Options {
|
|
3
|
+
/** Minimum fragment length; a new fragment opens on the first keyframe past this (default 2s). */
|
|
4
|
+
fragmentSeconds?: number;
|
|
5
|
+
/** Assumed fps for the first sample's duration before inter-frame timing is known (default 15). */
|
|
6
|
+
fps?: number;
|
|
7
|
+
/** Include an AAC track when the source declares AAC-LC or AAC-ELD before the first media fragment. */
|
|
8
|
+
audio?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class Fmp4Muxer {
|
|
11
|
+
private params?;
|
|
12
|
+
private codec;
|
|
13
|
+
private width;
|
|
14
|
+
private height;
|
|
15
|
+
private initSent;
|
|
16
|
+
private seq;
|
|
17
|
+
private baseDecodeTime;
|
|
18
|
+
private fragTicks;
|
|
19
|
+
private samples;
|
|
20
|
+
private lastVideoTimestampMs?;
|
|
21
|
+
private readonly audioRequested;
|
|
22
|
+
private audioCodec?;
|
|
23
|
+
private audioDisabled;
|
|
24
|
+
private audioSamples;
|
|
25
|
+
private audioBaseDecodeTime;
|
|
26
|
+
private firstVideoTimestampMs?;
|
|
27
|
+
private firstAudioTimestampMs?;
|
|
28
|
+
private lastAudioTimestampMs?;
|
|
29
|
+
private timelineOriginMs?;
|
|
30
|
+
private timelineAligned;
|
|
31
|
+
private readonly fragmentTicks;
|
|
32
|
+
private readonly firstDuration;
|
|
33
|
+
constructor(opts?: Fmp4Options);
|
|
34
|
+
/**
|
|
35
|
+
* Push one access unit. Returns any completed segments: the `init` on the first keyframe, and/or a
|
|
36
|
+
* media fragment when this frame closed the open one. Returns `undefined` if nothing is emitted yet
|
|
37
|
+
* (e.g. delta frames before the first keyframe).
|
|
38
|
+
*/
|
|
39
|
+
push(frame: LiveVideoFrame, timestampMs?: number): MediaFragment | undefined;
|
|
40
|
+
/** Add one station-declared AAC access unit to the audio track. G.711 remains available via `live()`. */
|
|
41
|
+
pushAudio(frame: LiveAudioFrame, timestampMs?: number): MediaFragment | undefined;
|
|
42
|
+
/** Permanently omit incompatible audio while allowing the video recording to continue. */
|
|
43
|
+
private disableAudio;
|
|
44
|
+
/** Flush the open fragment (call at end-of-stream). Returns the final fragment, or undefined. */
|
|
45
|
+
flush(): MediaFragment | undefined;
|
|
46
|
+
private samplesStartKeyframe;
|
|
47
|
+
private buildInit;
|
|
48
|
+
private alignTimeline;
|
|
49
|
+
private buildFragment;
|
|
50
|
+
private ftyp;
|
|
51
|
+
private moov;
|
|
52
|
+
private mvhd;
|
|
53
|
+
private trak;
|
|
54
|
+
private tkhd;
|
|
55
|
+
private mdia;
|
|
56
|
+
private minf;
|
|
57
|
+
private stbl;
|
|
58
|
+
private sampleEntry;
|
|
59
|
+
private avcC;
|
|
60
|
+
private hvcC;
|
|
61
|
+
private mvex;
|
|
62
|
+
private trex;
|
|
63
|
+
private moof;
|
|
64
|
+
private traf;
|
|
65
|
+
/**
|
|
66
|
+
* One track fragment run, declaring exactly the per-sample fields its body carries.
|
|
67
|
+
*
|
|
68
|
+
* `tr_flags` is data-offset-present (`0x000001`) | sample-duration-present (`0x000100`) |
|
|
69
|
+
* sample-size-present (`0x000200`) | sample-flags-present (`0x000400`). A parser sizes the sample
|
|
70
|
+
* table from these flags alone, so every extra flag adds a 4-byte field per sample that it then reads
|
|
71
|
+
* past the end of the box. A flag set wider than the body makes the run overrun its own size and the
|
|
72
|
+
* whole fragment undemuxable, which is why the value and the loop below must be read together.
|
|
73
|
+
*
|
|
74
|
+
* Composition-time offsets are deliberately absent: the source delivers access units in decode order
|
|
75
|
+
* with no reordering, so each sample's composition time equals its decode time.
|
|
76
|
+
*
|
|
77
|
+
* `data_offset` is written as zero and patched with the sample data's position once the enclosing
|
|
78
|
+
* `moof` is assembled and its length is known.
|
|
79
|
+
*/
|
|
80
|
+
private trun;
|
|
81
|
+
private hasAudioTrack;
|
|
82
|
+
private audioTrak;
|
|
83
|
+
private audioTkhd;
|
|
84
|
+
private audioMdia;
|
|
85
|
+
private audioMinf;
|
|
86
|
+
private audioStbl;
|
|
87
|
+
private audioSampleEntry;
|
|
88
|
+
private esds;
|
|
89
|
+
}
|