/** * Continuous Monitoring Service Handler * * Implements a HomeKit Switch service for Dyson continuous monitoring. * When enabled, sensors remain active even when the fan is off. */ import type { API, Logging, PlatformAccessory, Service } from 'homebridge'; import type { DysonLinkDevice } from '../../devices/dysonLinkDevice.js'; /** * Configuration for ContinuousMonitoringService */ export interface ContinuousMonitoringServiceConfig { accessory: PlatformAccessory; device: DysonLinkDevice; api: API; log: Logging; /** Primary service to link this service to */ primaryService?: Service; } /** * ContinuousMonitoringService handles the Switch HomeKit service for continuous monitoring * * Maps HomeKit characteristics to Dyson device state: * - On (boolean) ↔ continuousMonitoring (boolean) */ export declare class ContinuousMonitoringService { private readonly service; private readonly device; private readonly log; private readonly api; private readonly boundHandleStateChange; constructor(config: ContinuousMonitoringServiceConfig); /** * Get the underlying HomeKit service */ getService(): Service; /** * Clean up event listeners */ destroy(): void; /** * Handle On GET request * Returns true if continuous monitoring is enabled */ private handleOnGet; /** * Handle On SET request * @param value - true to enable continuous monitoring, false to disable */ private handleOnSet; /** * Handle device state changes * Updates HomeKit characteristic to reflect current device state */ private handleStateChange; /** * Update characteristic from current device state * Call this after connecting to sync HomeKit with device */ updateFromState(): void; } //# sourceMappingURL=continuousMonitoringService.d.ts.map