UNPKG

@viguza/homebridge-ezviz

Version:

A short description about what your plugin does.

30 lines (29 loc) 1.14 kB
import type { CharacteristicValue, PlatformAccessory } from 'homebridge'; import type { EZVIZPlatform } from '../platform.js'; import { EZVIZAPI } from '../api/ezviz-api.js'; /** * Alarm Mode Switch accessory for EZVIZ * Handles on/off functionality for alarm/defence mode * ON = AWAY_MODE (fully armed), OFF = UNSET_MODE (disarmed) */ export declare class AlarmModeSwitch { private readonly platform; private readonly accessory; private api; constructor(api: EZVIZAPI, platform: EZVIZPlatform, accessory: PlatformAccessory); /** * Sets the alarm mode (defence mode) on/off * @param value - The value to set (true = AWAY_MODE/armed, false = HOME_MODE/disarmed) */ setAlarmMode(value: CharacteristicValue): Promise<void>; /** * Gets the current alarm mode (defence mode) state * @returns Promise resolving to the current state (true = armed, false = disarmed) */ getAlarmMode(): Promise<CharacteristicValue>; /** * Gets the accessory instance * @returns The platform accessory */ getAccessory(): PlatformAccessory<import("homebridge").UnknownContext>; }