UNPKG

@pietrolubini/homebridge-ecoflow

Version:
65 lines (64 loc) 1.48 kB
import { EnableType } from '@ecoflow/characteristics/characteristicContracts'; export declare enum CoolingZoneType { Single = 1, Dual = 2 } export declare enum TemperatureType { Celsius = 0, Fahrenheit = 1 } export declare enum CoolModeType { Normal = 0, Eco = 1 } export declare enum MakeIceStatusType { SmallInPreparation = 0, LargeInPreparation = 1, SmallInProgress = 2, LargeInProgress = 3 } export declare enum DetachIceStatusType { InProgress = 4, Completed = 5 } export declare enum ContactSensorType { Closed = 0, Opened = 1 } export interface EmsStatus { lcdSoc?: number; minDsgSoc?: number; } export interface BmsStatus { inWatts?: number; outWatts?: number; vol?: number; amp?: number; } export interface PdStatusFridgeZones { pwrState?: EnableType; flagTwoZone?: CoolingZoneType; tmpUnit?: TemperatureType; tmpR?: number; tmpL?: number; tmpAver?: number; tmpRSet?: number; tmpLSet?: number; tmpMSet?: number; } export interface PdStatusState { coolMode?: CoolModeType; doorStat?: ContactSensorType; } export interface PdStatusIceMaking { icePercent?: number; iceMkMode?: MakeIceStatusType; fsmState?: DetachIceStatusType; } export interface PdStatus extends PdStatusFridgeZones, PdStatusState, PdStatusIceMaking { } export interface GlacierAllQuotaData { bms_emsStatus: EmsStatus; bms_bmsStatus: BmsStatus; pd: PdStatus; }