homebridge-soundtouch-platform
Version:
Homebridge SoundTouch platform
42 lines (35 loc) • 1.03 kB
text/typescript
import {BaseGlobalConfig} from "homebridge-base-platform";
export interface GlobalConfig extends BaseGlobalConfig {
readonly pollingInterval?: number;
readonly volume?: VolumeConfig;
readonly presets?: PresetConfig[];
readonly sources?: SourceConfig[];
}
export enum VolumeMode {
none = 'none',
lightbulb = 'lightbulb',
speaker = 'speaker',
}
export interface VolumeConfig {
readonly onValue?: number;
readonly maxValue?: number;
readonly unmuteValue?: number;
readonly mode?: VolumeMode;
}
export interface AccessoryConfig extends GlobalConfig {
readonly name?: string;
readonly room?: string;
readonly ip?: string;
readonly port?: number;
}
export interface PresetConfig {
readonly name?: string;
readonly index: number;
readonly enabled?: boolean;
}
export interface SourceConfig {
readonly name?: string;
readonly source: string; // PRODUCT, BLUETOOTH, ...
readonly account?: string; // TV, HDMI_1, ...
readonly enabled?: boolean;
}