Skip to content

Commit

Permalink
Fixed issue #161
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Jun 15, 2022
1 parent 5c1805d commit d57093b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Please use GitHub issues for this.
### 2.1.1 (2022-06-xx)

* (bropat) Fixed issue #167
* (bropat) Fixed issue #161

### 2.1.0 (2022-06-12)

Expand Down
7 changes: 5 additions & 2 deletions src/eufysecurity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { HTTPApi } from "./http/api";
import { Devices, FullDevices, Hubs, PropertyValue, RawValues, Stations, Houses, LoginOptions } from "./http/interfaces";
import { Station } from "./http/station";
import { ConfirmInvite, DeviceListResponse, HouseInviteListResponse, Invite, StationListResponse } from "./http/models";
import { CommandName, NotificationSwitchMode, NotificationType, PropertyName } from "./http/types";
import { CommandName, DeviceType, NotificationSwitchMode, NotificationType, PropertyName } from "./http/types";
import { PushNotificationService } from "./push/service";
import { Credentials, PushMessage } from "./push/models";
import { BatteryDoorbellCamera, Camera, Device, EntrySensor, FloodlightCamera, IndoorCamera, Keypad, Lock, MotionSensor, SoloCamera, UnknownDevice, WiredDoorbellCamera } from "./http/device";
import { AlarmEvent, ChargingType, P2PConnectionType } from "./p2p/types";
import { AlarmEvent, ChargingType, CommandType, P2PConnectionType } from "./p2p/types";
import { StreamMetadata } from "./p2p/interfaces";
import { CommandResult } from "./p2p/models";
import { generateSerialnumber, generateUDID, handleUpdate, md5, parseValue, removeLastChar } from "./utils";
Expand Down Expand Up @@ -1444,6 +1444,9 @@ export class EufySecurity extends TypedEmitter<EufySecurityEvents> {
this.log.error(`Station command result error (station: ${station.getSerial()})`, error);
}
});
if (station.isIntegratedDevice() && result.command_type === CommandType.CMD_SET_ARMING && station.isConnected() && station.getDeviceType() !== DeviceType.DOORBELL) {
station.getCameraInfo();
}
}
}

Expand Down

0 comments on commit d57093b

Please sign in to comment.