UNPKG

@pietrolubini/homebridge-ecoflow

Version:
12 lines (11 loc) 577 B
import { EcoFlowAccessoryBase } from '@ecoflow/accessories/ecoFlowAccessoryBase'; import { ServiceBase } from '@ecoflow/services/serviceBase'; import { Characteristic } from 'homebridge'; export declare abstract class SwitchServiceBase extends ServiceBase { private state; constructor(ecoFlowAccessory: EcoFlowAccessoryBase, serviceSubType: string); updateState(state: boolean): void; protected onDisabled(): void; protected addCharacteristics(): Characteristic[]; protected abstract processOnSetOn(value: boolean, revert: () => void): Promise<void>; }