diff --git a/.gitignore b/.gitignore index 87eff052..2294851a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules build *.tgz -.DS_Store \ No newline at end of file +.DS_Store +.logs diff --git a/build/http/station.js b/build/http/station.js deleted file mode 100644 index 68940f8a..00000000 --- a/build/http/station.js +++ /dev/null @@ -1,10561 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Station = void 0; -const tiny_typed_emitter_1 = require("tiny-typed-emitter"); -const date_and_time_1 = __importDefault(require("date-and-time")); -const types_1 = require("./types"); -const parameter_1 = require("./parameter"); -const utils_1 = require("./utils"); -const session_1 = require("../p2p/session"); -const types_2 = require("../p2p/types"); -const device_1 = require("./device"); -const utils_2 = require("../p2p/utils"); -const error_1 = require("../error"); -const types_3 = require("../push/types"); -const error_2 = require("./error"); -const utils_3 = require("../utils"); -const repl_1 = require("repl"); -const logging_1 = require("../logging"); -class Station extends tiny_typed_emitter_1.TypedEmitter { - api; - rawStation; - p2pSession; - properties = {}; - rawProperties = {}; - ready = false; - lockPublicKey; - currentDelay = 0; - reconnectTimeout; - terminating = false; - p2pConnectionType = types_2.P2PConnectionType.QUICKEST; - static CHANNEL = 255; - static CHANNEL_INDOOR = 1000; - pinVerified = false; - constructor(api, station, ipAddress, listeningPort = 0, publicKey = "", enableEmbeddedPKCS1Support = false) { - super(); - this.api = api; - this.rawStation = station; - this.lockPublicKey = publicKey; - this.p2pSession = new session_1.P2PClientProtocol(this.rawStation, this.api, ipAddress, listeningPort, publicKey, enableEmbeddedPKCS1Support); - this.p2pSession.on("connect", (address) => this.onConnect(address)); - this.p2pSession.on("close", () => this.onDisconnect()); - this.p2pSession.on("timeout", () => this.onTimeout()); - this.p2pSession.on("command", (result) => this.onCommandResponse(result)); - this.p2pSession.on("alarm mode", (mode) => this.onAlarmMode(mode)); - this.p2pSession.on("camera info", (cameraInfo) => this.onCameraInfo(cameraInfo)); - this.p2pSession.on("download started", (channel, metadata, videoStream, audioStream) => this.onStartDownload(channel, metadata, videoStream, audioStream)); - this.p2pSession.on("download finished", (channel) => this.onFinishDownload(channel)); - this.p2pSession.on("livestream started", (channel, metadata, videoStream, audioStream) => this.onStartLivestream(channel, metadata, videoStream, audioStream)); - this.p2pSession.on("livestream stopped", (channel) => this.onStopLivestream(channel)); - this.p2pSession.on("livestream error", (channel, error) => this.onErrorLivestream(channel, error)); - this.p2pSession.on("wifi rssi", (channel, rssi) => this.onWifiRssiChanged(channel, rssi)); - this.p2pSession.on("rtsp livestream started", (channel) => this.onStartRTSPLivestream(channel)); - this.p2pSession.on("rtsp livestream stopped", (channel) => this.onStopRTSPLivestream(channel)); - this.p2pSession.on("rtsp url", (channel, rtspUrl) => this.onRTSPUrl(channel, rtspUrl)); - this.p2pSession.on("parameter", (channel, param, value) => this.onParameter(channel, param, value)); - this.p2pSession.on("runtime state", (channel, batteryLevel, temperature) => this.onRuntimeState(channel, batteryLevel, temperature)); - this.p2pSession.on("charging state", (channel, chargeType, batteryLevel) => this.onChargingState(channel, chargeType, batteryLevel)); - this.p2pSession.on("floodlight manual switch", (channel, enabled) => this.onFloodlightManualSwitch(channel, enabled)); - this.p2pSession.on("alarm delay", (alarmDelayEvent, alarmDelay) => this.onAlarmDelay(alarmDelayEvent, alarmDelay)); - this.p2pSession.on("alarm armed", () => this.onAlarmArmed()); - this.p2pSession.on("alarm event", (alarmEvent) => this.onAlarmEvent(alarmEvent)); - this.p2pSession.on("talkback started", (channel, talkbackStream) => this.onTalkbackStarted(channel, talkbackStream)); - this.p2pSession.on("talkback stopped", (channel) => this.onTalkbackStopped(channel)); - this.p2pSession.on("talkback error", (channel, error) => this.onTalkbackError(channel, error)); - this.p2pSession.on("secondary command", (result) => this.onSecondaryCommandResponse(result)); - this.p2pSession.on("shake alarm", (channel, event) => this.onDeviceShakeAlarm(channel, event)); - this.p2pSession.on("911 alarm", (channel, event) => this.onDevice911Alarm(channel, event)); - this.p2pSession.on("jammed", (channel) => this.onDeviceJammed(channel)); - this.p2pSession.on("low battery", (channel) => this.onDeviceLowBattery(channel)); - this.p2pSession.on("wrong try-protect alarm", (channel) => this.onDeviceWrongTryProtectAlarm(channel)); - this.p2pSession.on("sd info ex", (sdStatus, sdCapacity, sdCapacityAvailable) => this.onSdInfoEx(sdStatus, sdCapacity, sdCapacityAvailable)); - this.p2pSession.on("image download", (file, image) => this.onImageDownload(file, image)); - this.p2pSession.on("tfcard status", (channel, status) => this.onTFCardStatus(channel, status)); - this.p2pSession.on("database query latest", (returnCode, data) => this.onDatabaseQueryLatest(returnCode, data)); - this.p2pSession.on("database query local", (returnCode, data) => this.onDatabaseQueryLocal(returnCode, data)); - this.p2pSession.on("database count by date", (returnCode, data) => this.onDatabaseCountByDate(returnCode, data)); - this.p2pSession.on("database delete", (returnCode, failedIds) => this.onDatabaseDelete(returnCode, failedIds)); - this.p2pSession.on("sensor status", (channel, status) => this.onSensorStatus(channel, status)); - this.p2pSession.on("garage door status", (channel, doorId, status) => this.onGarageDoorStatus(channel, doorId, status)); - this.p2pSession.on("storage info hb3", (channel, storageInfo) => this.onStorageInfoHB3(channel, storageInfo)); - this.p2pSession.on("sequence error", (channel, command, sequence, serialnumber) => this.onSequenceError(channel, command, sequence, serialnumber)); - } - initializeState() { - this.update(this.rawStation); - this.ready = true; - setImmediate(() => { - this.emit("ready", this); - }); - } - initialize() { - this.initializeState(); - } - static async getInstance(api, stationData, ipAddress, listeningPort, enableEmbeddedPKCS1Support) { - let publicKey; - if (device_1.Device.isLock(stationData.device_type) && !device_1.Device.isLockWifiT8506(stationData.device_type) && !device_1.Device.isLockWifiT8502(stationData.device_type) && !device_1.Device.isLockWifiT8510P(stationData.device_type, stationData.station_sn) && !device_1.Device.isLockWifiT8520P(stationData.device_type, stationData.station_sn)) { - publicKey = await api.getPublicKey(stationData.station_sn, types_1.PublicKeyType.LOCK); - } - return new Station(api, stationData, ipAddress, listeningPort, publicKey, enableEmbeddedPKCS1Support); - } - //TODO: To remove - getStateID(state, level = 2) { - switch (level) { - case 0: - return `${this.getSerial()}`; - case 1: - return `${this.getSerial()}.${this.getStateChannel()}`; - default: - if (state) - return `${this.getSerial()}.${this.getStateChannel()}.${state}`; - throw new Error("No state value passed."); - } - } - getStateChannel() { - return "station"; - } - getRawStation() { - return this.rawStation; - } - update(station) { - this.rawStation = station; - this.p2pSession.updateRawStation(station); - const metadata = this.getPropertiesMetadata(true); - for (const property of Object.values(metadata)) { - if (this.rawStation[property.key] !== undefined && typeof property.key === "string") { - this.updateProperty(property.name, this.convertRawPropertyValue(property, this.rawStation[property.key])); - } - else if (this.properties[property.name] === undefined && property.default !== undefined && !this.ready) { - this.updateProperty(property.name, property.default); - } - } - if (this.rawStation.params) { - this.rawStation.params.forEach(param => { - this.updateRawProperty(param.param_type, param.param_value, "http"); - }); - } - logging_1.rootHTTPLogger.debug("Update station cloud properties", { stationSN: this.getSerial(), properties: this.properties }); - } - updateProperty(name, value, force = false) { - if ((this.properties[name] !== undefined && this.properties[name] !== value) - || this.properties[name] === undefined || force) { - const oldValue = this.properties[name]; - this.properties[name] = value; - this.emit("property changed", this, name, value, this.ready); - try { - this.handlePropertyChange(this.getPropertyMetadata(name, true), oldValue, this.properties[name]); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - if (error instanceof error_2.InvalidPropertyError) { - logging_1.rootHTTPLogger.error(`Station update property - Invalid Property error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), propertyName: name, propertyValue: value, force: force }); - } - else { - logging_1.rootHTTPLogger.error(`Station update property - Property error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), propertyName: name, propertyValue: value, force: force }); - } - } - return true; - } - return false; - } - updateRawProperties(values) { - Object.keys(values).forEach(paramtype => { - const param_type = Number.parseInt(paramtype); - this.updateRawProperty(param_type, values[param_type].value, values[param_type].source); - }); - } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - handlePropertyChange(metadata, oldValue, newValue) { - if (metadata.name === types_1.PropertyName.StationCurrentMode) { - //TODO: Finish implementation! - if (newValue === types_1.AlarmMode.DISARMED) { - if (this.hasProperty(types_1.PropertyName.StationAlarmArmed)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmed, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelay, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelayType)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelayType, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarm)) { - this.updateProperty(types_1.PropertyName.StationAlarm, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmType)) { - this.updateProperty(types_1.PropertyName.StationAlarmType, 0); - } - } /*else if (this.hasProperty(PropertyName.StationAlarmArmed)) { //TODO: Type !== HB3 or STATION - this.updateProperty(PropertyName.StationAlarmArmed, this.isAlarmArmable(newValue as AlarmMode)); - }*/ - } - } - updateRawProperty(type, value, source) { - const parsedValue = parameter_1.ParameterHelper.readValue(this.getSerial(), type, value, logging_1.rootHTTPLogger); - if (parsedValue !== undefined && - ((this.rawProperties[type] !== undefined && this.rawProperties[type].value !== parsedValue && (0, utils_1.isPrioritySourceType)(this.rawProperties[type].source, source)) || this.rawProperties[type] === undefined)) { - this.rawProperties[type] = { - value: parsedValue, - source: source - }; - if (this.ready) { - this.emit("raw property changed", this, type, this.rawProperties[type].value); - try { - if (type === types_1.ParamType.GUARD_MODE) { - this.emit("guard mode", this, Number.parseInt(parsedValue)); - } - else if (type === types_2.CommandType.CMD_GET_ALARM_MODE) { - this.emit("current mode", this, Number.parseInt(parsedValue)); - } - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station update raw property - Number conversion error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), type: type, value: value, source: source }); - } - } - const metadata = this.getPropertiesMetadata(true); - for (const property of Object.values(metadata)) { - if (property.key === type) { - try { - this.updateProperty(property.name, this.convertRawPropertyValue(property, this.rawProperties[type].value)); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - if (error instanceof error_2.PropertyNotSupportedError) { - logging_1.rootHTTPLogger.debug("Station update raw property - Property not supported error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), type: type, value: value, source: source }); - } - else { - logging_1.rootHTTPLogger.error("Station update raw property - Property error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), type: type, value: value, source: source }); - } - } - } - } - return true; - } - return false; - } - convertRawPropertyValue(property, value) { - try { - switch (property.key) { - case types_2.CommandType.CMD_GET_HUB_LAN_IP: - return value !== undefined ? ((0, utils_2.isPrivateIp)(value) ? value : "") : ""; - case types_2.CommandType.CMD_SET_ARMING: - return Number.parseInt(value !== undefined ? value : "-1"); - case types_2.CommandType.CMD_GET_ALARM_MODE: - { - const guard_mode = this.getGuardMode(); - return Number.parseInt(value !== undefined ? value : guard_mode !== undefined && guard_mode !== types_1.GuardMode.SCHEDULE && guard_mode !== types_1.GuardMode.GEO ? guard_mode : types_1.GuardMode.UNKNOWN.toString()); - } - case types_2.CommandType.CMD_HUB_NOTIFY_MODE: - { - switch (property.name) { - case types_1.PropertyName.StationNotificationSwitchModeSchedule: - if (!(0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - return value !== undefined ? (value === "1" ? true : false) : false; - } - return value !== undefined ? (0, utils_1.isNotificationSwitchMode)(Number.parseInt(value), types_1.NotificationSwitchMode.SCHEDULE) : false; - case types_1.PropertyName.StationNotificationSwitchModeGeofence: - if (!(0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - throw new error_2.PropertyNotSupportedError("Property not supported for station with this software version", { context: { propertName: property.name, station: this.getSerial(), softwareVersion: this.getSoftwareVersion() } }); - } - return value !== undefined ? (0, utils_1.isNotificationSwitchMode)(Number.parseInt(value), types_1.NotificationSwitchMode.GEOFENCE) : false; - case types_1.PropertyName.StationNotificationSwitchModeApp: - if (!(0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - throw new error_2.PropertyNotSupportedError("Property not supported for station with this software version", { context: { propertName: property.name, station: this.getSerial(), softwareVersion: this.getSoftwareVersion() } }); - } - return value !== undefined ? (0, utils_1.isNotificationSwitchMode)(Number.parseInt(value), types_1.NotificationSwitchMode.APP) : false; - case types_1.PropertyName.StationNotificationSwitchModeKeypad: - if (!(0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - throw new error_2.PropertyNotSupportedError("Property not supported for station with this software version", { context: { propertName: property.name, station: this.getSerial(), softwareVersion: this.getSoftwareVersion() } }); - } - return value !== undefined ? (0, utils_1.isNotificationSwitchMode)(Number.parseInt(value), types_1.NotificationSwitchMode.KEYPAD) : false; - } - } - case types_2.CommandType.CMD_HUB_NOTIFY_ALARM: - return value !== undefined ? (value === "1" ? true : false) : false; - case types_2.CommandType.CMD_HUB_ALARM_TONE: - try { - return value !== undefined ? Number.parseInt(value) : 1; - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station convert raw property - CMD_HUB_ALARM_TONE Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return 1; - } - case types_2.CommandType.CMD_SET_HUB_SPK_VOLUME: - try { - return value !== undefined ? Number.parseInt(value) : 26; - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station convert raw property - CMD_SET_HUB_SPK_VOLUME Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return 26; - } - case types_2.CommandType.CMD_SET_PROMPT_VOLUME: - try { - return value !== undefined ? Number.parseInt(value) : 26; - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station convert raw property - CMD_SET_PROMPT_VOLUME Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return 26; - } - case types_2.CommandType.CMD_SET_HUB_OSD: - try { - return value !== undefined ? Number.parseInt(value) : 0; - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station convert raw property - CMD_SET_HUB_OSD Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return 0; - } - case types_2.CommandType.CMD_SET_HUB_ALARM_AUTO_END: - return value !== undefined ? value !== "0" ? false : true : false; - case types_2.CommandType.CMD_SET_HUB_ALARM_CLOSE: - return value !== undefined ? value === "1" ? false : true : false; - } - if (property.name === types_1.PropertyName.Model && device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial())) { - return "T8510P"; - } - else if (property.type === "number") { - const numericProperty = property; - try { - return value !== undefined ? Number.parseInt(value) : (numericProperty.default !== undefined ? numericProperty.default : (numericProperty.min !== undefined ? numericProperty.min : 0)); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.warn("Station convert raw property - PropertyMetadataNumeric Convert Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return numericProperty.default !== undefined ? numericProperty.default : (numericProperty.min !== undefined ? numericProperty.min : 0); - } - } - else if (property.type === "boolean") { - const booleanProperty = property; - try { - return value !== undefined ? (typeof value === "number" ? !!value : (value === "1" || value.toLowerCase() === "true" ? true : false)) : (booleanProperty.default !== undefined ? booleanProperty.default : false); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.warn("Station convert raw property - PropertyMetadataBoolean Convert Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - return booleanProperty.default !== undefined ? booleanProperty.default : false; - } - } - else if (property.type === "string") { - const stringProperty = property; - return value !== undefined ? value : (stringProperty.default !== undefined ? stringProperty.default : ""); - } - else if (property.type === "object") { - const objectProperty = property; - return value !== undefined ? value : (objectProperty.default !== undefined ? objectProperty.default : undefined); - } - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error("Station convert raw property - Error", { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), property: property, value: value }); - } - return value; - } - getPropertyMetadata(name, hidden = false) { - const property = this.getPropertiesMetadata(hidden)[name]; - if (property !== undefined) - return property; - throw new error_2.InvalidPropertyError("Property name is not valid", { context: { name: name } }); - } - getPropertyValue(name) { - if (name === types_1.PropertyName.StationCurrentMode) { - const guard_mode = this.properties[types_1.PropertyName.StationGuardMode]; - return this.properties[types_1.PropertyName.StationCurrentMode] !== undefined ? this.properties[types_1.PropertyName.StationCurrentMode] : guard_mode !== undefined && guard_mode !== types_1.GuardMode.SCHEDULE && guard_mode !== types_1.GuardMode.GEO ? guard_mode : types_1.GuardMode.UNKNOWN; - } - return this.properties[name]; - } - hasPropertyValue(name) { - return this.getPropertyValue(name) !== undefined; - } - getRawProperty(type) { - return this.rawProperties[type]?.value; - } - getRawProperties() { - return this.rawProperties; - } - getProperties() { - const result = {}; - for (const property of Object.keys(this.properties)) { - if (!property.startsWith("hidden-")) - result[property] = this.properties[property]; - } - return result; - } - getPropertiesMetadata(hidden = false) { - let metadata = { - ...types_1.StationProperties[this.getDeviceType()] - }; - if (Object.keys(metadata).length === 0) { - metadata = { - ...types_1.BaseStationProperties - }; - } - if (this.hasDeviceWithType(types_1.DeviceType.KEYPAD)) { - metadata[types_1.PropertyName.StationGuardMode] = types_1.StationGuardModeKeyPadProperty; - metadata[types_1.PropertyName.StationCurrentMode] = types_1.StationCurrentModeKeyPadProperty; - metadata[types_1.PropertyName.StationSwitchModeWithAccessCode] = types_1.StationSwitchModeWithAccessCodeProperty; - metadata[types_1.PropertyName.StationAutoEndAlarm] = types_1.StationAutoEndAlarmProperty; - metadata[types_1.PropertyName.StationTurnOffAlarmWithButton] = types_1.StationTurnOffAlarmWithButtonProperty; - } - if (!hidden) { - for (const property of Object.keys(metadata)) { - if (property.startsWith("hidden-")) - delete metadata[property]; - } - } - return metadata; - } - hasProperty(name, hidden = false) { - return this.getPropertiesMetadata(hidden)[name] !== undefined; - } - getCommands() { - const commands = types_1.StationCommands[this.getDeviceType()]; - if (commands === undefined) - return []; - return commands; - } - hasCommand(name) { - return this.getCommands().includes(name); - } - static getChannel(type) { - return Station.isStation(type) === true ? (device_1.Device.isIndoorCamera(type) ? Station.CHANNEL_INDOOR : Station.CHANNEL) : 0; - } - static isStation(type) { - return type === types_1.DeviceType.STATION || type === types_1.DeviceType.HB3 || type === types_1.DeviceType.MINIBASE_CHIME; - } - isStation() { - return Station.isStation(this.rawStation.device_type); - } - static isStationHomeBase3(type) { - return type === types_1.DeviceType.HB3; - } - static isStationHomeBase3BySn(sn) { - return sn.startsWith("T8030"); - } - isStationHomeBase3() { - return Station.isStationHomeBase3(this.rawStation.device_type); - } - isIntegratedDevice() { - //TODO: Recheck this implementation considering HomeBase 3 integration - if (device_1.Device.isLock(this.getDeviceType()) || device_1.Device.isSmartDrop(this.getDeviceType()) || device_1.Device.isSmartSafe(this.getDeviceType())) { - if (this.rawStation.devices?.length === 1) - return this.rawStation.devices[0]?.device_sn === this.rawStation.station_sn; - else - return true; - } - return device_1.Device.isWiredDoorbellDual(this.getDeviceType()) || device_1.Device.isFloodLight(this.getDeviceType()) || device_1.Device.isWiredDoorbell(this.getDeviceType()) || device_1.Device.isIndoorCamera(this.getDeviceType()) || device_1.Device.isSoloCameras(this.getDeviceType()) || device_1.Device.isWallLightCam(this.getDeviceType()) || device_1.Device.isStarlight4GLTE(this.getDeviceType()) || device_1.Device.isSoloCameraPro(this.getDeviceType()); - } - isP2PConnectableDevice() { - if (device_1.Device.isSmartTrack(this.getDeviceType()) || (!device_1.Device.isSupported(this.getDeviceType()) && !this.isStation())) { - if (!device_1.Device.isSupported(this.getDeviceType()) && !this.isStation()) { - logging_1.rootHTTPLogger.debug("Station not supported, no connection over p2p will be initiated", { stationSN: this.getSerial(), type: this.getDeviceType() }); - } - return false; - } - return true; - } - getDeviceType() { - return this.rawStation.device_type; - } - getHardwareVersion() { - return this.rawStation.main_hw_version; - } - getMACAddress() { - return this.rawStation.wifi_mac; - } - getModel() { - return this.rawStation.station_model; - } - getName() { - return this.rawStation.station_name; - } - getSerial() { - return this.rawStation.station_sn; - } - getSoftwareVersion() { - return this.rawStation.main_sw_version; - } - getIPAddress() { - return this.rawStation.ip_addr; - } - getLANIPAddress() { - return this.getPropertyValue(types_1.PropertyName.StationLANIpAddress); - } - getGuardMode() { - return this.getPropertyValue(types_1.PropertyName.StationGuardMode); - } - getCurrentMode() { - const guard_mode = this.getGuardMode(); - return this.getPropertyValue(types_1.PropertyName.StationCurrentMode) !== undefined ? this.getPropertyValue(types_1.PropertyName.StationCurrentMode) : guard_mode !== undefined && guard_mode !== types_1.GuardMode.SCHEDULE && guard_mode !== types_1.GuardMode.GEO ? guard_mode : types_1.GuardMode.UNKNOWN; - } - processPushNotification(message) { - if (message.type !== undefined && message.event_type !== undefined) { - if (message.event_type === types_3.CusPushEvent.MODE_SWITCH && message.station_sn === this.getSerial()) { - logging_1.rootHTTPLogger.info("Received push notification for changing guard mode", { guard_mode: message.station_guard_mode, current_mode: message.station_current_mode, stationSN: message.station_sn }); - try { - if (message.station_guard_mode !== undefined) - this.updateRawProperty(types_1.ParamType.GUARD_MODE, message.station_guard_mode.toString(), "push"); - if (message.station_current_mode !== undefined) - this.updateRawProperty(types_2.CommandType.CMD_GET_ALARM_MODE, message.station_current_mode.toString(), "push"); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.debug(`Station process push notification - MODE_SWITCH event error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), message: JSON.stringify(message) }); - } - } - else if (message.event_type === types_3.CusPushEvent.ALARM && message.station_sn === this.getSerial() && !this.isStation()) { - logging_1.rootHTTPLogger.info("Received push notification for alarm event", { stationSN: message.station_sn, alarmType: message.alarm_type }); - if (message.alarm_type !== undefined) { - this.onAlarmEvent(message.alarm_type); - } - } - } - else if (message.msg_type === types_3.CusPushEvent.TFCARD && message.station_sn === this.getSerial() && message.tfcard_status !== undefined) { - this.updateRawProperty(types_2.CommandType.CMD_GET_TFCARD_STATUS, message.tfcard_status.toString(), "push"); - } - } - isConnected() { - return this.p2pSession.isConnected(); - } - close() { - this.terminating = true; - if (this.reconnectTimeout) { - clearTimeout(this.reconnectTimeout); - this.reconnectTimeout = undefined; - } - if (this.p2pSession.isConnected()) { - logging_1.rootHTTPLogger.info(`Disconnect from station ${this.getSerial()}`); - this.p2pSession.close(); - } - } - isEnergySavingDevice() { - return this.p2pSession.isEnergySavingDevice(); - } - async connect() { - if (!this.p2pSession.isConnected() && !this.p2pSession.isConnecting()) { - logging_1.rootHTTPLogger.debug(`Connecting to station ${this.getSerial()}...`, { stationSN: this.getSerial(), p2pConnectionType: types_2.P2PConnectionType[this.p2pConnectionType] }); - this.p2pSession.setConnectionType(this.p2pConnectionType); - await this.p2pSession.connect(); - } - } - onFinishDownload(channel) { - this.emit("download finish", this, channel); - } - onStartDownload(channel, metadata, videoStream, audioStream) { - this.emit("download start", this, channel, metadata, videoStream, audioStream); - } - onStopLivestream(channel) { - this.emit("livestream stop", this, channel); - } - onErrorLivestream(channel, error) { - this.emit("livestream error", this, channel, error); - } - onStartLivestream(channel, metadata, videoStream, audioStream) { - this.emit("livestream start", this, channel, metadata, videoStream, audioStream); - } - onStopRTSPLivestream(channel) { - this.emit("rtsp livestream stop", this, channel); - } - onStartRTSPLivestream(channel) { - this.emit("rtsp livestream start", this, channel); - } - onWifiRssiChanged(channel, rssi) { - this.emit("wifi rssi", this, channel, rssi); - } - onRTSPUrl(channel, rtspUrl) { - this.emit("rtsp url", this, channel, rtspUrl); - } - onParameter(channel, param, value) { - const params = {}; - const parsedValue = parameter_1.ParameterHelper.readValue(this.getSerial(), param, value, logging_1.rootHTTPLogger); - if (parsedValue !== undefined) { - params[param] = { - value: parsedValue, - source: "p2p" - }; - this.emit("raw device property changed", this._getDeviceSerial(channel), params); - } - } - onAlarmDelay(alarmDelayEvent, alarmDelay) { - this.emit("alarm delay event", this, alarmDelayEvent, alarmDelay); - if (this.hasProperty(types_1.PropertyName.StationAlarmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelay, alarmDelay); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelayType)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelayType, alarmDelayEvent); - } - } - onAlarmArmed() { - this.emit("alarm armed event", this); - if (this.hasProperty(types_1.PropertyName.StationAlarmArmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmDelay, 0); - } - /*if (this.hasProperty(PropertyName.StationAlarmArmed) && this.hasProperty(PropertyName.StationCurrentMode)) { - this.updateProperty(PropertyName.StationAlarmArmed, this.isAlarmArmable(this.getPropertyValue(PropertyName.StationCurrentMode) as AlarmMode)); - }*/ - if (this.hasProperty(types_1.PropertyName.StationAlarmArmed)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmed, true); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelay, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelayType)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelayType, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarm)) { - this.updateProperty(types_1.PropertyName.StationAlarm, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmType)) { - this.updateProperty(types_1.PropertyName.StationAlarmType, 0); - } - } - onAlarmEvent(alarmEvent) { - this.emit("alarm event", this, alarmEvent); - if (this.hasProperty(types_1.PropertyName.StationAlarmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelay, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelayType)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelayType, 0); - } - switch (alarmEvent) { - case types_2.AlarmEvent.DEV_STOP: - case types_2.AlarmEvent.HUB_STOP: - case types_2.AlarmEvent.HUB_STOP_BY_APP: - case types_2.AlarmEvent.HUB_STOP_BY_HAND: - case types_2.AlarmEvent.HUB_STOP_BY_KEYPAD: - if (this.hasProperty(types_1.PropertyName.StationAlarm)) { - this.updateProperty(types_1.PropertyName.StationAlarm, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmType)) { - this.updateProperty(types_1.PropertyName.StationAlarmType, 0); - } - break; - default: - if (this.hasProperty(types_1.PropertyName.StationAlarm)) { - this.updateProperty(types_1.PropertyName.StationAlarm, true); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmType)) { - this.updateProperty(types_1.PropertyName.StationAlarmType, alarmEvent); - } - break; - } - } - setGuardMode(mode) { - const propertyData = { - name: types_1.PropertyName.StationGuardMode, - value: mode - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, mode); - logging_1.rootHTTPLogger.debug(`Station set guard mode - sending command`, { stationSN: this.getSerial(), mode: mode }); - if ((((0, utils_1.isGreaterEqualMinVersion)("2.0.7.9", this.getSoftwareVersion()) && !device_1.Device.isIntegratedDeviceBySn(this.getSerial())) || device_1.Device.isSoloCameraBySn(this.getSerial())) || this.rawStation.device_type === types_1.DeviceType.HB3) { - logging_1.rootHTTPLogger.debug(`Station set guard mode - Using CMD_SET_PAYLOAD`, { stationSN: this.getSerial(), mode: mode, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_ARMING, - "mValue3": 0, - "payload": { - "mode_type": mode, - "user_name": this.rawStation.member.nick_name - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - else { - logging_1.rootHTTPLogger.debug(`Station set guard mode - Using CMD_SET_ARMING`, { stationSN: this.getSerial(), mode: mode }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_SET_ARMING, - value: mode, - strValue: this.rawStation.member.admin_user_id, - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - } - getCameraInfo() { - logging_1.rootHTTPLogger.debug(`Station send get camera info command`, { stationSN: this.getSerial() }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_CAMERA_INFO, - value: 255, - channel: Station.CHANNEL - }); - } - getStorageInfoEx() { - logging_1.rootHTTPLogger.debug(`Station send get storage info command`, { stationSN: this.getSerial() }); - if (this.isStation() && this.rawStation.device_type !== types_1.DeviceType.HB3 && (0, utils_1.isGreaterEqualMinVersion)("3.2.7.6", this.getSoftwareVersion())) { - this.p2pSession.sendCommandWithoutData(types_2.CommandType.CMD_SDINFO_EX, Station.CHANNEL); - } - else if (this.rawStation.device_type === types_1.DeviceType.HB3) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_STORAGE_INFO_HB3, - "mChannel": 0, - "mValue3": 0, - "payload": { - "version": 0.0, - "cmd": 11001.0, - } - }), - }); - } - else { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SDINFO_EX, - value: 0, - valueSub: 0, - channel: Station.CHANNEL, - strValue: this.rawStation.member.admin_user_id - }); - } - } - onAlarmMode(mode) { - logging_1.rootHTTPLogger.debug(`Station alarm mode changed`, { stationSN: this.getSerial(), mode: mode }); - this.updateRawProperty(types_2.CommandType.CMD_GET_ALARM_MODE, mode.toString(), "p2p"); - const armDelay = this.getArmDelay(mode); - if (armDelay > 0) { - this.emit("alarm arm delay event", this, armDelay); - if (this.hasProperty(types_1.PropertyName.StationAlarmArmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmDelay, armDelay); - } - } - if (mode === types_1.AlarmMode.DISARMED) { - if (this.hasProperty(types_1.PropertyName.StationAlarmArmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmDelay, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmArmed)) { - this.updateProperty(types_1.PropertyName.StationAlarmArmed, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelay)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelay, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmDelayType)) { - this.updateProperty(types_1.PropertyName.StationAlarmDelayType, 0); - } - if (this.hasProperty(types_1.PropertyName.StationAlarm)) { - this.updateProperty(types_1.PropertyName.StationAlarm, false); - } - if (this.hasProperty(types_1.PropertyName.StationAlarmType)) { - this.updateProperty(types_1.PropertyName.StationAlarmType, 0); - } - } - // Trigger refresh Guard Mode - this.getCameraInfo(); - } - getArmDelay(mode) { - let propertyName; - switch (mode) { - case types_1.AlarmMode.HOME: - propertyName = types_1.PropertyName.StationHomeSecuritySettings; - break; - case types_1.AlarmMode.AWAY: - propertyName = types_1.PropertyName.StationAwaySecuritySettings; - break; - case types_1.AlarmMode.CUSTOM1: - propertyName = types_1.PropertyName.StationCustom1SecuritySettings; - break; - case types_1.AlarmMode.CUSTOM2: - propertyName = types_1.PropertyName.StationCustom2SecuritySettings; - break; - case types_1.AlarmMode.CUSTOM3: - propertyName = types_1.PropertyName.StationCustom3SecuritySettings; - break; - } - if (propertyName !== undefined && this.hasPropertyValue(propertyName) && this.getPropertyValue(propertyName) !== "") { - const settings = this.getPropertyValue(propertyName); - try { - if (settings.count_down_arm?.channel_list?.length > 0 && settings.count_down_arm?.delay_time > 0) { - return settings.count_down_arm.delay_time; - } - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.debug(`Station get arm delay - Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), mode: mode, propertyName: propertyName, settings: settings }); - } - } - return 0; - } - /*private getGuardModeActionSetting(mode: AlarmMode): number { - //TODO: This settings are only available on the device properties... - let value = 0; - try { - switch (mode) { - case AlarmMode.HOME: - value = Number.parseInt(this.getRawProperty(CommandType.CMD_GET_HOME_ACTION)); - break; - case AlarmMode.AWAY: - value = Number.parseInt(this.getRawProperty(CommandType.CMD_GET_AWAY_ACTION)); - break; - case AlarmMode.CUSTOM1: - value = Number.parseInt(this.getRawProperty(CommandType.CMD_GET_CUSTOM1_ACTION)); - break; - case AlarmMode.CUSTOM2: - value = Number.parseInt(this.getRawProperty(CommandType.CMD_GET_CUSTOM2_ACTION)); - break; - case AlarmMode.CUSTOM3: - value = Number.parseInt(this.getRawProperty(CommandType.CMD_GET_CUSTOM3_ACTION)); - break; - } - } catch (err) { - const error = ensureError(err); - rootHTTPLogger.debug(`Station get guard mode action setting - Error`, { error: getError(error), stationSN: this.getSerial(), mode: mode }); - } - return value; - } - - private isAlarmArmable(mode: AlarmMode): boolean { - const action = this.getGuardModeActionSetting(mode); - if ((action & GuardModeSecuritySettingsAction.CAMERA_ALARM) == GuardModeSecuritySettingsAction.CAMERA_ALARM || - (action & GuardModeSecuritySettingsAction.HOMEBASE_ALARM) == GuardModeSecuritySettingsAction.HOMEBASE_ALARM || - (action & GuardModeSecuritySettingsAction.LIGHT_ALARM) == GuardModeSecuritySettingsAction.LIGHT_ALARM) { - return true; - } - return false; - }*/ - _getDeviceSerial(channel) { - if (this.rawStation.devices) - for (const device of this.rawStation.devices) { - if (device.device_channel === channel) - return device.device_sn; - } - return ""; - } - _handleCameraInfoParameters(devices, channel, type, value) { - if (channel === Station.CHANNEL || channel === Station.CHANNEL_INDOOR || (this.isIntegratedDevice() && this.getDeviceType() !== types_1.DeviceType.HB3)) { - this.updateRawProperty(type, value, "p2p"); - if (type === types_2.CommandType.CMD_GET_ALARM_MODE) { - if (this.getDeviceType() !== types_1.DeviceType.STATION && this.getDeviceType() !== types_1.DeviceType.HB3) - // Trigger refresh Guard Mode - this.api.refreshStationData(); - } - if (this.isIntegratedDevice()) { - const device_sn = this.getSerial(); - if (!devices[device_sn]) { - devices[device_sn] = {}; - } - const parsedValue = parameter_1.ParameterHelper.readValue(device_sn, type, value, logging_1.rootHTTPLogger); - if (parsedValue !== undefined) { - devices[device_sn][type] = { - value: parsedValue, - source: "p2p" - }; - } - } - } - else { - const device_sn = this._getDeviceSerial(channel); - if (device_sn !== "") { - if (!devices[device_sn]) { - devices[device_sn] = {}; - } - const parsedValue = parameter_1.ParameterHelper.readValue(device_sn, type, value, logging_1.rootHTTPLogger); - if (parsedValue !== undefined) { - devices[device_sn][type] = { - value: parsedValue, - source: "p2p" - }; - } - } - } - } - onCameraInfo(cameraInfo) { - logging_1.rootHTTPLogger.debug("Station got camera info", { station: this.getSerial(), cameraInfo: cameraInfo }); - const devices = {}; - cameraInfo.params.forEach(param => { - this._handleCameraInfoParameters(devices, param.dev_type, param.param_type, param.param_value); - }); - if (Array.isArray(cameraInfo.db_bypass_str)) { - cameraInfo.db_bypass_str?.forEach(param => { - this._handleCameraInfoParameters(devices, param.channel, param.param_type, Buffer.from(param.param_value, "base64").toString()); - }); - } - Object.keys(devices).forEach(device => { - this.emit("raw device property changed", device, devices[device]); - }); - } - onCommandResponse(result) { - logging_1.rootHTTPLogger.debug("Station got p2p command response", { station: this.getSerial(), commandType: result.command_type, channel: result.channel, returnCodeName: types_2.ErrorCode[result.return_code], returnCode: result.return_code, customData: result.customData }); - this.emit("command result", this, result); - } - onSecondaryCommandResponse(result) { - logging_1.rootHTTPLogger.debug("Station got p2p secondary command response", { station: this.getSerial(), commandType: result.command_type, channel: result.channel, returnCode: result.return_code, customData: result.customData }); - this.emit("secondary command result", this, result); - if (result.command_type === types_2.CommandType.CMD_SMARTSAFE_SETTINGS && result.customData?.command?.name === "deviceVerifyPIN") { - if (result.return_code === 0) { - // Verify PIN was successfull for this session - this.pinVerified = true; - } - else { - this.pinVerified = false; - } - this.emit("device pin verified", this.getSerial(), this.pinVerified); - } - } - onConnect(address) { - this.terminating = false; - this.resetCurrentDelay(); - logging_1.rootHTTPLogger.info(`Connected to station ${this.getSerial()} on host ${address.host} and port ${address.port}`); - if (this.hasCommand(types_1.CommandName.StationDatabaseQueryLatestInfo)) { - this.databaseQueryLatestInfo(); - } - this.emit("connect", this); - } - onDisconnect() { - logging_1.rootHTTPLogger.info(`Disconnected from station ${this.getSerial()}`); - this.emit("close", this); - this.pinVerified = false; - if (!this.isEnergySavingDevice() && !this.terminating) - this.scheduleReconnect(); - } - onTimeout() { - logging_1.rootHTTPLogger.info(`Timeout connecting to station ${this.getSerial()}`); - this.emit("connection error", this, new error_1.StationConnectTimeoutError("Timeout connecting to station", { context: { station: this.getSerial() } })); - this.scheduleReconnect(); - } - getCurrentDelay() { - const delay = this.currentDelay == 0 ? 5000 : this.currentDelay; - if (this.currentDelay < 60000) - this.currentDelay += 10000; - if (this.currentDelay >= 60000 && this.currentDelay < 600000) - this.currentDelay += 60000; - return delay; - } - resetCurrentDelay() { - this.currentDelay = 0; - } - scheduleReconnect() { - if (!this.reconnectTimeout) { - const delay = this.getCurrentDelay(); - logging_1.rootHTTPLogger.debug(`Station schedule reconnect`, { stationSN: this.getSerial(), delay: delay }); - this.reconnectTimeout = setTimeout(() => { - this.reconnectTimeout = undefined; - this.connect(); - }, delay); - } - } - rebootHUB() { - const commandData = { - name: types_1.CommandName.StationReboot - }; - if (!this.hasCommand(types_1.CommandName.StationReboot)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station reboot - sending command`, { stationSN: this.getSerial() }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_HUB_REBOOT, - value: 0, - strValue: this.rawStation.member.admin_user_id, - channel: Station.CHANNEL - }, { - command: commandData - }); - } - setStatusLed(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceStatusLed, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set status led - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isCamera2Product() || device.isCamera3Product() || device.getDeviceType() === types_1.DeviceType.CAMERA || device.getDeviceType() === types_1.DeviceType.CAMERA_E || device.isCameraProfessional247()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_DEV_LED_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_LIVEVIEW_LED_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8424) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_LED_SWITCH, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.isFloodLightT8425() || (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT && !device.isFloodLightT8420X()) || device.isGarageCamera() || (device.isIndoorPanAndTiltCameraS350() && this.isStationHomeBase3()) || (device.isSoloCameras() && this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_DEV_LED_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorPanAndTiltCameraS350()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_LED_SWITCH, - "data": { - "enable": 0, - "quality": 0, - "status": 0, - "value": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isStarlight4GLTE()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_LED_SWITCH, - "data": { - "value": value === true ? 1 : 0, - "transaction": `${new Date().getTime()}` - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorCamera() || device.isFloodLight()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_LED_SWITCH, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "mediaAccountInfo": { - "deviceChannel": device.getChannel(), - "device_sn": device.getSerial(), - "device_type": -1, - "mDeviceName": device.getName(), - "mDidStr": this.rawStation.p2p_did, - "mHubSn": this.getSerial(), - "mInitStr": this.rawStation.app_conn, - "mReceiveVersion": "", - "mTimeInfo": "", - "mVersionName": "" - }, - "transaction": `${new Date().getTime()}` - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_DEV_LED_SWITCH, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isSoloCameras() && !this.isStationHomeBase3()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_LED_SWITCH, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "url": "", - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "mediaAccountInfo": { - "deviceChannel": device.getChannel(), - "device_sn": device.getSerial(), - "device_type": -1, - "mDeviceName": device.getName(), - "mDidStr": this.rawStation.p2p_did, - "mHubSn": this.getSerial(), - "mInitStr": this.rawStation.app_conn, - "mReceiveVersion": "", - "mTimeInfo": "", - "mVersionName": "" - }, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isBatteryDoorbellC30() || device.isBatteryDoorbellC31()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_LED_ENABLE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "light_enable": value === true ? 1 : 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbell() || device.isWiredDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_LED_ENABLE, - "mValue3": 0, - "payload": { - "light_enable": value === true ? 1 : 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_LED_NIGHT_OPEN, - "data": { - "status": value === true ? 1 : 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoNightVision(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoNightvision, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set auto night vision - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_NIGHT_VISION_TYPE, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isSoloCameraC210() || device.isSoloCameraSolar()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_NIGHT_VISION_TYPE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "night_sion": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_IRCUT_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - setNightVision(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNightvision, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set night vision - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isCameraProfessional247() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_NIGHT_VISION_TYPE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "night_sion": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_NIGHT_VISION_TYPE, - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "night_sion": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - setMotionDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isSoloCameraSolar() || device.isOutdoorPanAndTiltCamera() || device.isSoloCameraC210() || (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE, - "data": { - "enable": 0, - "quality": 0, - "status": value === true ? 1 : 0, - "value": 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCameraProfessional247()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE, - "data": { - "channel": device.getChannel(), - "enable": 0, - "index": 0, - "status": value === true ? 1 : 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if ((device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || (device.isFloodLight() && device.getDeviceType() !== types_1.DeviceType.FLOODLIGHT) || device.isFloodLightT8420X() || device.isWiredDoorbellT8200X() || device.isStarlight4GLTE() || device.isGarageCamera() || device.isSoloCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": value === true ? 1 : 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isSoloCameras() || device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_ENABLE, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_MOTION_DETECTION_PACKAGE, - "data": { - "enable": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_PIR_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - setSoundDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSoundDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set sound detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_SOUND_DETECT_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": value === true ? 1 : 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setSoundDetectionType(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSoundDetectionType, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set sound detection type - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_SOUND_DETECT_TYPE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": value, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setSoundDetectionSensitivity(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSoundDetectionSensitivity, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set sound detection sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_SOUND_SENSITIVITY_IDX, - "data": { - "enable": 0, - "index": value, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setPetDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DevicePetDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set pet detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_PET_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": value === true ? 1 : 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - panAndTilt(device, direction, command = 1) { - const commandData = { - name: types_1.CommandName.DevicePanAndTilt, - value: direction - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DevicePanAndTilt)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!(direction in types_2.PanTiltDirection)) { - throw new error_1.InvalidCommandValueError("Invalid value for this command", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station pan and tilt - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), direction: types_2.PanTiltDirection[direction], command }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_ROTATE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cmd_type": direction === types_2.PanTiltDirection.ROTATE360 ? -1 : command, - "rotate_type": direction, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isOutdoorPanAndTiltCamera() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - if (direction === types_2.PanTiltDirection.ROTATE360) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_OUTDOOR_ROTATE, - "data": { - "curise_type": 10, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_ROTATE, - "data": { - "cmd_type": command, - "rotate_type": direction, - "zoom": 1.0, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_ROTATE, - "data": { - "cmd_type": command, - "rotate_type": direction, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - switchLight(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLight, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station switch light - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if ((device.isFloodLight() && !device.isFloodLightT8425()) || device.isSoloCameraSpotlight1080() || device.isSoloCameraSpotlight2k() || - device.isSoloCameraSpotlightSolar() || device.isCamera2C() || device.isCamera2CPro() || - device.isIndoorOutdoorCamera1080p() || device.isIndoorOutdoorCamera2k() || device.isCamera3() || device.isCamera3C() || device.isCameraProfessional247() || device.isCamera3Pro()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_FLOODLIGHT_MANUAL_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isOutdoorPanAndTiltCamera() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_FLOODLIGHT_MANUAL_SWITCH, - "data": { - "time": 0, - "type": 2, - "value": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isStarlight4GLTE()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_FLOODLIGHT_MANUAL_SWITCH, - "data": { - "time": 60, - "type": 2, - "value": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_FLOODLIGHT_MANUAL_SWITCH, - "data": { - "value": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionSensitivity(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivity, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if ((device.isFloodLight() && device.getDeviceType() !== types_1.DeviceType.FLOODLIGHT && !device.isFloodLightT8425()) || (device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || device.isFloodLightT8420X() || device.isGarageCamera() || (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_SENSITIVITY_IDX, - "data": { - "enable": 0, - "index": value, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isOutdoorPanAndTiltCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_PIR_SENSITIVITY, - "data": { - "enable": 0, - "quality": 0, - "status": 0, - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if ((device.isSoloCameras() && !this.isStationHomeBase3()) || device.isWiredDoorbellT8200X() || device.isStarlight4GLTE()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_PIR_SENSITIVITY, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_MOTION_SENSITIVITY, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_SENSITIVITY, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "sensitivity": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if ((device.isBatteryDoorbell() && !device.isBatteryDoorbellDual()) || device.isWiredDoorbellDual() || device.isBatteryDoorbell() && device.isBatteryDoorbellC30()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_SENSITIVITY, - "payload": { - "channel": device.getChannel(), - "sensitivity": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCamera2Product()) { - let convertedValue; - switch (value) { - case 1: - convertedValue = 192; - break; - case 2: - convertedValue = 118; - break; - case 3: - convertedValue = 72; - break; - case 4: - convertedValue = 46; - break; - case 5: - convertedValue = 30; - break; - case 6: - convertedValue = 20; - break; - case 7: - convertedValue = 14; - break; - default: - convertedValue = 46; - break; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIRSENSITIVITY, - value: convertedValue, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.getDeviceType() === types_1.DeviceType.CAMERA || device.getDeviceType() === types_1.DeviceType.CAMERA_E) { - const convertedValue = 200 - ((value - 1) * 2); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIRSENSITIVITY, - value: convertedValue, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - let intMode; - let intSensitivity; - switch (value) { - case 1: - intMode = 3; - intSensitivity = 2; - break; - case 2: - intMode = 1; - intSensitivity = 1; - break; - case 3: - intMode = 1; - intSensitivity = 2; - break; - case 4: - intMode = 1; - intSensitivity = 3; - break; - case 5: - intMode = 2; - intSensitivity = 1; - break; - default: - intMode = 1; - intSensitivity = 3; - break; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_MOTION_DETECTION_PACKAGE, - "data": { - "mode": intMode, - "sensitivity": intSensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_MDSENSITIVITY, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCamera3Product() || device.isSmartDrop() || (device.isSoloCameras() && this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIRSENSITIVITY, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionType(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionType, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection type - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isCamera2Product() || device.isBatteryDoorbell() || device.getDeviceType() === types_1.DeviceType.CAMERA || - device.getDeviceType() === types_1.DeviceType.CAMERA_E || device.isSoloCameras() || - device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.isWiredDoorbellDual() || device.isStarlight4GLTE() || device.isGarageCamera() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DEV_PUSHMSG_MODE, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLight() || device.isIndoorCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_MOTION_DETECT_TYPE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": value, - "value": 0, - "voiceID": 0, - "zonecount": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbellT8200X()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_DETECT_TYPE, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionTypeHB3(device, type, value) { - const propertyData = { - name: type === types_1.HB3DetectionTypes.HUMAN_RECOGNITION ? types_1.PropertyName.DeviceMotionDetectionTypeHumanRecognition : type === types_1.HB3DetectionTypes.HUMAN_DETECTION || type === types_1.T8170DetectionTypes.HUMAN_DETECTION ? types_1.PropertyName.DeviceMotionDetectionTypeHuman : type === types_1.HB3DetectionTypes.PET_DETECTION ? types_1.PropertyName.DeviceMotionDetectionTypePet : type === types_1.HB3DetectionTypes.VEHICLE_DETECTION ? types_1.PropertyName.DeviceMotionDetectionTypeVehicle : types_1.PropertyName.DeviceMotionDetectionTypeAllOtherMotions, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection type HB3 - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), type: type, value: value }); - if (this.getDeviceType() === types_1.DeviceType.HB3) { - try { - if (!Object.values(types_1.HB3DetectionTypes).includes(type)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.HB3DetectionTypes).filter((value) => typeof value === "number")); - return; - } - const aiDetectionType = device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) !== undefined ? device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) : "0"; - let newAiDetectionType = (0, utils_1.getHB3DetectionMode)(Number.parseInt(aiDetectionType), type, value); - if (newAiDetectionType === 0) { - newAiDetectionType = type; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, - "mChannel": 0, //device.getChannel(), - "mValue3": 0, - "payload": { - "ai_detect_type": newAiDetectionType, - "channel": device.getChannel(), - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, newAiDetectionType.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setMotionDetectionTypeHB3 Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else if (device.isOutdoorPanAndTiltCamera()) { - try { - if (!Object.values(types_1.T8170DetectionTypes).includes(type)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.T8170DetectionTypes).filter((value) => typeof value === "number")); - return; - } - const aiDetectionType = device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) !== undefined ? device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) : "0"; - let newAiDetectionType = (0, utils_1.getT8170DetectionMode)(Number.parseInt(aiDetectionType), type, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "ai_detect_type": newAiDetectionType, - "channel": device.getChannel(), - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, newAiDetectionType.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setMotionDetectionTypeHB3 T8170DetectionTypes Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else if (device.isSoloCameras()) { - try { - if (!Object.values(types_1.SoloCameraDetectionTypes).includes(type)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.SoloCameraDetectionTypes).filter((value) => typeof value === "number")); - return; - } - let newAiDetectionType = type; - if (!value) { - newAiDetectionType = type === types_1.SoloCameraDetectionTypes.ALL_OTHER_MOTION ? types_1.SoloCameraDetectionTypes.HUMAN_DETECTION : types_1.SoloCameraDetectionTypes.ALL_OTHER_MOTION; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "ai_detect_type": newAiDetectionType, - "channel": device.getChannel(), - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, newAiDetectionType.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setMotionDetectionTypeHB3 SoloCameraDetectionTypes Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else if (device.isIndoorPanAndTiltCameraS350()) { - try { - if (!Object.values(types_1.IndoorS350DetectionTypes).includes(type)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.IndoorS350DetectionTypes).filter((value) => typeof value === "number")); - return; - } - const aiDetectionType = device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) !== undefined ? device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) : "0"; - let newAiDetectionType = (0, utils_1.getIndoorS350DetectionMode)(Number.parseInt(aiDetectionType), type, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "ai_detect_type": newAiDetectionType, - "channel": device.getChannel(), - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_MOTION_DETECTION_TYPE_HB3, newAiDetectionType.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setMotionDetectionTypeHB3 IndoorS350DetectionTypes Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionZone(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionZone, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion zone - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DET_SET_ACTIVE_ZONE, - "data": value - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setMotionTracking(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionTracking, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion tracking - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PAN_MOTION_TRACK, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setPanAndTiltRotationSpeed(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRotationSpeed, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set pan and tilt rotation speed - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PAN_SPEED, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setMicMute(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMicrophone, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set mic mute - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEV_MIC_MUTE, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setAudioRecording(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAudioRecording, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set audio recording - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_AUDIO_MUTE_RECORD, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "enable": value === true ? 1 : 0, - "index": 0, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT && !device.isFloodLightT8420X()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_RECORD_AUDIO_SWITCH, - "payload": { - "storage_audio_switch": value === true ? 0 : 1, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isOutdoorPanAndTiltCamera() || (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_RECORD_AUDIO_ENABLE, - "data": { - "enable": value === true ? 1 : 0, - "quality": 0, - "status": 0, - "value": 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if ((device.isFloodLight() && !device.isFloodLightT8425()) || (device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || (device.isSoloCameras() && !this.isStationHomeBase3()) || device.isStarlight4GLTE()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_RECORD_AUDIO_ENABLE, - "data": { - "enable": value === true ? 1 : 0, - "index": 0, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_AUDIO_MUTE_RECORD, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isSmartDrop() || device.isLockWifiVideo() || device.isCameraProfessional247() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425() || (device.isSoloCameras() && this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_AUDIO_MUTE_RECORD, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "record_mute": value === true ? 0 : 1, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCamera2Product() || device.isCamera3Product() || device.isBatteryDoorbell() || device.getDeviceType() === types_1.DeviceType.CAMERA || device.getDeviceType() === types_1.DeviceType.CAMERA_E || device.isWiredDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_AUDIO_MUTE_RECORD, - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "record_mute": value === true ? 0 : 1, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbellT8200X()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_RECORD_AUDIO_ENABLE, - "data": { - "enable": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_AUDIO_RECORDING, - "data": { - "status": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - enableSpeaker(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSpeaker, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station enable speaker - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEV_SPEAKER_MUTE, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setSpeakerVolume(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSpeakerVolume, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set speaker volume - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SPEAKER_VOLUME, - "data": value - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEV_SPEAKER_VOLUME, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - setRingtoneVolume(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingtoneVolume, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set ringtone volume - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell() || device.isWiredDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_SET_RINGTONE_VOLUME, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbellT8200X()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_T8200X_SET_RINGTONE_VOLUME, - "data": { - "status": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_RINGTONE_VOLUME, - "data": { - "volume": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - enableIndoorChime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChimeIndoor, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station enable indoor chime - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_MECHANICAL_CHIME_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_INDOOR_CHIME, - "data": { - "status": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - enableHomebaseChime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChimeHomebase, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station enable homebase chime - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell() || device.isLockWifiVideo() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_CHIME_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setHomebaseChimeRingtoneVolume(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChimeHomebaseRingtoneVolume, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set homebase chime ringtone volume - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_DINGDONG_V, - "mValue3": 0, - "payload": { - "dingdong_volume": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_DINGDONG_V, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "dingdong_volume": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setHomebaseChimeRingtoneType(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChimeHomebaseRingtoneType, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set homebase chime ringtone type - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_DINGDONG_R, - "mValue3": 0, - "payload": { - "dingdong_ringtone": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_DINGDONG_R, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "dingdong_ringtone": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationType(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationType, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification type - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if ((device.isFloodLight() && !device.isFloodLightT8425()) || (device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || (device.isSoloCameras() && !this.isStationHomeBase3()) || device.isStarlight4GLTE() || device.isGarageCamera()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PUSH_NOTIFY_TYPE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PUSH_NOTIFY_TYPE, - "data": { - "enable": 0, - "quality": 0, - "status": 0, - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbellT8200X()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PUSH_NOTIFY_TYPE, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - if (!Object.values(types_1.WalllightNotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.WalllightNotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_NOTIFICATION_TYPE, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isLockWifiVideo()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "notification_motion_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 1 : 0, - "notification_ring_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 1 : 0, - "notification_style": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbell() || device.isWiredDoorbellDual()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mValue3": 0, - "payload": { - "notification_motion_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 1 : 0, - "notification_ring_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 1 : 0, - "notification_style": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCameraProfessional247() || (device.isIndoorPanAndTiltCameraS350() && this.isStationHomeBase3()) || device.isFloodLightT8425() || (device.isSoloCameras() && this.isStationHomeBase3())) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_PUSH_EFFECT, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "notification_style": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCamera2Product() || device.getDeviceType() === types_1.DeviceType.CAMERA || device.getDeviceType() === types_1.DeviceType.CAMERA_E || device.isCamera3Product()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_PUSH_EFFECT, - "mValue3": 0, - "payload": { - "notification_style": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - if (!Object.values(types_1.NotificationType).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_1.NotificationType).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_NOTIFICATION_TYPE, - "data": { - "style": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationPerson(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationPerson, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification person - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamera() || device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_AI_PERSON_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_NOTIFICATION_TYPE_HUMAN, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationPet(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationPet, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification pet - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_AI_PET_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationAllOtherMotion(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationAllOtherMotion, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification all other motion - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamera() || device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_AI_MOTION_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_NOTIFICATION_TYPE_ALL, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationAllSound(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationAllSound, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification all sound - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_AI_SOUND_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationCrying(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationCrying, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification crying - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_AI_CRYING_ENABLE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value === true ? 1 : 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationRing(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationRing, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification ring - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell() || device.isWiredDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mValue3": 0, - "payload": { - "notification_ring_onoff": value === true ? 1 : 0, - "notification_motion_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 1 : 0, - "notification_style": device.getPropertyValue(types_1.PropertyName.DeviceNotificationType), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "notification_ring_onoff": value === true ? 1 : 0, - "notification_motion_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 1 : 0, - "notification_style": device.getPropertyValue(types_1.PropertyName.DeviceNotificationType), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_NOTIFICATION_RING, - "data": { - "type": value === true ? (device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 3 : 1) : (device.getPropertyValue(types_1.PropertyName.DeviceNotificationMotion) === true ? 2 : 0), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationMotion(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationMotion, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification motion - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbell() || device.isWiredDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mValue3": 0, - "payload": { - "notification_motion_onoff": value === true ? 1 : 0, - "notification_ring_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 1 : 0, - "notification_style": device.getPropertyValue(types_1.PropertyName.DeviceNotificationType), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_SET_NOTIFICATION_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "notification_motion_onoff": value === true ? 1 : 0, - "notification_ring_onoff": device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 1 : 0, - "notification_style": device.getPropertyValue(types_1.PropertyName.DeviceNotificationType), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_NOTIFICATION_RING, - "data": { - "type": value === true ? (device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 3 : 2) : (device.getPropertyValue(types_1.PropertyName.DeviceNotificationRing) === true ? 1 : 0), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setPowerSource(device, value) { - const propertyData = { - name: types_1.PropertyName.DevicePowerSource, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set power source - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isStarlight4GLTE()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_POWER_CHARGE, - "data": { - "enable": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isOutdoorPanAndTiltCamera() || (device.isSoloCameras() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_POWER_CHARGE, - "data": { - "enable": value, - "quality": 0, - "status": 0, - "value": 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_POWER_CHARGE, - "mValue3": 0, - "payload": { - "charge_mode": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - setPowerWorkingMode(device, value) { - const propertyData = { - name: types_1.PropertyName.DevicePowerWorkingMode, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set power working mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIR_POWERMODE, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setRecordingClipLength(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRecordingClipLength, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set recording clip length - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DEV_RECORD_TIMEOUT, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setRecordingRetriggerInterval(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRecordingRetriggerInterval, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set recording retrigger interval - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DEV_RECORD_INTERVAL, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setRecordingEndClipMotionStops(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRecordingEndClipMotionStops, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set recording end clip motion stops - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DEV_RECORD_AUTOSTOP, - value: value === true ? 0 : 1, - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setVideoStreamingQuality(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoStreamingQuality, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set video streaming quality - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_VIDEO_QUALITY2, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "mode": -1, - "primary_view": -1, - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isOutdoorPanAndTiltCamera() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_VIDEO_QUALITY2, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "mode": 0, - "primary_view": 0, - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorCamera() || (device.isSoloCameras() && !this.isStationHomeBase3()) || device.isFloodLight() || device.isWiredDoorbell() || device.isStarlight4GLTE() || device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_VIDEO_QUALITY, - "data": { - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_RESOLUTION, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbell() || device.isCamera2CPro() || device.isWiredDoorbellDual() || device.isCamera3() || device.isCamera3C() || device.isCamera3Pro() || device.isSmartDrop() || device.isLockWifiVideo() || device.isCameraProfessional247() || (device.isSoloCameras() && this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_VIDEO_QUALITY, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setVideoRecordingQuality(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoRecordingQuality, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set video recording quality - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_RECORD_QUALITY2, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "mode": -1, - "primary_view": -1, - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isOutdoorPanAndTiltCamera() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_RECORD_QUALITY2, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "mode": 0, - "primary_view": 0, - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorCamera() || device.isWiredDoorbell() || device.isFloodLight() || (device.isSoloCameras() && !this.isStationHomeBase3()) || device.isStarlight4GLTE() || device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_VIDEO_RECORDING_QUALITY, - "data": { - "quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_RECORD_QUALITY, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isCamera2CPro() || device.isCamera3() || device.isCamera3C() || device.isCameraProfessional247() || device.isCamera3Pro()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_RECORD_QUALITY, - "mValue3": 0, - "payload": { - "record_quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if ((device.isSoloCameras() && this.isStationHomeBase3()) || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_RECORD_QUALITY, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "record_quality": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setWDR(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoWDR, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set wdr - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_WDR_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setFloodlightLightSettingsEnable(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsEnable, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings enable - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_FLOODLIGHT_TOTAL_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setFloodlightLightSettingsBrightnessManual(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsBrightnessManual, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings brightness manual - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isFloodLight() || device.isSoloCameraSpotlight1080() || device.isSoloCameraSpotlight2k() || - device.isSoloCameraSpotlightSolar() || device.isCamera2C() || device.isCamera2CPro() || - device.isIndoorOutdoorCamera1080p() || device.isIndoorOutdoorCamera2k() || device.isCamera3() || device.isCamera3C() || device.isCamera3Pro() || device.isOutdoorPanAndTiltCamera() || device.isCameraProfessional247()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_FLOODLIGHT_BRIGHT_VALUE, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_FLOODLIGHT_BRIGHT_VALUE, - "data": { - "type": 0, - "value": value, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setFloodlightLightSettingsBrightnessMotion(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsBrightnessMotion, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings brightness motion - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425); - if (rawProperty !== undefined) { - const payload = { - ...rawProperty, - brightness: value, - }; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": payload - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set light settings brightness motion - Needed raw property "${types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else if (device.isFloodLight()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR, - "data": { - "type": 0, - "value": value, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setFloodlightLightSettingsBrightnessSchedule(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsBrightnessSchedule, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings brightness schedule - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_SCH_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "brightness": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLight()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_SCH, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_SCH, - "data": { - "type": 0, - "value": value, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setFloodlightLightSettingsMotionTriggered(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionTriggered, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings motion triggered - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425); - if (rawProperty !== undefined) { - const payload = { - ...rawProperty, - enable: value === true ? 1 : 0, - }; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": payload - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set light settings motion triggered - Needed raw property "${types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else if (device.isFloodLight()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_LIGHT_CTRL_PIR_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_LIGHT_CTRL_PIR_SWITCH, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setFloodlightLightSettingsMotionTriggeredDistance(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionTriggeredDistance, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - let newValue; - switch (value) { - case 1: - newValue = types_1.FloodlightMotionTriggeredDistance.MIN; - break; - case 2: - newValue = types_1.FloodlightMotionTriggeredDistance.LOW; - break; - case 3: - newValue = types_1.FloodlightMotionTriggeredDistance.MEDIUM; - break; - case 4: - newValue = types_1.FloodlightMotionTriggeredDistance.HIGH; - break; - case 5: - newValue = types_1.FloodlightMotionTriggeredDistance.MAX; - break; - default: - throw new error_1.InvalidPropertyValueError("Invalid value for this property", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set light settings motion triggered distance - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: newValue }); - if (device.isFloodLight()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIRSENSITIVITY, - value: newValue, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setFloodlightLightSettingsMotionTriggeredTimer(device, seconds) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionTriggeredTimer, - value: seconds - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, seconds); - logging_1.rootHTTPLogger.debug(`Station set light settings motion triggered timer - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: seconds }); - if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425); - if (rawProperty !== undefined) { - const payload = { - ...rawProperty, - time: seconds - }; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": payload - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set light settings motion triggered timer - Needed raw property "${types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else if (device.isFloodLight()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_LIGHT_CTRL_PIR_TIME, - value: seconds, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_LIGHT_CTRL_PIR_TIME, - "data": seconds, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - triggerStationAlarmSound(seconds) { - const commandData = { - name: types_1.CommandName.StationTriggerAlarmSound, - value: seconds - }; - if (!this.hasCommand(types_1.CommandName.StationTriggerAlarmSound)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station trigger station alarm sound - sending command`, { stationSN: this.getSerial(), value: seconds }); - if (!(0, utils_1.isGreaterEqualMinVersion)("2.0.7.9", this.getSoftwareVersion()) || device_1.Device.isIntegratedDeviceBySn(this.getSerial())) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_TONE_FILE, - value: 2, - valueSub: seconds, - strValue: this.rawStation.member.admin_user_id, - channel: Station.CHANNEL - }, { - command: commandData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_TONE_FILE, - "mValue3": 0, - "payload": { - "time_out": seconds, - "user_name": this.rawStation.member.nick_name, - } - }), - channel: Station.CHANNEL - }, { - command: commandData - }); - } - } - resetStationAlarmSound() { - this.triggerStationAlarmSound(0); - } - triggerDeviceAlarmSound(device, seconds) { - const commandData = { - name: types_1.CommandName.DeviceTriggerAlarmSound, - value: seconds - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceTriggerAlarmSound)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station trigger device alarm sound - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: seconds }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_TONE_FILE, - value: seconds, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - command: commandData - }); - } - resetDeviceAlarmSound(device) { - this.triggerDeviceAlarmSound(device, 0); - } - setStationAlarmRingtoneVolume(value) { - const propertyData = { - name: types_1.PropertyName.StationAlarmVolume, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station alarm ringtone volume - sending command`, { stationSN: this.getSerial(), value: value }); - if (device_1.Device.isWallLightCam(this.getDeviceType())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_ALERT_VOLUME, - "data": value - }), - channel: 0 - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_SET_HUB_SPK_VOLUME, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - } - setStationAlarmTone(value) { - const propertyData = { - name: types_1.PropertyName.StationAlarmTone, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station alarm tone - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_ALARM_TONE, - "mValue3": 0, - "payload": { - "type": value, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - setStationPromptVolume(value) { - const propertyData = { - name: types_1.PropertyName.StationPromptVolume, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station prompt volume - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_PROMPT_VOLUME, - "mValue3": 0, - "payload": { - "value": value, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - setStationNotificationSwitchMode(mode, value) { - const propertyData = { - name: mode === types_1.NotificationSwitchMode.APP ? types_1.PropertyName.StationNotificationSwitchModeApp : mode === types_1.NotificationSwitchMode.GEOFENCE ? types_1.PropertyName.StationNotificationSwitchModeGeofence : mode === types_1.NotificationSwitchMode.KEYPAD ? types_1.PropertyName.StationNotificationSwitchModeKeypad : mode === types_1.NotificationSwitchMode.SCHEDULE ? types_1.PropertyName.StationNotificationSwitchModeSchedule : "", - value: value - }; - if ((!this.hasProperty(types_1.PropertyName.StationNotificationSwitchModeApp) && mode === types_1.NotificationSwitchMode.APP) || - (!this.hasProperty(types_1.PropertyName.StationNotificationSwitchModeGeofence) && mode === types_1.NotificationSwitchMode.GEOFENCE) || - (!this.hasProperty(types_1.PropertyName.StationNotificationSwitchModeKeypad) && mode === types_1.NotificationSwitchMode.KEYPAD) || - (!this.hasProperty(types_1.PropertyName.StationNotificationSwitchModeSchedule) && mode === types_1.NotificationSwitchMode.SCHEDULE)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station notification switch mode - sending command`, { stationSN: this.getSerial(), mode: mode, value: value }); - if (this.isStation() && (0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - let oldvalue = 0; - const rawproperty = this.getRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE); - if (rawproperty !== undefined) { - try { - oldvalue = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const pushMode = (0, utils_1.switchNotificationMode)(oldvalue, mode, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_NOTIFY_MODE, - "mValue3": 0, - "payload": { - "arm_push_mode": pushMode, - "notify_alarm_delay": this.getPropertyValue(types_1.PropertyName.StationNotificationStartAlarmDelay) !== undefined ? (this.getPropertyValue(types_1.PropertyName.StationNotificationStartAlarmDelay) === true ? 1 : 0) : 0, - "notify_mode": 0, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData, - onSuccess: () => { - this.updateRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE, pushMode.toString(), "p2p"); - } - }); - } - else if (this.getDeviceType() === types_1.DeviceType.OUTDOOR_PT_CAMERA || device_1.Device.isSoloCameraC210(this.getDeviceType())) { - let oldvalue = 0; - const rawproperty = this.getRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE); - if (rawproperty !== undefined) { - try { - oldvalue = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const pushMode = (0, utils_1.switchNotificationMode)(oldvalue, mode, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_NOTIFY_MODE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "arm_push_mode": pushMode, - "notify_alarm_delay": 0, - "notify_mode": 0, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData, - onSuccess: () => { - this.updateRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE, pushMode.toString(), "p2p"); - } - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_NOTIFY_MODE, - "mValue3": 0, - "payload": { - //"arm_push_mode": 0, - "notify_alarm_delay": this.getPropertyValue(types_1.PropertyName.StationNotificationStartAlarmDelay) !== undefined ? (this.getPropertyValue(types_1.PropertyName.StationNotificationStartAlarmDelay) === true ? 1 : 0) : 0, - "notify_mode": value === true ? 1 : 0, // 0 or 1 - } - }), - channel: Station.CHANNEL - }, { - property: propertyData, - onSuccess: () => { - this.updateRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE, String(value === true ? 1 : 0), "p2p"); - } - }); - } - } - setStationNotificationStartAlarmDelay(value) { - const propertyData = { - name: types_1.PropertyName.StationNotificationStartAlarmDelay, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - let pushmode = 0; - const rawproperty = this.getRawProperty(types_2.CommandType.CMD_HUB_NOTIFY_MODE); - if (rawproperty !== undefined) { - try { - pushmode = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station notification start alarm delay - sending command`, { stationSN: this.getSerial(), value: value }); - if ((0, utils_1.isGreaterEqualMinVersion)("2.1.1.6", this.getSoftwareVersion())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_NOTIFY_ALARM, - "mValue3": 0, - "payload": { - "arm_push_mode": pushmode, - "notify_alarm_delay": value === true ? 1 : 0, - "notify_mode": 0, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_HUB_NOTIFY_MODE, - "mValue3": 0, - "payload": { - //"arm_push_mode": 0, - "notify_alarm_delay": value === true ? 1 : 0, - "notify_mode": pushmode, // 0 or 1 - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - } - setStationTimeFormat(value) { - const propertyData = { - name: types_1.PropertyName.StationTimeFormat, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station time format - sending command`, { stationSN: this.getSerial(), value: value }); - if (device_1.Device.isWallLightCam(this.getDeviceType())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_HUB_OSD, - "data": value - }), - channel: 0 - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_SET_HUB_OSD, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - } - setRTSPStream(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRTSPStream, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set rtsp stream - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_NAS_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setAntiTheftDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAntitheftDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set anti theft detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_EAS_SWITCH, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setWatermark(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceWatermark, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set watermark - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isCamera2Product() || device.isCamera3Product() || device.isSoloCameraSolar() || device.isOutdoorPanAndTiltCamera() || device.isCameraProfessional247() || device.isIndoorPanAndTiltCameraS350() || device.isSoloCameraC210() || device.isFloodLightT8425()) { - if (!Object.values(types_2.WatermarkSetting3).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_2.WatermarkSetting3).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isSoloCameras() || device.isWiredDoorbell() || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.isStarlight4GLTE()) { - if (!Object.values(types_2.WatermarkSetting1).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_2.WatermarkSetting1).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: 0, - strValue: this.rawStation.member.admin_user_id, - channel: 0 - }, { - property: propertyData - }); - } - else if (device.isIndoorCamera() || device.isFloodLight()) { - if (!Object.values(types_2.WatermarkSetting4).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_2.WatermarkSetting4).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbell() || device.getDeviceType() === types_1.DeviceType.CAMERA || device.getDeviceType() === types_1.DeviceType.CAMERA_E || device.isWiredDoorbellDual() || device.isLockWifiVideo()) { - if (!Object.values(types_2.WatermarkSetting2).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values: `, Object.values(types_2.WatermarkSetting2).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - if (!Object.values(types_2.WatermarkSetting1).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_2.WatermarkSetting1).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_DEVS_OSD, - "data": value - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isGarageCamera()) { - if (!Object.values(types_2.WatermarkSetting5).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, Object.values(types_2.WatermarkSetting5).filter((value) => typeof value === "number")); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isSmartDrop()) { - if (!Object.values(types_2.WatermarkSetting1).includes(value)) { - logging_1.rootHTTPLogger.error(`The device ${device.getSerial()} accepts only this type of values:`, types_2.WatermarkSetting1); - return; - } - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_DEVS_OSD, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - enableDevice(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceEnabled, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - let param_value = value === true ? 0 : 1; - if ((device.isIndoorCamera() && !device.isIndoorCamMini() && !device.isIndoorPanAndTiltCameraS350()) || (device.isWiredDoorbell() && !device.isWiredDoorbellT8200X()) || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8422 || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8424 || device.isFloodLightT8420X()) - param_value = value === true ? 1 : 0; - logging_1.rootHTTPLogger.debug(`Station enable device - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorCamMini()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE, - "data": { - "value": param_value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorPanAndTiltCameraS350()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE_S350, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "switch": param_value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorCamera() && (0, utils_1.isGreaterEqualMinVersion)("2.3.1.0", device.getSoftwareVersion()) && Station.isStationHomeBase3BySn(device.getStationSerial())) { - param_value = value === true ? 0 : 1; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE_S350, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "switch": param_value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_DEVS_SWITCH, - value: param_value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - async startDownload(device, path, cipher_id) { - const commandData = { - name: types_1.CommandName.DeviceStartDownload, - value: { - path: path, - cipher_id: cipher_id - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceStartDownload)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station start download - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), path: path, cipherID: cipher_id }); - if (this.getDeviceType() === types_1.DeviceType.HB3) { - //TODO: Implement HB3 Support! Actually doesn't work and returns return_code -104 (ERROR_INVALID_ACCOUNT). It could be that we need the new encrypted p2p protocol to make this work... - const rsa_key = this.p2pSession.getDownloadRSAPrivateKey(); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - value: JSON.stringify({ - account_id: this.rawStation.member.admin_user_id, - cmd: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - mChannel: device.getChannel(), - mValue3: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - payload: { - filepath: path, - key: rsa_key?.exportKey("components-public").n.subarray(1).toString("hex").toUpperCase(), - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (cipher_id !== undefined) { - const cipher = await this.api.getCipher(/*this.rawStation.station_sn, */ cipher_id, this.rawStation.member.admin_user_id); - if (Object.keys(cipher).length > 0) { - this.p2pSession.setDownloadRSAPrivateKeyPem(cipher.private_key); - this.p2pSession.sendCommandWithString({ - commandType: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - strValue: path, - strValueSub: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - logging_1.rootHTTPLogger.warn(`Cancelled download of video "${path}" from Station ${this.getSerial()}, because RSA certificate couldn't be loaded`); - this.emit("command result", this, { - channel: device.getChannel(), - command_type: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - return_code: types_2.ErrorCode.ERROR_INVALID_PARAM, - customData: { - command: commandData - } - }); - } - } - else { - this.p2pSession.sendCommandWithString({ - commandType: types_2.CommandType.CMD_DOWNLOAD_VIDEO, - strValue: path, - strValueSub: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - command: commandData - }); - } - /* else { - rootHTTPLogger.warn(`Cancelled download of video "${path}" from Station ${this.getSerial()}, because cipher_id is missing`); - this.emit("command result", this, { - channel: device.getChannel(), - command_type: CommandType.CMD_DOWNLOAD_VIDEO, - return_code: ErrorCode.ERROR_INVALID_PARAM, - customData: { - command: commandData - } - }); - }*/ - } - cancelDownload(device) { - const commandData = { - name: types_1.CommandName.DeviceCancelDownload - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceCancelDownload)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station cancel download - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DOWNLOAD_CANCEL, - value: device.getChannel(), - strValueSub: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - command: commandData - }); - } - startLivestream(device, videoCodec = types_2.VideoCodec.H264, skipLiveStreamingCheck = true) { - const commandData = { - name: types_1.CommandName.DeviceStartLivestream, - value: videoCodec - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceStartLivestream)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!skipLiveStreamingCheck && this.isLiveStreaming(device)) { - throw new error_2.LivestreamAlreadyRunningError("Livestream for device is already running", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec }); - const rsa_key = this.p2pSession.getRSAPrivateKey(); - if (device.isSmartDrop()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command (smart drop)`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "mChannel": 0, - "mValue3": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "payload": { - "ClientOS": "Android", - "camera_type": 0, - "entrytype": 0, - "key": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec === types_2.VideoCodec.H264 ? 1 : 2, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isOutdoorPanAndTiltCamera()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (1)`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_START_LIVESTREAM, - "data": { - "accountId": this.rawStation.member.admin_user_id, - "camera_type": 0, - "encryptkey": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "entrytype": 0, - "streamtype": videoCodec - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isSoloCameras() || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8424 || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8424 || device.isWiredDoorbellT8200X() || device.isWallLightCam() || device.isGarageCamera()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (2)`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_START_LIVESTREAM, - "data": { - "accountId": this.rawStation.member.admin_user_id, - "encryptkey": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if ((device.isIndoorPanAndTiltCameraS350() && this.isStationHomeBase3()) || device.isFloodLightT8425()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_SET_PAYLOAD`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "mChannel": device.getChannel(), - "mValue3": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "payload": { - "ClientOS": "Android", - "accountId": this.rawStation.member.admin_user_id, - "camera_type": 0, - "entrytype": 0, - "key": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec === types_2.VideoCodec.H264 ? 1 : 2, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isIndoorPanAndTiltCameraS350()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (4)`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_START_LIVESTREAM, - "data": { - "accountId": this.rawStation.member.admin_user_id, - "camera_type": 0, - "encryptkey": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "entrytype": 0, - "msg_id": 86, - "streamtype": videoCodec - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isWiredDoorbell() || (device.isFloodLight() && device.getDeviceType() !== types_1.DeviceType.FLOODLIGHT) || device.isIndoorCamera() || (device.getSerial().startsWith("T8420") && (0, utils_1.isGreaterEqualMinVersion)("2.0.4.8", this.getSoftwareVersion()))) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (3)`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_START_LIVESTREAM, - "data": { - "account_id": this.rawStation.member.admin_user_id, - "encryptkey": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isCameraProfessional247()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_SET_PAYLOAD`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "mValue3": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "payload": { - "ClientOS": "Android", - "camera_type": 0, - "entrytype": 0, - "key": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec === types_2.VideoCodec.H264 ? 1 : 2, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - if ((device_1.Device.isIntegratedDeviceBySn(this.getSerial()) || !(0, utils_1.isGreaterEqualMinVersion)("2.0.9.7", this.getSoftwareVersion())) && (!this.getSerial().startsWith("T8420") || !(0, utils_1.isGreaterEqualMinVersion)("1.0.0.25", this.getSoftwareVersion())) || device.isLockWifiVideo()) { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_START_REALTIME_MEDIA`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_START_REALTIME_MEDIA, - value: device.getChannel(), - strValue: rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_SET_PAYLOAD`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), videoCodec: videoCodec, main_sw_version: this.getSoftwareVersion() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "mValue3": types_2.CommandType.CMD_START_REALTIME_MEDIA, - "payload": { - "ClientOS": "Android", - "key": rsa_key?.exportKey("components-public").n.subarray(1).toString("hex"), - "streamtype": videoCodec === types_2.VideoCodec.H264 ? 1 : 2, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - } - stopLivestream(device) { - const commandData = { - name: types_1.CommandName.DeviceStopLivestream - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceStopLivestream)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!this.isLiveStreaming(device)) { - throw new error_2.LivestreamNotRunningError("Livestream for device is not running", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station stop livestream - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_STOP_REALTIME_MEDIA, - value: device.getChannel(), - channel: device.getChannel() - }, { - command: commandData - }); - } - isLiveStreaming(device) { - if (device.getStationSerial() !== this.getSerial()) - return false; - return this.p2pSession.isLiveStreaming(device.getChannel()); - } - isDownloading(device) { - if (device.getStationSerial() !== this.getSerial()) - return false; - return this.p2pSession.isDownloading(device.getChannel()); - } - quickResponse(device, voice_id) { - const commandData = { - name: types_1.CommandName.DeviceQuickResponse, - value: voice_id - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceQuickResponse)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station quick response - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), voiceID: voice_id }); - if (device.isBatteryDoorbell() || device.isLockWifiVideo()) { - logging_1.rootHTTPLogger.debug(`Station quick response - sending command using CMD_BAT_DOORBELL_QUICK_RESPONSE`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), voiceID: voice_id }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_BAT_DOORBELL_QUICK_RESPONSE, - value: voice_id, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isWiredDoorbell()) { - logging_1.rootHTTPLogger.debug(`Station quick response - sending command using CMD_DOORBELL_SET_PAYLOAD`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), voiceID: voice_id }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_QUICK_RESPONSE, - "data": { - "voiceID": voice_id - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - setChirpVolume(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChirpVolume, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set chirp volume - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isEntrySensor()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SENSOR_SET_CHIRP_VOLUME, - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "volume": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setChirpTone(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceChirpTone, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set chirp tone - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isEntrySensor()) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SENSOR_SET_CHIRP_TONE, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setHDR(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoHDR, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set hdr - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_HDR, - "data": { - "status": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDistortionCorrection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoDistortionCorrection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set distortion correction - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_DISTORTION_CORRECTION, - "data": { - "status": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setRingRecord(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoRingRecord, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set ring record - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWiredDoorbell()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_1.ParamType.COMMAND_VIDEO_RING_RECORD, - "data": { - "status": value - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - lockDevice(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLocked, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station lock device - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockBleNoFinger() || device.isLockBle()) { - const key = (0, utils_2.generateBasicLockAESKey)(this.rawStation.member.admin_user_id, this.getSerial()); - const iv = (0, utils_2.getLockVectorBytes)(this.getSerial()); - const lockCmd = device_1.Lock.encodeESLCmdOnOff(Number.parseInt(this.rawStation.member.short_user_id), this.rawStation.member.nick_name, value); - const payload = { - channel: device.getChannel(), - lock_cmd: types_2.ESLBleCommand.ON_OFF_LOCK, - lock_payload: lockCmd.toString("base64"), - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const encPayload = (0, utils_2.encryptLockAESData)(key, iv, (0, utils_2.encodeLockPayload)(JSON.stringify(payload))); - logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: payload, encPayload: encPayload.toString("hex") }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORLOCK_DATA_PASS_THROUGH, - "mValue3": 0, - "payload": { - "payload": encPayload.toString("base64") - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - shortUserId: this.rawStation.member.short_user_id, - slOperation: value === true ? 1 : 0, - userId: this.rawStation.member.admin_user_id, - userName: this.rawStation.member.nick_name, - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_ON_OFF_LOCK, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_ON_OFF_LOCK, command.aesKey); - logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - property: propertyData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_ON_OFF_LOCK, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "shortUserId": this.rawStation.member.short_user_id, - "slOperation": value === true ? 1 : 0, - "userId": this.rawStation.member.admin_user_id, - "userName": this.rawStation.member.nick_name, - } - }), - channel: device.getChannel(), - }, { - property: propertyData - }); - logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.ON_OFF_LOCK, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdUnlock(this.rawStation.member.short_user_id, value === true ? 1 : 0, this.rawStation.member.nick_name)); - logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this._sendLockV12P2PCommand(command, { - property: propertyData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ON_OFF_LOCK, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockUnlock(this.rawStation.member.admin_user_id, value, this.rawStation.member.nick_name, this.rawStation.member.short_user_id)); - logging_1.rootHTTPLogger.debug("Station lock device - Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setStationSwitchModeWithAccessCode(value) { - const propertyData = { - name: types_1.PropertyName.StationNotificationSwitchModeGeofence, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station switch mode with access code - sending command`, { stationSN: this.getSerial(), value: value }); - if (this.isStation()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_KEYPAD_PSW_OPEN, - "mValue3": 0, - "payload": { - "psw_required": value === true ? 1 : 0, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - } - setStationAutoEndAlarm(value) { - const propertyData = { - name: types_1.PropertyName.StationAutoEndAlarm, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station station auto end alarm - sending command`, { stationSN: this.getSerial(), value: value }); - if (this.isStation()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_HUB_ALARM_AUTO_END, - "mValue3": 0, - "payload": { - "value": value === true ? 0 : 2147483647, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - } - setStationTurnOffAlarmWithButton(value) { - const propertyData = { - name: types_1.PropertyName.StationTurnOffAlarmWithButton, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set station turn off alarm with button - sending command`, { stationSN: this.getSerial(), value: value }); - if (this.isStation()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_HUB_ALARM_CLOSE, - "mValue3": 0, - "payload": { - "value": value === true ? 0 : 1, - } - }), - channel: Station.CHANNEL - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { propertyName: propertyData.name, propertyValue: propertyData.value, station: this.getSerial() } }); - } - } - startRTSPStream(device) { - const rtspStreamProperty = device.getPropertyValue(types_1.PropertyName.DeviceRTSPStream); - if (rtspStreamProperty !== undefined && rtspStreamProperty !== true) { - throw new error_1.RTSPPropertyNotEnabledError("RTSP setting for this device must be enabled first, to enable this functionality!", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: types_1.PropertyName.DeviceRTSPStream, propertyValue: rtspStreamProperty } }); - } - const propertyData = { - name: types_1.PropertyName.DeviceRTSPStream, - value: rtspStreamProperty - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(types_1.PropertyName.DeviceRTSPStream)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station start rtsp stream - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_NAS_TEST, - value: 1, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - stopRTSPStream(device) { - const rtspStreamProperty = device.getPropertyValue(types_1.PropertyName.DeviceRTSPStream); - if (rtspStreamProperty !== undefined && rtspStreamProperty !== true) { - throw new error_1.RTSPPropertyNotEnabledError("RTSP setting for this device must be enabled first, to enable this functionality!", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: types_1.PropertyName.DeviceRTSPStream, propertyValue: rtspStreamProperty } }); - } - const propertyData = { - name: types_1.PropertyName.DeviceRTSPStream, - value: rtspStreamProperty - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(types_1.PropertyName.DeviceRTSPStream)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station stop rtsp stream - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_NAS_TEST, - value: 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setMotionDetectionRange(device, type) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionRange, - value: type - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, type); - logging_1.rootHTTPLogger.debug(`Station set motion detection range - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: type }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE, - "data": { - "value": type, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425); - if (rawProperty !== undefined) { - const payload = { - ...rawProperty, - }; - const currentMode = type === 0 ? payload.mode0 : type === 1 ? payload.mode1 : type === 2 ? payload.mode2 : undefined; - if (currentMode !== undefined && Array.isArray(currentMode) && currentMode.length === 4) { - payload.cur_mode = type; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cur_mode": payload.cur_mode, - "param": currentMode, - "test_mode": 2, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} has unexpected value`, { stationSN: this.getSerial(), rawProperty: rawProperty }); - } - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionRangeStandardSensitivity(device, sensitivity) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionRangeStandardSensitivity, - value: sensitivity - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, sensitivity); - logging_1.rootHTTPLogger.debug(`Station set motion detection range standard sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: sensitivity }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_STD_SENSITIVITY, - "data": { - "value": sensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425); - if (rawProperty !== undefined) { - if (rawProperty.mode0 !== undefined && Array.isArray(rawProperty.mode0) && rawProperty.mode0.length === 4) { - const payload = { - ...rawProperty, - }; - payload.cur_mode = types_1.MotionDetectionRangeType.STANDARD; - payload.mode0[payload.mode0.findIndex((element) => element.id === 1)].sst = sensitivity; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cur_mode": payload.cur_mode, - "param": payload.mode0.slice(0, 2), - "test_mode": 2, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range standard sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} has unexpected value`, { stationSN: this.getSerial(), rawProperty: rawProperty }); - } - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range standard sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionRangeAdvancedLeftSensitivity(device, sensitivity) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionRangeAdvancedLeftSensitivity, - value: sensitivity - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, sensitivity); - logging_1.rootHTTPLogger.debug(`Station motion detection range advanced left sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: sensitivity }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_LEFT_SENSITIVITY, - "data": { - "value": sensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425); - if (rawProperty !== undefined) { - if (rawProperty.mode1 !== undefined && Array.isArray(rawProperty.mode1) && rawProperty.mode1.length === 4) { - const payload = { - ...rawProperty, - }; - payload.cur_mode = types_1.MotionDetectionRangeType.ADVANCED; - payload.mode1[payload.mode0.findIndex((element) => element.id === 1)].sst = sensitivity; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cur_mode": payload.cur_mode, - "param": payload.mode1, - "test_mode": 2, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range advanced left sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} has unexpected value`, { stationSN: this.getSerial(), rawProperty: rawProperty }); - } - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range advanced left sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionRangeAdvancedMiddleSensitivity(device, sensitivity) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionRangeAdvancedMiddleSensitivity, - value: sensitivity - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, sensitivity); - logging_1.rootHTTPLogger.debug(`Station set motion detection range advanced middle sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: sensitivity }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_MIDDLE_SENSITIVITY, - "data": { - "value": sensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionRangeAdvancedRightSensitivity(device, sensitivity) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionRangeAdvancedRightSensitivity, - value: sensitivity - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, sensitivity); - logging_1.rootHTTPLogger.debug(`Station set motion detection range advanced right sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: sensitivity }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_ADV_RIGHT_SENSITIVITY, - "data": { - "value": sensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425); - if (rawProperty !== undefined) { - if (rawProperty.mode1 !== undefined && Array.isArray(rawProperty.mode1) && rawProperty.mode1.length === 4) { - const payload = { - ...rawProperty, - }; - payload.cur_mode = types_1.MotionDetectionRangeType.ADVANCED; - payload.mode1[payload.mode0.findIndex((element) => element.id === 2)].sst = sensitivity; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cur_mode": payload.cur_mode, - "param": payload.mode1, - "test_mode": 2, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range advanced right sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} has unexpected value`, { stationSN: this.getSerial(), rawProperty: rawProperty }); - } - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection range advanced right sensitivity - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionTestMode(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionTestMode, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set motion detection test mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.getDeviceType() === types_1.DeviceType.FLOODLIGHT) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_PIR_TEST_MODE, - value: enabled === true ? 1 : 2, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425); - if (rawProperty !== undefined && rawProperty.cur_mode !== undefined) { - const payload = { - ...rawProperty, - }; - const currentMode = payload.cur_mode === 0 ? payload.mode0 : payload.cur_mode === 1 ? payload.mode1 : payload.cur_mode === 2 ? payload.mode2 : undefined; - if (currentMode !== undefined && Array.isArray(currentMode) && currentMode.length === 4) { - payload.test_mode = enabled === true ? 1 : 0; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "cur_mode": payload.cur_mode, - "param": currentMode, - "test_mode": payload.test_mode, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection test mode - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} has unexpected value`, { stationSN: this.getSerial(), rawProperty: rawProperty }); - } - } - else { - logging_1.rootHTTPLogger.error(`Station set motion detection test mode - Needed raw property "${types_2.CommandType.CMD_FLOODLIGHT_SET_DETECTION_RANGE_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionTrackingSensitivity(device, sensitivity) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionTrackingSensitivity, - value: sensitivity - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, sensitivity); - logging_1.rootHTTPLogger.debug(`Station set motion tracking sensitivity - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: sensitivity }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_MOTION_TRACKING_SENSITIVITY, - "data": { - "value": sensitivity, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionAutoCruise(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionAutoCruise, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set motion auto cruise - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423 || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_MOTION_AUTO_CRUISE, - "data": { - "value": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionOutOfViewDetection(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionOutOfViewDetection, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set motion out of view detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_MOTION_OUT_OF_VIEW_DETECTION, - "data": { - "value": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_FLOODLIGHT_SET_MOTION_OUT_OF_VIEW_DETECTION, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "deviceSn": device.getSerial(), - "value": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsColorTemperatureManual(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsColorTemperatureManual, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings color temperature manual - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_MANUAL, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsColorTemperatureMotion(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsColorTemperatureMotion, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings color temperature motion - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_MOTION, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsColorTemperatureSchedule(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsColorTemperatureSchedule, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings color temperature schedule - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_LIGHT_COLOR_TEMP_SCHEDULE, - "data": { - "value": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsMotionActivationMode(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionActivationMode, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings motion activation mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isFloodLightT8425()) { - const rawProperty = device.getRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425); - if (rawProperty !== undefined) { - const payload = { - ...rawProperty, - mode: value, - }; - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": payload - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425, payload, "p2p"); - } - }); - } - else { - logging_1.rootHTTPLogger.error(`Station set light settings motion activation mode - Needed raw property "${types_2.CommandType.CMD_SET_LIGHT_CTRL_BRIGHT_PIR_T8425}" on device ${device.getSerial()} is undefined`, { stationSN: this.getSerial() }); - } - } - else if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_FLOODLIGHT_STREET_LAMP, - value: value, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_SET_FLOODLIGHT_STREET_LAMP, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setVideoNightvisionImageAdjustment(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoNightvisionImageAdjustment, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set video night vision image adjustment - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_VIDEO_NIGHTVISION_IMAGE_ADJUSTMENT, - "data": { - "value": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setVideoColorNightvision(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoColorNightvision, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set video color night vision - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_VIDEO_COLOR_NIGHTVISION, - "data": { - "value": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoCalibration(device, enabled) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoCalibration, - value: enabled - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, enabled); - logging_1.rootHTTPLogger.debug(`Station set auto calibration - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: enabled }); - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_AUTO_CALIBRATION, - "data": { - "value": enabled === true ? 0 : 1, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_AUTO_CALIBRATION, - "data": { - "onoff": enabled === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - isRTSPLiveStreaming(device) { - return this.p2pSession.isRTSPLiveStreaming(device.getChannel()); - } - setConnectionType(type) { - this.p2pConnectionType = type; - } - getConnectionType() { - return this.p2pConnectionType; - } - onRuntimeState(channel, batteryLevel, temperature) { - this.emit("runtime state", this, channel, batteryLevel, temperature); - } - onChargingState(channel, chargeType, batteryLevel) { - this.emit("charging state", this, channel, chargeType, batteryLevel); - } - hasDevice(deviceSN) { - if (this.rawStation.devices) - for (const device of this.rawStation.devices) { - if (device.device_sn === deviceSN) - return true; - } - return false; - } - hasDeviceWithType(deviceType) { - if (this.rawStation.devices) - for (const device of this.rawStation.devices) { - if (device.device_type === deviceType) - return true; - } - return false; - } - onFloodlightManualSwitch(channel, enabled) { - this.emit("floodlight manual switch", this, channel, enabled); - } - calibrateLock(device) { - const commandData = { - name: types_1.CommandName.DeviceLockCalibration - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!this.hasCommand(types_1.CommandName.DeviceLockCalibration)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station calibrate lock - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_CALIBRATE_LOCK, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_CALIBRATE_LOCK, command.aesKey); - logging_1.rootHTTPLogger.debug("Station calibrate lock - Calibrate lock...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.CALIBRATE_LOCK, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdCalibrate(this.rawStation.member.admin_user_id)); - logging_1.rootHTTPLogger.debug("Station calibrate lock - Calibrate lock...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_CALIBRATE_LOCK, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": {} - }), - channel: device.getChannel(), - }, { - command: commandData - }); - logging_1.rootHTTPLogger.debug("Station calibrate lock - Calibrate lock...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ON_OFF_LOCK, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockCalibrate(this.rawStation.member.admin_user_id)); - logging_1.rootHTTPLogger.debug("Station calibrate lock - Calibrate lock...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - } - convertAdvancedLockSettingValue(property, value) { - switch (property) { - case types_1.PropertyName.DeviceAutoLock: - case types_1.PropertyName.DeviceNotification: - case types_1.PropertyName.DeviceNotificationLocked: - case types_1.PropertyName.DeviceOneTouchLocking: - case types_1.PropertyName.DeviceAutoLockSchedule: - case types_1.PropertyName.DeviceScramblePasscode: - case types_1.PropertyName.DeviceNotificationUnlocked: - case types_1.PropertyName.DeviceWrongTryProtection: - return value === true ? 1 : 0; - case types_1.PropertyName.DeviceWrongTryLockdownTime: - case types_1.PropertyName.DeviceSound: - case types_1.PropertyName.DeviceWrongTryAttempts: - case types_1.PropertyName.DeviceAutoLockTimer: - return value; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: - const autoLockSchedule = value.split(":"); - return `${Number.parseInt(autoLockSchedule[0]).toString(16).padStart(2, "0")}${Number.parseInt(autoLockSchedule[1]).toString(16).padStart(2, "0")}`; - } - return ""; - } - convertAdvancedLockSettingValueT8530(property, value) { - switch (property) { - case types_1.PropertyName.DeviceAutoLock: - case types_1.PropertyName.DeviceNotificationLocked: - case types_1.PropertyName.DeviceNotificationUnlocked: - case types_1.PropertyName.DeviceOneTouchLocking: - case types_1.PropertyName.DeviceAutoLockSchedule: - case types_1.PropertyName.DeviceScramblePasscode: - case types_1.PropertyName.DeviceWrongTryProtection: - case types_1.PropertyName.DeviceNightvisionOptimization: - return value === true ? 1 : 0; - case types_1.PropertyName.DeviceWrongTryLockdownTime: - case types_1.PropertyName.DeviceBeepVolume: - case types_1.PropertyName.DeviceWrongTryAttempts: - case types_1.PropertyName.DeviceAutoLockTimer: - case types_1.PropertyName.DeviceNightvisionOptimizationSide: - return value; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: - const autoLockSchedule = value.split(":"); - return `${Number.parseInt(autoLockSchedule[0]).toString(16).padStart(2, "0")}${Number.parseInt(autoLockSchedule[1]).toString(16).padStart(2, "0")}`; - } - return ""; - } - getAdvancedLockSettingsPayload(command, device) { - switch (command) { - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_STARTTIME: - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_ENDTIME: - command = types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE; - break; - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_TIMER: - command = types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK; - break; - case types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_ATTEMPTS: - case types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_LOCKDOWN: - command = types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_PROTECT; - break; - case types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION_LOCKED: - case types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION_UNLOCKED: - command = types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION; - break; - } - return { - autoLockTime: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceAutoLockTimer, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer)), - isAutoLock: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceAutoLock, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock)), - isLockNotification: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceNotificationLocked, device.getPropertyValue(types_1.PropertyName.DeviceNotificationLocked)), - isNotification: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceNotification, device.getPropertyValue(types_1.PropertyName.DeviceNotification)), - isOneTouchLock: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceOneTouchLocking, device.getPropertyValue(types_1.PropertyName.DeviceOneTouchLocking)), - isSchedule: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceAutoLockSchedule, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule)), - isScramblePasscode: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceScramblePasscode, device.getPropertyValue(types_1.PropertyName.DeviceScramblePasscode)), - isUnLockNotification: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceNotificationUnlocked, device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlocked)), - isWrongTryProtect: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceWrongTryProtection, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection)), - lockDownTime: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceWrongTryLockdownTime, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime)), - lockSound: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceSound, device.getPropertyValue(types_1.PropertyName.DeviceSound)), - paramType: command, - scheduleEnd: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)), - scheduleStart: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime)), - wrongTryTime: this.convertAdvancedLockSettingValue(types_1.PropertyName.DeviceWrongTryAttempts, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts)), - seq_num: this.p2pSession.incLockSequenceNumber() - }; - } - getAdvancedLockSettingsPayloadT8530(command, device) { - switch (command) { - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_STARTTIME: - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE_ENDTIME: - command = types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_SCHEDULE; - break; - case types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK_TIMER: - command = types_2.CommandType.CMD_SMARTLOCK_AUTO_LOCK; - break; - case types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_ATTEMPTS: - case types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_LOCKDOWN: - command = types_2.CommandType.CMD_SMARTLOCK_WRONG_TRY_PROTECT; - break; - case types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION_LOCKED: - case types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION_UNLOCKED: - command = types_2.CommandType.CMD_SMARTLOCK_NOTIFICATION; - break; - case types_2.CommandType.CMD_SMARTLOCK_VOLUME: - command = types_2.CommandType.CMD_SMARTLOCK_VOLUME; - break; - } - return { - autoLockTime: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceAutoLockTimer, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer)), - isAutoLock: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceAutoLock, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock)), - isLockNotification: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceNotificationLocked, device.getPropertyValue(types_1.PropertyName.DeviceNotificationLocked)), - isNotification: 1, // unused constant - isOneTouchLock: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceOneTouchLocking, device.getPropertyValue(types_1.PropertyName.DeviceOneTouchLocking)), - isSchedule: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceAutoLockSchedule, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule)), - isScramblePasscode: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceScramblePasscode, device.getPropertyValue(types_1.PropertyName.DeviceScramblePasscode)), - isUnLockNotification: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceNotificationUnlocked, device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlocked)), - isWrongTryProtect: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceWrongTryProtection, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection)), - lockDownTime: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceWrongTryLockdownTime, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime)), - lockOpenDirection: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceNightvisionOptimizationSide, device.getPropertyValue(types_1.PropertyName.DeviceNightvisionOptimizationSide)), - lockSound: 1, // unused constant - lockVolume: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceBeepVolume, device.getPropertyValue(types_1.PropertyName.DeviceBeepVolume)), - nightVisionEnhance: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceNightvisionOptimization, device.getPropertyValue(types_1.PropertyName.DeviceNightvisionOptimization)), - openLeftAlarmEnable: 0, // unused constant - openLeftAlarmScheduleEnd: "0600", // unused constant - openLeftAlarmScheduleStart: "1700", // unused constant - openLeftAlarmScheduled: 0, // unused constant - openLeftAlarmTimer: 3, // unused constant - openLeftAlarmWays: 5, // unused constant - paramType: command, - scheduleEnd: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceAutoLockScheduleEndTime, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)), - scheduleStart: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceAutoLockScheduleStartTime, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime)), - tamperAlarmEnable: 0, // unused constant - tamperAlarmScheduleEnd: "0600", // unused constant - tamperAlarmScheduleStart: "1700", // unused constant - tamperAlarmScheduled: 0, // unused constant - tamperAlarmWays: 5, // unused constant - wrongTryTime: this.convertAdvancedLockSettingValueT8530(types_1.PropertyName.DeviceWrongTryAttempts, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts)), - }; - } - getAdvancedLockSettingName(property) { - switch (property) { - case types_1.PropertyName.DeviceAutoLock: return "isAutoLock"; - case types_1.PropertyName.DeviceAutoLockTimer: return "autoLockTime"; - case types_1.PropertyName.DeviceNotification: return "isNotification"; - case types_1.PropertyName.DeviceNotificationLocked: return "isLockNotification"; - case types_1.PropertyName.DeviceOneTouchLocking: return "isOneTouchLock"; - case types_1.PropertyName.DeviceAutoLockSchedule: return "isSchedule"; - case types_1.PropertyName.DeviceScramblePasscode: return "isScramblePasscode"; - case types_1.PropertyName.DeviceNotificationUnlocked: return "isUnLockNotification"; - case types_1.PropertyName.DeviceWrongTryProtection: return "isWrongTryProtect"; - case types_1.PropertyName.DeviceWrongTryLockdownTime: return "lockDownTime"; - case types_1.PropertyName.DeviceSound: return "lockSound"; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: return "scheduleEnd"; - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: return "scheduleStart"; - case types_1.PropertyName.DeviceWrongTryAttempts: return "wrongTryTime"; - } - return ""; - } - getAdvancedLockSettingNameT8530(property) { - switch (property) { - case types_1.PropertyName.DeviceAutoLock: return "isAutoLock"; - case types_1.PropertyName.DeviceAutoLockTimer: return "autoLockTime"; - case types_1.PropertyName.DeviceNotificationLocked: return "isLockNotification"; - case types_1.PropertyName.DeviceNotificationUnlocked: return "isUnLockNotification"; - case types_1.PropertyName.DeviceOneTouchLocking: return "isOneTouchLock"; - case types_1.PropertyName.DeviceAutoLockSchedule: return "isSchedule"; - case types_1.PropertyName.DeviceScramblePasscode: return "isScramblePasscode"; - case types_1.PropertyName.DeviceWrongTryProtection: return "isWrongTryProtect"; - case types_1.PropertyName.DeviceWrongTryLockdownTime: return "lockDownTime"; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: return "scheduleEnd"; - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: return "scheduleStart"; - case types_1.PropertyName.DeviceWrongTryAttempts: return "wrongTryTime"; - case types_1.PropertyName.DeviceNightvisionOptimizationSide: return "lockOpenDirection"; - case types_1.PropertyName.DeviceBeepVolume: return "lockVolume"; - case types_1.PropertyName.DeviceNightvisionOptimization: return "nightVisionEnhance"; - } - return ""; - } - setAdvancedLockParams(device, property, value) { - const propertyData = { - name: property, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const propertyMetadata = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(propertyMetadata, value); - logging_1.rootHTTPLogger.debug(`Station set advanced lock params - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const payload = this.getAdvancedLockSettingsPayload(device.getPropertyMetadata(property).key, device); - const p2pParamName = this.getAdvancedLockSettingName(property); - if (p2pParamName !== "") { - payload[p2pParamName] = this.convertAdvancedLockSettingValue(property, value); - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_SET_LOCK_PARAM, device.getChannel(), this.lockPublicKey, payload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_SET_LOCK_PARAM, command.aesKey); - logging_1.rootHTTPLogger.debug("Station set advanced lock params - Set lock param...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, property: property, value: value, payload: command, nestedPayload: payload }); - this.p2pSession.sendCommandWithStringPayload(command, { - property: propertyData - }); - } - else { - logging_1.rootHTTPLogger.warn(`Internal lock property for property ${property} not identified for ${device.getSerial()}`, { p2pParamName: p2pParamName }); - throw new error_2.InvalidPropertyError("Internal lock property for property not identified for this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - else if (device.isLockWifiVideo()) { - const payload = this.getAdvancedLockSettingsPayloadT8530(device.getPropertyMetadata(property).key, device); - const p2pParamName = this.getAdvancedLockSettingNameT8530(property); - if (p2pParamName !== "") { - payload[p2pParamName] = this.convertAdvancedLockSettingValueT8530(property, value); - logging_1.rootHTTPLogger.debug("Station set advanced lock params - Set lock param...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, property: property, value: value, payload: payload }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_SET_LOCK_PARAM, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": payload, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - logging_1.rootHTTPLogger.warn(`Internal lock property for property ${property} not identified for ${device.getSerial()}`, { p2pParamName: p2pParamName }); - throw new error_2.InvalidPropertyError("Internal lock property for property not identified for this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLoiteringDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set loitering detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RADAR_WD_SWITCH, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "radar_wd_switch": value === true ? 1 : 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLoiteringDetectionRange(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringDetectionRange, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set loitering detection range - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RADAR_WD_DISTANCE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "radar_wd_distance": value - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLoiteringDetectionLength(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringDetectionLength, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set loitering detection length - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RADAR_WD_TIME, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "radar_wd_time": value - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _setMotionDetectionSensitivity(device, propertyData, mode, blocklist) { - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set motion detection sensitivty - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyData: propertyData, mode: mode, blocklist: blocklist }); - if (device.isBatteryDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RADAR_WD_DETECTION_SENSITIVITY, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "block_list": blocklist, - "model": mode, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _getMotionDetectionSensitivityAdvanced(device) { - return [ - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedA), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedB), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedC), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedD), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedE), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedF), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedG), - device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedH), - ]; - } - setMotionDetectionSensitivityMode(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityMode, - value: value - }; - let distances; - if (device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityMode) === types_1.MotionDetectionMode.STANDARD) { - distances = Array(8).fill(device.getPropertyValue(types_1.PropertyName.DeviceMotionDetectionSensitivityStandard)); - } - else { - distances = this._getMotionDetectionSensitivityAdvanced(device); - } - this._setMotionDetectionSensitivity(device, propertyData, value, (0, utils_1.getBlocklist)(distances)); - } - setMotionDetectionSensitivityStandard(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityStandard, - value: value - }; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.STANDARD, (0, utils_1.getBlocklist)(Array(8).fill(value))); - } - setMotionDetectionSensitivityAdvancedA(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedA, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[0] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedB(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedB, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[1] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedC(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedC, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[2] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedD(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedD, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[3] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedE(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedE, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[4] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedF(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedF, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[5] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedG(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedG, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[6] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - setMotionDetectionSensitivityAdvancedH(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionSensitivityAdvancedH, - value: value - }; - const blocklist = this._getMotionDetectionSensitivityAdvanced(device); - blocklist[7] = value; - this._setMotionDetectionSensitivity(device, propertyData, types_1.MotionDetectionMode.ADVANCED, (0, utils_1.getBlocklist)(blocklist)); - } - _setLoiteringCustomResponse(device, propertyData, voiceID, autoVoiceResponse, homebaseAlert, pushNotification, startTime, endTime) { - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set loitering custom response - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyData: propertyData, voiceID: voiceID, autoVoiceResponse: autoVoiceResponse, homebaseAlert: homebaseAlert, pushNotification: pushNotification, startTime: startTime, endTime: endTime }); - if (device.isBatteryDoorbellDual() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RADAR_WD_AUTO_RESPONSE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "num": 1, - "setting": [{ - "active": 0, - "auto_voice_id": voiceID, - "auto_voice_name": device.getVoiceName(voiceID), - "auto_voice_resp": autoVoiceResponse === true ? 1 : 0, - "end_hour": endTime.split(":")[0], - "end_min": endTime.split(":")[1], - "familiar_id": 0, - "homebase_alert": homebaseAlert === true ? 1 : 0, - "push_notify": pushNotification === true ? 1 : 0, - "start_hour": startTime.split(":")[0], - "start_min": startTime.split(":")[1], - }] - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLoiteringCustomResponseAutoVoiceResponse(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice), value, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo)); - } - setLoiteringCustomResponseAutoVoiceResponseVoice(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, value, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo)); - } - setLoiteringCustomResponseHomeBaseNotification(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse), value, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo)); - } - setLoiteringCustomResponsePhoneNotification(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification), value, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo)); - } - setLoiteringCustomResponseTimeFrom(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification), value, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo)); - } - setLoiteringCustomResponseTimeTo(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLoiteringCustomResponseTimeTo, - value: value - }; - this._setLoiteringCustomResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseAutoVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseHomeBaseNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponsePhoneNotification), device.getPropertyValue(types_1.PropertyName.DeviceLoiteringCustomResponseTimeFrom), value); - } - setDeliveryGuard(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuard, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_DELIVERY_GUARD_SWITCH, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "ai_bottom_switch": value === true ? 1024 : 0, - "ai_front_switch": 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardPackageGuarding(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardPackageGuarding, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard package guarding - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_GUARD_SWITCH, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "package_guard_switch": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardPackageGuardingVoiceResponseVoice(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardPackageGuardingVoiceResponseVoice, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard package guarding voice response voice - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_GUARD_VOICE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "auto_voice_id": value, - "auto_voice_name": device.getVoiceName(value), - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardPackageGuardingActivatedTime(device, propertyData, startTime, endTime) { - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard guarding activated time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyData: propertyData, startTime: repl_1.start, endTime: endTime }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_GUARD_TIME, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "end_h": endTime.split(":")[0], - "end_m": endTime.split(":")[1], - "start_h": startTime.split(":")[0], - "start_m": startTime.split(":")[1], - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardPackageGuardingActivatedTimeFrom(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardPackageGuardingActivatedTimeFrom, - value: value - }; - this.setDeliveryGuardPackageGuardingActivatedTime(device, propertyData, value, device.getPropertyValue(types_1.PropertyName.DeviceDeliveryGuardPackageGuardingActivatedTimeTo)); - } - setDeliveryGuardPackageGuardingActivatedTimeTo(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardPackageGuardingActivatedTimeTo, - value: value - }; - this.setDeliveryGuardPackageGuardingActivatedTime(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceDeliveryGuardPackageGuardingActivatedTimeFrom), value); - } - setDeliveryGuardUncollectedPackageAlert(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardUncollectedPackageAlert, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard uncollected package alert - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_STRAND_SWITCH, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "package_strand_switch": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardUncollectedPackageAlertTimeToCheck(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardUncollectedPackageAlertTimeToCheck, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard uncollected package alert time to check - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_STRAND_TIME, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "start_h": value.split(":")[0], - "start_m": value.split(":")[1], - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDeliveryGuardPackageLiveCheckAssistance(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDeliveryGuardPackageLiveCheckAssistance, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set delivery guard package live check assistance - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_PACKAGE_ASSISTANT_SWITCH, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "package_assitant_switch": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDualCamWatchViewMode(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDualCamWatchViewMode, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set dual cam watch view mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_VIEW_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "restore": 1, - "video_type": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isBatteryDoorbellDualE340() || device.isOutdoorPanAndTiltCamera() || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_VIEW_MODE2, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "restore": 1, - "video_type": value, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _setRingAutoResponse(device, propertyData, enabled, voiceID, autoVoiceResponse, startTime, endTime) { - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set ring auto response - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyData: propertyData, enabled: enabled, voiceID: voiceID, autoVoiceResponse: autoVoiceResponse, startTime: startTime, endTime: endTime }); - if (device.isBatteryDoorbellDual() || device.isWiredDoorbellDual() || device.isBatteryDoorbellDualE340()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_RING_AUTO_RESPONSE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "num": 1, - "setting": [{ - "active": enabled === true ? 1 : 0, - "auto_voice_id": voiceID, - "auto_voice_name": device.getVoiceName(voiceID), - "auto_voice_resp": autoVoiceResponse === true ? 1 : 0, - "end_hour": endTime.split(":")[0], - "end_min": endTime.split(":")[1], - "familiar_id": 0, - "start_hour": startTime.split(":")[0], - "start_min": startTime.split(":")[1], - }] - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setRingAutoResponse(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingAutoResponse, - value: value - }; - this._setRingAutoResponse(device, propertyData, value, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeTo)); - } - setRingAutoResponseVoiceResponse(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingAutoResponseVoiceResponse, - value: value - }; - this._setRingAutoResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponseVoice), value, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeTo)); - } - setRingAutoResponseVoiceResponseVoice(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingAutoResponseVoiceResponseVoice, - value: value - }; - this._setRingAutoResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponse), value, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeFrom), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeTo)); - } - setRingAutoResponseTimeFrom(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingAutoResponseTimeFrom, - value: value - }; - this._setRingAutoResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponse), value, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeTo)); - } - setRingAutoResponseTimeTo(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceRingAutoResponseTimeTo, - value: value - }; - this._setRingAutoResponse(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponseVoice), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseVoiceResponse), device.getPropertyValue(types_1.PropertyName.DeviceRingAutoResponseTimeFrom), value); - } - setNotificationRadarDetector(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationRadarDetector, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification radar detector - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isBatteryDoorbellDual()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORBELL_DUAL_NOTIFICATION_HUMAN_DETECT, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "radar_human_detect": value === true ? 1 : 0, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - calibrate(device) { - const commandData = { - name: types_1.CommandName.DeviceCalibrate - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceCalibrate)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station calibrate - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if (device.isPanAndTiltCamera()) { - if (device.getDeviceType() === types_1.DeviceType.FLOODLIGHT_CAMERA_8423) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_PAN_CALIBRATION, - "mValue3": 0, - "payload": {}, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isOutdoorPanAndTiltCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_OUTDOOR_PAN_CALIBRATION, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "res": 0, - }, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PAN_CALIBRATION, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_PAN_CALIBRATION - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - } - setContinuousRecording(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceContinuousRecording, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set continuous recording - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_CONTINUE_ENABLE, - "data": { - "enable": value === true ? 1 : 0, - "index": 0, - "status": 0, - "type": 0, - "value": 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setContinuousRecordingType(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceContinuousRecordingType, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set continuous recording type - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_CONTINUE_TYPE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": value, - "value": 0, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - enableDefaultAngle(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDefaultAngle, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station enable default angle - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DEFAULT_ANGLE_ENABLE, - "data": { - "value": value === true ? device.getPropertyValue(types_1.PropertyName.DeviceDefaultAngleIdleTime) : 0, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setDefaultAngleIdleTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDefaultAngleIdleTime, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set default angle idle time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DEFAULT_ANGLE_IDLE_TIME, - "data": { - "value": value, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - setDefaultAngle(device) { - const commandData = { - name: types_1.CommandName.DeviceSetDefaultAngle - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceSetDefaultAngle)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station set default angle - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_DEFAULT_ANGLE_SET, - "data": { - "value": 0, - }, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - setPrivacyAngle(device) { - const commandData = { - name: types_1.CommandName.DeviceSetPrivacyAngle - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceSetPrivacyAngle)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station set privacy angle - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_PRIVACY_ANGLE, - "data": { - "value": 0, - }, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - setNotificationIntervalTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationIntervalTime, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification interval time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_DEV_RECORD_INTERVAL, - value: value, - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setSoundDetectionRoundLook(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSoundDetectionRoundLook, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set sound detection round look - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isIndoorPanAndTiltCameraS350()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_SET_SOUND_DETECT_ROUND_LOOK_S350, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "onoff": value === true ? 1 : 0, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_SET_SOUND_DETECT_ROUND_LOOK, - "data": { - "value": value === true ? 1 : 0, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - } - startTalkback(device) { - const commandData = { - name: types_1.CommandName.DeviceStartTalkback - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceStartTalkback)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!this.isLiveStreaming(device)) { - throw new error_2.LivestreamNotRunningError("Livestream for device is not running", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station start talkback - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if ((device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || (device.isSoloCamera() && !this.isStationHomeBase3()) || (device.isFloodLight() && !device.isFloodLightT8425()) || device.isWiredDoorbell() || device.isStarlight4GLTE() || device.isWallLightCam() || device.isGarageCamera() || device.isOutdoorPanAndTiltCamera() || (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.IndoorSoloSmartdropCommandType.CMD_START_SPEAK, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if ((device.isBatteryDoorbell() && (0, utils_1.isGreaterEqualMinVersion)("2.0.6.8", this.getSoftwareVersion())) || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425() || (device.isSoloCamera() && this.isStationHomeBase3()) || device.isLockWifiVideo() || device.isSmartDrop()) { - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_START_TALKBACK, - value: 0, - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - this.p2pSession.startTalkback(device.getChannel()); - this.emit("command result", this, { - channel: device.getChannel(), - command_type: types_2.CommandType.CMD_START_TALKBACK, - return_code: 0, - customData: { - command: commandData - } - }); - } - } - stopTalkback(device) { - const commandData = { - name: types_1.CommandName.DeviceStopTalkback - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceStopTalkback)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!this.isLiveStreaming(device)) { - throw new error_2.LivestreamNotRunningError("Livestream for device is not running", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station stop talkback - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if ((device.isIndoorCamera() && !device.isIndoorPanAndTiltCameraS350()) || (device.isSoloCamera() && !this.isStationHomeBase3()) || (device.isFloodLight() && !device.isFloodLightT8425()) || device.isWiredDoorbell() || device.isStarlight4GLTE() || device.isWallLightCam() || device.isGarageCamera() || device.isOutdoorPanAndTiltCamera() || (device.isIndoorPanAndTiltCameraS350() && !this.isStationHomeBase3())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.IndoorSoloSmartdropCommandType.CMD_END_SPEAK, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if ((device.isBatteryDoorbell() && (0, utils_1.isGreaterEqualMinVersion)("2.0.6.8", this.getSoftwareVersion())) || device.isIndoorPanAndTiltCameraS350() || device.isFloodLightT8425() || (device.isSoloCamera() && this.isStationHomeBase3()) || device.isLockWifiVideo() || device.isSmartDrop()) { - this.p2pSession.sendCommandWithInt({ - commandType: types_2.CommandType.CMD_STOP_TALKBACK, - value: 0, - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - this.p2pSession.stopTalkback(device.getChannel()); - this.emit("command result", this, { - channel: device.getChannel(), - command_type: types_2.CommandType.CMD_STOP_TALKBACK, - return_code: 0, - customData: { - command: commandData - } - }); - } - } - onTalkbackStarted(channel, talkbackStream) { - this.emit("talkback started", this, channel, talkbackStream); - } - onTalkbackStopped(channel) { - this.emit("talkback stopped", this, channel); - } - onTalkbackError(channel, error) { - this.emit("talkback error", this, channel, error); - } - isTalkbackOngoing(device) { - if (device.getStationSerial() !== this.getSerial()) - return false; - return this.p2pSession.isTalkbackOngoing(device.getChannel()); - } - setScramblePasscode(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceScramblePasscode, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set scramble passcode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceScramblePasscode, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceScramblePasscode, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceScramblePasscode, value); - } - else if (device.isSmartSafe()) { - this.setSmartSafeParams(device, types_1.PropertyName.DeviceScramblePasscode, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setWrongTryProtection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceWrongTryProtection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set wrong try protection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceWrongTryProtection, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceWrongTryProtection, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryProtection, value); - } - else if (device.isSmartSafe()) { - this.setSmartSafeParams(device, types_1.PropertyName.DeviceWrongTryProtection, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setWrongTryAttempts(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceWrongTryAttempts, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set wrong try attempts - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceWrongTryAttempts, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceWrongTryAttempts, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryAttempts, value); - } - else if (device.isSmartSafe()) { - this.setSmartSafeParams(device, types_1.PropertyName.DeviceWrongTryAttempts, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setWrongTryLockdownTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceWrongTryLockdownTime, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set wrong try lockdown time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceWrongTryLockdownTime, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceWrongTryLockdownTime, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceWrongTryLockdownTime, value); - } - else if (device.isSmartSafe()) { - this.setSmartSafeParams(device, types_1.PropertyName.DeviceWrongTryLockdownTime, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _sendSmartSafeCommand(device, command, data, customData) { - const payload = (0, utils_2.getSmartSafeP2PCommand)(device.getSerial(), this.rawStation.member.admin_user_id, types_2.CommandType.CMD_SMARTSAFE_SETTINGS, command, device.getChannel(), this.p2pSession.incLockSequenceNumber(), data); - this.p2pSession.sendCommandWithStringPayload(payload, customData); - } - setSmartSafeParams(device, property, value) { - const propertyData = { - name: property, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const propertyMetadata = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(propertyMetadata, value); - logging_1.rootHTTPLogger.debug(`Station set smart safe params - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value }); - if (device.isSmartSafe()) { - let payload; - let command; - switch (property) { - case types_1.PropertyName.DeviceWrongTryProtection: - payload = device_1.SmartSafe.encodeCmdWrongTryProtect(this.rawStation.member.admin_user_id, value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime) / 60); - command = types_2.SmartSafeCommandCode.SET_CRACK_PROTECT; - break; - case types_1.PropertyName.DeviceWrongTryAttempts: - payload = device_1.SmartSafe.encodeCmdWrongTryProtect(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime) / 60); - command = types_2.SmartSafeCommandCode.SET_CRACK_PROTECT; - break; - case types_1.PropertyName.DeviceWrongTryLockdownTime: - payload = device_1.SmartSafe.encodeCmdWrongTryProtect(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts), value / 60); - command = types_2.SmartSafeCommandCode.SET_CRACK_PROTECT; - break; - case types_1.PropertyName.DeviceLeftOpenAlarm: - payload = device_1.SmartSafe.encodeCmdLeftOpenAlarm(this.rawStation.member.admin_user_id, value, device.getPropertyValue(types_1.PropertyName.DeviceLeftOpenAlarmDuration)); - command = types_2.SmartSafeCommandCode.SET_LOCK_ALARM; - break; - case types_1.PropertyName.DeviceLeftOpenAlarmDuration: - payload = device_1.SmartSafe.encodeCmdLeftOpenAlarm(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceLeftOpenAlarm), value); - command = types_2.SmartSafeCommandCode.SET_LOCK_ALARM; - break; - case types_1.PropertyName.DeviceDualUnlock: - payload = device_1.SmartSafe.encodeCmdDualUnlock(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_DUAL_UNLOCK; - break; - case types_1.PropertyName.DevicePowerSave: - payload = device_1.SmartSafe.encodeCmdPowerSave(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_POWERSAVE; - break; - case types_1.PropertyName.DeviceInteriorBrightness: - payload = device_1.SmartSafe.encodeCmdInteriorBrightness(this.rawStation.member.admin_user_id, value, device.getPropertyValue(types_1.PropertyName.DeviceInteriorBrightnessDuration)); - command = types_2.SmartSafeCommandCode.SET_LIGHT; - break; - case types_1.PropertyName.DeviceInteriorBrightnessDuration: - payload = device_1.SmartSafe.encodeCmdInteriorBrightness(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceInteriorBrightness), value); - command = types_2.SmartSafeCommandCode.SET_LIGHT; - break; - case types_1.PropertyName.DeviceTamperAlarm: - payload = device_1.SmartSafe.encodeCmdTamperAlarm(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_SHAKE; - break; - case types_1.PropertyName.DeviceRemoteUnlock: - case types_1.PropertyName.DeviceRemoteUnlockMasterPIN: - { - if (!this.pinVerified && value === true) { - throw new error_1.PinNotVerifiedError("You need to call verifyPIN with correct PIN first to enable this property", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - let newValue = 2; - const remoteUnlock = property === types_1.PropertyName.DeviceRemoteUnlock ? value : device.getPropertyValue(types_1.PropertyName.DeviceRemoteUnlock); - const remoteUnlockMasterPIN = property === types_1.PropertyName.DeviceRemoteUnlockMasterPIN ? value : device.getPropertyValue(types_1.PropertyName.DeviceRemoteUnlockMasterPIN); - if (remoteUnlock && remoteUnlockMasterPIN) { - newValue = 0; - } - else if (remoteUnlock) { - newValue = 1; - } - payload = device_1.SmartSafe.encodeCmdRemoteUnlock(this.rawStation.member.admin_user_id, newValue); - command = types_2.SmartSafeCommandCode.SET_UNLOCK_MODE; - break; - } - case types_1.PropertyName.DevicePromptVolume: - payload = device_1.SmartSafe.encodeCmdPromptVolume(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_VOLUME; - break; - case types_1.PropertyName.DeviceAlarmVolume: - payload = device_1.SmartSafe.encodeCmdAlertVolume(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_VOLUME_ALERT; - break; - case types_1.PropertyName.DeviceNotificationUnlockByKey: - case types_1.PropertyName.DeviceNotificationUnlockByPIN: - case types_1.PropertyName.DeviceNotificationUnlockByFingerprint: - case types_1.PropertyName.DeviceNotificationUnlockByApp: - case types_1.PropertyName.DeviceNotificationDualUnlock: - case types_1.PropertyName.DeviceNotificationDualLock: - case types_1.PropertyName.DeviceNotificationWrongTryProtect: - case types_1.PropertyName.DeviceNotificationJammed: - const settingsValues = [ - property === types_1.PropertyName.DeviceNotificationUnlockByKey ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlockByKey), - property === types_1.PropertyName.DeviceNotificationUnlockByPIN ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlockByPIN), - property === types_1.PropertyName.DeviceNotificationUnlockByFingerprint ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlockByFingerprint), - property === types_1.PropertyName.DeviceNotificationUnlockByApp ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationUnlockByApp), - property === types_1.PropertyName.DeviceNotificationDualUnlock ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationDualUnlock), - property === types_1.PropertyName.DeviceNotificationDualLock ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationDualLock), - property === types_1.PropertyName.DeviceNotificationWrongTryProtect ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationWrongTryProtect), - property === types_1.PropertyName.DeviceNotificationJammed ? value : device.getPropertyValue(types_1.PropertyName.DeviceNotificationJammed), - ]; - let modes = 0; - for (let pos = 0; pos < settingsValues.length; pos++) { - if (settingsValues[pos]) { - modes = (modes | (1 << pos)); - } - } - payload = device_1.SmartSafe.encodeCmdPushNotification(this.rawStation.member.admin_user_id, modes); - command = types_2.SmartSafeCommandCode.SET_PUSH; - break; - case types_1.PropertyName.DeviceScramblePasscode: - payload = device_1.SmartSafe.encodeCmdScramblePIN(this.rawStation.member.admin_user_id, value); - command = types_2.SmartSafeCommandCode.SET_SCRAMBLE_PASSWORD; - break; - default: - payload = Buffer.from([]); - command = types_2.SmartSafeCommandCode.DEFAULT; - break; - } - logging_1.rootHTTPLogger.debug(`Station set smart safe params - payload`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value, payload: payload.toString("hex") }); - this._sendSmartSafeCommand(device, command, payload, { property: propertyData }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - unlock(device) { - const commandData = { - name: types_1.CommandName.DeviceUnlock - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceUnlock)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - const payload = device_1.SmartSafe.encodeCmdUnlock(this.rawStation.member.admin_user_id); - logging_1.rootHTTPLogger.debug(`Station unlock - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), payload: payload.toString("hex") }); - this._sendSmartSafeCommand(device, types_2.SmartSafeCommandCode.UNLOCK, payload, { command: commandData }); - } - verifyPIN(device, pin) { - const commandData = { - name: types_1.CommandName.DeviceVerifyPIN - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceVerifyPIN)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!/^[1-6]{4,8}$/.test(pin)) { - throw new error_1.InvalidCommandValueError("PIN should contain only numbers (1-6) and be between 4 and 8 long", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - const payload = device_1.SmartSafe.encodeCmdVerifyPIN(this.rawStation.member.admin_user_id, pin); - logging_1.rootHTTPLogger.debug(`Station verify pin - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), payload: payload.toString("hex") }); - this._sendSmartSafeCommand(device, types_2.SmartSafeCommandCode.SET_VERIFY_PIN, payload, { command: commandData }); - } - onDeviceShakeAlarm(channel, event) { - this.emit("device shake alarm", this._getDeviceSerial(channel), event); - } - onDevice911Alarm(channel, event) { - this.emit("device 911 alarm", this._getDeviceSerial(channel), event); - } - onDeviceJammed(channel) { - this.emit("device jammed", this._getDeviceSerial(channel)); - } - onDeviceLowBattery(channel) { - this.emit("device low battery", this._getDeviceSerial(channel)); - } - onDeviceWrongTryProtectAlarm(channel) { - this.emit("device wrong try-protect alarm", this._getDeviceSerial(channel)); - } - onSdInfoEx(sdStatus, sdCapacity, sdAvailableCapacity) { - this.emit("sd info ex", this, sdStatus, sdCapacity, sdAvailableCapacity); - } - setVideoTypeStoreToNAS(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceVideoTypeStoreToNAS, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - if (device.getPropertyValue(types_1.PropertyName.DeviceContinuousRecording) !== true && value === types_1.VideoTypeStoreToNAS.ContinuousRecording) { - this.setContinuousRecording(device, true); - } - logging_1.rootHTTPLogger.debug(`Station set video type store to nas - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_INDOOR_NAS_STORAGE_TYPE, - "data": { - "enable": 0, - "index": 0, - "status": 0, - "type": 0, - "value": value, - "voiceID": 0, - "zonecount": 0, - "transaction": `${new Date().getTime()}`, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - snooze(device, value) { - const commandData = { - name: types_1.CommandName.DeviceSnooze, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceSnooze)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station snooze - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isDoorbell() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_SNOOZE_MODE, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "snooze_time": value.snooze_time, - "startTime": `${Math.trunc(new Date().getTime() / 1000)}`, - "chime_onoff": value.snooze_chime !== undefined && value.snooze_chime ? 1 : 0, - "motion_notify_onoff": value.snooze_motion !== undefined && value.snooze_motion ? 1 : 0, - "homebase_onoff": value.snooze_homebase !== undefined && value.snooze_homebase ? 1 : 0, - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_SNOOZE_MODE, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "snooze_time": value.snooze_time - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - addUser(device, username, shortUserId, passcode, schedule) { - const commandData = { - name: types_1.CommandName.DeviceAddUser, - value: { - username: username, - shortUserId: shortUserId, - passcode: passcode, - schedule: schedule, - deviceSN: device.getSerial() - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceAddUser)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!/^\d{4,8}$/.test(passcode)) { - throw new error_1.InvalidCommandValueError("Passcode should contain only numbers and be between 4 and 8 long", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station add user - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), username: username, shortUserId: shortUserId, schedule: schedule }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - // passcode: min 4 max 8 - // passcode: 13579753 => 3133353739373533 - // 04.09.2022 11:36 - // 01.01.2023 19:36 - // Mon-Sunday Wednsday No! - // {"endDay":"e7070101","endTime":"1324","passcode":"3133353739373533","startDay":"00000000","startTime":"0b24","userId":"0009","week":"77","seq_num":662} - //log.b 2: payloadStr: {"endDay":"ffffffff","endTime":"ffff","passcode":"3233353438333333","startDay":"00000000","startTime":"0000","userId":"0008","week":"ff","seq_num":657} - //log.b 2: ESLP2pResponse: {"channel":0,"command_type":1950,"payload":"w36zICk5a8pXZ8I6L4ldeI6ZQPWmbEEVZHctBfW0Zx0\u003d","payloadLen":30,"sn":"T8520Q2021340AD6"} - //log.b 2: payload full:{"code":0,"passwordId":"0008"} payloadLength:30 - const nestedPayload = { - endDay: schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexDate)(schedule.endDateTime) : "ffffffff", - endTime: schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexTime)(schedule.endDateTime) : "ffff", - passcode: (0, utils_1.encodePasscode)(passcode), - startDay: schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexDate)(schedule.startDateTime) : "00000000", - startTime: schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexTime)(schedule.startDateTime) : "0000", - userId: shortUserId, - week: schedule !== undefined && schedule.week !== undefined ? (0, utils_1.hexWeek)(schedule) : "ff", - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_ADD_PW, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_ADD_PW, command.aesKey); - logging_1.rootHTTPLogger.debug("Add user...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.ADD_PW, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdAddUser(shortUserId, (0, utils_1.encodePasscode)(passcode).padEnd(16, "0"), username, schedule)); - logging_1.rootHTTPLogger.debug("Add user...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else if (device.isLockWifiVideo()) { - const command = { - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_ADD_PW, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "endDay": schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexDate)(schedule.endDateTime) : "ffffffff", - "endTime": schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexTime)(schedule.endDateTime) : "ffff", - "passcode": (0, utils_1.encodePasscode)(passcode).padEnd(16, "0"), - "startDay": schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexDate)(schedule.startDateTime) : "00000000", - "startTime": schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexTime)(schedule.startDateTime) : "0000", - "userId": shortUserId, - "week": schedule !== undefined && schedule.week !== undefined ? (0, utils_1.hexWeek)(schedule) : "ff", - } - }; - logging_1.rootHTTPLogger.debug("Add user...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify(command), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.ADD_PW, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockAddUser(this.rawStation.member.admin_user_id, shortUserId, (0, utils_1.encodePasscode)(passcode), username, schedule)); - logging_1.rootHTTPLogger.debug("Station smart lock device - Add user...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - deleteUser(device, username, shortUserId) { - const commandData = { - name: types_1.CommandName.DeviceDeleteUser, - value: { - username: username, - shortUserId: shortUserId, - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceDeleteUser)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station delete user - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), username: username, shortUserId: shortUserId }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - userId: shortUserId, - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_DELETE_USER, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_DELETE_USER, command.aesKey); - logging_1.rootHTTPLogger.debug("Station delete user - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.DELETE_USER, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdDeleteUser(shortUserId)); - logging_1.rootHTTPLogger.debug("Station delete user - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else if (device.isLockWifiVideo()) { - const command = { - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_DELETE_USER, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "userId": shortUserId, - } - }; - logging_1.rootHTTPLogger.debug("Station delete user - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify(command), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.DELETE_USER, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockDeleteUser(this.rawStation.member.admin_user_id, shortUserId)); - logging_1.rootHTTPLogger.debug("Station delete user - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - updateUserSchedule(device, username, shortUserId, schedule) { - const commandData = { - name: types_1.CommandName.DeviceUpdateUserSchedule, - value: { - username: username, - shortUserId: shortUserId, - schedule: schedule - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceUpdateUserSchedule)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station update user schedule - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), username: username, shortUserId: shortUserId, schedule: schedule }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - endDay: schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexDate)(schedule.endDateTime) : "ffffffff", - endTime: schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexTime)(schedule.endDateTime) : "ffff", - startDay: schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexDate)(schedule.startDateTime) : "00000000", - startTime: schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexTime)(schedule.startDateTime) : "0000", - userId: shortUserId, - week: schedule !== undefined && schedule.week !== undefined ? (0, utils_1.hexWeek)(schedule) : "ff", - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_UPDATE_USER_TIME, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_UPDATE_USER_TIME, command.aesKey); - logging_1.rootHTTPLogger.debug("Station update user schedule - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.UPDATE_USER_TIME, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdUpdateSchedule(shortUserId, schedule)); - logging_1.rootHTTPLogger.debug("Station update user schedule - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else if (device.isLockWifiVideo()) { - const command = { - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_UPDATE_USER_TIME, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "endDay": schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexDate)(schedule.endDateTime) : "ffffffff", - "endTime": schedule !== undefined && schedule.endDateTime !== undefined ? (0, utils_1.hexTime)(schedule.endDateTime) : "ffff", - "startDay": schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexDate)(schedule.startDateTime) : "00000000", - "startTime": schedule !== undefined && schedule.startDateTime !== undefined ? (0, utils_1.hexTime)(schedule.startDateTime) : "0000", - "userId": shortUserId, - "week": schedule !== undefined && schedule.week !== undefined ? (0, utils_1.hexWeek)(schedule) : "ff", - } - }; - logging_1.rootHTTPLogger.debug("Station update user schedule - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify(command), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.UPDATE_USER_TIME, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockUpdateSchedule(this.rawStation.member.admin_user_id, shortUserId, username, schedule)); - logging_1.rootHTTPLogger.debug("Station update user schedule - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - updateUserPasscode(device, username, passwordId, passcode) { - const commandData = { - name: types_1.CommandName.DeviceUpdateUserPasscode, - value: { - username: username, - passwordId: passwordId, - passcode: passcode - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceUpdateUserPasscode)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commonValue: commandData.value } }); - } - if (passcode.length < 4 || passcode.length > 8 || !/^\d+$/.test(passcode)) { - throw new error_1.InvalidCommandValueError("Passcode should contain only numbers and be between 4 and 8 long", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station update user passcode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), username: username, passwordId: passwordId }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - passcode: (0, utils_1.encodePasscode)(passcode), - passwordId: passwordId, - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_UPDATE_PW, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_UPDATE_PW, command.aesKey); - logging_1.rootHTTPLogger.debug("Station update user passcode - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.UPDATE_PW, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdModifyPassword(passwordId, (0, utils_1.encodePasscode)(passcode).padEnd(16, "0"))); - logging_1.rootHTTPLogger.debug("Station update user passcode - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else if (device.isLockWifiVideo()) { - const command = { - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_UPDATE_PW, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "passcode": (0, utils_1.encodePasscode)(passcode).padEnd(16, "0"), - "passwordId": passwordId, - } - }; - logging_1.rootHTTPLogger.debug("Station update user passcode - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify(command), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.UPDATE_PW, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockModifyPassword(this.rawStation.member.admin_user_id, passwordId, (0, utils_1.encodePasscode)(passcode))); - logging_1.rootHTTPLogger.debug("Station update user passcode - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - setLockV12Params(device, property, value) { - const propertyData = { - name: property, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const propertyMetadata = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(propertyMetadata, value); - logging_1.rootHTTPLogger.debug(`Station set lock v12 settings - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value }); - if (device.isLockWifiR10() || device.isLockWifiR20()) { - let payload; - switch (property) { - case types_1.PropertyName.DeviceWrongTryProtection: - payload = device_1.Lock.encodeCmdSetLockParamWrongTryProtect(value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts)); - break; - case types_1.PropertyName.DeviceWrongTryAttempts: - payload = device_1.Lock.encodeCmdSetLockParamWrongTryProtect(device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime), value); - break; - case types_1.PropertyName.DeviceWrongTryLockdownTime: - payload = device_1.Lock.encodeCmdSetLockParamWrongTryProtect(device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts)); - break; - case types_1.PropertyName.DeviceAutoLock: - payload = device_1.Lock.encodeCmdSetLockParamAutoLock(value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer)); - break; - case types_1.PropertyName.DeviceAutoLockTimer: - payload = device_1.Lock.encodeCmdSetLockParamAutoLock(device.getPropertyValue(types_1.PropertyName.DeviceAutoLock), value); - break; - case types_1.PropertyName.DeviceAutoLockSchedule: - payload = device_1.Lock.encodeCmdSetLockParamAutoLockSchedule(value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: - payload = device_1.Lock.encodeCmdSetLockParamAutoLockSchedule(device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: - payload = device_1.Lock.encodeCmdSetLockParamAutoLockSchedule(device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), value); - break; - case types_1.PropertyName.DeviceOneTouchLocking: - payload = device_1.Lock.encodeCmdSetLockParamOneTouchLock(value); - break; - case types_1.PropertyName.DeviceScramblePasscode: - payload = device_1.Lock.encodeCmdSetLockParamScramblePasscode(value); - break; - case types_1.PropertyName.DeviceSound: - payload = device_1.Lock.encodeCmdSetLockParamSound(value); - break; - default: - payload = Buffer.from([]); - break; - } - logging_1.rootHTTPLogger.debug(`Station set lock v12 settings - payload`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value, payload: payload.toString("hex") }); - const lockCommand = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.SET_LOCK_PARAM, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), payload); - this._sendLockV12P2PCommand(lockCommand, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setSmartLockParams(device, property, value) { - const propertyData = { - name: property, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const propertyMetadata = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(propertyMetadata, value); - logging_1.rootHTTPLogger.debug(`Station set smart lock settings - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value }); - if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - let payload; - switch (property) { - case types_1.PropertyName.DeviceWrongTryProtection: - payload = device_1.Lock.encodeCmdSetSmartLockParamWrongTryProtect(this.rawStation.member.admin_user_id, value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime)); - break; - case types_1.PropertyName.DeviceWrongTryAttempts: - payload = device_1.Lock.encodeCmdSetSmartLockParamWrongTryProtect(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), value, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryLockdownTime)); - break; - case types_1.PropertyName.DeviceWrongTryLockdownTime: - payload = device_1.Lock.encodeCmdSetSmartLockParamWrongTryProtect(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceWrongTryProtection), device.getPropertyValue(types_1.PropertyName.DeviceWrongTryAttempts), value); - break; - case types_1.PropertyName.DeviceAutoLock: - payload = device_1.Lock.encodeCmdSetSmartLockParamAutoLock(this.rawStation.member.admin_user_id, value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockTimer: - payload = device_1.Lock.encodeCmdSetSmartLockParamAutoLock(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock), value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockSchedule: - payload = device_1.Lock.encodeCmdSetSmartLockParamAutoLock(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer), value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockScheduleStartTime: - payload = device_1.Lock.encodeCmdSetSmartLockParamAutoLock(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), value, device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleEndTime)); - break; - case types_1.PropertyName.DeviceAutoLockScheduleEndTime: - payload = device_1.Lock.encodeCmdSetSmartLockParamAutoLock(this.rawStation.member.admin_user_id, device.getPropertyValue(types_1.PropertyName.DeviceAutoLock), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockTimer), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockSchedule), device.getPropertyValue(types_1.PropertyName.DeviceAutoLockScheduleStartTime), value); - break; - case types_1.PropertyName.DeviceOneTouchLocking: - payload = device_1.Lock.encodeCmdSetSmartLockParamOneTouchLock(this.rawStation.member.admin_user_id, value); - break; - case types_1.PropertyName.DeviceScramblePasscode: - payload = device_1.Lock.encodeCmdSetSmartLockParamScramblePasscode(this.rawStation.member.admin_user_id, value); - break; - case types_1.PropertyName.DeviceSound: - payload = device_1.Lock.encodeCmdSetSmartLockParamSound(this.rawStation.member.admin_user_id, value); - break; - default: - payload = Buffer.from([]); - break; - } - logging_1.rootHTTPLogger.debug(`Station set smart lock settings - payload`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), property: property, value: value, payload: payload.toString("hex") }); - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.SET_LOCK_PARAM, device.getChannel(), this.p2pSession.incLockSequenceNumber(), payload); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoLock(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoLock, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set auto lock - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceAutoLock, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceAutoLock, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLock, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoLockSchedule(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoLockSchedule, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set auto lock schedule - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceAutoLockSchedule, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceAutoLockSchedule, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockSchedule, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoLockScheduleStartTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoLockScheduleStartTime, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set auto lock schedule start time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleStartTime, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceAutoLockScheduleStartTime, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleStartTime, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoLockScheduleEndTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoLockScheduleEndTime, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set auto lock schedule end time - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleEndTime, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceAutoLockScheduleEndTime, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockScheduleEndTime, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setAutoLockTimer(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceAutoLockTimer, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set auto lock timer - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceAutoLockTimer, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceAutoLockTimer, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceAutoLockTimer, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setOneTouchLocking(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceOneTouchLocking, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set one touch locking - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceOneTouchLocking, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceOneTouchLocking, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceOneTouchLocking, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setSound(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceSound, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set sound - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceSound, value); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - this.setLockV12Params(device, types_1.PropertyName.DeviceSound, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - this.setSmartLockParams(device, types_1.PropertyName.DeviceSound, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotification(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotification, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set notification - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceNotification, value); - } - else if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_NOTIFICATION, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P() || device.isLockWifiR10() || device.isLockWifiR20()) { - let oldvalue = 0; - const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE); - if (rawproperty !== undefined) { - try { - oldvalue = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const notification = (0, utils_1.switchSmartLockNotification)(oldvalue, 1 /* SmartLockNotification.ENABLED */, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "mode": notification, - } - }), - channel: 0 - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, notification.toString(), "p2p"); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationLocked(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationLocked, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set notification locked - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceNotificationLocked, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P() || device.isLockWifiR10() || device.isLockWifiR20()) { - let oldvalue = 0; - const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE); - if (rawproperty !== undefined) { - try { - oldvalue = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const notification = (0, utils_1.switchSmartLockNotification)(oldvalue, 4 /* SmartLockNotification.LOCKED */, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "mode": notification, - } - }), - channel: 0 - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, notification.toString(), "p2p"); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationUnlocked(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNotificationUnlocked, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set notification unlocked - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifi() || device.isLockWifiNoFinger() || device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceNotificationUnlocked, value); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P() || device.isLockWifiR10() || device.isLockWifiR20()) { - let oldvalue = 0; - const rawproperty = device.getRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE); - if (rawproperty !== undefined) { - try { - oldvalue = Number.parseInt(rawproperty); - } - catch (error) { - } - } - const notification = (0, utils_1.switchSmartLockNotification)(oldvalue, 2 /* SmartLockNotification.UNLOCKED */, value); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "mode": notification, - } - }), - channel: 0 - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_DOORLOCK_SET_PUSH_MODE, notification.toString(), "p2p"); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _sendLockV12P2PCommand(command, customData) { - this.p2pSession.setLockAESKey(command.bleCommand, command.aesKey); - this.p2pSession.sendCommandWithStringPayload(command.payload, customData); - } - queryAllUserId(device) { - const commandData = { - name: types_1.CommandName.DeviceQueryAllUserId - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station query all user id - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if (device.isLockBleNoFinger() || device.isLockBle()) { - throw new error_1.NotSupportedError("This functionality is not implemented by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - //TODO: Finish implementation of query all user id for LockBleNoFinger / LockBle - /*const key = generateBasicLockAESKey(this.rawStation.member.admin_user_id, this.getSerial()); - const iv = getLockVectorBytes(this.getSerial()); - const lockCmd = Lock.encodeESLCmdOnOff(Number.parseInt(this.rawStation.member.short_user_id), this.rawStation.member.nick_name, value); - const payload: ESLStationP2PThroughData = { - channel: device.getChannel(), - lock_cmd: ESLBleCommand.ON_OFF_LOCK, - lock_payload: lockCmd.toString("base64"), - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const encPayload = encryptLockAESData(key, iv, encodeLockPayload(JSON.stringify(payload))); - - rootHTTPLogger.debug("Locking/unlocking device...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: payload, encPayload: encPayload.toString("hex") }); - - this.p2pSession.sendCommandWithStringPayload({ - commandType: CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": CommandType.CMD_DOORLOCK_DATA_PASS_THROUGH, - "mValue3": 0, - "payload": { - "payload": encPayload.toString("base64") - } - }), - channel: device.getChannel() - }, { - property: propertyData - });*/ - } - else if (device.isLockWifi() || device.isLockWifiNoFinger()) { - const nestedPayload = { - seq_num: this.p2pSession.incLockSequenceNumber() - }; - const command = (0, utils_2.getLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.CommandType.P2P_GET_USER_AND_PW_ID, device.getChannel(), this.lockPublicKey, nestedPayload); - this.p2pSession.setLockAESKey(types_2.CommandType.P2P_GET_USER_AND_PW_ID, command.aesKey); - logging_1.rootHTTPLogger.debug("Querying all user id...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command, nestedPayload: nestedPayload }); - this.p2pSession.sendCommandWithStringPayload(command, { - command: commandData - }); - } - else if (device.isLockWifiR10() || device.isLockWifiR20()) { - throw new error_1.NotSupportedError("This functionality is not implemented by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - //TODO: Finish implementation of query all user id for r10 / r20 - /*const command = getLockV12P2PCommand( - this.rawStation.station_sn, - this.rawStation.member.admin_user_id, - ESLCommand.GET_USER_ID_AND_PW_ID, - device.getChannel(), - this.lockPublicKey, - this.p2pSession.incLockSequenceNumber(), - Lock.encodeCmd(this.rawStation.member.short_user_id, value === true ? 1 : 0, this.rawStation.member.nick_name) - ); - rootHTTPLogger.debug("Querying all user id...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - - this._sendLockV12P2PCommand(command, { - command: commandData - });*/ - } - else if (device.isLockWifiVideo()) { - logging_1.rootHTTPLogger.debug("Querying all user id...", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_GET_USER_AND_PW_ID, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": {} - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else if (device.isLockWifiT8506() || device.isLockWifiT8502() || device.isLockWifiT8510P() || device.isLockWifiT8520P()) { - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.QUERY_ALL_USERS, device.getChannel(), this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockGetUserList(this.rawStation.member.admin_user_id)); - logging_1.rootHTTPLogger.debug("Station get user list - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command.payload }); - this.p2pSession.sendCommandWithStringPayload(command.payload, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - } - chimeHomebase(value) { - const commandData = { - name: types_1.CommandName.StationChime, - value: value - }; - if (!this.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, station: this.getSerial() } }); - } - if (this.rawStation.devices !== undefined) { - this.rawStation.devices.forEach((device) => { - if (device_1.Device.isDoorbell(device.device_type)) { - throw new error_1.NotSupportedError("This functionality is only supported on stations without registered Doorbells on it", { context: { commandName: commandData.name, station: this.getSerial() } }); - } - }); - } - logging_1.rootHTTPLogger.debug(`Station chime homebase - sending command`, { stationSN: this.getSerial(), value: value }); - if (this.isStation()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_BAT_DOORBELL_DINGDONG_R, - "mValue3": 0, - "payload": { - "dingdong_ringtone": value, - } - }), - channel: 0 - }, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, commandValue: commandData.value, station: this.getSerial() } }); - } - } - onImageDownload(file, image) { - this.emit("image download", this, file, image); - } - downloadImage(cover_path) { - const commandData = { - name: types_1.CommandName.StationDownloadImage, - value: cover_path - }; - if (!this.hasCommand(types_1.CommandName.StationDownloadImage)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, commandValue: commandData.value, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station download image - sending command`, { stationSN: this.getSerial(), value: cover_path }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - account_id: this.rawStation.member.admin_user_id, - cmd: types_2.CommandType.CMD_DATABASE_IMAGE, - mChannel: Station.CHANNEL, //TODO: Check indoor devices - payload: [{ "file": cover_path }], - "transaction": cover_path - }), - channel: Station.CHANNEL, //TODO: Check indoor devices - strValueSub: this.rawStation.member.admin_user_id, - }, { - command: commandData, - }); - } - onTFCardStatus(channel, status) { - this.updateRawProperty(types_2.CommandType.CMD_GET_TFCARD_STATUS, status.toString(), "p2p"); - } - databaseQueryLatestInfo(failureCallback) { - const commandData = { - name: types_1.CommandName.StationDatabaseQueryLatestInfo, - }; - if (!this.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station database query latest info - sending command`, { stationSN: this.getSerial() }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DATABASE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "cmd": types_2.CommandType.CMD_DATABASE_QUERY_LATEST_INFO, - "table": "history_record_info", - "transaction": `${new Date().getTime()}` - } - }), - channel: 0 - }, { - command: commandData, - onFailure: failureCallback - }); - } - databaseQueryLocal(serialNumbers, startDate, endDate, eventType = 0, detectionType = 0, storageType = 0) { - const commandData = { - name: types_1.CommandName.StationDatabaseQueryLocal, - value: { - serialNumbers: serialNumbers, - eventType: eventType, - detectionType: detectionType - } - }; - if (!this.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, commandValue: commandData.value, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station database query local - sending command`, { stationSN: this.getSerial(), serialNumbers: serialNumbers, startDate: startDate, endDate: endDate, eventType: eventType, detectionType: detectionType, storageType: storageType }); - const devices = []; - for (const serial of serialNumbers) { - devices.push({ device_sn: serial }); - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DATABASE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "cmd": types_2.CommandType.CMD_DATABASE_QUERY_LOCAL, - "payload": { - "count": 20, - "detection_type": detectionType, - "device_info": devices, - "end_date": date_and_time_1.default.format(endDate, "YYYYMMDD"), - "event_type": eventType, - "flag": 0, - "res_unzip": 1, - "start_date": date_and_time_1.default.format(startDate, "YYYYMMDD"), - "start_time": `${date_and_time_1.default.format(endDate, "YYYYMMDD")}000000`, - "storage_cloud": storageType === types_2.FilterStorageType.NONE || (storageType !== types_2.FilterStorageType.LOCAL && storageType !== types_2.FilterStorageType.CLOUD) ? -1 : storageType, - "ai_type": 0 - }, - "table": "history_record_info", - "transaction": `${new Date().getTime()}` - } - }), - channel: 0 - }, { - command: commandData - }); - } - databaseDelete(ids) { - const commandData = { - name: types_1.CommandName.StationDatabaseDelete, - value: ids - }; - if (!this.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, commandValue: commandData.value, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station database delete - sending command`, { stationSN: this.getSerial(), ids: ids }); - const lids = []; - for (const id of ids) { - lids.push({ "id": id }); - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DATABASE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "cmd": types_2.CommandType.CMD_DATABASE_DELETE, - "payload": lids, - "table": "history_record_info", - "transaction": `${new Date().getTime()}` - } - }), - channel: 0 - }, { - command: commandData - }); - } - databaseCountByDate(startDate, endDate) { - const commandData = { - name: types_1.CommandName.StationDatabaseCountByDate, - value: { - startDate: startDate, - endDate: endDate - } - }; - if (!this.hasCommand(commandData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported", { context: { commandName: commandData.name, commandValue: commandData.value, station: this.getSerial() } }); - } - logging_1.rootHTTPLogger.debug(`Station database count by date - sending command`, { stationSN: this.getSerial(), startDate: startDate, endDate: endDate }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_DATABASE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "cmd": types_2.CommandType.CMD_DATABASE_COUNT_BY_DATE, - "payload": { - "end_date": date_and_time_1.default.format(endDate, "YYYYMMDD"), - "start_date": date_and_time_1.default.format(startDate, "YYYYMMDD"), - }, - "table": "history_record_info", - "transaction": `${new Date().getTime()}` - } - }), - channel: 0 - }, { - command: commandData - }); - } - onDatabaseQueryLatest(returnCode, data) { - this.emit("database query latest", this, returnCode, data); - } - onDatabaseQueryLocal(returnCode, data) { - this.emit("database query local", this, returnCode, data); - } - onDatabaseCountByDate(returnCode, data) { - this.emit("database count by date", this, returnCode, data); - } - onDatabaseDelete(returnCode, failedIds) { - this.emit("database delete", this, returnCode, failedIds); - } - onSensorStatus(channel, status) { - this.emit("sensor status", this, channel, status); - } - setMotionDetectionTypeHuman(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionTypeHuman, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection type human - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_MOTION_DETECTION_TYPE_HUMAN, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setMotionDetectionTypeAllOtherMotions(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionDetectionTypeAllOtherMotions, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion detection type all other motions - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_MOTION_DETECTION_TYPE_ALL, - "data": value === true ? 1 : 0, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _setLightSettingsLightingActiveMode(device, propertyName, value, type) { - const propertyData = { - name: propertyName, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set set light settings lighting active mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyName: propertyName, value: value, type: type }); - if (device.isWallLightCam()) { - switch (value) { - case types_1.LightingActiveMode.DAILY: { - let currentProperty = types_1.PropertyName.DeviceLightSettingsManualDailyLighting; - if (type === "schedule") { - currentProperty = types_1.PropertyName.DeviceLightSettingsScheduleDailyLighting; - } - else if (type === "motion") { - currentProperty = types_1.PropertyName.DeviceLightSettingsMotionDailyLighting; - } - let currentPropertyValue = device.getPropertyValue(currentProperty); - if (!(currentPropertyValue in types_1.DailyLightingType)) { - currentPropertyValue = types_1.DailyLightingType.COLD; - } - //TODO: Force cloud api refresh or updateProperty of currentPropertyValue? - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": type === "manual" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_DAILY_LIGHTING : type === "schedule" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DAILY_LIGHTING : types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_DAILY_LIGHTING, - "data": currentPropertyValue, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(currentProperty, currentPropertyValue); - } - }); - break; - } - case types_1.LightingActiveMode.COLORED: { - let currentProperty = types_1.PropertyName.DeviceLightSettingsManualColoredLighting; - if (type === "schedule") { - currentProperty = types_1.PropertyName.DeviceLightSettingsScheduleColoredLighting; - } - else if (type === "motion") { - currentProperty = types_1.PropertyName.DeviceLightSettingsMotionColoredLighting; - } - let currentPropertyValue = device.getPropertyValue(currentProperty); - const colors = device.getPropertyValue(types_1.PropertyName.DeviceLightSettingsColoredLightingColors); - if (!colors.some(color => color.red === currentPropertyValue.red && color.green === currentPropertyValue.green && color.blue === currentPropertyValue.blue)) { - currentPropertyValue = colors[0]; - } - //TODO: Force cloud api refresh or updateProperty of currentPropertyValue? - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": type === "manual" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_COLORED_LIGHTING : type === "schedule" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_COLORED_LIGHTING : types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_COLORED_LIGHTING, - "data": { - "rgb_color": (0, utils_2.RGBColorToDecimal)(currentPropertyValue) - }, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(currentProperty, currentPropertyValue); - } - }); - break; - } - case types_1.LightingActiveMode.DYNAMIC: { - let currentProperty = types_1.PropertyName.DeviceLightSettingsManualDynamicLighting; - if (type === "schedule") { - currentProperty = types_1.PropertyName.DeviceLightSettingsScheduleDynamicLighting; - } - else if (type === "motion") { - currentProperty = types_1.PropertyName.DeviceLightSettingsMotionDynamicLighting; - } - let currentPropertyValue = device.getPropertyValue(currentProperty); - const range = device.getPropertyValue(types_1.PropertyName.DeviceLightSettingsDynamicLightingThemes).length; - if (currentPropertyValue < 0 || currentPropertyValue >= range) { - currentPropertyValue = 0; - } - //TODO: Force cloud api refresh or updateProperty of currentPropertyValue? - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": type === "manual" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_DYNAMIC_LIGHTING : type === "schedule" ? types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DYNAMIC_LIGHTING : types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_DYNAMIC_LIGHTING, - "data": currentPropertyValue, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(currentProperty, currentPropertyValue); - } - }); - break; - } - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsManualLightingActiveMode(device, value) { - this._setLightSettingsLightingActiveMode(device, types_1.PropertyName.DeviceLightSettingsManualLightingActiveMode, value, "manual"); - } - setLightSettingsManualDailyLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsManualDailyLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings manual daily lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_DAILY_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsManualLightingActiveMode, types_1.LightingActiveMode.DAILY); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsManualColoredLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsManualColoredLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - const colors = device.getPropertyValue(types_1.PropertyName.DeviceLightSettingsColoredLightingColors); - if (!colors.some(color => color.red === value.red && color.green === value.green && color.blue === value.blue)) { - throw new error_1.InvalidPropertyValueError("Invalid value for this property", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set light settings manual colored lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_COLORED_LIGHTING, - "data": { - "rgb_color": (0, utils_2.RGBColorToDecimal)(value) - }, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsManualLightingActiveMode, types_1.LightingActiveMode.COLORED); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsManualDynamicLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsManualDynamicLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings manual dynamic lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MANUAL_DYNAMIC_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsManualLightingActiveMode, types_1.LightingActiveMode.DYNAMIC); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsMotionLightingActiveMode(device, value) { - this._setLightSettingsLightingActiveMode(device, types_1.PropertyName.DeviceLightSettingsMotionLightingActiveMode, value, "motion"); - } - setLightSettingsMotionDailyLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionDailyLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings motion daily lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_DAILY_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsMotionActivationMode, types_1.LightingActiveMode.DAILY); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsMotionColoredLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionColoredLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - const colors = device.getPropertyValue(types_1.PropertyName.DeviceLightSettingsColoredLightingColors); - if (!colors.some(color => color.red === value.red && color.green === value.green && color.blue === value.blue)) { - throw new error_1.InvalidPropertyValueError("Invalid value for this property", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set light settings motion colored lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_COLORED_LIGHTING, - "data": { - "rgb_color": (0, utils_2.RGBColorToDecimal)(value) - }, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsMotionActivationMode, types_1.LightingActiveMode.COLORED); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsMotionDynamicLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsMotionDynamicLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings motion dynamic lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_MOTION_DYNAMIC_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsMotionActivationMode, types_1.LightingActiveMode.DYNAMIC); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsScheduleLightingActiveMode(device, value) { - this._setLightSettingsLightingActiveMode(device, types_1.PropertyName.DeviceLightSettingsScheduleLightingActiveMode, value, "schedule"); - } - setLightSettingsScheduleDailyLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsScheduleDailyLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings schedule daily lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DAILY_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsScheduleLightingActiveMode, types_1.LightingActiveMode.DAILY); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsScheduleColoredLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsScheduleColoredLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - const colors = device.getPropertyValue(types_1.PropertyName.DeviceLightSettingsColoredLightingColors); - if (!colors.some(color => color.red === value.red && color.green === value.green && color.blue === value.blue)) { - throw new error_1.InvalidPropertyValueError("Invalid value for this property", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set light settings schedule colored lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_COLORED_LIGHTING, - "data": { - "rgb_color": (0, utils_2.RGBColorToDecimal)(value) - }, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsScheduleLightingActiveMode, types_1.LightingActiveMode.COLORED); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsScheduleDynamicLighting(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsScheduleDynamicLighting, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings schedule dynamic lighting - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_SCHEDULE_DYNAMIC_LIGHTING, - "data": value, - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateProperty(types_1.PropertyName.DeviceLightSettingsScheduleLightingActiveMode, types_1.LightingActiveMode.DYNAMIC); - } - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsColoredLightingColors(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsColoredLightingColors, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings colored lighting colors - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - const colors = [{ "color": 16760832 }, { "color": 16744448 }, { "color": 16728320 }, { "color": 16720384 }, { "color": 16711696 }, { "color": 3927961 }, { "color": 1568995 }, { "color": 485368 }, { "color": 9983 }, { "color": 4664060 }]; - if (value.length > 0 && value.length <= 15) { - let count = 0; - for (let i = 0; i < colors.length; i++) { - if ((0, utils_2.RGBColorToDecimal)(value[i]) === colors[i].color) { - count++; - } - else { - break; - } - } - if (value.length - count + colors.length > 15) { - throw new error_1.InvalidPropertyValueError("This property can contain a maximum of 15 items, of which the first 10 are fixed. You can either deliver the first 10 static items with the maximum 5 freely selectable items or only the maximum 5 freely selectable items.", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - else { - for (let i = count; i < value.length - count + 10; i++) { - colors.push({ color: (0, utils_2.RGBColorToDecimal)(value[i]) }); - } - } - } - else { - throw new error_1.InvalidPropertyValueError("This property can contain a maximum of 15 items, of which the first 10 are fixed. You can either deliver the first 10 static items with the maximum 5 freely selectable items or only the maximum 5 freely selectable items.", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_COLORED_LIGHTING_COLORS, - "data": colors, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLightSettingsDynamicLightingThemes(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLightSettingsDynamicLightingThemes, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set light settings dynamic lighting themes - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isWallLightCam()) { - const themes = [{ "name": "Aurora", "mode": 1, "id": 0, "speed": 4000, "colors": [65321, 65468, 28671, 9215, 42239] }, { "name": "Warmth", "mode": 1, "id": 1, "speed": 4000, "colors": [16758528, 16744448, 16732160, 16719360, 16742144] }, { "name": "Let's Party", "mode": 2, "id": 2, "speed": 500, "colors": [16718080, 16756736, 65298, 40703, 4980991] }]; - if (value.length > 0 && value.length <= 23) { - let count = 0; - for (let i = 0; i < themes.length; i++) { - if (value[i].name === themes[i].name) { - count++; - } - else { - break; - } - } - if (value.length - count + themes.length > 23) { - throw new error_1.InvalidPropertyValueError("This property can contain a maximum of 23 items, of which the first 3 are fixed. You can either deliver the first 3 static items with the maximum 20 freely selectable items or only the maximum 20 freely selectable items.", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - else { - for (let i = count; i < value.length - count + 3; i++) { - themes.push({ - id: i, - colors: value[i].colors.map((color) => (0, utils_2.RGBColorToDecimal)(color)), - mode: value[i].mode, - name: value[i].name, - speed: value[i].speed - }); - } - } - } - else { - throw new error_1.InvalidPropertyValueError("This property can contain a maximum of 23 items, of which the first 3 are fixed. You can either deliver the first 3 static items with the maximum 20 freely selectable items or only the maximum 20 freely selectable items.", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_WALL_LIGHT_SETTINGS_DYNAMIC_LIGHTING_THEMES, - "data": themes, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setDoorControlWarning(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceDoorControlWarning, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set door control warning - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_CAMERA_GARAGE_DOOR_CONTROL_WARNING, - "data": { - "doorid": 1, - "value": value === true ? 1 : 0, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - openDoor(device, value, doorId = 1) { - const propertyData = { - name: doorId === 1 ? types_1.PropertyName.DeviceDoor1Open : types_1.PropertyName.DeviceDoor2Open, - value: { - value: value, - doorId: doorId - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station open door - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value, doorId: doorId }); - if (device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_CAMERA_GARAGE_DOOR_STATUS, - "data": { - "cmdType": 0, - "disable_push": 0, - "source": 0, - "type": doorId === 1 ? (value === true ? 1 : 0) : (value === true ? 3 : 2), - "user_name": this.rawStation.member.nick_name, - }, - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - onGarageDoorStatus(channel, doorId, status) { - this.emit("garage door status", this, channel, doorId, status); - } - calibrateGarageDoor(device, doorId, type) { - const commandData = { - name: types_1.CommandName.DeviceCalibrateGarageDoor - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceCalibrateGarageDoor)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station calibrate garage door - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), doorId: doorId, type: type }); - if (device.isGarageCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_CAMERA_GARAGE_DOOR_CALIBRATE, - "data": { - "door_id": doorId, - "type": type - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - } - onStorageInfoHB3(channel, storageInfo) { - this.emit("storage info hb3", this, channel, storageInfo); - } - setMirrorMode(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceImageMirrored, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set mirror mode - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithIntString({ - commandType: types_2.CommandType.CMD_SET_MIRRORMODE, - value: value === true ? 1 : 0, - valueSub: device.getChannel(), - strValue: this.rawStation.member.admin_user_id, - channel: device.getChannel() - }, { - property: propertyData - }); - } - setFlickerAdjustment(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceFlickerAdjustment, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set flicker adjustment - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_FLICKER_ADJUSTMENT, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "value": value - } - }), - channel: device.getChannel(), - }, { - property: propertyData - }); - } - setCrossCameraTracking(value) { - const propertyData = { - name: types_1.PropertyName.StationCrossCameraTracking, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set cross camera tracking - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_CROSS_CAMERA_TRACKING, - "mChannel": 0, - "mValue3": 0, - "payload": { - "value": value === true ? 1 : 0, - } - }), - channel: 0, - }, { - property: propertyData - }); - } - setContinuousTrackingTime(value) { - const propertyData = { - name: types_1.PropertyName.StationContinuousTrackingTime, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set continuous tracking time - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_CONTINUOUS_TRACKING_TIME, - "mChannel": 0, - "mValue3": 0, - "payload": { - "value": value - } - }), - channel: 0, - }, { - property: propertyData - }); - } - setTrackingAssistance(value) { - const propertyData = { - name: types_1.PropertyName.StationTrackingAssistance, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set tracking assistance - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_TRACKING_ASSISTANCE, - "mChannel": 0, - "mValue3": 0, - "payload": { - "value": value === true ? 1 : 0, - } - }), - channel: 0, - }, { - property: propertyData - }); - } - setCrossTrackingCameraList(value) { - const propertyData = { - name: types_1.PropertyName.StationCrossTrackingCameraList, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set cross tracking camera list - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_CROSS_TRACKING_CAMERA_LIST, - "mChannel": 0, - "mValue3": 0, - "payload": value - }), - channel: 0, - }, { - property: propertyData - }); - } - setCrossTrackingGroupList(value) { - const propertyData = { - name: types_1.PropertyName.StationCrossTrackingGroupList, - value: value - }; - if (!this.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = this.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set cross tracking group list - sending command`, { stationSN: this.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_CROSS_TRACKING_GROUP_LIST, - "mChannel": 0, - "mValue3": 0, - "payload": value - }), - channel: 0, - }, { - property: propertyData - }); - } - setNotificationIndoor(device, type, value) { - const propertyData = { - name: type === types_1.IndoorS350NotificationTypes.ALL_OTHER_MOTION ? types_1.PropertyName.DeviceNotificationAllOtherMotion : type === types_1.IndoorS350NotificationTypes.HUMAN ? types_1.PropertyName.DeviceNotificationPerson : type === types_1.IndoorS350NotificationTypes.PET ? types_1.PropertyName.DeviceNotificationPet : type === types_1.IndoorS350NotificationTypes.CRYING ? types_1.PropertyName.DeviceNotificationCrying : types_1.PropertyName.DeviceNotificationAllSound, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification type indoor - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), type: type, value: value }); - if (device.isIndoorPanAndTiltCameraS350()) { - try { - const notification = device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) !== undefined ? device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) : "0"; - let newNotification = (0, utils_1.getIndoorNotification)(Number.parseInt(notification), type, value); - if (newNotification === 0) { - newNotification = type; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_SET_MOTION_DETECTION_TYPE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "onoff": newNotification, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_INDOOR_SET_MOTION_DETECTION_TYPE, newNotification.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setNotificationIndoor Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNotificationFloodlightT8425(device, type, value) { - const propertyData = { - name: type === types_1.FloodlightT8425NotificationTypes.ALL_OTHER_MOTION ? types_1.PropertyName.DeviceNotificationAllOtherMotion : type === types_1.FloodlightT8425NotificationTypes.HUMAN ? types_1.PropertyName.DeviceNotificationPerson : type === types_1.FloodlightT8425NotificationTypes.PET ? types_1.PropertyName.DeviceNotificationPet : types_1.PropertyName.DeviceNotificationVehicle, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set notification type floodlight T8425 - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), type: type, value: value }); - if (device.isFloodLightT8425()) { - try { - const notification = device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) !== undefined ? device.getRawProperty(device.getPropertyMetadata(propertyData.name).key) : "0"; - let newNotification = (0, utils_1.getFloodLightT8425Notification)(Number.parseInt(notification), type, value); - if (newNotification < 312) { - newNotification = 312; - } - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_INDOOR_SET_MOTION_DETECTION_TYPE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "onoff": newNotification, - } - }), - channel: device.getChannel() - }, { - property: propertyData, - onSuccess: () => { - device.updateRawProperty(types_2.CommandType.CMD_INDOOR_SET_MOTION_DETECTION_TYPE, newNotification.toString(), "p2p"); - } - }); - } - catch (err) { - const error = (0, error_1.ensureError)(err); - logging_1.rootHTTPLogger.error(`setNotificationFloodlightT8425 Error`, { error: (0, utils_3.getError)(error), stationSN: this.getSerial(), deviceSN: device.getSerial() }); - } - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - presetPosition(device, position) { - const commandData = { - name: types_1.CommandName.DevicePresetPosition, - value: position - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DevicePresetPosition)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!(position in types_1.PresetPositionType)) { - throw new error_1.InvalidCommandValueError("Invalid value for this command", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station preset position - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), preset: types_1.PresetPositionType[position] }); - if (device.isFloodLightT8425() || device.isIndoorPanAndTiltCameraS350() || device.isOutdoorPanAndTiltCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SET_MOTION_PRESET_POSITION, - "data": { - "value": position, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - savePresetPosition(device, position) { - const commandData = { - name: types_1.CommandName.DeviceSavePresetPosition, - value: position - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceSavePresetPosition)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!(position in types_1.PresetPositionType)) { - throw new error_1.InvalidCommandValueError("Invalid value for this command", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station save preset position - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), preset: types_1.PresetPositionType[position] }); - if (device.isFloodLightT8425() || device.isIndoorPanAndTiltCameraS350() || device.isOutdoorPanAndTiltCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_SAVE_MOTION_PRESET_POSITION, - "data": { - "value": position, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - deletePresetPosition(device, position) { - const commandData = { - name: types_1.CommandName.DeviceDeletePresetPosition, - value: position - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceDeletePresetPosition)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!(position in types_1.PresetPositionType)) { - throw new error_1.InvalidCommandValueError("Invalid value for this command", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station delete preset position - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), preset: types_1.PresetPositionType[position] }); - if (device.isFloodLightT8425() || device.isIndoorPanAndTiltCameraS350() || device.isOutdoorPanAndTiltCamera()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD, - value: JSON.stringify({ - "commandType": types_2.CommandType.CMD_FLOODLIGHT_DELETE_MOTION_PRESET_POSITION, - "data": { - "value": position, - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - } - setLeavingDetection(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLeavingDetection, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set leaving detection - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isGarageCamera() || device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_MOTION_SET_LEAVING_DETECTION, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "leaving_detection_switch": value ? 1 : 0 - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - _setLeavingReactions(device, propertyData, pushNotification, startTime, endTime) { - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, propertyData.value); - logging_1.rootHTTPLogger.debug(`Station set leaving reactions - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), propertyData: propertyData, pushNotification: pushNotification, startTime: startTime, endTime: endTime }); - if (device.isLockWifiVideo()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_MOTION_SET_LEAVING_REACTIONS, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "end_hour": endTime.split(":")[0], - "end_min": endTime.split(":")[1], - "push_notify": pushNotification === true ? 1 : 0, - "start_hour": startTime.split(":")[0], - "start_min": startTime.split(":")[1], - } - }), - channel: device.getChannel() - }, { - property: propertyData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setLeavingReactionNotification(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLeavingReactionNotification, - value: value - }; - this._setLeavingReactions(device, propertyData, value, device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionStartTime), device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionEndTime)); - } - setLeavingReactionStartTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLeavingReactionStartTime, - value: value - }; - this._setLeavingReactions(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionNotification), value, device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionEndTime)); - } - setLeavingReactionEndTime(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceLeavingReactionEndTime, - value: value - }; - this._setLeavingReactions(device, propertyData, device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionNotification), device.getPropertyValue(types_1.PropertyName.DeviceLeavingReactionStartTime), value); - } - setBeepVolume(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceBeepVolume, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set beep volume - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceBeepVolume, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNightvisionOptimization(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNightvisionOptimization, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set nightvision optimization - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceNightvisionOptimization, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - setNightvisionOptimizationSide(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceNightvisionOptimizationSide, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station set nightvision optimization - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - if (device.isLockWifiVideo()) { - this.setAdvancedLockParams(device, types_1.PropertyName.DeviceNightvisionOptimizationSide, value); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - } - getLockParameters() { - //TODO: Implement support for other Locks - if (device_1.Device.isLockWifiT8506(this.getDeviceType()) || device_1.Device.isLockWifiT8502(this.getDeviceType()) || device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial()) || device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial())) { - logging_1.rootHTTPLogger.debug(`Station smart lock send get lock parameters command`, { stationSN: this.getSerial() }); - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.GET_LOCK_PARAM, 0, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockGetParams(this.rawStation.member.admin_user_id)); - this.p2pSession.sendCommandWithStringPayload(command.payload); - } - else if (device_1.Device.isLockWifiR10(this.getDeviceType()) || device_1.Device.isLockWifiR20(this.getDeviceType())) { - logging_1.rootHTTPLogger.debug(`Station lock v12 send get lock parameters command`, { stationSN: this.getSerial() }); - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.GET_LOCK_PARAM, 0, this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdGetLockParam(this.rawStation.member.admin_user_id)); - this._sendLockV12P2PCommand(command); - } - } - getLockStatus() { - //TODO: Implement support for other Locks - if (device_1.Device.isLockWifiT8506(this.getDeviceType()) || device_1.Device.isLockWifiT8502(this.getDeviceType()) || device_1.Device.isLockWifiT8510P(this.getDeviceType(), this.getSerial()) || device_1.Device.isLockWifiT8520P(this.getDeviceType(), this.getSerial())) { - logging_1.rootHTTPLogger.debug(`Station smart lock send get lock status command`, { stationSN: this.getSerial() }); - const command = (0, utils_2.getSmartLockP2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.SmartLockCommand.QUERY_STATUS_IN_LOCK, 0, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdSmartLockStatus(this.rawStation.member.admin_user_id)); - this.p2pSession.sendCommandWithStringPayload(command.payload); - } - else if (device_1.Device.isLockWifiR10(this.getDeviceType()) || device_1.Device.isLockWifiR20(this.getDeviceType())) { - logging_1.rootHTTPLogger.debug(`Station lock v12 send get lock status command`, { stationSN: this.getSerial() }); - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.QUERY_STATUS_IN_LOCK, 0, this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdStatus(this.rawStation.member.admin_user_id)); - this._sendLockV12P2PCommand(command); - } - else if (device_1.Device.isLockWifi(this.getDeviceType(), this.getSerial()) || device_1.Device.isLockWifiNoFinger(this.getDeviceType())) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.P2P_QUERY_STATUS_IN_LOCK, - "mChannel": 0, - "mValue3": 0, - "payload": { - "timezone": this.rawStation.time_zone === undefined || this.rawStation.time_zone === "" ? (0, utils_1.getAdvancedLockTimezone)(this.rawStation.station_sn) : this.rawStation.time_zone, - } - }), - channel: 0 - }); - } - } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - onSequenceError(channel, command, sequence, serialnumber) { - //TODO: Implement command retry for lock devices in case von sequence mismatch error - logging_1.rootHTTPLogger.debug(`Station lock sequence error`, { stationSN: this.getSerial(), channel: channel, command: command, sequence: sequence, serialnumber: serialnumber }); - } - updateUsername(device, username, passwordId) { - const commandData = { - name: types_1.CommandName.DeviceUpdateUsername, - value: { - username: username, - passwordId: passwordId, - } - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceUpdateUsername)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - logging_1.rootHTTPLogger.debug(`Station update username - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), username: username, passwordId: passwordId }); - if (device.isLockWifiR10() || device.isLockWifiR20()) { - const command = (0, utils_2.getLockV12P2PCommand)(this.rawStation.station_sn, this.rawStation.member.admin_user_id, types_2.ESLCommand.MODIFY_NAME, device.getChannel(), this.lockPublicKey, this.p2pSession.incLockSequenceNumber(), device_1.Lock.encodeCmdModifyUsername(username, passwordId)); - logging_1.rootHTTPLogger.debug("Station update username - payload", { station: this.getSerial(), device: device.getSerial(), admin_user_id: this.rawStation.member.admin_user_id, payload: command }); - this._sendLockV12P2PCommand(command, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name, commandValue: commandData.value } }); - } - } - setOpenMethod(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceOpenMethod, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set open method - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SMART_DROP_DELIVERY_MODE, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "isDeniedDelivery": 0, - "userIndex": 0, - "workmode": value, - } - }), - channel: device.getChannel(), - }, { - property: propertyData - }); - } - setMotionActivatedPrompt(device, value) { - const propertyData = { - name: types_1.PropertyName.DeviceMotionActivatedPrompt, - value: value - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - if (!device.hasProperty(propertyData.name)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), propertyName: propertyData.name, propertyValue: propertyData.value } }); - } - const property = device.getPropertyMetadata(propertyData.name); - (0, utils_3.validValue)(property, value); - logging_1.rootHTTPLogger.debug(`Station set motion activated prompt - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial(), value: value }); - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SET_AUDIO_MOTION_ACTIVATED_PROMPT, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "channel": device.getChannel(), - "enable": value === true ? 1 : 0, - } - }), - channel: device.getChannel(), - }, { - property: propertyData - }); - } - open(device) { - const commandData = { - name: types_1.CommandName.DeviceOpen - }; - if (device.getStationSerial() !== this.getSerial()) { - throw new error_1.WrongStationError("Device is not managed by this station", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - if (!device.hasCommand(types_1.CommandName.DeviceOpen)) { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - logging_1.rootHTTPLogger.debug(`Station open - sending command`, { stationSN: this.getSerial(), deviceSN: device.getSerial() }); - if (device.isSmartDrop()) { - this.p2pSession.sendCommandWithStringPayload({ - commandType: types_2.CommandType.CMD_SET_PAYLOAD, - value: JSON.stringify({ - "account_id": this.rawStation.member.admin_user_id, - "cmd": types_2.CommandType.CMD_SMART_DROP_OPEN_LID, - "mChannel": device.getChannel(), - "mValue3": 0, - "payload": { - "isOpen": 1, - "userIndex": 0. - } - }), - channel: device.getChannel() - }, { - command: commandData - }); - } - else { - throw new error_1.NotSupportedError("This functionality is not implemented or supported by this device", { context: { device: device.getSerial(), station: this.getSerial(), commandName: commandData.name } }); - } - } -} -exports.Station = Station; -//# sourceMappingURL=station.js.map \ No newline at end of file diff --git a/build/http/station.js.map b/build/http/station.js.map deleted file mode 100644 index 6e313227..00000000 --- a/build/http/station.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"station.js","sourceRoot":"","sources":["../../src/http/station.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAkD;AAElD,kEAAiC;AAGjC,mCAAu0B;AAEv0B,2CAA8C;AAE9C,mCAAyW;AAEzW,4CAAmD;AACnD,wCAAue;AAEve,qCAAmE;AACnE,wCAA4O;AAC5O,oCAAgN;AAEhN,yCAA6C;AAC7C,mCAAoI;AACpI,oCAAgD;AAEhD,+BAA6B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AAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5M,CAAC;QACD,wBAAc,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QACtH,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;gBACzC,WAAW,EAAE,mBAAW,CAAC,eAAe;gBACxC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;oBAClB,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa;oBAClD,KAAK,EAAE,mBAAW,CAAC,uBAAuB;oBAC1C,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE;oBAC/B,SAAS,EAAE,CAAC;oBACZ,SAAS,EAAE;wBACP,QAAQ,EAAE,CAAC;wBACX,WAAW,EAAE,EAAE;qBAClB;iBACJ,CAAC;gBACF,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE;aAC/B,EAAE;gBACC,OAAO,EAAE,WAAW;aACvB,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,yBAAiB,CAAC,mEAAmE,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC5M,CAAC;IACL,CAAC;;AAn8VL,0BAq8VC"} \ No newline at end of file diff --git a/docs/_media/eufycam_s330_4glte_small.jpg b/docs/_media/eufycam_s330_4glte_small.jpg new file mode 100644 index 00000000..1dc743b2 Binary files /dev/null and b/docs/_media/eufycam_s330_4glte_small.jpg differ diff --git a/docs/_media/eufycams4_t8172_small.png b/docs/_media/eufycams4_t8172_small.png new file mode 100644 index 00000000..18b057a0 Binary files /dev/null and b/docs/_media/eufycams4_t8172_small.png differ diff --git a/docs/supported_devices.md b/docs/supported_devices.md index f675289d..8c1468f9 100644 --- a/docs/supported_devices.md +++ b/docs/supported_devices.md @@ -17,6 +17,8 @@ | ![T8160 image](_media/eufycam3_small.jpg) | eufyCam S330 (T8160; eufyCam 3) | :heavy_check_mark: | Firmware: 3.1.8.6 (20221101) | | ![T8161 image](_media/eufycam3c_small.jpg) | eufyCam S300 (T8161; eufyCam 3C) | :heavy_check_mark: | Firmware: 3.1.8.6 (20221101) | | ![T8160 image](_media/eufycam3pro_small.png) | eufyCam S3 Pro (T8162; eufyCam S3 Pro) | :heavy_check_mark: | | +| ![T8172 image](_media/eufycams4_t8172_small.png) | eufyCam S4 (T8172) | :heavy_check_mark: | | +| ![T86P2 image](_media/eufycam_s330_4glte_small.jpg) | Eufy 4G LTE Cam S330 (T86P2) | :heavy_check_mark: | | | ![T8600 image](_media/eufycame330_small.jpg) | eufyCam E330 (Professional; T8600) | :heavy_check_mark: | Firmware: 0.5.9.5 (20231218) | | ![T8130 image](_media/solocame20_small.jpg) | SoloCam E20 (T8130) | :heavy_check_mark: | | | ![T8131 image](_media/solocame40_small.jpg) | SoloCam C120 (T8131; SoloCam E40) | :heavy_check_mark: | | @@ -57,6 +59,7 @@ | ![T8416 image](_media/indoorcamE30_small.jpeg) | Indoor Cam E30 (T8417) | :heavy_check_mark: | | | ![T8416 image](_media/indoorcamC210_small.png) | Indoor Cam C210 (T8419) | :heavy_check_mark: | | | ![T8416 image](_media/indoorcamC220_small.png) | Indoor Cam C220 (T8W11C; type 10008/10010) | :heavy_check_mark: | | +| ![T8416 image](_media/indoorcamC220_small.png) | Indoor Cam C220 (T8419N; type 10011) | :heavy_check_mark: | | | ![T8150 image](_media/4g_lte_starlight_small.jpg) | 4G LTE Starlight (T8150) | :heavy_check_mark: | | | ![T8150 image](_media/4g_lte_starlight_small.jpg) | 4G Camera S230 (T8151; 4G LTE Starlight) | :heavy_check_mark: | Firmware: 1.1.3.7 (20230730) | | ![T8150 image](_media/4g_lte_starlight_small.jpg) | 4G LTE Starlight (T8152) | :heavy_exclamation_mark: | | diff --git a/package-lock.json b/package-lock.json index 68342c57..6d64ce90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "eufy-security-client", - "version": "3.2.0", + "version": "3.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eufy-security-client", - "version": "3.2.0", + "version": "3.5.0", "license": "MIT", "dependencies": { "@cospired/i18n-iso-languages": "^4.2.0", "crypto-js": "^4.2.0", - "date-and-time": "^4.1.1", + "date-and-time": "^3.6.0", "fs-extra": "^11.2.0", "got": "^14.4.2", "i18n-iso-countries": "^7.12.0", @@ -30,7 +30,6 @@ }, "devDependencies": { "@types/crypto-js": "^4.2.2", - "@types/fs-extra": "^11.0.4", "@types/node": "^20.16.10", "@types/node-rsa": "^1.1.4", "@types/node-schedule": "^2.1.7", @@ -284,31 +283,12 @@ "integrity": "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==", "dev": true }, - "node_modules/@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", - "dev": true, - "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" - } - }, "node_modules/@types/http-cache-semantics": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", "license": "MIT" }, - "node_modules/@types/jsonfile": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.1.tgz", - "integrity": "sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/node": { "version": "20.16.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.10.tgz", @@ -932,12 +912,9 @@ "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "node_modules/date-and-time": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-4.1.1.tgz", - "integrity": "sha512-IqEzQvjaRO6KL6wxHaBsVZhzym+Kuk3VWmgydIjzbJD0Zwwa1YpvSZ/2rYR5qmAx1aDM8dMAxpQ9Wm4xQoUv3g==", - "engines": { - "node": ">=18" - } + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-3.6.0.tgz", + "integrity": "sha512-V99gLaMqNQxPCObBumb31Bfy3OByXnpqUM0yHPi/aBQE61g42A2rGk6Z2CDnpLrWsOFLQwOgl4Vgshw6D44ebw==" }, "node_modules/debug": { "version": "4.3.4", @@ -3267,30 +3244,11 @@ "integrity": "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==", "dev": true }, - "@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", - "dev": true, - "requires": { - "@types/jsonfile": "*", - "@types/node": "*" - } - }, "@types/http-cache-semantics": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==" }, - "@types/jsonfile": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.1.tgz", - "integrity": "sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, "@types/node": { "version": "20.16.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.10.tgz", @@ -3694,9 +3652,9 @@ "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "date-and-time": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-4.1.1.tgz", - "integrity": "sha512-IqEzQvjaRO6KL6wxHaBsVZhzym+Kuk3VWmgydIjzbJD0Zwwa1YpvSZ/2rYR5qmAx1aDM8dMAxpQ9Wm4xQoUv3g==" + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-3.6.0.tgz", + "integrity": "sha512-V99gLaMqNQxPCObBumb31Bfy3OByXnpqUM0yHPi/aBQE61g42A2rGk6Z2CDnpLrWsOFLQwOgl4Vgshw6D44ebw==" }, "debug": { "version": "4.3.4", diff --git a/package.json b/package.json index e9f43375..d45a6a79 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ }, "homepage": "https://github.com/bropat/eufy-security-client", "main": "build/index.js", + "exports": { + ".": "./build/index.js", + "./package.json": "./package.json" + }, "scripts": { "build:ts": "tsc -p tsconfig.build.json && npm run copy-proto-build", "copy-proto-build": "npx copyfiles -u 1 \"src/**/*.proto\" \"src/**/*.crt\" build", @@ -16,7 +20,8 @@ "watch:ts": "tsc -p tsconfig.build.json --watch", "watch": "npm run watch:ts", "lint": "eslint --ext .ts src", - "prepublishOnly": "tsc -p tsconfig.build.json && npm run copy-proto-build" + "prepublishOnly": "tsc -p tsconfig.build.json && npm run copy-proto-build", + "prepare": "npm run build" }, "license": "MIT", "keywords": [ diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 00000000..1b8e3a8f --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,92 @@ +# Development Utility Scripts + +This directory contains utility scripts for development and testing. + +## Device Discovery Script + +Discovers all devices on your Eufy account and displays their properties and parameters. + +**Usage:** +```bash +npx ts-node --transpile-only scripts/discover-device.ts [country] +``` + +**Example:** +```bash +npx ts-node --transpile-only scripts/discover-device.ts your.email@example.com yourpassword US +``` + +**Authentication:** +- The script will connect to your Eufy account using the provided credentials. +- If a **Captcha** is required, the image will be saved to a file in your current directory (named `captcha_.png`). You can open this file to view the captcha image and enter the code when prompted. +- If **2FA (Two-Factor Authentication)** is enabled, you will be prompted to enter the verification code sent to your email or SMS. The script will retry if an incorrect code is entered. + +**Output:** +- Lists all stations (hubs) and their configurations +- Lists all devices with their types, models, serials, and parameters +- Includes a device property analysis showing which properties are present/missing +- Helpful for debugging device configuration and parameter issues + +## Device Verification Script + +Verifies that all devices on your account are correctly recognized by the system's device classification functions (isCamera, hasBattery, isPanAndTiltCamera, etc.). + +**Usage:** +```bash +npx ts-node --transpile-only scripts/verify-devices.ts [country] +``` + +**Example:** +```bash +npx ts-node --transpile-only scripts/verify-devices.ts your.email@example.com yourpassword GB +``` + +**Authentication:** +- Same as Device Discovery Script: handles Captcha and 2FA prompts interactively +- Saves captcha images to disk for manual viewing if needed +- Retries 2FA code entry until successful + +**Output:** +- Classifies each device and shows test results (isCamera, hasBattery, isPanAndTilt, etc.) +- Highlights any misclassifications that need fixing +- Useful for ensuring device type configuration is correct + +## Universal Camera Properties Test + +Checks if a specific device type has its Properties and Commands correctly defined in the `http/types.ts` configuration maps. Also checks classification (isCamera, etc.). + +**Usage:** +```bash +npx ts-node --transpile-only scripts/test_camera_properties.ts +``` + +**Example:** +```bash +# Test EufyCam S4 (Type 89) +npx ts-node --transpile-only scripts/test_camera_properties.ts 89 +``` + +## Universal Camera P2P Flow Test + +Simulates an incoming P2P parameter update for a specific device to verify that `ParameterHelper` correctly parses the raw value. + +**Usage:** +```bash +npx ts-node --transpile-only scripts/test_camera_p2p_flow.ts [DeviceTypeNumber] [DeviceSN] [StationSN] +``` + +**Arguments:** +- `DeviceTypeNumber`: Integer (default: 89 for S4) +- `DeviceSN`: String (default: "T8172DEMO") +- `StationSN`: String (default: "T8030DEMO") + +**Example:** +```bash +npx ts-node --transpile-only scripts/test_camera_p2p_flow.ts 89 T8172TEST1 T8030TEST1 +``` + +## Notes + +- **Country**: Use 2-letter ISO country code (e.g., US, GB, DE, FR). Should match your Eufy app setting. +- **2FA/Captcha**: If prompted for 2FA or captcha, you may need to log in via the Eufy app first. +- Scripts require `npm install` to have been run first. diff --git a/scripts/discover-device.ts b/scripts/discover-device.ts new file mode 100644 index 00000000..3886a7dd --- /dev/null +++ b/scripts/discover-device.ts @@ -0,0 +1,236 @@ +/** + * Eufy Device Discovery Script + * + * This script connects to the Eufy API and dumps detailed information + * about all devices, including their params (which reveal supported features). + * + * Usage: + * npx ts-node scripts/discover-device.ts [country] + * + * Example: + * npx ts-node scripts/discover-device.ts user@email.com password123 US + */ + +/// +declare const process: NodeJS.Process; + +import { HTTPApi } from "../src/http/api"; +import { DeviceListResponse, StationListResponse } from "../src/http/models"; +import readline from "readline"; +import fs from "fs"; +import path from "path"; + +async function main() { + const args = process.argv.slice(2); + + if (args.length < 2) { + console.log("Usage: npx ts-node scripts/discover-device.ts [country]"); + console.log("Example: npx ts-node scripts/discover-device.ts user@email.com password US"); + process.exit(1); + } + + const username = args[0]; + const password = args[1]; + const country = args[2] || "US"; + + console.log(`\n=== Eufy Device Discovery Script ===\n`); + console.log(`Country: ${country}`); + console.log(`Username: ${username}`); + console.log(`\nConnecting to Eufy API...\n`); + + try { + // Initialize the API + const api = await HTTPApi.initialize(country, username, password); + + // Interactive handling for captcha and 2FA using API events (no external changes) + const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); + const question = (q: string) => new Promise((res) => rl.question(q, (ans) => res(ans.trim()))); + + api.on("captcha request", async (captchaId: string, item: string) => { + console.log("\nAPI requires captcha verification."); + // item is typically a base64-encoded image or URL + if (item.startsWith("data:image")) { + // Base64 image data + const base64Data = item.split(",")[1]; + const buffer = Buffer.from(base64Data, "base64"); + const captchaPath = path.join(process.cwd(), `captcha_${captchaId}.png`); + fs.writeFileSync(captchaPath, buffer); + console.log(`Captcha image saved to: ${captchaPath}`); + } else if (item.startsWith("http")) { + // URL + console.log(`Captcha URL: ${item}`); + } else { + // Plain text or other format + console.log(`Captcha item: ${item}`); + } + const code = await question("Enter captcha code: "); + console.log("Submitting captcha and re-attempting login..."); + await api.login({ captcha: { captchaId: captchaId, captchaCode: code }, force: false }); + }); + + api.on("tfa request", async () => { + console.log("\nAPI requested 2FA verification (email/SMS)."); + let verified = false; + while (!verified) { + const code = await question("Enter verification code: "); + console.log("Submitting 2FA code..."); + try { + await api.login({ verifyCode: code, force: false }); + console.log("2FA verification successful!"); + verified = true; + } catch (err) { + console.error("2FA verification failed. Please check the code and try again."); + } + } + }); + + // Wait for the API to confirm connection (handles interactive flows) + const waitForConnect = new Promise((resolve, reject) => { + api.once("connect", () => resolve()); + api.once("connection error", (err: Error) => reject(err)); + }); + + console.log("Logging in..."); + await api.login(); + await waitForConnect; + rl.close(); + + console.log("✓ Connected successfully!\n"); + + // Debug: Try to get device list directly (before refresh) + console.log("DEBUG: Trying getDeviceList directly..."); + const rawDevices = await api.getDeviceList(); + console.log(`DEBUG: getDeviceList returned ${rawDevices.length} devices`); + if (rawDevices.length > 0) { + console.log("DEBUG: First device:", JSON.stringify(rawDevices[0], null, 2)); + } + + console.log("\nDEBUG: Trying getStationList directly..."); + const rawStations = await api.getStationList(); + console.log(`DEBUG: getStationList returned ${rawStations.length} stations`); + if (rawStations.length > 0) { + console.log("DEBUG: First station:", JSON.stringify(rawStations[0], null, 2)); + } + + // Refresh data from server + console.log("\nRefreshing data from Eufy servers...\n"); + await api.refreshAllData(); + console.log("✓ Data refreshed!\n"); + + // Get all stations from cache + console.log("=== STATIONS ===\n"); + const hubs = api.getHubs(); + + for (const [sn, station] of Object.entries(hubs)) { + console.log(`Station: ${station.station_name}`); + console.log(` Model: ${station.station_model}`); + console.log(` Serial: ${station.station_sn}`); + console.log(` Type: ${station.device_type}`); + console.log(` SW Version: ${station.main_sw_version}`); + console.log(` HW Version: ${station.main_hw_version}`); + console.log(` P2P DID: ${station.p2p_did}`); + + if (station.params && station.params.length > 0) { + console.log(` Params (${station.params.length}):`); + for (const param of station.params) { + console.log(` [${param.param_type}]: ${param.param_value}`); + } + } + console.log(""); + } + + // Get all devices from cache + console.log("\n=== DEVICES ===\n"); + const devices = api.getDevices(); + + for (const [sn, device] of Object.entries(devices)) { + console.log(`Device: ${device.device_name}`); + console.log(` Model: ${device.device_model}`); + console.log(` Serial: ${device.device_sn}`); + console.log(` Type: ${device.device_type}`); + console.log(` Station: ${device.station_sn}`); + console.log(` SW Version: ${device.main_sw_version}`); + console.log(` HW Version: ${device.main_hw_version}`); + console.log(` WiFi SSID: ${device.wifi_ssid || "N/A"}`); + console.log(` Local IP: ${device.local_ip || "N/A"}`); + + if (device.params && device.params.length > 0) { + console.log(` Params (${device.params.length}):`); + for (const param of device.params) { + // Try to parse JSON values + let value = param.param_value; + try { + const parsed = JSON.parse(param.param_value); + value = JSON.stringify(parsed, null, 4).replace(/\n/g, "\n "); + } catch { + // Not JSON, use raw value + } + console.log(` [${param.param_type}]: ${value}`); + } + } + + // If this is the S4 (type 89), print extra info + if (device.device_type === 89) { + console.log(`\n *** THIS IS THE EUFYCAM S4 (T8172) ***`); + console.log(` Full raw device data:`); + console.log(JSON.stringify(device, null, 2)); + } + + console.log(""); + } + + console.log("\n=== DEVICE PROPERTY ANALYSIS ===\n"); + + // Check for S4 device (type 89) and verify it has timezone + guard mode properties + const s4Device = Object.values(devices).find(d => d.device_type === 89); + if (s4Device) { + console.log("✓ S4 Device Found (Type 89):"); + console.log(` Model: ${s4Device.device_model}`); + console.log(` Serial: ${s4Device.device_sn}`); + console.log(` Name: ${s4Device.device_name}`); + console.log(` Station: ${s4Device.station_sn}`); + + // Check for timezone param (1249) + const tzParam = s4Device.params?.find(p => p.param_type === 1249); + console.log(` Timezone Property (1249): ${tzParam ? '✓ PRESENT - ' + tzParam.param_value : '✗ MISSING'}`); + + // Check for guard mode param (1224) + const gmParam = s4Device.params?.find(p => p.param_type === 1224); + console.log(` Guard Mode Property (1224): ${gmParam ? '✓ PRESENT - ' + gmParam.param_value : '✗ MISSING'}`); + + console.log(`\n All params for S4 (${s4Device.params?.length || 0} total):`); + s4Device.params?.forEach(p => { + console.log(` - Type ${p.param_type}: ${p.param_value}`); + }); + } else { + console.log("✗ S4 Device (Type 89) NOT FOUND in your account"); + } + + console.log("\n=== SUMMARY ===\n"); + console.log(`Total Stations: ${Object.keys(hubs).length}`); + console.log(`Total Devices: ${Object.keys(devices).length}`); + + // List device types found + const types = new Map(); + for (const [sn, device] of Object.entries(devices)) { + types.set(device.device_type, device.device_model); + } + console.log(`\nDevice Types Found:`); + for (const [type, model] of types) { + console.log(` Type ${type}: ${model}`); + } + + } catch (error) { + console.error("Error:", error); + + if (error instanceof Error) { + if (error.message.includes("captcha")) { + console.log("\n⚠️ Captcha required - you may need to log in via the Eufy app first"); + } else if (error.message.includes("verify")) { + console.log("\n⚠️ 2FA verification required - run again after receiving code"); + } + } + } +} + +main(); diff --git a/scripts/test_camera_p2p_flow.ts b/scripts/test_camera_p2p_flow.ts new file mode 100644 index 00000000..607c1f3c --- /dev/null +++ b/scripts/test_camera_p2p_flow.ts @@ -0,0 +1,111 @@ +import { DeviceType } from "../src/http/types"; +import { CommandType } from "../src/p2p/types"; +import { ParameterHelper } from "../src/http/parameter"; +import { EventEmitter } from "events"; + +// --- Argument Parsing --- +const args = process.argv.slice(2); +const deviceTypeArg = args[0] ? parseInt(args[0]) : DeviceType.EUFYCAM_S4; // Default to S4 (89) +const deviceSnArg = args[1] || "T8172DEMO"; +const stationSnArg = args[2] || "T8030DEMO"; + +console.log(`Running P2P Flow Test with:`); +console.log(` Device Type: ${deviceTypeArg}`); +console.log(` Device SN: ${deviceSnArg}`); +console.log(` Station SN: ${stationSnArg}`); +console.log("---------------------------------------------------"); + +interface Logger { + trace(message: string, ...args: any[]): void; + debug(message: string, ...args: any[]): void; + info(message: string, ...args: any[]): void; + warn(message: string, ...args: any[]): void; + error(message: string, ...args: any[]): void; +} + +// Mock Logger +const mockLogger = { + debug: () => { }, + info: () => { }, + warn: () => { }, + error: console.error, + trace: () => { }, +} as unknown as Logger; + +// Mock Station +class MockStation extends EventEmitter { + public rawStation: any; + + constructor() { + super(); + this.rawStation = { + station_sn: stationSnArg, + devices: [ + { + device_sn: deviceSnArg, + device_name: "Test Camera", + device_channel: 1, + device_type: deviceTypeArg + } + ] + }; + } + + public getSerial() { return stationSnArg; } + public isIntegratedDevice() { return false; } // Assuming non-integrated for general P2P flow + public getDeviceType() { return DeviceType.HB3; } // Defaulting to HB3 as host + + public _getDeviceSerial(channel: number) { + if (channel === 1) return deviceSnArg; + return ""; + } + + public _handleCameraInfoParameters(devices: any, channel: number, type: number, value: string) { + const device_sn = this._getDeviceSerial(channel); + if (device_sn !== "") { + if (!devices[device_sn]) { + devices[device_sn] = {}; + } + + const parsedValue = ParameterHelper.readValue(device_sn, type, value, mockLogger as any); + console.log(`readValue(sn=${device_sn}, type=${type}, value=${value}) = ${parsedValue}`); + + if (parsedValue !== undefined) { + devices[device_sn][type] = { + value: parsedValue, + source: "p2p" + }; + } + } + } +} + +async function runTest() { + console.log("Testing P2P Parameter Handling..."); + + // Test Case: Receiving Battery Level (Command 1101) + // 1101 is CMD_GET_BATTERY in CommandType (src/p2p/types.ts). + const CMD_BATTERY = CommandType.CMD_GET_BATTERY; + + // We can also test CMD_MOTION_SENSOR_PIR_SENSITIVITY (1204) if applicable, + // but sticking to battery as a universal baseline. + + const station = new MockStation(); + const devices: { [key: string]: any } = {}; + + console.log(`\nSimulating incoming P2P command ${CMD_BATTERY} (CMD_GET_BATTERY) with value "90"...`); + + // Simulate typical P2P values + // Battery = 90 (string "90") + station._handleCameraInfoParameters(devices, 1, CMD_BATTERY, "90"); + + if (devices[deviceSnArg] && devices[deviceSnArg][CMD_BATTERY]) { + console.log(`SUCCESS: Battery level parsed: ${devices[deviceSnArg][CMD_BATTERY].value}`); + } else { + console.error("FAILURE: Battery level NOT parsed"); + } + + console.log("\nDone."); +} + +runTest(); diff --git a/scripts/test_camera_properties.ts b/scripts/test_camera_properties.ts new file mode 100644 index 00000000..9cdea13d --- /dev/null +++ b/scripts/test_camera_properties.ts @@ -0,0 +1,61 @@ +import { DeviceType, DeviceProperties, StationProperties, StationCommands, DeviceCommands } from "../src/http/types"; +import { Device as DeviceClass } from "../src/http/device"; + +// --- Argument Parsing --- +const args = process.argv.slice(2); +// Default to S4 (89) if no arg provided +const typeArgRaw = args[0]; +const deviceType = typeArgRaw ? parseInt(typeArgRaw) : DeviceType.EUFYCAM_S4; + +console.log(`Testing Configuration for Device Type: ${deviceType}`); +console.log("---------------------------------------------------"); + +// Check if it's a known DeviceType name +const typeName = Object.keys(DeviceType).find(key => DeviceType[key as keyof typeof DeviceType] === deviceType); +if (typeName) { + console.log(`Device Type Name: ${typeName}`); +} else { + console.warn(`WARNING: Unknown DeviceType enum value: ${deviceType}`); +} + +// Check Device Properties +const deviceProps = DeviceProperties[deviceType]; +if (deviceProps) { + console.log(`✅ DeviceProperties found. Count: ${Object.keys(deviceProps).length}`); +} else { + console.error(`❌ DeviceProperties is UNDEFINED!`); +} + +// Check Station Properties +const stationProps = StationProperties[deviceType]; +if (stationProps) { + console.log(`✅ StationProperties found. Count: ${Object.keys(stationProps).length}`); +} else { + console.error(`❌ StationProperties is UNDEFINED!`); +} + +// Check Device Commands +const deviceCmds = DeviceCommands[deviceType]; +if (deviceCmds) { + console.log(`✅ DeviceCommands found. Count: ${deviceCmds.length}`); +} else { + console.error(`❌ DeviceCommands is UNDEFINED!`); +} + +// Check Station Commands +const stationCmds = StationCommands[deviceType]; +if (stationCmds) { + console.log(`✅ StationCommands found. Count: ${stationCmds.length}`); +} else { + console.error(`❌ StationCommands is UNDEFINED!`); +} + +// Check Device Class identification +console.log("\n--- Device Class Classifications ---"); +console.log(`isCamera(${deviceType}): ${DeviceClass.isCamera(deviceType)}`); +console.log(`isOutdoorPanAndTiltCamera(${deviceType}): ${DeviceClass.isOutdoorPanAndTiltCamera(deviceType)}`); +console.log(`isSoloCameras(${deviceType}): ${DeviceClass.isSoloCameras(deviceType)}`); +console.log(`isIntegratedDeviceBySn("..."): (Depends on SN format check, skipping specific SN check)`); +console.log(`hasBattery(${deviceType}): ${DeviceClass.hasBattery(deviceType)}`); + +console.log("\nTest Complete."); diff --git a/scripts/verify-devices.ts b/scripts/verify-devices.ts new file mode 100644 index 00000000..f2b1f33e --- /dev/null +++ b/scripts/verify-devices.ts @@ -0,0 +1,236 @@ +/** + * Device Recognition Verification Test Script + * + * This script connects to the Eufy API and verifies that all devices + * are correctly recognized by the system's device classification functions. + * + * Usage: + * npx ts-node --transpile-only scripts/verify-devices.ts [country] + */ + +/// +declare const process: NodeJS.Process; + +import { HTTPApi } from "../src/http/api"; +import { Device, Camera } from "../src/http/device"; +import { DeviceType } from "../src/http/types"; +import readline from "readline"; + +interface TestResult { + device: string; + model: string; + type: number; + typeName: string; + tests: { + name: string; + expected: boolean; + actual: boolean; + passed: boolean; + }[]; + allPassed: boolean; +} + +// Map of device types to their expected classifications +const expectedClassifications: Record = { + // Floodlight Camera 8425 (T8425) - HAS PTZ + 47: { isCamera: true, hasBattery: false, isPanAndTilt: true }, + + // eufyCam S4 (T8172) + 89: { isCamera: true, hasBattery: true, isPanAndTilt: true, isOutdoorPanAndTilt: true }, + + // Video Doorbell E340 (T8214) + 94: { isCamera: true, hasBattery: true, isPanAndTilt: false }, + + // Indoor Cam C220 V2 (T8W11C) + 10010: { isCamera: true, hasBattery: false, isPanAndTilt: true, isIndoorCamera: true }, + + // SmartTrack Link (T87B0) - Note: has battery but not in hasBattery() function (pre-existing issue) + 157: { isCamera: false, hasBattery: false, isPanAndTilt: false }, +}; + +async function main() { + const args = process.argv.slice(2); + + if (args.length < 2) { + console.log("Usage: npx ts-node --transpile-only scripts/verify-devices.ts [country]"); + process.exit(1); + } + + const username = args[0]; + const password = args[1]; + const country = args[2] || "US"; + + console.log(`\n${"=".repeat(60)}`); + console.log(" EUFY DEVICE RECOGNITION VERIFICATION TEST"); + console.log(`${"=".repeat(60)}\n`); + console.log(`Country: ${country}`); + console.log(`Username: ${username}\n`); + + try { + // Initialize and login + console.log("Connecting to Eufy API..."); + const api = await HTTPApi.initialize(country, username, password); + + // Interactive handling for captcha and 2FA using API events (no external changes) + const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); + const question = (q: string) => new Promise((res) => rl.question(q, (ans) => res(ans.trim()))); + + api.on("captcha request", async (captchaId: string, item: string) => { + console.log("\nAPI requires captcha verification."); + console.log("Captcha item:", item); + const code = await question("Enter captcha code: "); + console.log("Submitting captcha and re-attempting login..."); + await api.login({ captcha: { captchaId: captchaId, captchaCode: code }, force: false }); + }); + + api.on("tfa request", async () => { + console.log("\nAPI requested 2FA verification (email/SMS)."); + let verified = false; + while (!verified) { + const code = await question("Enter verification code: "); + console.log("Submitting 2FA code..."); + try { + await api.login({ verifyCode: code, force: false }); + console.log("2FA verification successful!"); + verified = true; + } catch (err) { + console.error("2FA verification failed. Please check the code and try again."); + } + } + }); + + // Wait for the API to confirm connection (handles interactive flows) + const waitForConnect = new Promise((resolve, reject) => { + api.once("connect", () => resolve()); + api.once("connection error", (err: Error) => reject(err)); + }); + + console.log("Logging in..."); + await api.login(); + await waitForConnect; + rl.close(); + + console.log("✓ Connected successfully!\n"); + + // Refresh data + console.log("Refreshing device data..."); + await api.refreshAllData(); + console.log("✓ Data refreshed!\n"); + + const devices = api.getDevices(); + const results: TestResult[] = []; + let totalPassed = 0; + let totalFailed = 0; + + console.log(`${"=".repeat(60)}`); + console.log(" DEVICE TESTS"); + console.log(`${"=".repeat(60)}\n`); + + for (const [sn, device] of Object.entries(devices)) { + const type = device.device_type; + const typeName = DeviceType[type] || `UNKNOWN(${type})`; + const model = device.device_model; + const name = device.device_name; + + console.log(`📷 ${name} (${model})`); + console.log(` Type: ${type} (${typeName})`); + console.log(` Serial: ${sn}`); + console.log(` Tests:`); + + const testResult: TestResult = { + device: name, + model: model, + type: type, + typeName: typeName, + tests: [], + allPassed: true + }; + + // Run classification tests + const tests = [ + { name: "isCamera", fn: () => Device.isCamera(type), expected: expectedClassifications[type]?.isCamera }, + { name: "hasBattery", fn: () => Device.hasBattery(type), expected: expectedClassifications[type]?.hasBattery }, + { name: "isPanAndTiltCamera", fn: () => Device.isPanAndTiltCamera(type), expected: expectedClassifications[type]?.isPanAndTilt }, + { name: "isOutdoorPanAndTiltCamera", fn: () => Device.isOutdoorPanAndTiltCamera(type), expected: expectedClassifications[type]?.isOutdoorPanAndTilt }, + { name: "isIndoorCamera", fn: () => Device.isIndoorCamera(type), expected: expectedClassifications[type]?.isIndoorCamera }, + ]; + + for (const test of tests) { + const actual = test.fn(); + const expected = test.expected; + + // If we have an expected value, check it; otherwise just report actual + if (expected !== undefined) { + const passed = actual === expected; + const icon = passed ? "✅" : "❌"; + console.log(` ${icon} ${test.name}: ${actual} (expected: ${expected})`); + + testResult.tests.push({ + name: test.name, + expected: expected, + actual: actual, + passed: passed + }); + + if (passed) { + totalPassed++; + } else { + totalFailed++; + testResult.allPassed = false; + } + } else { + console.log(` ℹ️ ${test.name}: ${actual}`); + testResult.tests.push({ + name: test.name, + expected: actual, // No expectation, just report + actual: actual, + passed: true + }); + } + } + + results.push(testResult); + console.log(""); + } + + // Summary + console.log(`${"=".repeat(60)}`); + console.log(" SUMMARY"); + console.log(`${"=".repeat(60)}\n`); + + console.log(`Total Devices Tested: ${Object.keys(devices).length}`); + console.log(`Tests Passed: ${totalPassed}`); + console.log(`Tests Failed: ${totalFailed}`); + console.log(""); + + // Device type coverage + console.log("Device Types Found:"); + for (const result of results) { + const status = result.allPassed ? "✅" : "❌"; + console.log(` ${status} Type ${result.type}: ${result.typeName} (${result.model})`); + } + + // Final status + console.log(""); + if (totalFailed === 0) { + console.log("🎉 ALL TESTS PASSED!"); + } else { + console.log(`⚠️ ${totalFailed} TEST(S) FAILED - Review the results above`); + } + + // Exit with appropriate code + process.exit(totalFailed > 0 ? 1 : 0); + + } catch (error) { + console.error("Error:", error); + process.exit(1); + } +} + +main(); diff --git a/src/http/device.ts b/src/http/device.ts index b85b0c38..0c3e2273 100644 --- a/src/http/device.ts +++ b/src/http/device.ts @@ -1008,6 +1008,7 @@ export class Device extends TypedEmitter { type == DeviceType.INDOOR_CAMERA_1080 || type == DeviceType.INDOOR_PT_CAMERA_1080 || type == DeviceType.OUTDOOR_PT_CAMERA || + type == DeviceType.EUFYCAM_S4 || type == DeviceType.SOLO_CAMERA || type == DeviceType.SOLO_CAMERA_PRO || type == DeviceType.SOLO_CAMERA_SPOTLIGHT_1080 || @@ -1032,16 +1033,19 @@ export class Device extends TypedEmitter { type == DeviceType.CAMERA_GARAGE_T8453 || type == DeviceType.CAMERA_GARAGE_T8452 || type == DeviceType.CAMERA_FG || + type == DeviceType.EUFY_S330_4G_LTE || type == DeviceType.INDOOR_PT_CAMERA_S350 || type == DeviceType.INDOOR_PT_CAMERA_E30 || type == DeviceType.INDOOR_PT_CAMERA_C210 || type == DeviceType.INDOOR_PT_CAMERA_C220 || type == DeviceType.INDOOR_PT_CAMERA_C220_V2 || + type == DeviceType.INDOOR_PT_CAMERA_C220_V3 || type == DeviceType.SMART_DROP; } static hasBattery(type: number): boolean { - return type == DeviceType.CAMERA || + return ( + type == DeviceType.CAMERA || type == DeviceType.CAMERA2 || type == DeviceType.CAMERA_E || type == DeviceType.CAMERA2C || @@ -1079,9 +1083,12 @@ export class Device extends TypedEmitter { type == DeviceType.SMART_SAFE_7402 || type == DeviceType.SMART_SAFE_7403 || type == DeviceType.CAMERA_FG || + type == DeviceType.EUFY_S330_4G_LTE || type == DeviceType.WALL_LIGHT_CAM_81A0 || type == DeviceType.SMART_DROP || - type == DeviceType.OUTDOOR_PT_CAMERA; + type == DeviceType.OUTDOOR_PT_CAMERA || + type == DeviceType.EUFYCAM_S4 //TODO: Add other battery devices + ); } static isStation(type: number): boolean { @@ -1150,11 +1157,12 @@ export class Device extends TypedEmitter { type == DeviceType.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT || type == DeviceType.INDOOR_OUTDOOR_CAMERA_2K || type == DeviceType.INDOOR_COST_DOWN_CAMERA || - type == DeviceType.INDOOR_PT_CAMERA_S350 || - type == DeviceType.INDOOR_PT_CAMERA_E30 || + type == DeviceType.INDOOR_PT_CAMERA_S350 || + type == DeviceType.INDOOR_PT_CAMERA_E30 || type == DeviceType.INDOOR_PT_CAMERA_C210 || type == DeviceType.INDOOR_PT_CAMERA_C220 || - type == DeviceType.INDOOR_PT_CAMERA_C220_V2) + type == DeviceType.INDOOR_PT_CAMERA_C220_V2 || + type == DeviceType.INDOOR_PT_CAMERA_C220_V3) return true; return false; } @@ -1167,29 +1175,32 @@ export class Device extends TypedEmitter { type == DeviceType.FLOODLIGHT_CAMERA_8426 || type == DeviceType.INDOOR_COST_DOWN_CAMERA || type == DeviceType.OUTDOOR_PT_CAMERA || + type == DeviceType.EUFYCAM_S4 || type == DeviceType.INDOOR_PT_CAMERA_S350 || - type == DeviceType.INDOOR_PT_CAMERA_E30 || + type == DeviceType.INDOOR_PT_CAMERA_E30 || type == DeviceType.INDOOR_PT_CAMERA_C210 || type == DeviceType.INDOOR_PT_CAMERA_C220 || - type == DeviceType.INDOOR_PT_CAMERA_C220_V2) + type == DeviceType.INDOOR_PT_CAMERA_C220_V2 || + type == DeviceType.INDOOR_PT_CAMERA_C220_V3) return true; return false; } static isOutdoorPanAndTiltCamera(type: number): boolean { if (type == DeviceType.OUTDOOR_PT_CAMERA || - type == DeviceType.SOLO_CAMERA_E30) + type == DeviceType.EUFYCAM_S4 || + type == DeviceType.SOLO_CAMERA_E30) return true; return false; } static isIndoorPanAndTiltCameraS350(type: number): boolean { if (type == DeviceType.INDOOR_PT_CAMERA_S350 || - type == DeviceType.INDOOR_PT_CAMERA_E30 || + type == DeviceType.INDOOR_PT_CAMERA_E30 || type == DeviceType.INDOOR_PT_CAMERA_C210 || type == DeviceType.INDOOR_PT_CAMERA_C220 || type == DeviceType.INDOOR_PT_CAMERA_C220_V2 || - type == DeviceType.INDOOR_PT_CAMERA) + type == DeviceType.INDOOR_PT_CAMERA_C220_V3) return true; return false; } @@ -1567,7 +1578,8 @@ export class Device extends TypedEmitter { return sn.startsWith("T8150") || sn.startsWith("T8151") || sn.startsWith("T8152") || - sn.startsWith("T8153"); + sn.startsWith("T8153") || + sn.startsWith("T86P2"); } static isSmartSafeBySn(sn: string): boolean { @@ -2348,7 +2360,7 @@ export class SoloCamera extends Camera { public processPushNotification(station: Station, message: PushMessage, eventDurationSeconds: number): void { super.processPushNotification(station, message, eventDurationSeconds); - if (message.type !== undefined && message.event_type !== undefined && message.msg_type !== DeviceType.HB3) { + if (message.type !== undefined && message.event_type !== undefined) { // HB3 check removed if (message.device_sn === this.getSerial()) { try { loadEventImage(station, this.api, this, message, this.pictureEventTimeouts); @@ -2438,7 +2450,7 @@ export class IndoorCamera extends Camera { public processPushNotification(station: Station, message: PushMessage, eventDurationSeconds: number): void { super.processPushNotification(station, message, eventDurationSeconds); - if (message.type !== undefined && message.event_type !== undefined && message.msg_type !== DeviceType.HB3) { + if (message.type !== undefined && message.event_type !== undefined) { // HB3 check removed if (message.device_sn === this.getSerial()) { try { loadEventImage(station, this.api, this, message, this.pictureEventTimeouts); @@ -2596,7 +2608,7 @@ export class DoorbellCamera extends Camera { public processPushNotification(station: Station, message: PushMessage, eventDurationSeconds: number): void { super.processPushNotification(station, message, eventDurationSeconds); - if (message.type !== undefined && message.event_type !== undefined && message.msg_type !== DeviceType.HB3) { + if (message.type !== undefined && message.event_type !== undefined) { // HB3 check removed if (message.device_sn === this.getSerial()) { try { loadEventImage(station, this.api, this, message, this.pictureEventTimeouts); @@ -2817,7 +2829,7 @@ export class FloodlightCamera extends Camera { public processPushNotification(station: Station, message: PushMessage, eventDurationSeconds: number): void { super.processPushNotification(station, message, eventDurationSeconds); - if (message.type !== undefined && message.event_type !== undefined && message.msg_type !== DeviceType.HB3) { + if (message.type !== undefined && message.event_type !== undefined) { // HB3 check removed if (message.device_sn === this.getSerial()) { try { loadEventImage(station, this.api, this, message, this.pictureEventTimeouts); diff --git a/src/http/types.ts b/src/http/types.ts index 5b3d4a41..8019d26b 100644 --- a/src/http/types.ts +++ b/src/http/types.ts @@ -56,6 +56,7 @@ export enum DeviceType { SOLO_CAMERA_C210 = 64, FLOODLIGHT_CAMERA_8426 = 87, //E30 SOLO_CAMERA_E30 = 88, + EUFYCAM_S4 = 89, // T8172 - Outdoor PTZ Dual Camera (no floodlight) SMART_DROP = 90, BATTERY_DOORBELL_PLUS = 91, DOORBELL_SOLO = 93, @@ -68,6 +69,7 @@ export enum DeviceType { INDOOR_PT_CAMERA_S350 = 104, INDOOR_PT_CAMERA_E30 = 105, CAMERA_FG = 110, //T8150 + EUFY_S330_4G_LTE = 111, //T86P2 CAMERA_GARAGE_T8453_COMMON = 131, CAMERA_GARAGE_T8452 = 132, CAMERA_GARAGE_T8453 = 133, @@ -84,7 +86,8 @@ export enum DeviceType { INDOOR_PT_CAMERA_C220 = 10008, // T8W11C INDOOR_PT_CAMERA_C210 = 10009, // T8419 / T8W11P? INDOOR_PT_CAMERA_C220_V2 = 10010, // T8W11C (Type 10010) - CAMERA_C35 = 10035 //T8110 + INDOOR_PT_CAMERA_C220_V3 = 10011, // T8419N + CAMERA_C35 = 10035, //T8110 } export enum ParamType { @@ -584,7 +587,7 @@ export enum PropertyName { DeviceWifiRSSI = "wifiRssi", DeviceWifiSignalLevel = "wifiSignalLevel", DeviceEnabled = "enabled", - DeviceAntitheftDetection= "antitheftDetection", + DeviceAntitheftDetection = "antitheftDetection", DeviceAutoNightvision = "autoNightvision", DeviceNightvision = "nightvision", DeviceStatusLed = "statusLed", @@ -998,6 +1001,7 @@ export const GenericTypeProperty: PropertyMetadataNumeric = { 64: "Solo Camera C210", 87: "Floodlight Camera E30", 88: "Solo Camera E30", + 89: "eufyCam S4 (T8172)", 90: "Smart Drop S300 (T8790)", 91: "Video Doorbell Dual", 93: "Video Doorbell Dual (Wired)", @@ -1008,6 +1012,7 @@ export const GenericTypeProperty: PropertyMetadataNumeric = { 102: "Camera Snail", 104: "Indoor Camera S350", 110: "Starlight 4G LTE", //T8150 + 111: "Eufy 4G LTE Cam S330 (T86P2)", 131: "Camera Garage T8453 Common", 132: "Garage-Control Cam E110 (T8452)", 133: "Garage-Control Cam E120 (T8453)", @@ -1024,6 +1029,7 @@ export const GenericTypeProperty: PropertyMetadataNumeric = { 10008: "Indoor Cam C220 (T8W11C)", 10009: "Indoor Cam C210 (T8419)", 10010: "Indoor Cam C220 (T8W11C)", + 10011: "Indoor Cam C220 (T8419N)", 10035: "eufyCam C35 (T8110)", }, } @@ -1363,7 +1369,7 @@ export const DeviceStatusLedDoorbellProperty: PropertyMetadataBoolean = { export const DeviceStatusLedT8200XProperty: PropertyMetadataBoolean = { ...DeviceStatusLedProperty, - key:ParamType.COMMAND_LED_NIGHT_OPEN, + key: ParamType.COMMAND_LED_NIGHT_OPEN, commandId: ParamType.COMMAND_LED_NIGHT_OPEN, }; @@ -6149,7 +6155,7 @@ export const DeviceProperties: Properties = { [PropertyName.DeviceRecordingRetriggerInterval]: DeviceRecordingRetriggerIntervalBatteryDoorbellProperty, [PropertyName.DeviceRecordingEndClipMotionStops]: DeviceRecordingEndClipMotionStopsProperty, [PropertyName.DeviceVideoStreamingQuality]: DeviceVideoStreamingQualityBatteryDoorbellProperty, //OK - [PropertyName.DeviceVideoRecordingQuality]:DeviceVideoRecordingQualityT8530Property, //OK + [PropertyName.DeviceVideoRecordingQuality]: DeviceVideoRecordingQualityT8530Property, //OK [PropertyName.DeviceChimeIndoor]: DeviceChimeIndoorBatteryDoorbellProperty, [PropertyName.DeviceChimeHomebase]: DeviceChimeHomebaseBatteryDoorbellProperty, //OK [PropertyName.DeviceChimeHomebaseRingtoneVolume]: DeviceChimeHomebaseRingtoneVolumeBatteryDoorbellProperty, //OK @@ -7126,6 +7132,51 @@ export const DeviceProperties: Properties = { [PropertyName.DeviceCellularIMEI]: DeviceCellularIMEIProperty, [PropertyName.DeviceCellularICCID]: DeviceCellularICCIDProperty, }, + [DeviceType.EUFY_S330_4G_LTE]: { + ...GenericDeviceProperties, + [PropertyName.DeviceEnabled]: DeviceEnabledSoloProperty, + [PropertyName.DeviceBattery]: DeviceBatteryProperty, + [PropertyName.DeviceBatteryTemp]: DeviceBatteryTempProperty, + [PropertyName.DeviceNightvision]: DeviceNightvisionProperty, + [PropertyName.DeviceMotionDetection]: DeviceMotionDetectionIndoorSoloFloodProperty, + [PropertyName.DeviceWatermark]: DeviceWatermarkSoloWiredDoorbellProperty, + [PropertyName.DeviceMotionDetected]: DeviceMotionDetectedProperty, + [PropertyName.DevicePersonDetected]: DevicePersonDetectedProperty, + [PropertyName.DeviceStatusLed]: DeviceStatusLedProperty, + [PropertyName.DevicePicture]: DevicePictureProperty, + [PropertyName.DevicePictureUrl]: DevicePictureUrlProperty, + [PropertyName.DeviceMicrophone]: DeviceMicrophoneProperty, + [PropertyName.DeviceSpeaker]: DeviceSpeakerProperty, + [PropertyName.DeviceSpeakerVolume]: DeviceSpeakerVolumeSoloProperty, + [PropertyName.DeviceAudioRecording]: DeviceAudioRecordingStarlight4gLTEProperty, + [PropertyName.DeviceMotionDetectionType]: DeviceMotionDetectionTypeProperty, + [PropertyName.DevicePowerWorkingMode]: DevicePowerWorkingModeProperty, + [PropertyName.DeviceRecordingClipLength]: DeviceRecordingClipLengthProperty, + [PropertyName.DeviceRecordingRetriggerInterval]: DeviceRecordingRetriggerIntervalProperty, + [PropertyName.DeviceRecordingEndClipMotionStops]: DeviceRecordingEndClipMotionStopsProperty, + [PropertyName.DeviceVideoStreamingQuality]: DeviceVideoStreamingQualitySoloProperty, + [PropertyName.DeviceVideoRecordingQuality]: DeviceVideoRecordingQualityProperty, + [PropertyName.DeviceNotificationType]: DeviceNotificationTypeIndoorFloodlightProperty, + [PropertyName.DeviceMotionDetectionSensitivity]: DeviceMotionDetectionSensitivitySoloProperty, + [PropertyName.DeviceLastChargingDays]: DeviceLastChargingDaysProperty, + [PropertyName.DeviceLastChargingRecordedEvents]: DeviceLastChargingRecordedEventsProperty, + [PropertyName.DeviceLastChargingTotalEvents]: DeviceLastChargingTotalEventsProperty, + [PropertyName.DeviceBatteryUsageLastWeek]: DeviceBatteryUsageLastWeekProperty, + [PropertyName.DeviceState]: DeviceStateProperty, + [PropertyName.DeviceChargingStatus]: DeviceChargingStatusProperty, + [PropertyName.DeviceSnooze]: DeviceSnoozeProperty, + [PropertyName.DeviceSnoozeTime]: DeviceSnoozeTimeProperty, + [PropertyName.DeviceSnoozeStartTime]: DeviceSnoozeStartTimeProperty, + [PropertyName.DevicePersonName]: DevicePersonNameProperty, + [PropertyName.DeviceAntitheftDetection]: DeviceAntitheftDetectionProperty, + [PropertyName.DevicePowerSource]: DevicePowerSourceProperty, + [PropertyName.DeviceCellularRSSI]: DeviceCellularRSSIProperty, + [PropertyName.DeviceCellularSignalLevel]: DeviceCellularSignalLevelProperty, + [PropertyName.DeviceCellularSignal]: DeviceCellularSignalProperty, + [PropertyName.DeviceCellularBand]: DeviceCellularBandProperty, + [PropertyName.DeviceCellularIMEI]: DeviceCellularIMEIProperty, + [PropertyName.DeviceCellularICCID]: DeviceCellularICCIDProperty, + }, [DeviceType.SOLO_CAMERA]: { ...GenericDeviceProperties, [PropertyName.DeviceEnabled]: DeviceEnabledSoloProperty, @@ -8155,6 +8206,11 @@ export const DeviceProperties: Properties = { } DeviceProperties[DeviceType.INDOOR_PT_CAMERA_C220_V2] = DeviceProperties[DeviceType.INDOOR_PT_CAMERA_C220]; +DeviceProperties[DeviceType.INDOOR_PT_CAMERA_C220_V3] = DeviceProperties[DeviceType.INDOOR_PT_CAMERA_C220]; + +// EUFYCAM_S4 - Same as OUTDOOR_PT_CAMERA +DeviceProperties[DeviceType.EUFYCAM_S4] = DeviceProperties[DeviceType.OUTDOOR_PT_CAMERA]; + export const StationNameProperty: PropertyMetadataString = { key: "station_name", @@ -8638,12 +8694,12 @@ export const StationCrossTrackingGroupListProperty: PropertyMetadataObject = { return obj.length > 0 && obj.every((element) => { return typeof element === "object" && - "value" in element && - Array.isArray(element.value) && - element.value.length > 0 && - element.value.every((value) => { - return typeof value === "string"; - }) + "value" in element && + Array.isArray(element.value) && + element.value.length > 0 && + element.value.every((value) => { + return typeof value === "string"; + }) }); } return false; @@ -8898,6 +8954,7 @@ export const StationProperties: Properties = { [PropertyName.StationGuardMode]: StationGuardModeProperty, [PropertyName.StationCurrentMode]: StationCurrentModeProperty, [PropertyName.StationTimeFormat]: StationTimeFormatProperty, + [PropertyName.StationTimeZone]: StationTimeZoneProperty, [PropertyName.StationAlarm]: StationAlarmProperty, [PropertyName.StationAlarmType]: StationAlarmTypeProperty, [PropertyName.StationSdStatus]: StationSdStatusProperty, @@ -8961,6 +9018,17 @@ export const StationProperties: Properties = { //[PropertyName.StationNotificationSwitchModeSchedule]: StationNotificationSwitchModeScheduleProperty, //TODO: Implement correctly //[PropertyName.StationNotificationSwitchModeApp]: StationNotificationSwitchModeAppProperty, //TODO: Implement correctly }, + [DeviceType.EUFY_S330_4G_LTE]: { + ...BaseStationProperties, + [PropertyName.StationLANIpAddress]: StationLanIpAddressStandaloneProperty, + [PropertyName.StationMacAddress]: StationMacAddressProperty, + [PropertyName.StationGuardMode]: StationGuardModeProperty, + [PropertyName.StationCurrentMode]: StationCurrentModeProperty, + [PropertyName.StationTimeFormat]: StationTimeFormatProperty, + [PropertyName.StationTimeZone]: StationTimeZoneProperty, + [PropertyName.StationAlarm]: StationAlarmProperty, + [PropertyName.StationAlarmType]: StationAlarmTypeProperty, + }, [DeviceType.SOLO_CAMERA]: { ...BaseStationProperties, [PropertyName.StationLANIpAddress]: StationLanIpAddressStandaloneProperty, @@ -9236,6 +9304,7 @@ export const StationProperties: Properties = { } StationProperties[DeviceType.INDOOR_PT_CAMERA_C220_V2] = StationProperties[DeviceType.INDOOR_PT_CAMERA_C220]; +StationProperties[DeviceType.INDOOR_PT_CAMERA_C220_V3] = StationProperties[DeviceType.INDOOR_PT_CAMERA_C220]; export enum CommandName { DeviceStartLivestream = "deviceStartLivestream", @@ -9610,6 +9679,16 @@ export const DeviceCommands: Commands = { CommandName.DeviceStopTalkback, CommandName.DeviceSnooze, ], + [DeviceType.EUFY_S330_4G_LTE]: [ + CommandName.DeviceStartLivestream, + CommandName.DeviceStopLivestream, + CommandName.DeviceTriggerAlarmSound, + CommandName.DeviceStartDownload, + CommandName.DeviceCancelDownload, + CommandName.DeviceStartTalkback, + CommandName.DeviceStopTalkback, + CommandName.DeviceSnooze, + ], [DeviceType.SOLO_CAMERA]: [ CommandName.DeviceStartLivestream, CommandName.DeviceStopLivestream, @@ -9917,6 +9996,8 @@ export const DeviceCommands: Commands = { } DeviceCommands[DeviceType.INDOOR_PT_CAMERA_C220_V2] = DeviceCommands[DeviceType.INDOOR_PT_CAMERA_C220]; +DeviceCommands[DeviceType.INDOOR_PT_CAMERA_C220_V3] = DeviceCommands[DeviceType.INDOOR_PT_CAMERA_C220]; +DeviceCommands[DeviceType.EUFYCAM_S4] = DeviceCommands[DeviceType.OUTDOOR_PT_CAMERA]; export const StationCommands: Commands = { [DeviceType.STATION]: [ @@ -10222,6 +10303,10 @@ export const StationCommands: Commands = { CommandName.StationReboot, CommandName.StationTriggerAlarmSound, ], + [DeviceType.EUFY_S330_4G_LTE]: [ + CommandName.StationReboot, + CommandName.StationTriggerAlarmSound, + ], [DeviceType.WALL_LIGHT_CAM]: [ CommandName.StationReboot, CommandName.StationTriggerAlarmSound, @@ -10288,3 +10373,8 @@ export const StationCommands: Commands = { } StationCommands[DeviceType.INDOOR_PT_CAMERA_C220_V2] = StationCommands[DeviceType.INDOOR_PT_CAMERA_C220]; +StationCommands[DeviceType.INDOOR_PT_CAMERA_C220_V3] = StationCommands[DeviceType.INDOOR_PT_CAMERA_C220]; + + +StationProperties[DeviceType.EUFYCAM_S4] = StationProperties[DeviceType.OUTDOOR_PT_CAMERA]; +StationCommands[DeviceType.EUFYCAM_S4] = StationCommands[DeviceType.OUTDOOR_PT_CAMERA];