Skip to content

Commit

Permalink
set volume
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalusan committed Sep 6, 2024
1 parent 7ac93d1 commit c597690
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAcces

import { DefaultPlatformAccessory } from './defaultAccessory.js';
import { CleanRoomsPlatformAccessory } from './cleanRoomsAccessory.js';
import { SpeakerPlatformAccessory } from './speakerAccessory.js';

Check failure on line 5 in src/platform.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find module './speakerAccessory.js' or its corresponding type declarations.

Check failure on line 5 in src/platform.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find module './speakerAccessory.js' or its corresponding type declarations.

Check failure on line 5 in src/platform.ts

View workflow job for this annotation

GitHub Actions / build (22.x)

Cannot find module './speakerAccessory.js' or its corresponding type declarations.
import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';

import { createRequire } from 'module';
Expand Down Expand Up @@ -86,6 +87,18 @@ export class EufyRobovacHomebridgePlatform implements DynamicPlatformPlugin {
new DefaultPlatformAccessory(this, accessory);
},
},
{
displayName: () => {
return `${this.config.name} Speaker`;
},
uuid: () => {
return this.api.hap.uuid.generate(`${this.config.name}-${this.config.ip}-speaker`);
},
make: (accessory: PlatformAccessory) => {
new SpeakerPlatformAccessory(this, accessory);
},
},

];

const roomSwitches = this.config.roomSwitches;
Expand Down

0 comments on commit c597690

Please sign in to comment.