homebridge-pentair-intellicenter-ai
Version:
Homebridge plugin for the Pentair IntelliCenter pool control system (maintained with AI assistance)
51 lines • 1.62 kB
TypeScript
import { PlatformAccessory } from 'homebridge';
import { PentairPlatform } from './platform';
/**
* Pump GPM Accessory
* Displays calculated GPM (flow rate) for pumps as a light sensor (lux value) for easy visualization in Home app
* Each physical pump gets its own dedicated GPM sensor based on the pump name and type
*/
export declare class PumpGpmAccessory {
private readonly platform;
private readonly accessory;
private service;
private pump;
private pumpType;
private currentRpm;
constructor(platform: PentairPlatform, accessory: PlatformAccessory);
/**
* Calculate current GPM from pump speed using pump performance curves
*/
private getCurrentGpm;
/**
* Find the highest speed from all active pump circuits (same logic as WATTS sensor)
*/
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 GPM value
*/
getGpm(): Promise<number>;
/**
* Update the current RPM and recalculate GPM
*/
updateSpeed(rpm: number): void;
/**
* Update the GPM display (called when pump speed changes)
*/
updateGpm(gpm: number): void;
/**
* Get the current pump type for debugging
*/
getPumpType(): string;
/**
* Get the current RPM for debugging
*/
getCurrentRpm(): number;
}
//# sourceMappingURL=pumpGpmAccessory.d.ts.map