homebridge-pentair-intellicenter-ai
Version:
Homebridge plugin for the Pentair IntelliCenter pool control system (maintained with AI assistance)
86 lines • 4.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Color = exports.TemperatureUnits = exports.SensorTypes = exports.CircuitTypes = exports.ObjectType = exports.HeatMode = exports.PumpSpeedType = exports.CircuitStatus = exports.BodyType = exports.TemperatureSensorType = exports.CircuitType = exports.IntelliCenterQueryName = exports.IntelliCenterResponseCommand = exports.IntelliCenterRequestCommand = exports.IntelliCenterResponseStatus = void 0;
var IntelliCenterResponseStatus;
(function (IntelliCenterResponseStatus) {
IntelliCenterResponseStatus["Ok"] = "200";
})(IntelliCenterResponseStatus || (exports.IntelliCenterResponseStatus = IntelliCenterResponseStatus = {}));
var IntelliCenterRequestCommand;
(function (IntelliCenterRequestCommand) {
IntelliCenterRequestCommand["GetQuery"] = "GetQuery";
IntelliCenterRequestCommand["RequestParamList"] = "RequestParamList";
IntelliCenterRequestCommand["SetParamList"] = "SetParamList";
})(IntelliCenterRequestCommand || (exports.IntelliCenterRequestCommand = IntelliCenterRequestCommand = {}));
var IntelliCenterResponseCommand;
(function (IntelliCenterResponseCommand) {
IntelliCenterResponseCommand["SendQuery"] = "SendQuery";
IntelliCenterResponseCommand["NotifyList"] = "NotifyList";
IntelliCenterResponseCommand["WriteParamList"] = "WriteParamList";
IntelliCenterResponseCommand["Error"] = "Error";
})(IntelliCenterResponseCommand || (exports.IntelliCenterResponseCommand = IntelliCenterResponseCommand = {}));
var IntelliCenterQueryName;
(function (IntelliCenterQueryName) {
IntelliCenterQueryName["GetHardwareDefinition"] = "GetHardwareDefinition";
})(IntelliCenterQueryName || (exports.IntelliCenterQueryName = IntelliCenterQueryName = {}));
var CircuitType;
(function (CircuitType) {
CircuitType["IntelliBrite"] = "INTELLI";
CircuitType["Generic"] = "GENERIC";
})(CircuitType || (exports.CircuitType = CircuitType = {}));
var TemperatureSensorType;
(function (TemperatureSensorType) {
TemperatureSensorType["Air"] = "AIR";
TemperatureSensorType["Pool"] = "POOL";
})(TemperatureSensorType || (exports.TemperatureSensorType = TemperatureSensorType = {}));
var BodyType;
(function (BodyType) {
BodyType["Pool"] = "POOL";
BodyType["Spa"] = "SPA";
})(BodyType || (exports.BodyType = BodyType = {}));
var CircuitStatus;
(function (CircuitStatus) {
CircuitStatus["On"] = "ON";
CircuitStatus["Off"] = "OFF";
})(CircuitStatus || (exports.CircuitStatus = CircuitStatus = {}));
var PumpSpeedType;
(function (PumpSpeedType) {
PumpSpeedType["RPM"] = "RPM";
PumpSpeedType["GPM"] = "GPM";
})(PumpSpeedType || (exports.PumpSpeedType = PumpSpeedType = {}));
var HeatMode;
(function (HeatMode) {
HeatMode[HeatMode["On"] = 2] = "On";
HeatMode[HeatMode["Off"] = 1] = "Off";
})(HeatMode || (exports.HeatMode = HeatMode = {}));
var ObjectType;
(function (ObjectType) {
ObjectType["Circuit"] = "CIRCUIT";
ObjectType["Module"] = "MODULE";
ObjectType["Panel"] = "PANEL";
ObjectType["Body"] = "BODY";
ObjectType["Heater"] = "HEATER";
ObjectType["CircuitGroup"] = "CIRCGRP";
ObjectType["Pump"] = "PUMP";
ObjectType["Sensor"] = "SENSE";
})(ObjectType || (exports.ObjectType = ObjectType = {}));
exports.CircuitTypes = new Set([ObjectType.Circuit, ObjectType.Body]);
exports.SensorTypes = new Set([ObjectType.Sensor]);
var TemperatureUnits;
(function (TemperatureUnits) {
TemperatureUnits["C"] = "C";
TemperatureUnits["F"] = "F";
})(TemperatureUnits || (exports.TemperatureUnits = TemperatureUnits = {}));
class Color {
constructor(intellicenterCode, hue, saturation) {
this.intellicenterCode = intellicenterCode;
this.hue = hue;
this.saturation = saturation;
}
}
exports.Color = Color;
Color.White = new Color('WHITER', 0, 0);
Color.Red = new Color('REDR', 0, 100);
Color.Green = new Color('GREENR', 120, 100);
Color.Blue = new Color('BLUER', 240, 100);
Color.Magenta = new Color('MAGNTAR', 300, 100);
//# sourceMappingURL=types.js.map