@pietrolubini/homebridge-ecoflow
Version:
Homebridge plugin for EcoFlow devices
25 lines (24 loc) • 1.64 kB
TypeScript
import { EcoFlowAccessoryWithQuotaBase } from '@ecoflow/accessories/ecoFlowAccessoryWithQuotaBase';
import { PowerOceanAllQuotaData } from '@ecoflow/accessories/powerocean/interfaces/powerOceanHttpApiContracts';
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 PowerOceanAccessory extends EcoFlowAccessoryWithQuotaBase<PowerOceanAllQuotaData> {
private readonly inverterOutletService;
private readonly solarOutletService;
private readonly batteryOutletService;
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: PowerOceanAllQuotaData | null): PowerOceanAllQuotaData;
protected updateInitialValues(initialData: PowerOceanAllQuotaData): void;
private updateValues;
private updateSolarValues;
private updateBatteryValues;
private updateInverterValues;
}