-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathtypes.ts
4619 lines (4341 loc) · 202 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { CommandType } from "../p2p/types";
import { Commands, IndexedProperty, Properties, PropertyMetadataBoolean, PropertyMetadataNumeric, PropertyMetadataString } from "./interfaces";
export enum DeviceType {
//List retrieved from com.oceanwing.battery.cam.binder.model.QueryDeviceData
STATION = 0,
CAMERA = 1,
SENSOR = 2,
FLOODLIGHT = 3,
CAMERA_E = 4,
DOORBELL = 5,
BATTERY_DOORBELL = 7,
CAMERA2C = 8,
CAMERA2 = 9,
MOTION_SENSOR = 10,
KEYPAD = 11,
CAMERA2_PRO = 14,
CAMERA2C_PRO = 15,
BATTERY_DOORBELL_2 = 16,
INDOOR_CAMERA = 30,
INDOOR_PT_CAMERA = 31,
SOLO_CAMERA = 32,
SOLO_CAMERA_PRO = 33,
INDOOR_CAMERA_1080 = 34,
INDOOR_PT_CAMERA_1080 = 35,
FLOODLIGHT_CAMERA_8422 = 37,
FLOODLIGHT_CAMERA_8423 = 38,
FLOODLIGHT_CAMERA_8424 = 39,
INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT = 44,
INDOOR_OUTDOOR_CAMERA_2K = 45,
INDOOR_OUTDOOR_CAMERA_1080P = 46,
LOCK_BLE = 50,
LOCK_WIFI = 51,
LOCK_BLE_NO_FINGER = 52,
LOCK_WIFI_NO_FINGER = 53,
LOCK_8503 = 54, //Smart Lock R10
LOCK_8530 = 55,
LOCK_85A3 = 56,
LOCK_8592 = 57,
LOCK_8504 = 58, //Smart Lock R20
SOLO_CAMERA_SPOTLIGHT_1080 = 60,
SOLO_CAMERA_SPOTLIGHT_2K = 61,
SOLO_CAMERA_SPOTLIGHT_SOLAR = 62,
SMART_DROP = 90,
BATTERY_DOORBELL_PLUS = 91,
DOORBELL_SOLO = 93,
INDOOR_COST_DOWN_CAMERA = 100,
CAMERA_GUN = 101,
CAMERA_SNAIL = 102,
CAMERA_FG = 110,
SMART_SAFE_7400 = 140,
SMART_SAFE_7401 = 141,
SMART_SAFE_7402 = 142,
SMART_SAFE_7403 = 143,
}
export enum ParamType {
//List retrieved from com.oceanwing.battery.cam.binder.model.CameraParams
CHIME_STATE = 2015,
DETECT_EXPOSURE = 2023,
DETECT_MODE = 2004,
DETECT_MOTION_SENSITIVE = 2005,
DETECT_SCENARIO = 2028,
DETECT_SWITCH = 2027,
DETECT_ZONE = 2006,
DOORBELL_AUDIO_RECODE = 2042,
DOORBELL_BRIGHTNESS = 2032,
DOORBELL_DISTORTION = 2033,
DOORBELL_HDR = 2029,
DOORBELL_IR_MODE = 2030,
DOORBELL_LED_NIGHT_MODE = 2039,
DOORBELL_MOTION_ADVANCE_OPTION = 2041,
DOORBELL_MOTION_NOTIFICATION = 2035,
DOORBELL_NOTIFICATION_JUMP_MODE = 2038,
DOORBELL_NOTIFICATION_OPEN = 2036,
DOORBELL_RECORD_QUALITY = 2034,
DOORBELL_RING_RECORD = 2040,
DOORBELL_SNOOZE_START_TIME = 2037,
DOORBELL_VIDEO_QUALITY = 2031,
NIGHT_VISUAL = 2002,
OPEN_DEVICE = 2001,
RINGING_VOLUME = 2022,
SDCARD = 2010,
UN_DETECT_ZONE = 2007,
VOLUME = 2003,
COMMAND_LED_NIGHT_OPEN = 1026,
COMMAND_MOTION_DETECTION_PACKAGE = 1016,
COMMAND_HDR = 1019,
COMMAND_DISTORTION_CORRECTION = 1022,
COMMAND_VIDEO_QUALITY = 1020,
COMMAND_VIDEO_RECORDING_QUALITY = 1023,
COMMAND_VIDEO_RING_RECORD = 1027,
COMMAND_AUDIO_RECORDING = 1029,
COMMAND_INDOOR_CHIME = 1006,
COMMAND_RINGTONE_VOLUME = 1012,
COMMAND_NOTIFICATION_RING = 1031,
COMMAND_NOTIFICATION_TYPE = 1030,
COMMAND_QUICK_RESPONSE = 1004,
COMMAND_START_LIVESTREAM = 1000,
COMMAND_STREAM_INFO = 1005,
COMMAND_VOLTAGE_INFO = 1015,
// Inferred from source
SNOOZE_MODE = 1271, // The value is base64 encoded
WATERMARK_MODE = 1214, // 1 - hide, 2 - show
DEVICE_UPGRADE_NOW = 1134,
CAMERA_UPGRADE_NOW = 1133,
DEFAULT_SCHEDULE_MODE = 1257, // 0 - Away, 1 - Home, 63 - Disarmed
GUARD_MODE = 1224, // 0 - Away, 1 - Home, 63 - Disarmed, 2 - Schedule
FLOODLIGHT_MANUAL_SWITCH = 1400,
FLOODLIGHT_MANUAL_BRIGHTNESS = 1401, // The range is 22-100
FLOODLIGHT_MOTION_BRIGHTNESS = 1412, // The range is 22-100
FLOODLIGHT_SCHEDULE_BRIGHTNESS = 1413, // The range is 22-100
FLOODLIGHT_MOTION_SENSITIVTY = 1272, // The range is 1-5
CAMERA_SPEAKER_VOLUME = 1230,
CAMERA_RECORD_ENABLE_AUDIO = 1366, // Enable microphone
CAMERA_RECORD_RETRIGGER_INTERVAL = 1250, // In seconds
CAMERA_RECORD_CLIP_LENGTH = 1249, // In seconds
CAMERA_IR_CUT = 1013,
CAMERA_PIR = 1011,
CAMERA_WIFI_RSSI = 1142,
CAMERA_MOTION_ZONES = 1204,
// Set only params?
PUSH_MSG_MODE = 1252, // 0 to ???
PRIVATE_MODE = 99904,
CUSTOM_RTSP_URL = 999991,
}
export enum AlarmMode {
AWAY = 0,
HOME = 1,
CUSTOM1 = 3,
CUSTOM2 = 4,
CUSTOM3 = 5,
DISARMED = 63
}
export enum GuardMode {
UNKNOWN = -1,
AWAY = 0,
HOME = 1,
DISARMED = 63,
SCHEDULE = 2,
GEO = 47,
CUSTOM1 = 3,
CUSTOM2 = 4,
CUSTOM3 = 5,
OFF = 6
}
export enum ResponseErrorCode {
CODE_CONNECT_ERROR = 997,
CODE_ERROR_PIN = 36006,
CODE_MULTI_ALARM = 36002,
CODE_NEED_VERIFY_CODE = 26052,
CODE_NETWORK_ERROR = 998,
CODE_PHONE_NONE_SUPPORT = 26058,
CODE_SERVER_ERROR = 999,
CODE_VERIFY_CODE_ERROR = 26050,
CODE_VERIFY_CODE_EXPIRED = 26051,
CODE_VERIFY_CODE_MAX = 26053,
CODE_VERIFY_CODE_NONE_MATCH = 26054,
CODE_VERIFY_PASSWORD_ERROR = 26055,
CODE_WHATEVER_ERROR = 0,
CODE_MAX_FORGET_PASSWORD_ERROR = 100035,
CODE_MAX_LOGIN_LIMIT = 100028,
CODE_MAX_REGISTER_ERROR = 100034,
EMAIL_NOT_REGISTERED_ERROR = 22008,
LOGIN_CAPTCHA_ERROR = 100033,
LOGIN_DECRYPTION_FAIL = 100030,
LOGIN_ENCRYPTION_FAIL = 100029,
LOGIN_INVALID_TOUCH_ID = 26047,
LOGIN_NEED_CAPTCHA = 100032,
MULTIPLE_EMAIL_PASSWORD_ERROR = 26006,
MULTIPLE_INACTIVATED_ERROR = 26015,
MULTIPLE_REGISTRATION_ERROR = 26000,
RESP_ERROR_CODE_SESSION_TIMEOUT = 401,
CODE_REQUEST_TOO_FAST = 250999,
}
export enum VerfyCodeTypes {
TYPE_SMS = 0,
TYPE_PUSH = 1,
TYPE_EMAIL = 2
}
export enum StorageType {
NONE = 0,
LOCAL = 1,
CLOUD = 2,
LOCAL_AND_CLOUD = 3
}
export enum PowerSource {
BATTERY = 0,
SOLAR_PANEL = 1
}
export enum PublicKeyType {
SERVER = 1,
LOCK = 2
}
export enum FloodlightMotionTriggeredDistance {
MIN = 66,
LOW = 76,
MEDIUM = 86,
HIGH = 91,
MAX = 96
}
export enum NotificationType {
MOST_EFFICIENT = 1,
INCLUDE_THUMBNAIL = 2,
FULL_EFFECT = 3,
}
export enum AlarmTone {
ALARM_TONE1 = 1,
ALARM_TONE2 = 2,
}
export enum NotificationSwitchMode {
APP = 16,
GEOFENCE = 32,
SCHEDULE = 64,
KEYPAD = 128,
}
export enum TimeFormat {
FORMAT_12H = 0,
FORMAT_24H = 1,
}
export enum WifiSignalLevel {
NO_SIGNAL = 0,
WEAK = 1,
NORMAL = 2,
STRONG = 3,
FULL = 4,
}
export enum MotionDetectionMode {
STANDARD = 0,
ADVANCED = 1,
}
export enum DualCamStreamMode {
SINGLE_MAIN = 0,
SINGLE_SECOND = 1,
PIP_MAIN_UPPER_LEFT = 2,
PIP_MAIN_UPPER_RIGHT = 3,
PIP_MAIN_LOWER_LEFT = 4,
PIP_MAIN_LOWER_RIGHT = 5,
PIP_SECOND_UPPER_LEFT = 6,
PIP_SECOND_UPPER_RIGHT = 7,
PIP_SECOND_LOWER_LEFT = 8,
PIP_SECOND_LOWER_RIGHT = 9,
SPLICE_LEFT = 10,
SPLICE_RIGHT = 11,
SPLICE_ABOVE = 12,
SPLICE_UNDER = 13,
SPLICE_MIRROR = 14,
}
export interface EventFilterType {
deviceSN?: string;
stationSN?: string;
storageType?: StorageType;
}
export enum DeviceEvent {
MotionDetected,
PersonDetected,
PetDetected,
SoundDetected,
CryingDetected,
Ringing
}
export enum PropertyName {
Name = "name",
Model = "model",
SerialNumber = "serialNumber",
HardwareVersion = "hardwareVersion",
SoftwareVersion = "softwareVersion",
Type = "type",
DeviceStationSN = "stationSerialNumber",
DeviceBattery = "battery",
DeviceBatteryTemp = "batteryTemperature",
DeviceBatteryLow = "batteryLow",
DeviceBatteryIsCharging = "batteryIsCharging",
DeviceLastChargingDays = "lastChargingDays",
DeviceLastChargingTotalEvents = "lastChargingTotalEvents",
DeviceLastChargingRecordedEvents = "lastChargingRecordedEvents",
DeviceLastChargingFalseEvents = "lastChargingFalseEvents",
DeviceBatteryUsageLastWeek = "batteryUsageLastWeek",
DeviceWifiRSSI = "wifiRssi",
DeviceWifiSignalLevel = "wifiSignalLevel",
DeviceEnabled = "enabled",
DeviceAntitheftDetection= "antitheftDetection",
DeviceAutoNightvision = "autoNightvision",
DeviceNightvision = "nightvision",
DeviceStatusLed = "statusLed",
DeviceMotionDetection = "motionDetection",
DeviceMotionDetectionType = "motionDetectionType",
DeviceMotionDetectionSensitivity = "motionDetectionSensitivity",
DeviceMotionZone = "motionZone",
DeviceMotionDetectionRange = "motionDetectionRange", // Flooglight T8423
DeviceMotionDetectionRangeStandardSensitivity = "motionDetectionRangeStandardSensitivity", // Flooglight T8423
DeviceMotionDetectionRangeAdvancedLeftSensitivity = "motionDetectionRangeAdvancedLeftSensitivity", // Flooglight T8423
DeviceMotionDetectionRangeAdvancedMiddleSensitivity = "motionDetectionRangeAdvancedMiddleSensitivity", // Flooglight T8423
DeviceMotionDetectionRangeAdvancedRightSensitivity = "motionDetectionRangeAdvancedRightSensitivity", // Flooglight T8423
DeviceMotionDetectionTestMode = "motionDetectionTestMode", // Flooglight T8420, T8423
DeviceMotionDetected = "motionDetected",
DeviceMotionTracking = "motionTracking",
DeviceMotionTrackingSensitivity = "motionTrackingSensitivity", // Flooglight T8423
DeviceMotionAutoCruise = "motionAutoCruise", // Flooglight T8423
DeviceMotionOutOfViewDetection = "motionOutOfViewDetection", // Flooglight T8423
DevicePersonDetected = "personDetected",
DevicePersonName = "personName",
DeviceRTSPStream = "rtspStream",
DeviceRTSPStreamUrl = "rtspStreamUrl",
DeviceWatermark = "watermark",
DevicePictureUrl = "pictureUrl",
DeviceState = "state",
DevicePetDetection = "petDetection",
DevicePetDetected = "petDetected",
DeviceSoundDetection = "soundDetection",
DeviceSoundDetectionType = "soundDetectionType",
DeviceSoundDetectionSensitivity = "soundDetectionSensitivity",
DeviceSoundDetected = "soundDetected",
DeviceCryingDetected = "cryingDetected",
DeviceSensorOpen = "sensorOpen",
DeviceSensorChangeTime = "sensorChangeTime",
DeviceMotionSensorPIREvent = "motionSensorPirEvent",
DeviceLocked = "locked",
DeviceRinging = "ringing",
DeviceLockStatus = "lockStatus",
DeviceLight = "light",
DeviceMicrophone = "microphone",
DeviceSpeaker = "speaker",
DeviceSpeakerVolume = "speakerVolume",
DeviceRingtoneVolume = "ringtoneVolume",
DeviceAudioRecording = "audioRecording",
DevicePowerSource = "powerSource",
DevicePowerWorkingMode = "powerWorkingMode",
DeviceChargingStatus = "chargingStatus",
DeviceRecordingEndClipMotionStops = "recordingEndClipMotionStops",
DeviceRecordingClipLength = "recordingClipLength",
DeviceRecordingRetriggerInterval = "recordingRetriggerInterval",
DeviceVideoStreamingQuality = "videoStreamingQuality",
DeviceVideoRecordingQuality = "videoRecordingQuality",
DeviceVideoWDR = "videoWdr",
DeviceLightSettingsEnable = "lightSettingsEnable",
DeviceLightSettingsBrightnessManual = "lightSettingsBrightnessManual",
DeviceLightSettingsColorTemperatureManual = "lightSettingsColorTemperatureManual", // Flooglight T8423
DeviceLightSettingsBrightnessMotion = "lightSettingsBrightnessMotion",
DeviceLightSettingsColorTemperatureMotion = "lightSettingsColorTemperatureMotion", // Flooglight T8423
DeviceLightSettingsBrightnessSchedule = "lightSettingsBrightnessSchedule",
DeviceLightSettingsColorTemperatureSchedule = "lightSettingsColorTemperatureSchedule", // Flooglight T8423
DeviceLightSettingsMotionTriggered = "lightSettingsMotionTriggered",
DeviceLightSettingsMotionActivationMode = "lightSettingsMotionActivationMode", // Flooglight T8423
DeviceLightSettingsMotionTriggeredDistance = "lightSettingsMotionTriggeredDistance",
DeviceLightSettingsMotionTriggeredTimer = "lightSettingsMotionTriggeredTimer",
//DeviceLightSettingsSunsetToSunrise = "lightSettingsSunsetToSunrise",
DeviceChimeIndoor = "chimeIndoor", //BatteryDoorbell, WiredDoorbell
DeviceChimeHomebase = "chimeHomebase", //BatteryDoorbell
DeviceChimeHomebaseRingtoneVolume = "chimeHomebaseRingtoneVolume", //BatteryDoorbell
DeviceChimeHomebaseRingtoneType = "chimeHomebaseRingtoneType", //BatteryDoorbell
DeviceNotificationType = "notificationType",
DeviceRotationSpeed = "rotationSpeed",
DeviceImageMirrored = "imageMirrored",
DeviceNotificationPerson = "notificationPerson", //Indoor
DeviceNotificationPet = "notificationPet", //Indoor
DeviceNotificationAllOtherMotion = "notificationAllOtherMotion", //Indoor
DeviceNotificationCrying = "notificationCrying", //Indoor
DeviceNotificationAllSound = "notificationAllSound", //Indoor
DeviceNotificationIntervalTime = "notificationIntervalTime", //Indoor
DeviceNotificationRing = "notificationRing", //BatteryDoorbell
DeviceNotificationMotion = "notificationMotion", //BatteryDoorbell
DeviceNotificationRadarDetector = "notificationRadarDetector", //BatteryDoorbell Dual
DeviceContinuousRecording = "continuousRecording",
DeviceContinuousRecordingType = "continuousRecordingType",
DeviceChirpVolume = "chirpVolume",
DeviceChirpTone = "chirpTone",
DeviceVideoHDR = "videoHdr", // Wired Doorbell
DeviceVideoDistortionCorrection = "videoDistortionCorrection", // Wired Doorbell
DeviceVideoRingRecord = "videoRingRecord", // Wired Doorbell
DeviceVideoNightvisionImageAdjustment = "videoNightvisionImageAdjustment", // Flooglight T8423
DeviceVideoColorNightvision = "videoColorNightvision", // Flooglight T8423
DeviceAutoCalibration = "autoCalibration", // Flooglight T8423
DeviceLockSettingsAutoLock = "lockSettingsAutoLock",
DeviceLockSettingsAutoLockTimer = "lockSettingsAutoLockTimer",
DeviceLockSettingsAutoLockSchedule = "lockSettingsAutoLockSchedule",
DeviceLockSettingsAutoLockScheduleStartTime = "lockSettingsAutoLockScheduleStartTime",
DeviceLockSettingsAutoLockScheduleEndTime = "lockSettingsAutoLockScheduleEndTime",
DeviceLockSettingsOneTouchLocking = "lockSettingsOneTouchLocking",
DeviceLockSettingsWrongTryProtection = "lockSettingsWrongTryProtection",
DeviceLockSettingsWrongTryAttempts = "lockSettingsWrongTryAttempts",
DeviceLockSettingsWrongTryLockdownTime = "lockSettingsWrongTryLockdownTime",
DeviceLockSettingsScramblePasscode = "lockSettingsScramblePasscode",
DeviceLockSettingsSound = "lockSettingsSound",
DeviceLockSettingsNotification = "lockSettingsNotification",
DeviceLockSettingsNotificationUnlocked = "lockSettingsNotificationUnlocked",
DeviceLockSettingsNotificationLocked = "lockSettingsNotificationLocked",
DeviceLoiteringDetection = "loiteringDetection",
DeviceLoiteringDetectionRange = "loiteringDetectionRange",
DeviceLoiteringDetectionLength = "loiteringDetectionLength",
DeviceMotionDetectionSensitivityMode = "motionDetectionSensitivityMode",
DeviceMotionDetectionSensitivityStandard = "motionDetectionSensitivityStandard",
DeviceMotionDetectionSensitivityAdvancedA = "motionDetectionSensitivityAdvancedA",
DeviceMotionDetectionSensitivityAdvancedB = "motionDetectionSensitivityAdvancedB",
DeviceMotionDetectionSensitivityAdvancedC = "motionDetectionSensitivityAdvancedC",
DeviceMotionDetectionSensitivityAdvancedD = "motionDetectionSensitivityAdvancedD",
DeviceMotionDetectionSensitivityAdvancedE = "motionDetectionSensitivityAdvancedE",
DeviceMotionDetectionSensitivityAdvancedF = "motionDetectionSensitivityAdvancedF",
DeviceMotionDetectionSensitivityAdvancedG = "motionDetectionSensitivityAdvancedG",
DeviceMotionDetectionSensitivityAdvancedH = "motionDetectionSensitivityAdvancedH",
DeviceLoiteringCustomResponsePhoneNotification = "loiteringCustomResponsePhoneNotification",
DeviceLoiteringCustomResponseAutoVoiceResponse = "loiteringCustomResponseAutoVoiceResponse",
DeviceLoiteringCustomResponseAutoVoiceResponseVoice = "loiteringCustomResponseAutoVoiceResponseVoice",
DeviceLoiteringCustomResponseHomeBaseNotification = "loiteringCustomResponseHomeBaseNotification",
DeviceLoiteringCustomResponseTimeFrom = "loiteringCustomResponseTimeFrom",
DeviceLoiteringCustomResponseTimeTo = "loiteringCustomResponseTimeTo",
DeviceDeliveryGuard = "deliveryGuard",
DeviceDeliveryGuardPackageGuarding = "deliveryGuardPackageGuarding",
DeviceDeliveryGuardPackageGuardingVoiceResponseVoice = "deliveryGuardPackageGuardingVoiceResponseVoice",
DeviceDeliveryGuardPackageGuardingActivatedTimeFrom = "deliveryGuardPackageGuardingActivatedTimeFrom",
DeviceDeliveryGuardPackageGuardingActivatedTimeTo = "deliveryGuardPackageGuardingActivatedTimeTo",
DeviceDeliveryGuardUncollectedPackageAlert = "deliveryGuardUncollectedPackageAlert",
DeviceDeliveryGuardUncollectedPackageAlertTimeToCheck = "deliveryGuardUncollectedPackageAlertTimeToCheck",
DeviceDeliveryGuardPackageLiveCheckAssistance = "deliveryGuardPackageLiveCheckAssistance",
DeviceDualCamWatchViewMode = "dualCamWatchViewMode",
DeviceRingAutoResponse = "ringAutoResponse",
DeviceRingAutoResponseVoiceResponse = "ringAutoResponseVoiceResponse",
DeviceRingAutoResponseVoiceResponseVoice = "ringAutoResponseVoiceResponseVoice",
DeviceRingAutoResponseTimeFrom = "ringAutoResponseTimeFrom",
DeviceRingAutoResponseTimeTo = "ringAutoResponseTimeTo",
DeviceDefaultAngle = "defaultAngle",
DeviceDefaultAngleIdleTime = "defaultAngleIdleTime",
DeviceSoundDetectionRoundLook = "soundDetectionRoundLook",
StationLANIpAddress = "lanIpAddress",
StationMacAddress = "macAddress",
StationGuardMode = "guardMode",
StationCurrentMode = "currentMode",
StationTimeFormat = "timeFormat",
//StationTimezone = "timezone", //Supported also by T8520
StationAlarmVolume = "alarmVolume",
StationAlarmTone = "alarmTone",
StationPromptVolume = "promptVolume",
StationNotificationSwitchModeSchedule = "notificationSwitchModeSchedule",
StationNotificationSwitchModeGeofence = "notificationSwitchModeGeofence",
StationNotificationSwitchModeApp = "notificationSwitchModeApp",
StationNotificationSwitchModeKeypad = "notificationSwitchModeKeypad",
StationNotificationStartAlarmDelay = "notificationStartAlarmDelay",
StationSwitchModeWithAccessCode = "switchModeWithAccessCode",
StationAutoEndAlarm = "autoEndAlarm",
StationTurnOffAlarmWithButton = "turnOffAlarmWithButton",
DeviceHiddenMotionDetectionSensitivity = "hidden-motionDetectionSensitivity",
DeviceHiddenMotionDetectionMode = "hidden-motionDetectionMode",
}
export const DeviceNameProperty: PropertyMetadataString = {
key: "device_name",
name: PropertyName.Name,
label: "Name",
readable: true,
writeable: false,
type: "string",
}
export const DeviceModelProperty: PropertyMetadataString = {
key: "device_model",
name: PropertyName.Model,
label: "Model",
readable: true,
writeable: false,
type: "string",
}
export const DeviceSerialNumberProperty: PropertyMetadataString = {
key: "device_sn",
name: PropertyName.SerialNumber,
label: "Serial number",
readable: true,
writeable: false,
type: "string",
}
export const GenericHWVersionProperty: PropertyMetadataString = {
key: "main_hw_version",
name: PropertyName.HardwareVersion,
label: "Hardware version",
readable: true,
writeable: false,
type: "string",
}
export const GenericSWVersionProperty: PropertyMetadataString = {
key: "main_sw_version",
name: PropertyName.SoftwareVersion,
label: "Software version",
readable: true,
writeable: false,
type: "string",
}
export const GenericTypeProperty: PropertyMetadataNumeric = {
key: "device_type",
name: PropertyName.Type,
label: "Type",
readable: true,
writeable: false,
type: "number",
states: {
0: "Station",
1: "Camera",
2: "Sensor",
3: "Floodlight",
4: "Camera E",
5: "Doorbell",
7: "Battery Doorbell",
8: "Camera 2",
9: "Camera 2c",
10: "Motion Sensor",
11: "Keypad",
14: "Camera 2 Pro",
15: "Camera 2c Pro",
16: "Battery Doorbell 2",
30: "Indoor Camera",
31: "Indoor Camera PT",
32: "Solo Camera",
33: "Solo Camera Pro",
34: "Indoor Camera 1080",
35: "Indoor Camera PT 1080",
37: "Floodlight 8422",
38: "Floodlight 8423",
39: "Floodlight 2",
44: "Outdoor Camera 1080P No Light",
45: "Outdoor Camera 2k",
46: "Outdoor Camera 1080P",
50: "Lock Basic",
51: "Lock Advanced",
52: "Lock Basic No Finger",
53: "Lock Basic Advanced No Finger",
54: "Lock 8503",
55: "Lock 8530",
56: "Lock 85A3",
57: "Lock 8592",
58: "Lock 8504",
60: "Solo Camera Spotlight 1080p",
61: "Solo Camera Spotlight 2k",
62: "Solo Camera Spotlight Solar",
90: "SmartDrop, Smart Delivery Box",
91: "Video Doorbell Dual",
93: "Video Doorbell Dual (Wired)",
},
}
export const BaseDeviceProperties: IndexedProperty = {
[DeviceNameProperty.name]: DeviceNameProperty,
[DeviceModelProperty.name]: DeviceModelProperty,
[DeviceSerialNumberProperty.name]: DeviceSerialNumberProperty,
[GenericTypeProperty.name]: GenericTypeProperty,
[GenericHWVersionProperty.name]: GenericHWVersionProperty,
[GenericSWVersionProperty.name]: GenericSWVersionProperty,
}
export const GenericDeviceProperties: IndexedProperty = {
...BaseDeviceProperties,
[PropertyName.DeviceStationSN]: {
key: "station_sn",
name: PropertyName.DeviceStationSN,
label: "Station serial number",
readable: true,
writeable: false,
type: "string",
},
}
export const DeviceBatteryProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_GET_BATTERY,
name: PropertyName.DeviceBattery,
label: "Battery percentage",
readable: true,
writeable: false,
type: "number",
unit: "%",
min: 0,
max: 100,
}
export const DeviceBatteryLockProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_SMARTLOCK_QUERY_BATTERY_LEVEL,
name: PropertyName.DeviceBattery,
label: "Battery percentage",
readable: true,
writeable: false,
type: "number",
unit: "%",
min: 0,
max: 100,
}
export const DeviceBatteryLowMotionSensorProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_MOTION_SENSOR_BAT_STATE,
name: PropertyName.DeviceBatteryLow,
label: "Battery low",
readable: true,
writeable: false,
type: "boolean",
default: false,
}
export const DeviceBatteryLowKeypadProperty: PropertyMetadataBoolean = {
...DeviceBatteryLowMotionSensorProperty,
key: CommandType.CMD_KEYPAD_BATTERY_CAP_STATE,
};
export const DeviceBatteryLowSensorProperty: PropertyMetadataBoolean = {
...DeviceBatteryLowMotionSensorProperty,
key: CommandType.CMD_ENTRY_SENSOR_BAT_STATE,
};
export const DeviceBatteryTempProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_GET_BATTERY_TEMP,
name: PropertyName.DeviceBatteryTemp,
label: "Battery Temperature",
readable: true,
writeable: false,
type: "number",
unit: "°C",
}
export const DeviceBatteryIsChargingKeypadProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_KEYPAD_BATTERY_CHARGER_STATE,
name: PropertyName.DeviceBatteryIsCharging,
label: "Battery is charging",
readable: true,
writeable: false,
type: "boolean",
default: false,
}
export const DeviceAntitheftDetectionProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_EAS_SWITCH,
name: PropertyName.DeviceAntitheftDetection,
label: "Antitheft Detection",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceAutoNightvisionProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_IRCUT_SWITCH,
name: PropertyName.DeviceAutoNightvision,
label: "Auto Nightvision",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceAutoNightvisionWiredDoorbellProperty: PropertyMetadataBoolean = {
...DeviceAutoNightvisionProperty,
key: ParamType.NIGHT_VISUAL,
}
export const DeviceNightvisionProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_SET_NIGHT_VISION_TYPE,
name: PropertyName.DeviceNightvision,
label: "Nightvision",
readable: true,
writeable: true,
type: "number",
states: {
0: "Off",
1: "B&W Night Vision",
2: "Spotlight Night Vision",
},
}
export const DeviceWifiRSSIProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_GET_WIFI_RSSI,
name: PropertyName.DeviceWifiRSSI,
label: "Wifi RSSI",
readable: true,
writeable: false,
type: "number",
unit: "dBm",
}
export const DeviceWifiSignalLevelProperty: PropertyMetadataNumeric = {
key: "custom_wifiSignalLevel",
name: PropertyName.DeviceWifiSignalLevel,
label: "Wifi Signal Level",
readable: true,
writeable: false,
type: "number",
min: 0,
max: 4,
states: {
0: "No signal",
1: "Weak",
2: "Normal",
3: "Strong",
4: "Full",
},
}
export const DeviceWifiRSSILockProperty: PropertyMetadataNumeric = {
...DeviceWifiRSSIProperty,
key: CommandType.CMD_GET_SUB1G_RSSI,
};
export const DeviceWifiRSSIEntrySensorProperty: PropertyMetadataNumeric = {
...DeviceWifiRSSIProperty,
key: CommandType.CMD_GET_SUB1G_RSSI,
};
export const DeviceWifiRSSIKeypadProperty: PropertyMetadataNumeric = {
...DeviceWifiRSSIProperty,
key: CommandType.CMD_GET_SUB1G_RSSI,
};
export const DeviceEnabledProperty: PropertyMetadataBoolean = {
key: ParamType.PRIVATE_MODE,
name: PropertyName.DeviceEnabled,
label: "Camera enabled",
readable: true,
writeable: true,
type: "boolean",
commandId: CommandType.CMD_DEVS_SWITCH,
}
export const DeviceEnabledStandaloneProperty: PropertyMetadataBoolean = {
...DeviceEnabledProperty,
key: ParamType.OPEN_DEVICE,
commandId: CommandType.CMD_DEVS_SWITCH,
};
export const DeviceEnabledSoloProperty: PropertyMetadataBoolean = {
...DeviceEnabledProperty,
key: CommandType.CMD_DEVS_SWITCH,
};
export const DeviceStatusLedProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_DEV_LED_SWITCH,
name: PropertyName.DeviceStatusLed,
label: "Status LED",
readable: true,
writeable: true,
type: "boolean",
commandId: CommandType.CMD_INDOOR_LED_SWITCH,
}
export const DeviceStatusLedIndoorFloodProperty: PropertyMetadataBoolean = {
...DeviceStatusLedProperty,
key: CommandType.CMD_INDOOR_LED_SWITCH,
};
export const DeviceStatusLedBatteryDoorbellProperty: PropertyMetadataBoolean = {
...DeviceStatusLedProperty,
key: CommandType.CMD_BAT_DOORBELL_SET_LED_ENABLE,
};
export const DeviceStatusLedDoorbellProperty: PropertyMetadataBoolean = {
...DeviceStatusLedProperty,
key: ParamType.DOORBELL_LED_NIGHT_MODE,
commandId: ParamType.COMMAND_LED_NIGHT_OPEN,
};
export const DeviceMotionDetectionProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_PIR_SWITCH,
name: PropertyName.DeviceMotionDetection,
label: "Motion Detection",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceMotionDetectionIndoorSoloFloodProperty: PropertyMetadataBoolean = {
...DeviceMotionDetectionProperty,
key: CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE,
};
export const DeviceMotionDetectionDoorbellProperty: PropertyMetadataBoolean = {
...DeviceMotionDetectionProperty,
key: ParamType.DETECT_SWITCH,
commandId: ParamType.COMMAND_MOTION_DETECTION_PACKAGE,
};
export const DeviceSoundDetectionProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_INDOOR_DET_SET_SOUND_DETECT_ENABLE,
name: PropertyName.DeviceSoundDetection,
label: "Sound Detection",
readable: true,
writeable: true,
type: "boolean",
}
export const DevicePetDetectionProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_INDOOR_DET_SET_PET_ENABLE,
name: PropertyName.DevicePetDetection,
label: "Pet Detection",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceRTSPStreamProperty: PropertyMetadataBoolean = {
key: CommandType.CMD_NAS_SWITCH,
name: PropertyName.DeviceRTSPStream,
label: "RTSP Stream",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceRTSPStreamUrlProperty: PropertyMetadataString = {
key: "custom_rtspStreamUrl",
name: PropertyName.DeviceRTSPStreamUrl,
label: "RTSP Stream URL",
readable: true,
writeable: false,
type: "string",
default: "",
}
export const DeviceWatermarkProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_SET_DEVS_OSD,
name: PropertyName.DeviceWatermark,
label: "Watermark",
readable: true,
writeable: true,
type: "number",
states: {
0: "Off",
1: "Timestamp",
2: "Timestamp and Logo",
},
}
export const DeviceWatermarkIndoorFloodProperty: PropertyMetadataNumeric = {
...DeviceWatermarkProperty,
states: {
0: "Timestamp",
1: "Timestamp and Logo",
2: "Off",
},
};
export const DeviceWatermarkSoloWiredDoorbellProperty: PropertyMetadataNumeric = {
...DeviceWatermarkProperty,
states: {
0: "Off",
1: "On",
},
};
export const DeviceWatermarkBatteryDoorbellCamera1Property: PropertyMetadataNumeric = {
...DeviceWatermarkProperty,
states: {
1: "Off",
2: "On",
},
};
export const DeviceStateProperty: PropertyMetadataNumeric = {
key: CommandType.CMD_GET_DEV_STATUS,
name: PropertyName.DeviceState,
label: "State",
readable: true,
writeable: false,
type: "number",
states: {
0: "Offline",
1: "Online",
2: "Manually disabled",
3: "Offline low battery",
4: "Remove and readd",
5: "Reset and readd",
}
}
export const DeviceStateLockProperty: PropertyMetadataNumeric = {
...DeviceStateProperty,
key: CommandType.CMD_GET_DEV_STATUS,
};
export const DeviceLastChargingDaysProperty: PropertyMetadataNumeric = {
key: "charging_days",
name: PropertyName.DeviceLastChargingDays,
label: "Days since last charging",
readable: true,
writeable: false,
type: "number",
default: 0,
}
export const DeviceLastChargingTotalEventsProperty: PropertyMetadataNumeric = {
key: "charing_total",
name: PropertyName.DeviceLastChargingTotalEvents,
label: "Total Events since last charging",
readable: true,
writeable: false,
type: "number",
default: 0,
}
export const DeviceLastChargingRecordedEventsProperty: PropertyMetadataNumeric = {
key: "charging_reserve",
name: PropertyName.DeviceLastChargingRecordedEvents,
label: "Total Events since last charging",
readable: true,
writeable: false,
type: "number",
default: 0,
}
export const DeviceLastChargingFalseEventsProperty: PropertyMetadataNumeric = {
key: "charging_missing",
name: PropertyName.DeviceLastChargingFalseEvents,
label: "False Events since last charging",
readable: true,
writeable: false,
type: "number",
default: 0,
}
export const DeviceBatteryUsageLastWeekProperty: PropertyMetadataNumeric = {
key: "battery_usage_last_week",
name: PropertyName.DeviceBatteryUsageLastWeek,
label: "False Events since last charging",
readable: true,
writeable: false,
type: "number",
unit: "%",
min: 0,
max: 100,
default: 0,
}
export const DeviceLockedProperty: PropertyMetadataBoolean = {
key: "custom_locked",
name: PropertyName.DeviceLocked,
label: "locked",
readable: true,
writeable: true,
type: "boolean",
}
export const DeviceMotionDetectedProperty: PropertyMetadataBoolean = {
key: "custom_motionDetected",
name: PropertyName.DeviceMotionDetected,
label: "Motion detected",
readable: true,
writeable: false,
type: "boolean",
}
export const DevicePersonDetectedProperty: PropertyMetadataBoolean = {
key: "custom_personDetected",
name: PropertyName.DevicePersonDetected,
label: "Person detected",
readable: true,
writeable: false,
type: "boolean",
}
export const DevicePetDetectedProperty: PropertyMetadataBoolean = {
key: "custom_petDetected",
name: PropertyName.DevicePetDetected,
label: "Pet detected",
readable: true,
writeable: false,
type: "boolean",
}
export const DeviceSoundDetectedProperty: PropertyMetadataBoolean = {
key: "custom_soundDetected",
name: PropertyName.DeviceSoundDetected,
label: "Sound detected",
readable: true,
writeable: false,
type: "boolean",
}
export const DeviceCryingDetectedProperty: PropertyMetadataBoolean = {
key: "custom_cryingDetected",
name: PropertyName.DeviceCryingDetected,