UNPKG

homebridge-virtual-accessories

Version:
199 lines 4.97 kB
/** * */ export class AccessoryType { 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 SecuritySystem = 'securitysystem'; static Sensor = 'sensor'; static Speaker = 'speaker'; static Switch = 'switch'; static Television = 'television'; static Valve = 'valve'; static Window = 'window'; static WindowCovering = 'windowcovering'; } /** * */ export class SensorType { static CarbonDioxide = 'carbonDioxide'; static CarbonMonoxide = 'carbonMonoxide'; static Contact = 'contact'; static Leak = 'leak'; static Motion = 'motion'; static Occupancy = 'occupancy'; static Smoke = 'smoke'; static Types = [ SensorType.CarbonDioxide, SensorType.CarbonMonoxide, SensorType.Contact, SensorType.Leak, SensorType.Motion, SensorType.Occupancy, SensorType.Smoke, ]; } /** * */ export class TriggerType { static Cron = 'cron'; static Ping = 'ping'; static SunEvents = 'sunevents'; static Webhook = 'webhook'; static Types = [ TriggerType.Cron, TriggerType.Ping, TriggerType.SunEvents, TriggerType.Webhook, ]; } /** * */ 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 Types = [HeaterType.Auto, HeaterType.Cooler, HeaterType.Heater]; } /** * */ 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 { static CoolingThresholdCelsiusMin = 10; static CoolingThresholdCelsiusMax = 35; static CoolingThresholdFahrenheitMin = 50; static CoolingThresholdFahrenheitMax = 95; static HeatingThresholdCelsiusMin = 0; static HeatingThresholdCelsiusMax = 25; static HeatingThresholdFahrenheitMin = 32; static HeatingThresholdFahrenheitMax = 77; } /** * */ export class ValveDuration { static DurationMin = 0; static DurationMax = 3600; } //# sourceMappingURL=schema.js.map