homebridge-smartthings-v2
Version:
SmartThings plugin for HomeBridge
1,551 lines (1,228 loc) • 118 kB
JavaScript
/* eslint-disable no-unused-vars */
'use strict';
// THIS FILE IS AUTO-GENERATED - DO NOT MODIFY
var inherits = require('util').inherits;
var Characteristic = require('../Characteristic').Characteristic;
var Service = require('../Service').Service;
/**
* Characteristic "Accessory Flags"
*/
Characteristic.AccessoryFlags = function() {
Characteristic.call(this, 'Accessory Flags', '000000A6-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT32,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AccessoryFlags, Characteristic);
Characteristic.AccessoryFlags.UUID = '000000A6-0000-1000-8000-0026BB765291';
/**
* Characteristic "Active"
*/
Characteristic.Active = function() {
Characteristic.call(this, 'Active', '000000B0-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Active, Characteristic);
Characteristic.Active.UUID = '000000B0-0000-1000-8000-0026BB765291';
// The value property of Active must be one of the following:
Characteristic.Active.INACTIVE = 0;
Characteristic.Active.ACTIVE = 1;
/**
* Characteristic "Administrator Only Access"
*/
Characteristic.AdministratorOnlyAccess = function() {
Characteristic.call(this, 'Administrator Only Access', '00000001-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AdministratorOnlyAccess, Characteristic);
Characteristic.AdministratorOnlyAccess.UUID = '00000001-0000-1000-8000-0026BB765291';
/**
* Characteristic "Air Particulate Density"
*/
Characteristic.AirParticulateDensity = function() {
Characteristic.call(this, 'Air Particulate Density', '00000064-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 1000,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AirParticulateDensity, Characteristic);
Characteristic.AirParticulateDensity.UUID = '00000064-0000-1000-8000-0026BB765291';
/**
* Characteristic "Air Particulate Size"
*/
Characteristic.AirParticulateSize = function() {
Characteristic.call(this, 'Air Particulate Size', '00000065-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AirParticulateSize, Characteristic);
Characteristic.AirParticulateSize.UUID = '00000065-0000-1000-8000-0026BB765291';
// The value property of AirParticulateSize must be one of the following:
Characteristic.AirParticulateSize._2_5_M = 0;
Characteristic.AirParticulateSize._10_M = 1;
/**
* Characteristic "Air Quality"
*/
Characteristic.AirQuality = function() {
Characteristic.call(this, 'Air Quality', '00000095-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 5,
minValue: 0,
validValues: [0, 1, 2, 3, 4, 5],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AirQuality, Characteristic);
Characteristic.AirQuality.UUID = '00000095-0000-1000-8000-0026BB765291';
// The value property of AirQuality must be one of the following:
Characteristic.AirQuality.UNKNOWN = 0;
Characteristic.AirQuality.EXCELLENT = 1;
Characteristic.AirQuality.GOOD = 2;
Characteristic.AirQuality.FAIR = 3;
Characteristic.AirQuality.INFERIOR = 4;
Characteristic.AirQuality.POOR = 5;
/**
* Characteristic "Audio Feedback"
*/
Characteristic.AudioFeedback = function() {
Characteristic.call(this, 'Audio Feedback', '00000005-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.AudioFeedback, Characteristic);
Characteristic.AudioFeedback.UUID = '00000005-0000-1000-8000-0026BB765291';
/**
* Characteristic "Battery Level"
*/
Characteristic.BatteryLevel = function() {
Characteristic.call(this, 'Battery Level', '00000068-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
unit: Characteristic.Units.PERCENTAGE,
maxValue: 100,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.BatteryLevel, Characteristic);
Characteristic.BatteryLevel.UUID = '00000068-0000-1000-8000-0026BB765291';
/**
* Characteristic "Brightness"
*/
Characteristic.Brightness = function() {
Characteristic.call(this, 'Brightness', '00000008-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.INT,
unit: Characteristic.Units.PERCENTAGE,
maxValue: 100,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Brightness, Characteristic);
Characteristic.Brightness.UUID = '00000008-0000-1000-8000-0026BB765291';
/**
* Characteristic "Carbon Dioxide Detected"
*/
Characteristic.CarbonDioxideDetected = function() {
Characteristic.call(this, 'Carbon Dioxide Detected', '00000092-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonDioxideDetected, Characteristic);
Characteristic.CarbonDioxideDetected.UUID = '00000092-0000-1000-8000-0026BB765291';
// The value property of CarbonDioxideDetected must be one of the following:
Characteristic.CarbonDioxideDetected.CO2_LEVELS_NORMAL = 0;
Characteristic.CarbonDioxideDetected.CO2_LEVELS_ABNORMAL = 1;
/**
* Characteristic "Carbon Dioxide Level"
*/
Characteristic.CarbonDioxideLevel = function() {
Characteristic.call(this, 'Carbon Dioxide Level', '00000093-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 100000,
minValue: 0,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonDioxideLevel, Characteristic);
Characteristic.CarbonDioxideLevel.UUID = '00000093-0000-1000-8000-0026BB765291';
/**
* Characteristic "Carbon Dioxide Peak Level"
*/
Characteristic.CarbonDioxidePeakLevel = function() {
Characteristic.call(this, 'Carbon Dioxide Peak Level', '00000094-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 100000,
minValue: 0,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonDioxidePeakLevel, Characteristic);
Characteristic.CarbonDioxidePeakLevel.UUID = '00000094-0000-1000-8000-0026BB765291';
/**
* Characteristic "Carbon Monoxide Detected"
*/
Characteristic.CarbonMonoxideDetected = function() {
Characteristic.call(this, 'Carbon Monoxide Detected', '00000069-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonMonoxideDetected, Characteristic);
Characteristic.CarbonMonoxideDetected.UUID = '00000069-0000-1000-8000-0026BB765291';
// The value property of CarbonMonoxideDetected must be one of the following:
Characteristic.CarbonMonoxideDetected.CO_LEVELS_NORMAL = 0;
Characteristic.CarbonMonoxideDetected.CO_LEVELS_ABNORMAL = 1;
/**
* Characteristic "Carbon Monoxide Level"
*/
Characteristic.CarbonMonoxideLevel = function() {
Characteristic.call(this, 'Carbon Monoxide Level', '00000090-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 100,
minValue: 0,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonMonoxideLevel, Characteristic);
Characteristic.CarbonMonoxideLevel.UUID = '00000090-0000-1000-8000-0026BB765291';
/**
* Characteristic "Carbon Monoxide Peak Level"
*/
Characteristic.CarbonMonoxidePeakLevel = function() {
Characteristic.call(this, 'Carbon Monoxide Peak Level', '00000091-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 100,
minValue: 0,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CarbonMonoxidePeakLevel, Characteristic);
Characteristic.CarbonMonoxidePeakLevel.UUID = '00000091-0000-1000-8000-0026BB765291';
/**
* Characteristic "Charging State"
*/
Characteristic.ChargingState = function() {
Characteristic.call(this, 'Charging State', '0000008F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ChargingState, Characteristic);
Characteristic.ChargingState.UUID = '0000008F-0000-1000-8000-0026BB765291';
// The value property of ChargingState must be one of the following:
Characteristic.ChargingState.NOT_CHARGING = 0;
Characteristic.ChargingState.CHARGING = 1;
Characteristic.ChargingState.NOT_CHARGEABLE = 2;
/**
* Characteristic "Color Temperature"
*/
Characteristic.ColorTemperature = function() {
Characteristic.call(this, 'Color Temperature', '000000CE-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT32,
maxValue: 500,
minValue: 140,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ColorTemperature, Characteristic);
Characteristic.ColorTemperature.UUID = '000000CE-0000-1000-8000-0026BB765291';
/**
* Characteristic "Contact Sensor State"
*/
Characteristic.ContactSensorState = function() {
Characteristic.call(this, 'Contact Sensor State', '0000006A-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ContactSensorState, Characteristic);
Characteristic.ContactSensorState.UUID = '0000006A-0000-1000-8000-0026BB765291';
// The value property of ContactSensorState must be one of the following:
Characteristic.ContactSensorState.CONTACT_DETECTED = 0;
Characteristic.ContactSensorState.CONTACT_NOT_DETECTED = 1;
/**
* Characteristic "Cooling Threshold Temperature"
*/
Characteristic.CoolingThresholdTemperature = function() {
Characteristic.call(this, 'Cooling Threshold Temperature', '0000000D-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.CELSIUS,
maxValue: 35,
minValue: 10,
minStep: 0.1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CoolingThresholdTemperature, Characteristic);
Characteristic.CoolingThresholdTemperature.UUID = '0000000D-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Air Purifier State"
*/
Characteristic.CurrentAirPurifierState = function() {
Characteristic.call(this, 'Current Air Purifier State', '000000A9-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentAirPurifierState, Characteristic);
Characteristic.CurrentAirPurifierState.UUID = '000000A9-0000-1000-8000-0026BB765291';
// The value property of CurrentAirPurifierState must be one of the following:
Characteristic.CurrentAirPurifierState.INACTIVE = 0;
Characteristic.CurrentAirPurifierState.IDLE = 1;
Characteristic.CurrentAirPurifierState.PURIFYING_AIR = 2;
/**
* Characteristic "Current Ambient Light Level"
*/
Characteristic.CurrentAmbientLightLevel = function() {
Characteristic.call(this, 'Current Ambient Light Level', '0000006B-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.LUX,
maxValue: 100000,
minValue: 0.0001,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentAmbientLightLevel, Characteristic);
Characteristic.CurrentAmbientLightLevel.UUID = '0000006B-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Door State"
*/
Characteristic.CurrentDoorState = function() {
Characteristic.call(this, 'Current Door State', '0000000E-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 4,
minValue: 0,
validValues: [0, 1, 2, 3, 4],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentDoorState, Characteristic);
Characteristic.CurrentDoorState.UUID = '0000000E-0000-1000-8000-0026BB765291';
// The value property of CurrentDoorState must be one of the following:
Characteristic.CurrentDoorState.OPEN = 0;
Characteristic.CurrentDoorState.CLOSED = 1;
Characteristic.CurrentDoorState.OPENING = 2;
Characteristic.CurrentDoorState.CLOSING = 3;
Characteristic.CurrentDoorState.STOPPED = 4;
/**
* Characteristic "Current Fan State"
*/
Characteristic.CurrentFanState = function() {
Characteristic.call(this, 'Current Fan State', '000000AF-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentFanState, Characteristic);
Characteristic.CurrentFanState.UUID = '000000AF-0000-1000-8000-0026BB765291';
// The value property of CurrentFanState must be one of the following:
Characteristic.CurrentFanState.INACTIVE = 0;
Characteristic.CurrentFanState.IDLE = 1;
Characteristic.CurrentFanState.BLOWING_AIR = 2;
/**
* Characteristic "Current Heater Cooler State"
*/
Characteristic.CurrentHeaterCoolerState = function() {
Characteristic.call(this, 'Current Heater Cooler State', '000000B1-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 3,
minValue: 0,
validValues: [0, 1, 2, 3],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentHeaterCoolerState, Characteristic);
Characteristic.CurrentHeaterCoolerState.UUID = '000000B1-0000-1000-8000-0026BB765291';
// The value property of CurrentHeaterCoolerState must be one of the following:
Characteristic.CurrentHeaterCoolerState.INACTIVE = 0;
Characteristic.CurrentHeaterCoolerState.IDLE = 1;
Characteristic.CurrentHeaterCoolerState.HEATING = 2;
Characteristic.CurrentHeaterCoolerState.COOLING = 3;
/**
* Characteristic "Current Heating Cooling State"
*/
Characteristic.CurrentHeatingCoolingState = function() {
Characteristic.call(this, 'Current Heating Cooling State', '0000000F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentHeatingCoolingState, Characteristic);
Characteristic.CurrentHeatingCoolingState.UUID = '0000000F-0000-1000-8000-0026BB765291';
// The value property of CurrentHeatingCoolingState must be one of the following:
Characteristic.CurrentHeatingCoolingState.OFF = 0;
Characteristic.CurrentHeatingCoolingState.HEAT = 1;
Characteristic.CurrentHeatingCoolingState.COOL = 2;
/**
* Characteristic "Current Horizontal Tilt Angle"
*/
Characteristic.CurrentHorizontalTiltAngle = function() {
Characteristic.call(this, 'Current Horizontal Tilt Angle', '0000006C-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.INT,
unit: Characteristic.Units.ARC_DEGREE,
maxValue: 90,
minValue: -90,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentHorizontalTiltAngle, Characteristic);
Characteristic.CurrentHorizontalTiltAngle.UUID = '0000006C-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Humidifier Dehumidifier State"
*/
Characteristic.CurrentHumidifierDehumidifierState = function() {
Characteristic.call(this, 'Current Humidifier Dehumidifier State', '000000B3-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 3,
minValue: 0,
validValues: [0, 1, 2, 3],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentHumidifierDehumidifierState, Characteristic);
Characteristic.CurrentHumidifierDehumidifierState.UUID = '000000B3-0000-1000-8000-0026BB765291';
// The value property of CurrentHumidifierDehumidifierState must be one of the following:
Characteristic.CurrentHumidifierDehumidifierState.INACTIVE = 0;
Characteristic.CurrentHumidifierDehumidifierState.IDLE = 1;
Characteristic.CurrentHumidifierDehumidifierState.HUMIDIFYING = 2;
Characteristic.CurrentHumidifierDehumidifierState.DEHUMIDIFYING = 3;
/**
* Characteristic "Current Position"
*/
Characteristic.CurrentPosition = function() {
Characteristic.call(this, 'Current Position', '0000006D-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
unit: Characteristic.Units.PERCENTAGE,
maxValue: 100,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentPosition, Characteristic);
Characteristic.CurrentPosition.UUID = '0000006D-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Relative Humidity"
*/
Characteristic.CurrentRelativeHumidity = function() {
Characteristic.call(this, 'Current Relative Humidity', '00000010-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.PERCENTAGE,
maxValue: 100,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentRelativeHumidity, Characteristic);
Characteristic.CurrentRelativeHumidity.UUID = '00000010-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Slat State"
*/
Characteristic.CurrentSlatState = function() {
Characteristic.call(this, 'Current Slat State', '000000AA-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentSlatState, Characteristic);
Characteristic.CurrentSlatState.UUID = '000000AA-0000-1000-8000-0026BB765291';
// The value property of CurrentSlatState must be one of the following:
Characteristic.CurrentSlatState.FIXED = 0;
Characteristic.CurrentSlatState.JAMMED = 1;
Characteristic.CurrentSlatState.SWINGING = 2;
/**
* Characteristic "Current Temperature"
*/
Characteristic.CurrentTemperature = function() {
Characteristic.call(this, 'Current Temperature', '00000011-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.CELSIUS,
maxValue: 100,
minValue: 0,
minStep: 0.1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentTemperature, Characteristic);
Characteristic.CurrentTemperature.UUID = '00000011-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Tilt Angle"
*/
Characteristic.CurrentTiltAngle = function() {
Characteristic.call(this, 'Current Tilt Angle', '000000C1-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.INT,
unit: Characteristic.Units.ARC_DEGREE,
maxValue: 90,
minValue: -90,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentTiltAngle, Characteristic);
Characteristic.CurrentTiltAngle.UUID = '000000C1-0000-1000-8000-0026BB765291';
/**
* Characteristic "Current Vertical Tilt Angle"
*/
Characteristic.CurrentVerticalTiltAngle = function() {
Characteristic.call(this, 'Current Vertical Tilt Angle', '0000006E-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.INT,
unit: Characteristic.Units.ARC_DEGREE,
maxValue: 90,
minValue: -90,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.CurrentVerticalTiltAngle, Characteristic);
Characteristic.CurrentVerticalTiltAngle.UUID = '0000006E-0000-1000-8000-0026BB765291';
/**
* Characteristic "Digital Zoom"
*/
Characteristic.DigitalZoom = function() {
Characteristic.call(this, 'Digital Zoom', '0000011D-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.DigitalZoom, Characteristic);
Characteristic.DigitalZoom.UUID = '0000011D-0000-1000-8000-0026BB765291';
/**
* Characteristic "Filter Change Indication"
*/
Characteristic.FilterChangeIndication = function() {
Characteristic.call(this, 'Filter Change Indication', '000000AC-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.FilterChangeIndication, Characteristic);
Characteristic.FilterChangeIndication.UUID = '000000AC-0000-1000-8000-0026BB765291';
// The value property of FilterChangeIndication must be one of the following:
Characteristic.FilterChangeIndication.FILTER_OK = 0;
Characteristic.FilterChangeIndication.CHANGE_FILTER = 1;
/**
* Characteristic "Filter Life Level"
*/
Characteristic.FilterLifeLevel = function() {
Characteristic.call(this, 'Filter Life Level', '000000AB-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 100,
minValue: 0,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.FilterLifeLevel, Characteristic);
Characteristic.FilterLifeLevel.UUID = '000000AB-0000-1000-8000-0026BB765291';
/**
* Characteristic "Firmware Revision"
*/
Characteristic.FirmwareRevision = function() {
Characteristic.call(this, 'Firmware Revision', '00000052-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.STRING,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.FirmwareRevision, Characteristic);
Characteristic.FirmwareRevision.UUID = '00000052-0000-1000-8000-0026BB765291';
/**
* Characteristic "Hardware Revision"
*/
Characteristic.HardwareRevision = function() {
Characteristic.call(this, 'Hardware Revision', '00000053-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.STRING,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.HardwareRevision, Characteristic);
Characteristic.HardwareRevision.UUID = '00000053-0000-1000-8000-0026BB765291';
/**
* Characteristic "Heating Threshold Temperature"
*/
Characteristic.HeatingThresholdTemperature = function() {
Characteristic.call(this, 'Heating Threshold Temperature', '00000012-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.CELSIUS,
maxValue: 25,
minValue: 0,
minStep: 0.1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.HeatingThresholdTemperature, Characteristic);
Characteristic.HeatingThresholdTemperature.UUID = '00000012-0000-1000-8000-0026BB765291';
/**
* Characteristic "Hold Position"
*/
Characteristic.HoldPosition = function() {
Characteristic.call(this, 'Hold Position', '0000006F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.HoldPosition, Characteristic);
Characteristic.HoldPosition.UUID = '0000006F-0000-1000-8000-0026BB765291';
/**
* Characteristic "Hue"
*/
Characteristic.Hue = function() {
Characteristic.call(this, 'Hue', '00000013-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.ARC_DEGREE,
maxValue: 360,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Hue, Characteristic);
Characteristic.Hue.UUID = '00000013-0000-1000-8000-0026BB765291';
/**
* Characteristic "Identify"
*/
Characteristic.Identify = function() {
Characteristic.call(this, 'Identify', '00000014-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Identify, Characteristic);
Characteristic.Identify.UUID = '00000014-0000-1000-8000-0026BB765291';
/**
* Characteristic "Image Mirroring"
*/
Characteristic.ImageMirroring = function() {
Characteristic.call(this, 'Image Mirroring', '0000011F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ImageMirroring, Characteristic);
Characteristic.ImageMirroring.UUID = '0000011F-0000-1000-8000-0026BB765291';
/**
* Characteristic "Image Rotation"
*/
Characteristic.ImageRotation = function() {
Characteristic.call(this, 'Image Rotation', '0000011E-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
unit: Characteristic.Units.ARC_DEGREE,
maxValue: 270,
minValue: 0,
minStep: 90,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ImageRotation, Characteristic);
Characteristic.ImageRotation.UUID = '0000011E-0000-1000-8000-0026BB765291';
/**
* Characteristic "In Use"
*/
Characteristic.InUse = function() {
Characteristic.call(this, 'In Use', '000000D2-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.InUse, Characteristic);
Characteristic.InUse.UUID = '000000D2-0000-1000-8000-0026BB765291';
// The value property of InUse must be one of the following:
Characteristic.InUse.NOT_IN_USE = 0;
Characteristic.InUse.IN_USE = 1;
/**
* Characteristic "Is Configured"
*/
Characteristic.IsConfigured = function() {
Characteristic.call(this, 'Is Configured', '000000D6-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.IsConfigured, Characteristic);
Characteristic.IsConfigured.UUID = '000000D6-0000-1000-8000-0026BB765291';
// The value property of IsConfigured must be one of the following:
Characteristic.IsConfigured.NOT_CONFIGURED = 0;
Characteristic.IsConfigured.CONFIGURED = 1;
/**
* Characteristic "Leak Detected"
*/
Characteristic.LeakDetected = function() {
Characteristic.call(this, 'Leak Detected', '00000070-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LeakDetected, Characteristic);
Characteristic.LeakDetected.UUID = '00000070-0000-1000-8000-0026BB765291';
// The value property of LeakDetected must be one of the following:
Characteristic.LeakDetected.LEAK_NOT_DETECTED = 0;
Characteristic.LeakDetected.LEAK_DETECTED = 1;
/**
* Characteristic "Lock Control Point"
*/
Characteristic.LockControlPoint = function() {
Characteristic.call(this, 'Lock Control Point', '00000019-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.TLV8,
perms: [Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockControlPoint, Characteristic);
Characteristic.LockControlPoint.UUID = '00000019-0000-1000-8000-0026BB765291';
/**
* Characteristic "Lock Current State"
*/
Characteristic.LockCurrentState = function() {
Characteristic.call(this, 'Lock Current State', '0000001D-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 3,
minValue: 0,
validValues: [0, 1, 2, 3],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockCurrentState, Characteristic);
Characteristic.LockCurrentState.UUID = '0000001D-0000-1000-8000-0026BB765291';
// The value property of LockCurrentState must be one of the following:
Characteristic.LockCurrentState.UNSECURED = 0;
Characteristic.LockCurrentState.SECURED = 1;
Characteristic.LockCurrentState.JAMMED = 2;
Characteristic.LockCurrentState.UNKNOWN = 3;
/**
* Characteristic "Lock Last Known Action"
*/
Characteristic.LockLastKnownAction = function() {
Characteristic.call(this, 'Lock Last Known Action', '0000001C-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 8,
minValue: 0,
validValues: [0, 1, 2, 3, 4, 5, 6, 7, 8],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockLastKnownAction, Characteristic);
Characteristic.LockLastKnownAction.UUID = '0000001C-0000-1000-8000-0026BB765291';
// The value property of LockLastKnownAction must be one of the following:
Characteristic.LockLastKnownAction.SECURED_PHYSICALLY_INTERIOR = 0;
Characteristic.LockLastKnownAction.UNSECURED_PHYSICALLY_INTERIOR = 1;
Characteristic.LockLastKnownAction.SECURED_PHYSICALLY_EXTERIOR = 2;
Characteristic.LockLastKnownAction.UNSECURED_PHYSICALLY_EXTERIOR = 3;
Characteristic.LockLastKnownAction.SECURED_BY_KEYPAD = 4;
Characteristic.LockLastKnownAction.UNSECURED_BY_KEYPAD = 5;
Characteristic.LockLastKnownAction.SECURED_REMOTELY = 6;
Characteristic.LockLastKnownAction.UNSECURED_REMOTELY = 7;
Characteristic.LockLastKnownAction.SECURED_BY_AUTO_SECURE_TIMEOUT = 8;
/**
* Characteristic "Lock Management Auto Security Timeout"
*/
Characteristic.LockManagementAutoSecurityTimeout = function() {
Characteristic.call(this, 'Lock Management Auto Security Timeout', '0000001A-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT32,
unit: Characteristic.Units.SECONDS,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockManagementAutoSecurityTimeout, Characteristic);
Characteristic.LockManagementAutoSecurityTimeout.UUID = '0000001A-0000-1000-8000-0026BB765291';
/**
* Characteristic "Lock Physical Controls"
*/
Characteristic.LockPhysicalControls = function() {
Characteristic.call(this, 'Lock Physical Controls', '000000A7-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockPhysicalControls, Characteristic);
Characteristic.LockPhysicalControls.UUID = '000000A7-0000-1000-8000-0026BB765291';
// The value property of LockPhysicalControls must be one of the following:
Characteristic.LockPhysicalControls.CONTROL_LOCK_DISABLED = 0;
Characteristic.LockPhysicalControls.CONTROL_LOCK_ENABLED = 1;
/**
* Characteristic "Lock Target State"
*/
Characteristic.LockTargetState = function() {
Characteristic.call(this, 'Lock Target State', '0000001E-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.LockTargetState, Characteristic);
Characteristic.LockTargetState.UUID = '0000001E-0000-1000-8000-0026BB765291';
// The value property of LockTargetState must be one of the following:
Characteristic.LockTargetState.UNSECURED = 0;
Characteristic.LockTargetState.SECURED = 1;
/**
* Characteristic "Logs"
*/
Characteristic.Logs = function() {
Characteristic.call(this, 'Logs', '0000001F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.TLV8,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Logs, Characteristic);
Characteristic.Logs.UUID = '0000001F-0000-1000-8000-0026BB765291';
/**
* Characteristic "Manufacturer"
*/
Characteristic.Manufacturer = function() {
Characteristic.call(this, 'Manufacturer', '00000020-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.STRING,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Manufacturer, Characteristic);
Characteristic.Manufacturer.UUID = '00000020-0000-1000-8000-0026BB765291';
/**
* Characteristic "Model"
*/
Characteristic.Model = function() {
Characteristic.call(this, 'Model', '00000021-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.STRING,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Model, Characteristic);
Characteristic.Model.UUID = '00000021-0000-1000-8000-0026BB765291';
/**
* Characteristic "Motion Detected"
*/
Characteristic.MotionDetected = function() {
Characteristic.call(this, 'Motion Detected', '00000022-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.MotionDetected, Characteristic);
Characteristic.MotionDetected.UUID = '00000022-0000-1000-8000-0026BB765291';
/**
* Characteristic "Mute"
*/
Characteristic.Mute = function() {
Characteristic.call(this, 'Mute', '0000011A-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Mute, Characteristic);
Characteristic.Mute.UUID = '0000011A-0000-1000-8000-0026BB765291';
/**
* Characteristic "Name"
*/
Characteristic.Name = function() {
Characteristic.call(this, 'Name', '00000023-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.STRING,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.Name, Characteristic);
Characteristic.Name.UUID = '00000023-0000-1000-8000-0026BB765291';
/**
* Characteristic "Night Vision"
*/
Characteristic.NightVision = function() {
Characteristic.call(this, 'Night Vision', '0000011B-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.NightVision, Characteristic);
Characteristic.NightVision.UUID = '0000011B-0000-1000-8000-0026BB765291';
/**
* Characteristic "Nitrogen Dioxide Density"
*/
Characteristic.NitrogenDioxideDensity = function() {
Characteristic.call(this, 'Nitrogen Dioxide Density', '000000C4-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 1000,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.NitrogenDioxideDensity, Characteristic);
Characteristic.NitrogenDioxideDensity.UUID = '000000C4-0000-1000-8000-0026BB765291';
/**
* Characteristic "Obstruction Detected"
*/
Characteristic.ObstructionDetected = function() {
Characteristic.call(this, 'Obstruction Detected', '00000024-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.ObstructionDetected, Characteristic);
Characteristic.ObstructionDetected.UUID = '00000024-0000-1000-8000-0026BB765291';
/**
* Characteristic "Occupancy Detected"
*/
Characteristic.OccupancyDetected = function() {
Characteristic.call(this, 'Occupancy Detected', '00000071-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 1,
minValue: 0,
validValues: [0, 1],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.OccupancyDetected, Characteristic);
Characteristic.OccupancyDetected.UUID = '00000071-0000-1000-8000-0026BB765291';
// The value property of OccupancyDetected must be one of the following:
Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED = 0;
Characteristic.OccupancyDetected.OCCUPANCY_DETECTED = 1;
/**
* Characteristic "On"
*/
Characteristic.On = function() {
Characteristic.call(this, 'On', '00000025-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.On, Characteristic);
Characteristic.On.UUID = '00000025-0000-1000-8000-0026BB765291';
/**
* Characteristic "Optical Zoom"
*/
Characteristic.OpticalZoom = function() {
Characteristic.call(this, 'Optical Zoom', '0000011C-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.OpticalZoom, Characteristic);
Characteristic.OpticalZoom.UUID = '0000011C-0000-1000-8000-0026BB765291';
/**
* Characteristic "Outlet In Use"
*/
Characteristic.OutletInUse = function() {
Characteristic.call(this, 'Outlet In Use', '00000026-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.OutletInUse, Characteristic);
Characteristic.OutletInUse.UUID = '00000026-0000-1000-8000-0026BB765291';
/**
* Characteristic "Ozone Density"
*/
Characteristic.OzoneDensity = function() {
Characteristic.call(this, 'Ozone Density', '000000C3-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 1000,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.OzoneDensity, Characteristic);
Characteristic.OzoneDensity.UUID = '000000C3-0000-1000-8000-0026BB765291';
/**
* Characteristic "Pair Setup"
*/
Characteristic.PairSetup = function() {
Characteristic.call(this, 'Pair Setup', '0000004C-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.TLV8,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PairSetup, Characteristic);
Characteristic.PairSetup.UUID = '0000004C-0000-1000-8000-0026BB765291';
/**
* Characteristic "Pair Verify"
*/
Characteristic.PairVerify = function() {
Characteristic.call(this, 'Pair Verify', '0000004E-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.TLV8,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PairVerify, Characteristic);
Characteristic.PairVerify.UUID = '0000004E-0000-1000-8000-0026BB765291';
/**
* Characteristic "Pairing Features"
*/
Characteristic.PairingFeatures = function() {
Characteristic.call(this, 'Pairing Features', '0000004F-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
perms: [Characteristic.Perms.READ]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PairingFeatures, Characteristic);
Characteristic.PairingFeatures.UUID = '0000004F-0000-1000-8000-0026BB765291';
/**
* Characteristic "Pairing Pairings"
*/
Characteristic.PairingPairings = function() {
Characteristic.call(this, 'Pairing Pairings', '00000050-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.TLV8,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PairingPairings, Characteristic);
Characteristic.PairingPairings.UUID = '00000050-0000-1000-8000-0026BB765291';
/**
* Characteristic "PM10 Density"
*/
Characteristic.PM10Density = function() {
Characteristic.call(this, 'PM10 Density', '000000C7-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 1000,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PM10Density, Characteristic);
Characteristic.PM10Density.UUID = '000000C7-0000-1000-8000-0026BB765291';
/**
* Characteristic "PM2.5 Density"
*/
Characteristic.PM2_5Density = function() {
Characteristic.call(this, 'PM2.5 Density', '000000C6-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.FLOAT,
maxValue: 1000,
minValue: 0,
minStep: 1,
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PM2_5Density, Characteristic);
Characteristic.PM2_5Density.UUID = '000000C6-0000-1000-8000-0026BB765291';
/**
* Characteristic "Position State"
*/
Characteristic.PositionState = function() {
Characteristic.call(this, 'Position State', '00000072-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.PositionState, Characteristic);
Characteristic.PositionState.UUID = '00000072-0000-1000-8000-0026BB765291';
// The value property of PositionState must be one of the following:
Characteristic.PositionState.DECREASING = 0;
Characteristic.PositionState.INCREASING = 1;
Characteristic.PositionState.STOPPED = 2;
/**
* Characteristic "Program Mode"
*/
Characteristic.ProgramMode = function() {
Characteristic.call(this, 'Program Mode', '000000D1-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0, 1, 2