Skip to content

Commit

Permalink
Fix: stream command for T8420
Browse files Browse the repository at this point in the history
  • Loading branch information
thieren committed Jun 17, 2022
1 parent d57093b commit 990b4fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/http/station.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2902,8 +2902,7 @@ export class Station extends TypedEmitter<StationEvents> {
}),
channel: device.getChannel()
});
} else if (device.isWiredDoorbell() || (device.isFloodLight() && device.getDeviceType() !== DeviceType.FLOODLIGHT) || device.isIndoorCamera()) {
//TODO: T8420 should send this command
} else if (device.isWiredDoorbell() || (device.isFloodLight() && device.getDeviceType() !== DeviceType.FLOODLIGHT) || device.isIndoorCamera() || device.getSerial().startsWith("T8420")) {
this.log.debug(`Using CMD_DOORBELL_SET_PAYLOAD for station ${this.getSerial()} (main_sw_version: ${this.getSoftwareVersion()})`);
await this.p2pSession.sendCommandWithStringPayload({
commandType: CommandType.CMD_DOORBELL_SET_PAYLOAD,
Expand Down

0 comments on commit 990b4fc

Please sign in to comment.