homebridge-pentair-intellicenter-ai
Version:
Homebridge plugin for the Pentair IntelliCenter pool control system (maintained with AI assistance)
57 lines • 1.85 kB
TypeScript
import { PlatformAccessory } from 'homebridge';
import { PentairPlatform } from './platform';
/**
* Pump WATTS Accessory
* Displays calculated WATTS (power consumption) for pumps as a light sensor (lux value) for easy visualization in Home app
* Each physical pump gets its own dedicated WATTS sensor based on the pump name and type
*/
export declare class PumpWattsAccessory {
private readonly platform;
private readonly accessory;
private service;
private pump;
private pumpType;
private currentRpm;
private systemDrivenRpm;
private lastSystemUpdate;
constructor(platform: PentairPlatform, accessory: PlatformAccessory);
/**
* Calculate current WATTS from highest active pump circuit speed or system-driven speed
*/
private getCurrentWatts;
/**
* Find the highest speed from all active pump circuits
*/
private getHighestActivePumpSpeed;
/**
* Check if a pump circuit is currently active by looking for corresponding feature/circuit status
*/
private checkStandardCircuitActive;
private checkHeaterCircuitActive;
private isPumpCircuitActive;
/**
* Handle requests to get the current WATTS value
*/
getWatts(): Promise<number>;
/**
* Update the current RPM and recalculate WATTS (for circuit-driven updates)
*/
updateSpeed(rpm: number): void;
/**
* Update system-driven RPM (for heater/standalone pump updates)
*/
updateSystemSpeed(rpm: number): void;
/**
* Update the WATTS display (called when pump speed changes)
*/
updateWatts(watts: number): void;
/**
* Get the current pump type for debugging
*/
getPumpType(): string;
/**
* Get the current RPM for debugging
*/
getCurrentRpm(): number;
}
//# sourceMappingURL=pumpWattsAccessory.d.ts.map