UNPKG

@petro-kushchak/homebridge-homepod-radio

Version:

Homebridge accessory for streaming radio to Homepod Mini and Apple TV

28 lines (27 loc) 1.23 kB
import { DynamicPlatformPlugin, PlatformAccessory, Logging, PlatformConfig, API, Characteristic, Service } from 'homebridge'; import { HomepodRadioPlatformConfig } from './platformConfig.js'; /** * Platform Accessory * An instance of this class is created for each accessory your platform registers * Each accessory may expose multiple services of different service types. */ export declare class HomepodRadioPlatform implements DynamicPlatformPlugin { logger: Logging; private config; private api; private readonly playbackController; private readonly httpService; private readonly platformActions; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; readonly platformConfig: HomepodRadioPlatformConfig; constructor(logger: Logging, config: PlatformConfig, api: API); /** * This function is invoked when homebridge restores cached accessories from disk at startup. * It should be used to set up event handlers for characteristics and update respective values. */ configureAccessory(accessory: PlatformAccessory): void; private addHomepodVolumeAccessory; private addRadioAccessory; private addFileSwitchAccessory; }