import type { PlatformAccessory } from 'homebridge'; import type { ResideoPlatform } from '../Platform.HAP.js'; import type { devicesConfig, location, resideoDevice } from '../settings.js'; import { Subject } from 'rxjs'; import { deviceBase } from './device.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 LeakSensor extends deviceBase { readonly platform: ResideoPlatform; private Battery; private LeakSensor?; private HumiditySensor?; private TemperatureSensor?; SensorUpdateInProgress: boolean; statusFromLocations: boolean; doSensorUpdate: Subject; constructor(platform: ResideoPlatform, accessory: PlatformAccessory, location: location, device: resideoDevice & devicesConfig); /** * Parse the device status from the Resideo api */ parseStatus(): Promise; /** * Asks the Resideo Home API for the latest device information */ refreshStatus(): Promise; /** * Finds this detector in the account's location list */ statusFromLocationList(): Promise; /** * Updates the status for each of the HomeKit Characteristics */ updateHomeKitCharacteristics(): Promise; apiError(e: any): Promise; } /** * Whether the detector reports a humidity reading. The L1 has no indoorHumidity, * only currentSensorReadings.humidity, so the humidity service was never added (#946). */ export declare function hasHumidityReading(device: { indoorHumidity?: number; currentSensorReadings?: { humidity?: number; }; }): boolean; /** * Whether the detector has a water leak alarm which is not resolved yet, like * `{ "Type": "WaterLeak", "Resolved": null }` (#946). */ export declare function hasOpenLeakAlarm(device: { currentAlarms?: unknown; }): boolean; //# sourceMappingURL=leaksensors.d.ts.map