homebridge-virtual-accessories
Version:
Virtual HomeKit accessories for Homebridge.
228 lines • 5.76 kB
JavaScript
/**
*
*/
export class AccessoryType {
static AirPurifier = 'airpurifier';
static Battery = 'battery';
static Door = 'door';
static Doorbell = 'doorbell';
static Fan = 'fan';
static FilterMaintenance = 'filtermaintenance';
static GarageDoor = 'garagedoor';
static HeaterCooler = 'heatercooler';
static HumidifierDehumidifier = 'humidifierdehumidifier';
static Lightbulb = 'lightbulb';
static Lock = 'lock';
static Microphone = 'microphone';
static SecuritySystem = 'securitysystem';
static SensorBinary = 'sensor';
static SensorMeasurement = 'measurement';
static Speaker = 'speaker';
static Switch = 'switch';
static Television = 'television';
static Valve = 'valve';
static Window = 'window';
static WindowCovering = 'windowcovering';
}
/**
*
*/
export class BinarySensorType {
static CarbonDioxide = 'carbonDioxide';
static CarbonMonoxide = 'carbonMonoxide';
static Contact = 'contact';
static Leak = 'leak';
static Motion = 'motion';
static Occupancy = 'occupancy';
static Smoke = 'smoke';
static Types = [
BinarySensorType.CarbonDioxide,
BinarySensorType.CarbonMonoxide,
BinarySensorType.Contact,
BinarySensorType.Leak,
BinarySensorType.Motion,
BinarySensorType.Occupancy,
BinarySensorType.Smoke,
];
}
/**
*
*/
export class MeasurementSensorType {
static Humidity = 'humidity';
static Temperature = 'temperature';
static Types = [
MeasurementSensorType.Humidity,
MeasurementSensorType.Temperature,
];
}
/**
*
*/
export class TriggerType {
static Cron = 'cron';
static IkeaMatterStock = 'ikeamatterstock';
static Ping = 'ping';
static SunEvents = 'sunevents';
static Webhook = 'webhook';
static Startup = 'startup';
static Types = [
TriggerType.Cron,
TriggerType.IkeaMatterStock,
TriggerType.Ping,
TriggerType.SunEvents,
TriggerType.Webhook,
TriggerType.Startup,
];
}
/**
*
*/
export class SunEvent {
static Sunrise = 'sunrise';
static Sunset = 'sunset';
static GoldenHour = 'goldenhour';
static Events = [SunEvent.Sunrise, SunEvent.Sunset, SunEvent.GoldenHour];
}
/**
*
*/
export class OpenableState {
static Closed = 'closed';
static Open = 'open';
static States = [OpenableState.Closed, OpenableState.Open];
}
/**
*
*/
export class TemperatureUnit {
static Celsius = 'celsius';
static Fahrenheit = 'fahrenheit';
static Units = [TemperatureUnit.Celsius, TemperatureUnit.Fahrenheit];
}
/**
*
*/
export class HeaterType {
static Auto = 'auto';
static Cooler = 'cooler';
static Heater = 'heater';
static Sauna = 'sauna';
static Types = [HeaterType.Auto, HeaterType.Cooler, HeaterType.Heater, HeaterType.Sauna];
}
/**
*
*/
export class HumidifierType {
static Auto = 'auto';
static Dehumidifier = 'dehumidifier';
static Humidifier = 'humidifier';
static Types = [HumidifierType.Auto, HumidifierType.Dehumidifier, HumidifierType.Humidifier];
}
/**
*
*/
export class LightbulbType {
static Ambiance = 'ambiance';
static Color = 'color';
static White = 'white';
static Types = [LightbulbType.Ambiance, LightbulbType.Color, LightbulbType.White];
}
/**
*
*/
export class LockState {
static Locked = 'locked';
static Unlocked = 'unlocked';
static States = [LockState.Locked, LockState.Unlocked];
}
/**
*
*/
export class SecuritySystemState {
static ArmedAway = 'armedaway';
static ArmedNight = 'armednight';
static ArmedStay = 'armedstay';
static Disarmed = 'disarmed';
static AlarmTriggered = 'alarmtriggered';
static States = [
SecuritySystemState.ArmedAway,
SecuritySystemState.ArmedNight,
SecuritySystemState.ArmedStay,
SecuritySystemState.Disarmed,
SecuritySystemState.AlarmTriggered,
];
}
/**
*
*/
export class SecuritySystemArmedMode {
static ArmedAway = 'Away';
static ArmedNight = 'Night';
static ArmedStay = 'Home';
static ArmedModes = [SecuritySystemArmedMode.ArmedAway, SecuritySystemArmedMode.ArmedNight, SecuritySystemArmedMode.ArmedStay];
}
/**
*
*/
export class ValveType {
static Generic = 'generic';
static Irrigation = 'irrigation';
static Showerhead = 'showerhead';
static Waterfaucet = 'waterfaucet';
static Types = [ValveType.Generic, ValveType.Irrigation, ValveType.Showerhead, ValveType.Waterfaucet];
}
/**
*
*/
export class RotationDirection {
static Clockwise = 'clockwise';
static CounterClockwise = 'counterclockwise';
static Directions = [RotationDirection.Clockwise, RotationDirection.CounterClockwise];
}
/**
*
*/
export class PowerState {
static Off = 'off';
static On = 'on';
static States = [PowerState.Off, PowerState.On];
}
/**
*
*/
export class ColorTemperature {
static TemperatureKelvinMin = 2000;
static TemperatureKelvinMax = 6500;
}
/**
*
*/
export class ThresholdTemperature {
// HomeKit units: ºC
static CoolingThresholdMin = 10;
static CoolingThresholdMax = 35;
static HeatingThresholdMin = 0;
static HeatingThresholdMax = 25;
// Sauna thresholds
static SaunaHeatingThresholdMin = 15;
static SaunaHeatingThresholdMax = 90;
}
/**
*
*/
export class ValveDuration {
static DurationMin = 0;
static DurationMax = 3600;
}
/**
*
*/
export class WalletKeyColor {
static Tan = 'tan';
static Gold = 'gold';
static Silver = 'silver';
static Black = 'black';
static Colors = [WalletKeyColor.Black, WalletKeyColor.Gold, WalletKeyColor.Silver, WalletKeyColor.Tan];
}
//# sourceMappingURL=schema.js.map