UNPKG

homebridge-unifi-protect

Version:

Homebridge UniFi Protect plugin providing complete HomeKit integration for the entire UniFi Protect ecosystem with full support for most features including HomeKit Secure Video, multiple controllers, blazing fast performance, and much more.

29 lines 1.23 kB
export type NightVisionMode = "auto" | "autoFilterOnly" | "custom" | "customFilterOnly" | "off" | "on"; export declare const NIGHTVISION_ICR_FLOOR = 20; export declare const NIGHTVISION_ICR_STEP = 7; export type NightVisionCommand = { irLedMode: "auto" | "autoFilterOnly" | "off" | "on"; } | { icrCustomValue?: number; irLedMode: "custom" | "customFilterOnly"; }; export declare function parseNightVisionMode(raw: string): NightVisionMode | null; export declare function nightVisionActive(mode: NightVisionMode | null): boolean; export declare function nightVisionToggleCommand(value: boolean): NightVisionCommand; export declare function nightVisionBrightnessForMode(options: { icrCustomValue: number; mode: NightVisionMode; }): number; export declare function quantizeNightVisionLevel(level: number): number; export declare function nightVisionCommandForLevel(options: { currentMode: NightVisionMode | null; level: number; }): { command: NightVisionCommand; reflectedLevel: number; }; export declare function nightVisionModeForToggleOn(options: { currentLevel: number; currentMode: NightVisionMode | null; }): NightVisionCommand; //# sourceMappingURL=night-vision-policy.d.ts.map