UNPKG

homebridge-chuango-h4

Version:

A homebridge plugin for the Chuango H4 home security system.

29 lines 1.27 kB
import { PlatformAccessory } from 'homebridge'; import { ChuangoH4HomebridgePlatform } from './platform'; import { DeviceConnection, AlarmState, ArmState } from 'chuango-h4-client'; /** * 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 ChuangoH4PlatformAccessory { private readonly platform; private readonly accessory; private readonly connection; private service; private targetState; private detectors; constructor(platform: ChuangoH4HomebridgePlatform, accessory: PlatformAccessory, connection: DeviceConnection); handleSecuritySystemCurrentStateGet(callback: any): void; /** * Handle requests to get the current value of the 'Security System Target State' characteristic */ handleSecuritySystemTargetStateGet(callback: any): void; /** * Handle requests to set the 'Security System Target State' characteristic */ handleSecuritySystemTargetStateSet(value: any, callback: any): void; homebridgeStateToArmState(value: any): ArmState | null; alarmStateToHomebridge(state: AlarmState): any; } //# sourceMappingURL=platformAccessory.d.ts.map