UNPKG

@pietrolubini/homebridge-ecoflow

Version:
26 lines (25 loc) 1.69 kB
import { DeltaPro3AllQuotaData } from '@ecoflow/accessories/batteries/deltapro3/interfaces/deltaPro3HttpApiContracts'; import { EcoFlowAccessoryWithQuotaBase } from '@ecoflow/accessories/ecoFlowAccessoryWithQuotaBase'; 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 { BatteryStatusProvider } from '@ecoflow/helpers/batteryStatusProvider'; import { EcoFlowHomebridgePlatform } from '@ecoflow/platform'; import { ServiceBase } from '@ecoflow/services/serviceBase'; import { Logging, PlatformAccessory } from 'homebridge'; export declare class DeltaPro3Accessory extends EcoFlowAccessoryWithQuotaBase<DeltaPro3AllQuotaData> { private readonly batteryStatusService; private readonly outletAcHvService; private readonly outletAcLvService; private readonly outletDc12vService; constructor(platform: EcoFlowHomebridgePlatform, accessory: PlatformAccessory, config: DeviceConfig, log: Logging, httpApiManager: EcoFlowHttpApiManager, mqttApiManager: EcoFlowMqttApiManager, batteryStatusProvider: BatteryStatusProvider); protected getServices(): ServiceBase[]; protected processQuotaMessage(message: MqttQuotaMessage): void; protected initializeQuota(quota: DeltaPro3AllQuotaData | null): DeltaPro3AllQuotaData; protected updateInitialValues(data: DeltaPro3AllQuotaData): void; private updateSocValues; private updateInputWattsValues; private updateOutputWattsValues; private updateSwitchStateValues; }