Skip to content

Commit

Permalink
Adding device info
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Aug 27, 2024
1 parent cef9987 commit f9e42ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cameraAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ export class CameraAccessory {
const basicInfo = await this.camera.getBasicInfo();
this.log.debug("Basic info", basicInfo);

// const cameraInfo = await this.camera.getDeviceInfo();
// this.accessory.on(PlatformAccessoryEvent.IDENTIFY, () => {
// this.log.info("Identify requested", cameraInfo);
// });
const cameraInfo = await this.camera.getDeviceInfo();
this.log.debug("Camera info", cameraInfo);

// this.log.debug("Camera info", cameraInfo);
this.accessory.on(PlatformAccessoryEvent.IDENTIFY, () => {
this.log.info("Identify requested", cameraInfo, basicInfo);
});

// this.setupInfoAccessory(cameraInfo);
this.setupInfoAccessory(cameraInfo);

// if (!this.config.disableStreaming) {
// this.setupCameraStreaming(cameraInfo);
Expand Down Expand Up @@ -310,8 +310,8 @@ export class CameraAccessory {
// }

// // Publish as external accessory
// this.log.debug("Publishing accessory...");
// this.api.publishExternalAccessories(PLUGIN_ID, [this.accessory]);
this.log.debug("Publishing accessory...");
this.api.publishExternalAccessories(PLUGIN_ID, [this.accessory]);

// this.log.debug("Notifying initial values...");
// await this.getStatusAndNotify();
Expand Down

0 comments on commit f9e42ec

Please sign in to comment.