UNPKG

homebridge-hivehome-control

Version:

Allows control of Hive devices, including water heaters, through Homebridge.

54 lines 2.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HeatingMode = exports.PyHiveAuth = exports.PyHiveType = exports.HiveTypeName = exports.HiveType = exports.HiveData = exports.DEVICE_LOGIN_REQUIRED = exports.kChallengeName = exports.kScanIntervalSecs = exports.kHiveDeviceName = void 0; // The name of the device registered with Hive for device login. exports.kHiveDeviceName = 'HomebridgeHiveHomeDevice'; // Minimum duration between device status refreshes from the server. exports.kScanIntervalSecs = 15; // The field in the login response which determines the type of auth required. exports.kChallengeName = 'ChallengeName'; // The string returned from the server to indicate a device login is required. exports.DEVICE_LOGIN_REQUIRED = 'DEVICE_SRP_AUTH'; // Important fields in the Hive device data response. var HiveData; (function (HiveData) { HiveData["kId"] = "hiveID"; HiveData["kType"] = "hiveType"; HiveData["kName"] = "hiveName"; })(HiveData = exports.HiveData || (exports.HiveData = {})); // Enum of native Hive device type strings. var HiveType; (function (HiveType) { HiveType["kHeating"] = "heating"; HiveType["kRadiator"] = "trvcontrol"; HiveType["kHotWater"] = "hotwater"; })(HiveType = exports.HiveType || (exports.HiveType = {})); // Map of hiveType to device display names. exports.HiveTypeName = { [HiveType.kHeating]: 'Heating', [HiveType.kRadiator]: 'Radiator', [HiveType.kHotWater]: 'Hot Water', }; // Enum of Hive device types used in PyHiveApi. var PyHiveType; (function (PyHiveType) { PyHiveType["kHeating"] = "climate"; PyHiveType["kHotWater"] = "water_heater"; })(PyHiveType = exports.PyHiveType || (exports.PyHiveType = {})); // Important auth fields in the PyHiveApi session object. var PyHiveAuth; (function (PyHiveAuth) { PyHiveAuth["kDevKey"] = "device_key"; PyHiveAuth["kDevGroupKey"] = "device_group_key"; PyHiveAuth["kDevPassword"] = "device_password"; })(PyHiveAuth = exports.PyHiveAuth || (exports.PyHiveAuth = {})); // Heating / Hot Water operation modes. Note that we have to send MANUAL to the // server to turn hot water on, but when we query the state it will return ON. var HeatingMode; (function (HeatingMode) { HeatingMode["kOn"] = "ON"; HeatingMode["kOff"] = "OFF"; HeatingMode["kManual"] = "MANUAL"; HeatingMode["kSchedule"] = "SCHEDULE"; })(HeatingMode = exports.HeatingMode || (exports.HeatingMode = {})); //# sourceMappingURL=hive-api.js.map