UNPKG

@pietrolubini/homebridge-ecoflow

Version:
25 lines (24 loc) 1.55 kB
import { EcoFlowAccessoryWithQuotaBase } from '@ecoflow/accessories/ecoFlowAccessoryWithQuotaBase'; import { SmartPlugAllQuotaData } from '@ecoflow/accessories/smartplug/interfaces/smartPlugHttpApiContracts'; import { EcoFlowHttpApiManager } from '@ecoflow/apis/ecoFlowHttpApiManager'; import { EcoFlowMqttApiManager } from '@ecoflow/apis/ecoFlowMqttApiManager'; import { MqttQuotaMessage } from '@ecoflow/apis/interfaces/mqttApiContracts'; import { DeviceConfig } from '@ecoflow/config'; import { EcoFlowHomebridgePlatform } from '@ecoflow/platform'; import { ServiceBase } from '@ecoflow/services/serviceBase'; import { Logging, PlatformAccessory } from 'homebridge'; export declare class SmartPlugAccessory extends EcoFlowAccessoryWithQuotaBase<SmartPlugAllQuotaData> { private readonly outletService; private readonly temperatureService; private readonly brightnessService; constructor(platform: EcoFlowHomebridgePlatform, accessory: PlatformAccessory, config: DeviceConfig, log: Logging, httpApiManager: EcoFlowHttpApiManager, mqttApiManager: EcoFlowMqttApiManager); protected getServices(): ServiceBase[]; protected processQuotaMessage(message: MqttQuotaMessage): void; protected initializeQuota(quota: SmartPlugAllQuotaData | null): SmartPlugAllQuotaData; protected updateInitialValues(initialData: SmartPlugAllQuotaData): void; private updateHeartbeatInitialValues; private updateHeartbeatValues; private updateOutletValues; private updateBrightnessValues; private updateTemperatureValues; }