hap-nodejs 1.1.1-beta.1 → 1.1.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/bonjour-hap.d.ts +50 -53
- package/README.md +16 -19
- package/dist/accessories/AirConditioner_accessory.js +28 -30
- package/dist/accessories/AirConditioner_accessory.js.map +1 -1
- package/dist/accessories/AppleTVRemote_accessory.js +69 -81
- package/dist/accessories/AppleTVRemote_accessory.js.map +1 -1
- package/dist/accessories/Camera_accessory.js +141 -136
- package/dist/accessories/Camera_accessory.js.map +1 -1
- package/dist/accessories/Fan_accessory.js +18 -22
- package/dist/accessories/Fan_accessory.js.map +1 -1
- package/dist/accessories/GarageDoorOpener_accessory.js +33 -35
- package/dist/accessories/GarageDoorOpener_accessory.js.map +1 -1
- package/dist/accessories/Light-AdaptiveLighting_accessory.js +42 -44
- package/dist/accessories/Light-AdaptiveLighting_accessory.js.map +1 -1
- package/dist/accessories/Light_accessory.js +32 -34
- package/dist/accessories/Light_accessory.js.map +1 -1
- package/dist/accessories/Lock_accessory.js +25 -26
- package/dist/accessories/Lock_accessory.js.map +1 -1
- package/dist/accessories/MotionSensor_accessory.js +13 -16
- package/dist/accessories/MotionSensor_accessory.js.map +1 -1
- package/dist/accessories/Outlet_accessory.js +20 -22
- package/dist/accessories/Outlet_accessory.js.map +1 -1
- package/dist/accessories/SmartSpeaker_accessory.js +18 -20
- package/dist/accessories/SmartSpeaker_accessory.js.map +1 -1
- package/dist/accessories/Sprinkler_accessory.js +34 -37
- package/dist/accessories/Sprinkler_accessory.js.map +1 -1
- package/dist/accessories/TV_accessory.js +43 -45
- package/dist/accessories/TV_accessory.js.map +1 -1
- package/dist/accessories/TemperatureSensor_accessory.js +12 -15
- package/dist/accessories/TemperatureSensor_accessory.js.map +1 -1
- package/dist/accessories/Wi-FiRouter_accessory.d.ts +1 -1
- package/dist/accessories/Wi-FiRouter_accessory.d.ts.map +1 -1
- package/dist/accessories/Wi-FiRouter_accessory.js +9 -12
- package/dist/accessories/Wi-FiRouter_accessory.js.map +1 -1
- package/dist/accessories/Wi-FiSatellite_accessory.d.ts +1 -1
- package/dist/accessories/Wi-FiSatellite_accessory.d.ts.map +1 -1
- package/dist/accessories/Wi-FiSatellite_accessory.js +11 -14
- package/dist/accessories/Wi-FiSatellite_accessory.js.map +1 -1
- package/dist/accessories/gstreamer-audioProducer.d.ts +3 -3
- package/dist/accessories/gstreamer-audioProducer.d.ts.map +1 -1
- package/dist/accessories/gstreamer-audioProducer.js +37 -38
- package/dist/accessories/gstreamer-audioProducer.js.map +1 -1
- package/dist/accessories/types.d.ts +63 -63
- package/dist/accessories/types.d.ts.map +1 -1
- package/dist/accessories/types.js +83 -87
- package/dist/accessories/types.js.map +1 -1
- package/dist/index.d.ts +26 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -34
- package/dist/index.js.map +1 -1
- package/dist/internal-types.d.ts +1 -1
- package/dist/internal-types.d.ts.map +1 -1
- package/dist/internal-types.js +19 -21
- package/dist/internal-types.js.map +1 -1
- package/dist/lib/Accessory.d.ts +39 -38
- package/dist/lib/Accessory.d.ts.map +1 -1
- package/dist/lib/Accessory.js +314 -292
- package/dist/lib/Accessory.js.map +1 -1
- package/dist/lib/Advertiser.d.ts +7 -7
- package/dist/lib/Advertiser.d.ts.map +1 -1
- package/dist/lib/Advertiser.js +128 -136
- package/dist/lib/Advertiser.js.map +1 -1
- package/dist/lib/Bridge.d.ts +1 -1
- package/dist/lib/Bridge.d.ts.map +1 -1
- package/dist/lib/Bridge.js +2 -6
- package/dist/lib/Bridge.js.map +1 -1
- package/dist/lib/Characteristic.d.ts +40 -41
- package/dist/lib/Characteristic.d.ts.map +1 -1
- package/dist/lib/Characteristic.js +204 -208
- package/dist/lib/Characteristic.js.map +1 -1
- package/dist/lib/HAPServer.d.ts +31 -30
- package/dist/lib/HAPServer.d.ts.map +1 -1
- package/dist/lib/HAPServer.js +220 -229
- package/dist/lib/HAPServer.js.map +1 -1
- package/dist/lib/Service.d.ts +22 -22
- package/dist/lib/Service.d.ts.map +1 -1
- package/dist/lib/Service.js +63 -67
- package/dist/lib/Service.js.map +1 -1
- package/dist/lib/camera/RTPProxy.d.ts +2 -1
- package/dist/lib/camera/RTPProxy.d.ts.map +1 -1
- package/dist/lib/camera/RTPProxy.js +28 -44
- package/dist/lib/camera/RTPProxy.js.map +1 -1
- package/dist/lib/camera/RTPStreamManagement.d.ts +34 -33
- package/dist/lib/camera/RTPStreamManagement.d.ts.map +1 -1
- package/dist/lib/camera/RTPStreamManagement.js +179 -151
- package/dist/lib/camera/RTPStreamManagement.js.map +1 -1
- package/dist/lib/camera/RecordingManagement.d.ts +19 -17
- package/dist/lib/camera/RecordingManagement.d.ts.map +1 -1
- package/dist/lib/camera/RecordingManagement.js +160 -151
- package/dist/lib/camera/RecordingManagement.js.map +1 -1
- package/dist/lib/camera/index.d.ts +3 -3
- package/dist/lib/camera/index.d.ts.map +1 -1
- package/dist/lib/camera/index.js +3 -6
- package/dist/lib/camera/index.js.map +1 -1
- package/dist/lib/controller/AdaptiveLightingController.d.ts +33 -33
- package/dist/lib/controller/AdaptiveLightingController.d.ts.map +1 -1
- package/dist/lib/controller/AdaptiveLightingController.js +152 -144
- package/dist/lib/controller/AdaptiveLightingController.js.map +1 -1
- package/dist/lib/controller/CameraController.d.ts +22 -20
- package/dist/lib/controller/CameraController.d.ts.map +1 -1
- package/dist/lib/controller/CameraController.js +74 -78
- package/dist/lib/controller/CameraController.js.map +1 -1
- package/dist/lib/controller/Controller.d.ts +4 -4
- package/dist/lib/controller/Controller.d.ts.map +1 -1
- package/dist/lib/controller/Controller.js +5 -8
- package/dist/lib/controller/Controller.js.map +1 -1
- package/dist/lib/controller/DoorbellController.d.ts +5 -4
- package/dist/lib/controller/DoorbellController.d.ts.map +1 -1
- package/dist/lib/controller/DoorbellController.js +9 -13
- package/dist/lib/controller/DoorbellController.js.map +1 -1
- package/dist/lib/controller/RemoteController.d.ts +39 -37
- package/dist/lib/controller/RemoteController.d.ts.map +1 -1
- package/dist/lib/controller/RemoteController.js +208 -197
- package/dist/lib/controller/RemoteController.js.map +1 -1
- package/dist/lib/controller/index.d.ts +5 -5
- package/dist/lib/controller/index.d.ts.map +1 -1
- package/dist/lib/controller/index.js +5 -8
- package/dist/lib/controller/index.js.map +1 -1
- package/dist/lib/datastream/DataStreamManagement.d.ts +2 -2
- package/dist/lib/datastream/DataStreamManagement.d.ts.map +1 -1
- package/dist/lib/datastream/DataStreamManagement.js +39 -39
- package/dist/lib/datastream/DataStreamManagement.js.map +1 -1
- package/dist/lib/datastream/DataStreamParser.d.ts +1 -0
- package/dist/lib/datastream/DataStreamParser.d.ts.map +1 -1
- package/dist/lib/datastream/DataStreamParser.js +57 -77
- package/dist/lib/datastream/DataStreamParser.js.map +1 -1
- package/dist/lib/datastream/DataStreamServer.d.ts +23 -22
- package/dist/lib/datastream/DataStreamServer.d.ts.map +1 -1
- package/dist/lib/datastream/DataStreamServer.js +154 -164
- package/dist/lib/datastream/DataStreamServer.js.map +1 -1
- package/dist/lib/datastream/index.d.ts +3 -3
- package/dist/lib/datastream/index.d.ts.map +1 -1
- package/dist/lib/datastream/index.js +3 -6
- package/dist/lib/datastream/index.js.map +1 -1
- package/dist/lib/dbus/align.d.ts +2 -0
- package/dist/lib/dbus/align.d.ts.map +1 -0
- package/dist/lib/dbus/align.js +12 -0
- package/dist/lib/dbus/align.js.map +1 -0
- package/dist/lib/dbus/bus.d.ts +38 -0
- package/dist/lib/dbus/bus.d.ts.map +1 -0
- package/dist/lib/dbus/bus.js +222 -0
- package/dist/lib/dbus/bus.js.map +1 -0
- package/dist/lib/dbus/constants.d.ts +43 -0
- package/dist/lib/dbus/constants.d.ts.map +1 -0
- package/dist/lib/dbus/constants.js +53 -0
- package/dist/lib/dbus/constants.js.map +1 -0
- package/dist/lib/dbus/dbus-buffer.d.ts +30 -0
- package/dist/lib/dbus/dbus-buffer.d.ts.map +1 -0
- package/dist/lib/dbus/dbus-buffer.js +175 -0
- package/dist/lib/dbus/dbus-buffer.js.map +1 -0
- package/dist/lib/dbus/handshake.d.ts +2 -0
- package/dist/lib/dbus/handshake.d.ts.map +1 -0
- package/dist/lib/dbus/handshake.js +130 -0
- package/dist/lib/dbus/handshake.js.map +1 -0
- package/dist/lib/dbus/index.d.ts +3 -0
- package/dist/lib/dbus/index.d.ts.map +1 -0
- package/dist/lib/dbus/index.js +123 -0
- package/dist/lib/dbus/index.js.map +1 -0
- package/dist/lib/dbus/introspect.d.ts +30 -0
- package/dist/lib/dbus/introspect.d.ts.map +1 -0
- package/dist/lib/dbus/introspect.js +208 -0
- package/dist/lib/dbus/introspect.js.map +1 -0
- package/dist/lib/dbus/marshall.d.ts +2 -0
- package/dist/lib/dbus/marshall.d.ts.map +1 -0
- package/dist/lib/dbus/marshall.js +97 -0
- package/dist/lib/dbus/marshall.js.map +1 -0
- package/dist/lib/dbus/marshallers.d.ts +10 -0
- package/dist/lib/dbus/marshallers.d.ts.map +1 -0
- package/dist/lib/dbus/marshallers.js +329 -0
- package/dist/lib/dbus/marshallers.js.map +1 -0
- package/dist/lib/dbus/message.d.ts +4 -0
- package/dist/lib/dbus/message.d.ts.map +1 -0
- package/dist/lib/dbus/message.js +116 -0
- package/dist/lib/dbus/message.js.map +1 -0
- package/dist/lib/dbus/put.d.ts +21 -0
- package/dist/lib/dbus/put.d.ts.map +1 -0
- package/dist/lib/dbus/put.js +120 -0
- package/dist/lib/dbus/put.js.map +1 -0
- package/dist/lib/dbus/readline.d.ts +2 -0
- package/dist/lib/dbus/readline.d.ts.map +1 -0
- package/dist/lib/dbus/readline.js +27 -0
- package/dist/lib/dbus/readline.js.map +1 -0
- package/dist/lib/dbus/signature.d.ts +2 -0
- package/dist/lib/dbus/signature.d.ts.map +1 -0
- package/dist/lib/dbus/signature.js +58 -0
- package/dist/lib/dbus/signature.js.map +1 -0
- package/dist/lib/dbus/stdifaces.d.ts +3 -0
- package/dist/lib/dbus/stdifaces.d.ts.map +1 -0
- package/dist/lib/dbus/stdifaces.js +206 -0
- package/dist/lib/dbus/stdifaces.js.map +1 -0
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts +1 -1
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts.map +1 -1
- package/dist/lib/definitions/CharacteristicDefinitions.js +958 -1204
- package/dist/lib/definitions/CharacteristicDefinitions.js.map +1 -1
- package/dist/lib/definitions/ServiceDefinitions.d.ts +1 -1
- package/dist/lib/definitions/ServiceDefinitions.d.ts.map +1 -1
- package/dist/lib/definitions/ServiceDefinitions.js +620 -695
- package/dist/lib/definitions/ServiceDefinitions.js.map +1 -1
- package/dist/lib/definitions/generate-definitions.d.ts +3 -3
- package/dist/lib/definitions/generate-definitions.d.ts.map +1 -1
- package/dist/lib/definitions/generate-definitions.js +246 -253
- package/dist/lib/definitions/generate-definitions.js.map +1 -1
- package/dist/lib/definitions/generator-configuration.d.ts +1 -1
- package/dist/lib/definitions/generator-configuration.d.ts.map +1 -1
- package/dist/lib/definitions/generator-configuration.js +160 -165
- package/dist/lib/definitions/generator-configuration.js.map +1 -1
- package/dist/lib/definitions/index.d.ts +2 -2
- package/dist/lib/definitions/index.d.ts.map +1 -1
- package/dist/lib/definitions/index.js +2 -5
- package/dist/lib/definitions/index.js.map +1 -1
- package/dist/lib/model/AccessoryInfo.d.ts +4 -3
- package/dist/lib/model/AccessoryInfo.d.ts.map +1 -1
- package/dist/lib/model/AccessoryInfo.js +50 -53
- package/dist/lib/model/AccessoryInfo.js.map +1 -1
- package/dist/lib/model/ControllerStorage.d.ts +3 -3
- package/dist/lib/model/ControllerStorage.d.ts.map +1 -1
- package/dist/lib/model/ControllerStorage.js +17 -22
- package/dist/lib/model/ControllerStorage.js.map +1 -1
- package/dist/lib/model/HAPStorage.d.ts +2 -2
- package/dist/lib/model/HAPStorage.d.ts.map +1 -1
- package/dist/lib/model/HAPStorage.js +4 -11
- package/dist/lib/model/HAPStorage.js.map +1 -1
- package/dist/lib/model/IdentifierCache.d.ts +1 -1
- package/dist/lib/model/IdentifierCache.d.ts.map +1 -1
- package/dist/lib/model/IdentifierCache.js +19 -27
- package/dist/lib/model/IdentifierCache.js.map +1 -1
- package/dist/lib/tv/AccessControlManagement.d.ts +9 -9
- package/dist/lib/tv/AccessControlManagement.d.ts.map +1 -1
- package/dist/lib/tv/AccessControlManagement.js +27 -29
- package/dist/lib/tv/AccessControlManagement.js.map +1 -1
- package/dist/lib/util/checkName.d.ts +2 -2
- package/dist/lib/util/checkName.d.ts.map +1 -1
- package/dist/lib/util/checkName.js +6 -9
- package/dist/lib/util/checkName.js.map +1 -1
- package/dist/lib/util/clone.d.ts.map +1 -1
- package/dist/lib/util/clone.js +1 -5
- package/dist/lib/util/clone.js.map +1 -1
- package/dist/lib/util/color-utils.d.ts +1 -1
- package/dist/lib/util/color-utils.d.ts.map +1 -1
- package/dist/lib/util/color-utils.js +4 -9
- package/dist/lib/util/color-utils.js.map +1 -1
- package/dist/lib/util/eventedhttp.d.ts +23 -22
- package/dist/lib/util/eventedhttp.d.ts.map +1 -1
- package/dist/lib/util/eventedhttp.js +109 -116
- package/dist/lib/util/eventedhttp.js.map +1 -1
- package/dist/lib/util/hapCrypto.d.ts +3 -2
- package/dist/lib/util/hapCrypto.d.ts.map +1 -1
- package/dist/lib/util/hapCrypto.js +31 -40
- package/dist/lib/util/hapCrypto.js.map +1 -1
- package/dist/lib/util/hapStatusError.d.ts +1 -1
- package/dist/lib/util/hapStatusError.d.ts.map +1 -1
- package/dist/lib/util/hapStatusError.js +4 -8
- package/dist/lib/util/hapStatusError.js.map +1 -1
- package/dist/lib/util/net-utils.d.ts +1 -1
- package/dist/lib/util/net-utils.js +17 -23
- package/dist/lib/util/net-utils.js.map +1 -1
- package/dist/lib/util/once.d.ts.map +1 -1
- package/dist/lib/util/once.js +2 -6
- package/dist/lib/util/once.js.map +1 -1
- package/dist/lib/util/promise-utils.d.ts +1 -1
- package/dist/lib/util/promise-utils.d.ts.map +1 -1
- package/dist/lib/util/promise-utils.js +3 -9
- package/dist/lib/util/promise-utils.js.map +1 -1
- package/dist/lib/util/request-util.d.ts +3 -2
- package/dist/lib/util/request-util.d.ts.map +1 -1
- package/dist/lib/util/request-util.js +11 -19
- package/dist/lib/util/request-util.js.map +1 -1
- package/dist/lib/util/time.d.ts +1 -0
- package/dist/lib/util/time.d.ts.map +1 -1
- package/dist/lib/util/time.js +6 -11
- package/dist/lib/util/time.js.map +1 -1
- package/dist/lib/util/tlv.d.ts +1 -0
- package/dist/lib/util/tlv.d.ts.map +1 -1
- package/dist/lib/util/tlv.js +28 -43
- package/dist/lib/util/tlv.js.map +1 -1
- package/dist/lib/util/uuid.d.ts +1 -0
- package/dist/lib/util/uuid.d.ts.map +1 -1
- package/dist/lib/util/uuid.js +26 -38
- package/dist/lib/util/uuid.js.map +1 -1
- package/dist/types.d.ts +24 -24
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -5
- package/dist/types.js.map +1 -1
- package/package.json +51 -46
- package/@types/simple-plist.d.ts +0 -4
- package/dist/lib/gen/HomeKit.d.ts +0 -7
- package/dist/lib/gen/HomeKit.d.ts.map +0 -1
- package/dist/lib/gen/HomeKit.js +0 -8
- package/dist/lib/gen/HomeKit.js.map +0 -1
|
@@ -1,1325 +1,1250 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// THIS FILE IS AUTO-GENERATED - DO NOT MODIFY
|
|
3
2
|
// V=886
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.WindowCovering = exports.Window = exports.WiFiTransport = exports.WiFiSatellite = exports.WiFiRouter = exports.Valve = exports.TransferTransportManagement = exports.ThreadTransport = exports.Thermostat = exports.TemperatureSensor = exports.TelevisionSpeaker = exports.Television = exports.TargetControlManagement = exports.TargetControl = exports.TapManagement = exports.Switch = exports.StatelessProgrammableSwitch = exports.StatefulProgrammableSwitch = exports.Speaker = exports.SmokeSensor = exports.SmartSpeaker = void 0;
|
|
7
|
-
const Characteristic_1 = require("../Characteristic");
|
|
8
|
-
const Service_1 = require("../Service");
|
|
3
|
+
import { Characteristic } from '../Characteristic.js';
|
|
4
|
+
import { Service } from '../Service.js';
|
|
9
5
|
/**
|
|
10
6
|
* Service "Access Code"
|
|
11
7
|
* @since iOS 15
|
|
12
8
|
*/
|
|
13
|
-
class AccessCode extends
|
|
14
|
-
static UUID =
|
|
9
|
+
export class AccessCode extends Service {
|
|
10
|
+
static UUID = '00000260-0000-1000-8000-0026BB765291';
|
|
15
11
|
constructor(displayName, subtype) {
|
|
16
12
|
super(displayName, AccessCode.UUID, subtype);
|
|
17
13
|
// Required Characteristics
|
|
18
|
-
this.addCharacteristic(
|
|
19
|
-
this.addCharacteristic(
|
|
20
|
-
this.addCharacteristic(
|
|
14
|
+
this.addCharacteristic(Characteristic.AccessCodeControlPoint);
|
|
15
|
+
this.addCharacteristic(Characteristic.AccessCodeSupportedConfiguration);
|
|
16
|
+
this.addCharacteristic(Characteristic.ConfigurationState);
|
|
21
17
|
}
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
Service_1.Service.AccessCode = AccessCode;
|
|
19
|
+
Service.AccessCode = AccessCode;
|
|
25
20
|
/**
|
|
26
21
|
* Service "Access Control"
|
|
27
22
|
*/
|
|
28
|
-
class AccessControl extends
|
|
29
|
-
static UUID =
|
|
23
|
+
export class AccessControl extends Service {
|
|
24
|
+
static UUID = '000000DA-0000-1000-8000-0026BB765291';
|
|
30
25
|
constructor(displayName, subtype) {
|
|
31
26
|
super(displayName, AccessControl.UUID, subtype);
|
|
32
27
|
// Required Characteristics
|
|
33
|
-
this.addCharacteristic(
|
|
28
|
+
this.addCharacteristic(Characteristic.AccessControlLevel);
|
|
34
29
|
// Optional Characteristics
|
|
35
|
-
this.addOptionalCharacteristic(
|
|
30
|
+
this.addOptionalCharacteristic(Characteristic.PasswordSetting);
|
|
36
31
|
}
|
|
37
32
|
}
|
|
38
|
-
|
|
39
|
-
Service_1.Service.AccessControl = AccessControl;
|
|
33
|
+
Service.AccessControl = AccessControl;
|
|
40
34
|
/**
|
|
41
35
|
* Service "Accessory Information"
|
|
42
36
|
*/
|
|
43
|
-
class AccessoryInformation extends
|
|
44
|
-
static UUID =
|
|
37
|
+
export class AccessoryInformation extends Service {
|
|
38
|
+
static UUID = '0000003E-0000-1000-8000-0026BB765291';
|
|
45
39
|
constructor(displayName, subtype) {
|
|
46
40
|
super(displayName, AccessoryInformation.UUID, subtype);
|
|
47
41
|
// Required Characteristics
|
|
48
|
-
this.addCharacteristic(
|
|
49
|
-
this.addCharacteristic(
|
|
50
|
-
this.addCharacteristic(
|
|
51
|
-
if (!this.testCharacteristic(
|
|
52
|
-
this.addCharacteristic(
|
|
42
|
+
this.addCharacteristic(Characteristic.Identify);
|
|
43
|
+
this.addCharacteristic(Characteristic.Manufacturer);
|
|
44
|
+
this.addCharacteristic(Characteristic.Model);
|
|
45
|
+
if (!this.testCharacteristic(Characteristic.Name)) { // workaround for Name characteristic collision in constructor
|
|
46
|
+
this.addCharacteristic(Characteristic.Name).updateValue('Unnamed Service');
|
|
53
47
|
}
|
|
54
|
-
this.addCharacteristic(
|
|
55
|
-
this.addCharacteristic(
|
|
48
|
+
this.addCharacteristic(Characteristic.SerialNumber);
|
|
49
|
+
this.addCharacteristic(Characteristic.FirmwareRevision);
|
|
56
50
|
// Optional Characteristics
|
|
57
|
-
this.addOptionalCharacteristic(
|
|
58
|
-
this.addOptionalCharacteristic(
|
|
59
|
-
this.addOptionalCharacteristic(
|
|
60
|
-
this.addOptionalCharacteristic(
|
|
61
|
-
this.addOptionalCharacteristic(
|
|
62
|
-
this.addOptionalCharacteristic(
|
|
63
|
-
this.addOptionalCharacteristic(
|
|
64
|
-
this.addOptionalCharacteristic(
|
|
51
|
+
this.addOptionalCharacteristic(Characteristic.AccessoryFlags);
|
|
52
|
+
this.addOptionalCharacteristic(Characteristic.AppMatchingIdentifier);
|
|
53
|
+
this.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
54
|
+
this.addOptionalCharacteristic(Characteristic.MatterFirmwareRevisionNumber);
|
|
55
|
+
this.addOptionalCharacteristic(Characteristic.HardwareFinish);
|
|
56
|
+
this.addOptionalCharacteristic(Characteristic.HardwareRevision);
|
|
57
|
+
this.addOptionalCharacteristic(Characteristic.ProductData);
|
|
58
|
+
this.addOptionalCharacteristic(Characteristic.SoftwareRevision);
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
Service_1.Service.AccessoryInformation = AccessoryInformation;
|
|
61
|
+
Service.AccessoryInformation = AccessoryInformation;
|
|
69
62
|
/**
|
|
70
63
|
* Service "Accessory Metrics"
|
|
71
64
|
*/
|
|
72
|
-
class AccessoryMetrics extends
|
|
73
|
-
static UUID =
|
|
65
|
+
export class AccessoryMetrics extends Service {
|
|
66
|
+
static UUID = '00000270-0000-1000-8000-0026BB765291';
|
|
74
67
|
constructor(displayName, subtype) {
|
|
75
68
|
super(displayName, AccessoryMetrics.UUID, subtype);
|
|
76
69
|
// Required Characteristics
|
|
77
|
-
this.addCharacteristic(
|
|
78
|
-
this.addCharacteristic(
|
|
79
|
-
this.addCharacteristic(
|
|
70
|
+
this.addCharacteristic(Characteristic.Active);
|
|
71
|
+
this.addCharacteristic(Characteristic.MetricsBufferFullState);
|
|
72
|
+
this.addCharacteristic(Characteristic.SupportedMetrics);
|
|
80
73
|
}
|
|
81
74
|
}
|
|
82
|
-
|
|
83
|
-
Service_1.Service.AccessoryMetrics = AccessoryMetrics;
|
|
75
|
+
Service.AccessoryMetrics = AccessoryMetrics;
|
|
84
76
|
/**
|
|
85
77
|
* Service "Accessory Runtime Information"
|
|
86
78
|
*/
|
|
87
|
-
class AccessoryRuntimeInformation extends
|
|
88
|
-
static UUID =
|
|
79
|
+
export class AccessoryRuntimeInformation extends Service {
|
|
80
|
+
static UUID = '00000239-0000-1000-8000-0026BB765291';
|
|
89
81
|
constructor(displayName, subtype) {
|
|
90
82
|
super(displayName, AccessoryRuntimeInformation.UUID, subtype);
|
|
91
83
|
// Required Characteristics
|
|
92
|
-
this.addCharacteristic(
|
|
84
|
+
this.addCharacteristic(Characteristic.Ping);
|
|
93
85
|
// Optional Characteristics
|
|
94
|
-
this.addOptionalCharacteristic(
|
|
95
|
-
this.addOptionalCharacteristic(
|
|
96
|
-
this.addOptionalCharacteristic(
|
|
86
|
+
this.addOptionalCharacteristic(Characteristic.ActivityInterval);
|
|
87
|
+
this.addOptionalCharacteristic(Characteristic.HeartBeat);
|
|
88
|
+
this.addOptionalCharacteristic(Characteristic.SleepInterval);
|
|
97
89
|
}
|
|
98
90
|
}
|
|
99
|
-
|
|
100
|
-
Service_1.Service.AccessoryRuntimeInformation = AccessoryRuntimeInformation;
|
|
91
|
+
Service.AccessoryRuntimeInformation = AccessoryRuntimeInformation;
|
|
101
92
|
/**
|
|
102
93
|
* Service "Air Purifier"
|
|
103
94
|
*/
|
|
104
|
-
class AirPurifier extends
|
|
105
|
-
static UUID =
|
|
95
|
+
export class AirPurifier extends Service {
|
|
96
|
+
static UUID = '000000BB-0000-1000-8000-0026BB765291';
|
|
106
97
|
constructor(displayName, subtype) {
|
|
107
98
|
super(displayName, AirPurifier.UUID, subtype);
|
|
108
99
|
// Required Characteristics
|
|
109
|
-
this.addCharacteristic(
|
|
110
|
-
this.addCharacteristic(
|
|
111
|
-
this.addCharacteristic(
|
|
100
|
+
this.addCharacteristic(Characteristic.Active);
|
|
101
|
+
this.addCharacteristic(Characteristic.CurrentAirPurifierState);
|
|
102
|
+
this.addCharacteristic(Characteristic.TargetAirPurifierState);
|
|
112
103
|
// Optional Characteristics
|
|
113
|
-
this.addOptionalCharacteristic(
|
|
114
|
-
this.addOptionalCharacteristic(
|
|
115
|
-
this.addOptionalCharacteristic(
|
|
116
|
-
this.addOptionalCharacteristic(
|
|
104
|
+
this.addOptionalCharacteristic(Characteristic.LockPhysicalControls);
|
|
105
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
106
|
+
this.addOptionalCharacteristic(Characteristic.RotationSpeed);
|
|
107
|
+
this.addOptionalCharacteristic(Characteristic.SwingMode);
|
|
117
108
|
}
|
|
118
109
|
}
|
|
119
|
-
|
|
120
|
-
Service_1.Service.AirPurifier = AirPurifier;
|
|
110
|
+
Service.AirPurifier = AirPurifier;
|
|
121
111
|
/**
|
|
122
112
|
* Service "Air Quality Sensor"
|
|
123
113
|
*/
|
|
124
|
-
class AirQualitySensor extends
|
|
125
|
-
static UUID =
|
|
114
|
+
export class AirQualitySensor extends Service {
|
|
115
|
+
static UUID = '0000008D-0000-1000-8000-0026BB765291';
|
|
126
116
|
constructor(displayName, subtype) {
|
|
127
117
|
super(displayName, AirQualitySensor.UUID, subtype);
|
|
128
118
|
// Required Characteristics
|
|
129
|
-
this.addCharacteristic(
|
|
119
|
+
this.addCharacteristic(Characteristic.AirQuality);
|
|
130
120
|
// Optional Characteristics
|
|
131
|
-
this.addOptionalCharacteristic(
|
|
132
|
-
this.addOptionalCharacteristic(
|
|
133
|
-
this.addOptionalCharacteristic(
|
|
134
|
-
this.addOptionalCharacteristic(
|
|
135
|
-
this.addOptionalCharacteristic(
|
|
136
|
-
this.addOptionalCharacteristic(
|
|
137
|
-
this.addOptionalCharacteristic(
|
|
138
|
-
this.addOptionalCharacteristic(
|
|
139
|
-
this.addOptionalCharacteristic(
|
|
140
|
-
this.addOptionalCharacteristic(
|
|
141
|
-
this.addOptionalCharacteristic(
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
Service_1.Service.AirQualitySensor = AirQualitySensor;
|
|
121
|
+
this.addOptionalCharacteristic(Characteristic.NitrogenDioxideDensity);
|
|
122
|
+
this.addOptionalCharacteristic(Characteristic.OzoneDensity);
|
|
123
|
+
this.addOptionalCharacteristic(Characteristic.PM10Density);
|
|
124
|
+
this.addOptionalCharacteristic(Characteristic.PM2_5Density);
|
|
125
|
+
this.addOptionalCharacteristic(Characteristic.SulphurDioxideDensity);
|
|
126
|
+
this.addOptionalCharacteristic(Characteristic.VOCDensity);
|
|
127
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
128
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
129
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
130
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
131
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
Service.AirQualitySensor = AirQualitySensor;
|
|
146
135
|
/**
|
|
147
136
|
* Service "Asset Update"
|
|
148
137
|
*/
|
|
149
|
-
class AssetUpdate extends
|
|
150
|
-
static UUID =
|
|
138
|
+
export class AssetUpdate extends Service {
|
|
139
|
+
static UUID = '00000267-0000-1000-8000-0026BB765291';
|
|
151
140
|
constructor(displayName, subtype) {
|
|
152
141
|
super(displayName, AssetUpdate.UUID, subtype);
|
|
153
142
|
// Required Characteristics
|
|
154
|
-
this.addCharacteristic(
|
|
155
|
-
this.addCharacteristic(
|
|
143
|
+
this.addCharacteristic(Characteristic.AssetUpdateReadiness);
|
|
144
|
+
this.addCharacteristic(Characteristic.SupportedAssetTypes);
|
|
156
145
|
}
|
|
157
146
|
}
|
|
158
|
-
|
|
159
|
-
Service_1.Service.AssetUpdate = AssetUpdate;
|
|
147
|
+
Service.AssetUpdate = AssetUpdate;
|
|
160
148
|
/**
|
|
161
149
|
* Service "Assistant"
|
|
162
150
|
*/
|
|
163
|
-
class Assistant extends
|
|
164
|
-
static UUID =
|
|
151
|
+
export class Assistant extends Service {
|
|
152
|
+
static UUID = '0000026A-0000-1000-8000-0026BB765291';
|
|
165
153
|
constructor(displayName, subtype) {
|
|
166
154
|
super(displayName, Assistant.UUID, subtype);
|
|
167
155
|
// Required Characteristics
|
|
168
|
-
this.addCharacteristic(
|
|
169
|
-
this.addCharacteristic(
|
|
170
|
-
if (!this.testCharacteristic(
|
|
171
|
-
this.addCharacteristic(
|
|
156
|
+
this.addCharacteristic(Characteristic.Active);
|
|
157
|
+
this.addCharacteristic(Characteristic.Identifier);
|
|
158
|
+
if (!this.testCharacteristic(Characteristic.Name)) { // workaround for Name characteristic collision in constructor
|
|
159
|
+
this.addCharacteristic(Characteristic.Name).updateValue('Unnamed Service');
|
|
172
160
|
}
|
|
173
161
|
}
|
|
174
162
|
}
|
|
175
|
-
|
|
176
|
-
Service_1.Service.Assistant = Assistant;
|
|
163
|
+
Service.Assistant = Assistant;
|
|
177
164
|
/**
|
|
178
165
|
* Service "Audio Stream Management"
|
|
179
166
|
*/
|
|
180
|
-
class AudioStreamManagement extends
|
|
181
|
-
static UUID =
|
|
167
|
+
export class AudioStreamManagement extends Service {
|
|
168
|
+
static UUID = '00000127-0000-1000-8000-0026BB765291';
|
|
182
169
|
constructor(displayName, subtype) {
|
|
183
170
|
super(displayName, AudioStreamManagement.UUID, subtype);
|
|
184
171
|
// Required Characteristics
|
|
185
|
-
this.addCharacteristic(
|
|
186
|
-
this.addCharacteristic(
|
|
172
|
+
this.addCharacteristic(Characteristic.SupportedAudioStreamConfiguration);
|
|
173
|
+
this.addCharacteristic(Characteristic.SelectedAudioStreamConfiguration);
|
|
187
174
|
}
|
|
188
175
|
}
|
|
189
|
-
|
|
190
|
-
Service_1.Service.AudioStreamManagement = AudioStreamManagement;
|
|
176
|
+
Service.AudioStreamManagement = AudioStreamManagement;
|
|
191
177
|
/**
|
|
192
178
|
* Service "Battery"
|
|
193
179
|
*/
|
|
194
|
-
class Battery extends
|
|
195
|
-
static UUID =
|
|
180
|
+
export class Battery extends Service {
|
|
181
|
+
static UUID = '00000096-0000-1000-8000-0026BB765291';
|
|
196
182
|
constructor(displayName, subtype) {
|
|
197
183
|
super(displayName, Battery.UUID, subtype);
|
|
198
184
|
// Required Characteristics
|
|
199
|
-
this.addCharacteristic(
|
|
185
|
+
this.addCharacteristic(Characteristic.StatusLowBattery);
|
|
200
186
|
// Optional Characteristics
|
|
201
|
-
this.addOptionalCharacteristic(
|
|
202
|
-
this.addOptionalCharacteristic(
|
|
203
|
-
this.addOptionalCharacteristic(
|
|
187
|
+
this.addOptionalCharacteristic(Characteristic.BatteryLevel);
|
|
188
|
+
this.addOptionalCharacteristic(Characteristic.ChargingState);
|
|
189
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
204
190
|
}
|
|
205
191
|
}
|
|
206
|
-
|
|
207
|
-
Service_1.Service.Battery = Battery;
|
|
192
|
+
Service.Battery = Battery;
|
|
208
193
|
/**
|
|
209
194
|
* Service "Camera Operating Mode"
|
|
210
195
|
*/
|
|
211
|
-
class CameraOperatingMode extends
|
|
212
|
-
static UUID =
|
|
196
|
+
export class CameraOperatingMode extends Service {
|
|
197
|
+
static UUID = '0000021A-0000-1000-8000-0026BB765291';
|
|
213
198
|
constructor(displayName, subtype) {
|
|
214
199
|
super(displayName, CameraOperatingMode.UUID, subtype);
|
|
215
200
|
// Required Characteristics
|
|
216
|
-
this.addCharacteristic(
|
|
217
|
-
this.addCharacteristic(
|
|
201
|
+
this.addCharacteristic(Characteristic.EventSnapshotsActive);
|
|
202
|
+
this.addCharacteristic(Characteristic.HomeKitCameraActive);
|
|
218
203
|
// Optional Characteristics
|
|
219
|
-
this.addOptionalCharacteristic(
|
|
220
|
-
this.addOptionalCharacteristic(
|
|
221
|
-
this.addOptionalCharacteristic(
|
|
222
|
-
this.addOptionalCharacteristic(
|
|
223
|
-
this.addOptionalCharacteristic(
|
|
224
|
-
this.addOptionalCharacteristic(
|
|
204
|
+
this.addOptionalCharacteristic(Characteristic.CameraOperatingModeIndicator);
|
|
205
|
+
this.addOptionalCharacteristic(Characteristic.ManuallyDisabled);
|
|
206
|
+
this.addOptionalCharacteristic(Characteristic.NightVision);
|
|
207
|
+
this.addOptionalCharacteristic(Characteristic.PeriodicSnapshotsActive);
|
|
208
|
+
this.addOptionalCharacteristic(Characteristic.ThirdPartyCameraActive);
|
|
209
|
+
this.addOptionalCharacteristic(Characteristic.DiagonalFieldOfView);
|
|
225
210
|
}
|
|
226
211
|
}
|
|
227
|
-
|
|
228
|
-
Service_1.Service.CameraOperatingMode = CameraOperatingMode;
|
|
212
|
+
Service.CameraOperatingMode = CameraOperatingMode;
|
|
229
213
|
/**
|
|
230
214
|
* Service "Camera Recording Management"
|
|
231
215
|
*/
|
|
232
|
-
class CameraRecordingManagement extends
|
|
233
|
-
static UUID =
|
|
216
|
+
export class CameraRecordingManagement extends Service {
|
|
217
|
+
static UUID = '00000204-0000-1000-8000-0026BB765291';
|
|
234
218
|
constructor(displayName, subtype) {
|
|
235
219
|
super(displayName, CameraRecordingManagement.UUID, subtype);
|
|
236
220
|
// Required Characteristics
|
|
237
|
-
this.addCharacteristic(
|
|
238
|
-
this.addCharacteristic(
|
|
239
|
-
this.addCharacteristic(
|
|
240
|
-
this.addCharacteristic(
|
|
241
|
-
this.addCharacteristic(
|
|
221
|
+
this.addCharacteristic(Characteristic.Active);
|
|
222
|
+
this.addCharacteristic(Characteristic.SelectedCameraRecordingConfiguration);
|
|
223
|
+
this.addCharacteristic(Characteristic.SupportedAudioRecordingConfiguration);
|
|
224
|
+
this.addCharacteristic(Characteristic.SupportedCameraRecordingConfiguration);
|
|
225
|
+
this.addCharacteristic(Characteristic.SupportedVideoRecordingConfiguration);
|
|
242
226
|
// Optional Characteristics
|
|
243
|
-
this.addOptionalCharacteristic(
|
|
227
|
+
this.addOptionalCharacteristic(Characteristic.RecordingAudioActive);
|
|
244
228
|
}
|
|
245
229
|
}
|
|
246
|
-
|
|
247
|
-
Service_1.Service.CameraRecordingManagement = CameraRecordingManagement;
|
|
230
|
+
Service.CameraRecordingManagement = CameraRecordingManagement;
|
|
248
231
|
/**
|
|
249
232
|
* Service "Camera RTP Stream Management"
|
|
250
233
|
*/
|
|
251
|
-
class CameraRTPStreamManagement extends
|
|
252
|
-
static UUID =
|
|
234
|
+
export class CameraRTPStreamManagement extends Service {
|
|
235
|
+
static UUID = '00000110-0000-1000-8000-0026BB765291';
|
|
253
236
|
constructor(displayName, subtype) {
|
|
254
237
|
super(displayName, CameraRTPStreamManagement.UUID, subtype);
|
|
255
238
|
// Required Characteristics
|
|
256
|
-
this.addCharacteristic(
|
|
257
|
-
this.addCharacteristic(
|
|
258
|
-
this.addCharacteristic(
|
|
259
|
-
this.addCharacteristic(
|
|
260
|
-
this.addCharacteristic(
|
|
261
|
-
this.addCharacteristic(
|
|
239
|
+
this.addCharacteristic(Characteristic.SelectedRTPStreamConfiguration);
|
|
240
|
+
this.addCharacteristic(Characteristic.SetupEndpoints);
|
|
241
|
+
this.addCharacteristic(Characteristic.StreamingStatus);
|
|
242
|
+
this.addCharacteristic(Characteristic.SupportedAudioStreamConfiguration);
|
|
243
|
+
this.addCharacteristic(Characteristic.SupportedRTPConfiguration);
|
|
244
|
+
this.addCharacteristic(Characteristic.SupportedVideoStreamConfiguration);
|
|
262
245
|
// Optional Characteristics
|
|
263
|
-
this.addOptionalCharacteristic(
|
|
246
|
+
this.addOptionalCharacteristic(Characteristic.Active);
|
|
264
247
|
}
|
|
265
248
|
}
|
|
266
|
-
|
|
267
|
-
Service_1.Service.CameraRTPStreamManagement = CameraRTPStreamManagement;
|
|
249
|
+
Service.CameraRTPStreamManagement = CameraRTPStreamManagement;
|
|
268
250
|
/**
|
|
269
251
|
* Service "Carbon Dioxide Sensor"
|
|
270
252
|
*/
|
|
271
|
-
class CarbonDioxideSensor extends
|
|
272
|
-
static UUID =
|
|
253
|
+
export class CarbonDioxideSensor extends Service {
|
|
254
|
+
static UUID = '00000097-0000-1000-8000-0026BB765291';
|
|
273
255
|
constructor(displayName, subtype) {
|
|
274
256
|
super(displayName, CarbonDioxideSensor.UUID, subtype);
|
|
275
257
|
// Required Characteristics
|
|
276
|
-
this.addCharacteristic(
|
|
258
|
+
this.addCharacteristic(Characteristic.CarbonDioxideDetected);
|
|
277
259
|
// Optional Characteristics
|
|
278
|
-
this.addOptionalCharacteristic(
|
|
279
|
-
this.addOptionalCharacteristic(
|
|
280
|
-
this.addOptionalCharacteristic(
|
|
281
|
-
this.addOptionalCharacteristic(
|
|
282
|
-
this.addOptionalCharacteristic(
|
|
283
|
-
this.addOptionalCharacteristic(
|
|
284
|
-
this.addOptionalCharacteristic(
|
|
260
|
+
this.addOptionalCharacteristic(Characteristic.CarbonDioxideLevel);
|
|
261
|
+
this.addOptionalCharacteristic(Characteristic.CarbonDioxidePeakLevel);
|
|
262
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
263
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
264
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
265
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
266
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
285
267
|
}
|
|
286
268
|
}
|
|
287
|
-
|
|
288
|
-
Service_1.Service.CarbonDioxideSensor = CarbonDioxideSensor;
|
|
269
|
+
Service.CarbonDioxideSensor = CarbonDioxideSensor;
|
|
289
270
|
/**
|
|
290
271
|
* Service "Carbon Monoxide Sensor"
|
|
291
272
|
*/
|
|
292
|
-
class CarbonMonoxideSensor extends
|
|
293
|
-
static UUID =
|
|
273
|
+
export class CarbonMonoxideSensor extends Service {
|
|
274
|
+
static UUID = '0000007F-0000-1000-8000-0026BB765291';
|
|
294
275
|
constructor(displayName, subtype) {
|
|
295
276
|
super(displayName, CarbonMonoxideSensor.UUID, subtype);
|
|
296
277
|
// Required Characteristics
|
|
297
|
-
this.addCharacteristic(
|
|
278
|
+
this.addCharacteristic(Characteristic.CarbonMonoxideDetected);
|
|
298
279
|
// Optional Characteristics
|
|
299
|
-
this.addOptionalCharacteristic(
|
|
300
|
-
this.addOptionalCharacteristic(
|
|
301
|
-
this.addOptionalCharacteristic(
|
|
302
|
-
this.addOptionalCharacteristic(
|
|
303
|
-
this.addOptionalCharacteristic(
|
|
304
|
-
this.addOptionalCharacteristic(
|
|
305
|
-
this.addOptionalCharacteristic(
|
|
280
|
+
this.addOptionalCharacteristic(Characteristic.CarbonMonoxideLevel);
|
|
281
|
+
this.addOptionalCharacteristic(Characteristic.CarbonMonoxidePeakLevel);
|
|
282
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
283
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
284
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
285
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
286
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
306
287
|
}
|
|
307
288
|
}
|
|
308
|
-
|
|
309
|
-
Service_1.Service.CarbonMonoxideSensor = CarbonMonoxideSensor;
|
|
289
|
+
Service.CarbonMonoxideSensor = CarbonMonoxideSensor;
|
|
310
290
|
/**
|
|
311
291
|
* Service "Contact Sensor"
|
|
312
292
|
*/
|
|
313
|
-
class ContactSensor extends
|
|
314
|
-
static UUID =
|
|
293
|
+
export class ContactSensor extends Service {
|
|
294
|
+
static UUID = '00000080-0000-1000-8000-0026BB765291';
|
|
315
295
|
constructor(displayName, subtype) {
|
|
316
296
|
super(displayName, ContactSensor.UUID, subtype);
|
|
317
297
|
// Required Characteristics
|
|
318
|
-
this.addCharacteristic(
|
|
298
|
+
this.addCharacteristic(Characteristic.ContactSensorState);
|
|
319
299
|
// Optional Characteristics
|
|
320
|
-
this.addOptionalCharacteristic(
|
|
321
|
-
this.addOptionalCharacteristic(
|
|
322
|
-
this.addOptionalCharacteristic(
|
|
323
|
-
this.addOptionalCharacteristic(
|
|
324
|
-
this.addOptionalCharacteristic(
|
|
300
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
301
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
302
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
303
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
304
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
325
305
|
}
|
|
326
306
|
}
|
|
327
|
-
|
|
328
|
-
Service_1.Service.ContactSensor = ContactSensor;
|
|
307
|
+
Service.ContactSensor = ContactSensor;
|
|
329
308
|
/**
|
|
330
309
|
* Service "Data Stream Transport Management"
|
|
331
310
|
*/
|
|
332
|
-
class DataStreamTransportManagement extends
|
|
333
|
-
static UUID =
|
|
311
|
+
export class DataStreamTransportManagement extends Service {
|
|
312
|
+
static UUID = '00000129-0000-1000-8000-0026BB765291';
|
|
334
313
|
constructor(displayName, subtype) {
|
|
335
314
|
super(displayName, DataStreamTransportManagement.UUID, subtype);
|
|
336
315
|
// Required Characteristics
|
|
337
|
-
this.addCharacteristic(
|
|
338
|
-
this.addCharacteristic(
|
|
339
|
-
this.addCharacteristic(
|
|
316
|
+
this.addCharacteristic(Characteristic.SetupDataStreamTransport);
|
|
317
|
+
this.addCharacteristic(Characteristic.SupportedDataStreamTransportConfiguration);
|
|
318
|
+
this.addCharacteristic(Characteristic.Version);
|
|
340
319
|
}
|
|
341
320
|
}
|
|
342
|
-
|
|
343
|
-
Service_1.Service.DataStreamTransportManagement = DataStreamTransportManagement;
|
|
321
|
+
Service.DataStreamTransportManagement = DataStreamTransportManagement;
|
|
344
322
|
/**
|
|
345
323
|
* Service "Diagnostics"
|
|
346
324
|
*/
|
|
347
|
-
class Diagnostics extends
|
|
348
|
-
static UUID =
|
|
325
|
+
export class Diagnostics extends Service {
|
|
326
|
+
static UUID = '00000237-0000-1000-8000-0026BB765291';
|
|
349
327
|
constructor(displayName, subtype) {
|
|
350
328
|
super(displayName, Diagnostics.UUID, subtype);
|
|
351
329
|
// Required Characteristics
|
|
352
|
-
this.addCharacteristic(
|
|
330
|
+
this.addCharacteristic(Characteristic.SupportedDiagnosticsSnapshot);
|
|
353
331
|
// Optional Characteristics
|
|
354
|
-
this.addOptionalCharacteristic(
|
|
355
|
-
this.addOptionalCharacteristic(
|
|
332
|
+
this.addOptionalCharacteristic(Characteristic.SelectedDiagnosticsModes);
|
|
333
|
+
this.addOptionalCharacteristic(Characteristic.SupportedDiagnosticsModes);
|
|
356
334
|
}
|
|
357
335
|
}
|
|
358
|
-
|
|
359
|
-
Service_1.Service.Diagnostics = Diagnostics;
|
|
336
|
+
Service.Diagnostics = Diagnostics;
|
|
360
337
|
/**
|
|
361
338
|
* Service "Door"
|
|
362
339
|
*/
|
|
363
|
-
class Door extends
|
|
364
|
-
static UUID =
|
|
340
|
+
export class Door extends Service {
|
|
341
|
+
static UUID = '00000081-0000-1000-8000-0026BB765291';
|
|
365
342
|
constructor(displayName, subtype) {
|
|
366
343
|
super(displayName, Door.UUID, subtype);
|
|
367
344
|
// Required Characteristics
|
|
368
|
-
this.addCharacteristic(
|
|
369
|
-
this.addCharacteristic(
|
|
370
|
-
this.addCharacteristic(
|
|
345
|
+
this.addCharacteristic(Characteristic.CurrentPosition);
|
|
346
|
+
this.addCharacteristic(Characteristic.PositionState);
|
|
347
|
+
this.addCharacteristic(Characteristic.TargetPosition);
|
|
371
348
|
// Optional Characteristics
|
|
372
|
-
this.addOptionalCharacteristic(
|
|
373
|
-
this.addOptionalCharacteristic(
|
|
374
|
-
this.addOptionalCharacteristic(
|
|
349
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
350
|
+
this.addOptionalCharacteristic(Characteristic.ObstructionDetected);
|
|
351
|
+
this.addOptionalCharacteristic(Characteristic.HoldPosition);
|
|
375
352
|
}
|
|
376
353
|
}
|
|
377
|
-
|
|
378
|
-
Service_1.Service.Door = Door;
|
|
354
|
+
Service.Door = Door;
|
|
379
355
|
/**
|
|
380
356
|
* Service "Doorbell"
|
|
381
357
|
*/
|
|
382
|
-
class Doorbell extends
|
|
383
|
-
static UUID =
|
|
358
|
+
export class Doorbell extends Service {
|
|
359
|
+
static UUID = '00000121-0000-1000-8000-0026BB765291';
|
|
384
360
|
constructor(displayName, subtype) {
|
|
385
361
|
super(displayName, Doorbell.UUID, subtype);
|
|
386
362
|
// Required Characteristics
|
|
387
|
-
this.addCharacteristic(
|
|
363
|
+
this.addCharacteristic(Characteristic.ProgrammableSwitchEvent);
|
|
388
364
|
// Optional Characteristics
|
|
389
|
-
this.addOptionalCharacteristic(
|
|
390
|
-
this.addOptionalCharacteristic(
|
|
391
|
-
this.addOptionalCharacteristic(
|
|
392
|
-
this.addOptionalCharacteristic(
|
|
393
|
-
this.addOptionalCharacteristic(
|
|
365
|
+
this.addOptionalCharacteristic(Characteristic.Brightness);
|
|
366
|
+
this.addOptionalCharacteristic(Characteristic.Mute);
|
|
367
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
368
|
+
this.addOptionalCharacteristic(Characteristic.OperatingStateResponse);
|
|
369
|
+
this.addOptionalCharacteristic(Characteristic.Volume);
|
|
394
370
|
}
|
|
395
371
|
}
|
|
396
|
-
|
|
397
|
-
Service_1.Service.Doorbell = Doorbell;
|
|
372
|
+
Service.Doorbell = Doorbell;
|
|
398
373
|
/**
|
|
399
374
|
* Service "Fan"
|
|
400
375
|
*/
|
|
401
|
-
class Fan extends
|
|
402
|
-
static UUID =
|
|
376
|
+
export class Fan extends Service {
|
|
377
|
+
static UUID = '00000040-0000-1000-8000-0026BB765291';
|
|
403
378
|
constructor(displayName, subtype) {
|
|
404
379
|
super(displayName, Fan.UUID, subtype);
|
|
405
380
|
// Required Characteristics
|
|
406
|
-
this.addCharacteristic(
|
|
381
|
+
this.addCharacteristic(Characteristic.On);
|
|
407
382
|
// Optional Characteristics
|
|
408
|
-
this.addOptionalCharacteristic(
|
|
409
|
-
this.addOptionalCharacteristic(
|
|
410
|
-
this.addOptionalCharacteristic(
|
|
383
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
384
|
+
this.addOptionalCharacteristic(Characteristic.RotationDirection);
|
|
385
|
+
this.addOptionalCharacteristic(Characteristic.RotationSpeed);
|
|
411
386
|
}
|
|
412
387
|
}
|
|
413
|
-
|
|
414
|
-
Service_1.Service.Fan = Fan;
|
|
388
|
+
Service.Fan = Fan;
|
|
415
389
|
/**
|
|
416
390
|
* Service "Fanv2"
|
|
417
391
|
*/
|
|
418
|
-
class Fanv2 extends
|
|
419
|
-
static UUID =
|
|
392
|
+
export class Fanv2 extends Service {
|
|
393
|
+
static UUID = '000000B7-0000-1000-8000-0026BB765291';
|
|
420
394
|
constructor(displayName, subtype) {
|
|
421
395
|
super(displayName, Fanv2.UUID, subtype);
|
|
422
396
|
// Required Characteristics
|
|
423
|
-
this.addCharacteristic(
|
|
397
|
+
this.addCharacteristic(Characteristic.Active);
|
|
424
398
|
// Optional Characteristics
|
|
425
|
-
this.addOptionalCharacteristic(
|
|
426
|
-
this.addOptionalCharacteristic(
|
|
427
|
-
this.addOptionalCharacteristic(
|
|
428
|
-
this.addOptionalCharacteristic(
|
|
429
|
-
this.addOptionalCharacteristic(
|
|
430
|
-
this.addOptionalCharacteristic(
|
|
431
|
-
this.addOptionalCharacteristic(
|
|
399
|
+
this.addOptionalCharacteristic(Characteristic.CurrentFanState);
|
|
400
|
+
this.addOptionalCharacteristic(Characteristic.TargetFanState);
|
|
401
|
+
this.addOptionalCharacteristic(Characteristic.LockPhysicalControls);
|
|
402
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
403
|
+
this.addOptionalCharacteristic(Characteristic.RotationDirection);
|
|
404
|
+
this.addOptionalCharacteristic(Characteristic.RotationSpeed);
|
|
405
|
+
this.addOptionalCharacteristic(Characteristic.SwingMode);
|
|
432
406
|
}
|
|
433
407
|
}
|
|
434
|
-
|
|
435
|
-
Service_1.Service.Fanv2 = Fanv2;
|
|
408
|
+
Service.Fanv2 = Fanv2;
|
|
436
409
|
/**
|
|
437
410
|
* Service "Faucet"
|
|
438
411
|
*/
|
|
439
|
-
class Faucet extends
|
|
440
|
-
static UUID =
|
|
412
|
+
export class Faucet extends Service {
|
|
413
|
+
static UUID = '000000D7-0000-1000-8000-0026BB765291';
|
|
441
414
|
constructor(displayName, subtype) {
|
|
442
415
|
super(displayName, Faucet.UUID, subtype);
|
|
443
416
|
// Required Characteristics
|
|
444
|
-
this.addCharacteristic(
|
|
417
|
+
this.addCharacteristic(Characteristic.Active);
|
|
445
418
|
// Optional Characteristics
|
|
446
|
-
this.addOptionalCharacteristic(
|
|
447
|
-
this.addOptionalCharacteristic(
|
|
419
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
420
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
448
421
|
}
|
|
449
422
|
}
|
|
450
|
-
|
|
451
|
-
Service_1.Service.Faucet = Faucet;
|
|
423
|
+
Service.Faucet = Faucet;
|
|
452
424
|
/**
|
|
453
425
|
* Service "Filter Maintenance"
|
|
454
426
|
*/
|
|
455
|
-
class FilterMaintenance extends
|
|
456
|
-
static UUID =
|
|
427
|
+
export class FilterMaintenance extends Service {
|
|
428
|
+
static UUID = '000000BA-0000-1000-8000-0026BB765291';
|
|
457
429
|
constructor(displayName, subtype) {
|
|
458
430
|
super(displayName, FilterMaintenance.UUID, subtype);
|
|
459
431
|
// Required Characteristics
|
|
460
|
-
this.addCharacteristic(
|
|
432
|
+
this.addCharacteristic(Characteristic.FilterChangeIndication);
|
|
461
433
|
// Optional Characteristics
|
|
462
|
-
this.addOptionalCharacteristic(
|
|
463
|
-
this.addOptionalCharacteristic(
|
|
464
|
-
this.addOptionalCharacteristic(
|
|
434
|
+
this.addOptionalCharacteristic(Characteristic.FilterLifeLevel);
|
|
435
|
+
this.addOptionalCharacteristic(Characteristic.ResetFilterIndication);
|
|
436
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
465
437
|
}
|
|
466
438
|
}
|
|
467
|
-
|
|
468
|
-
Service_1.Service.FilterMaintenance = FilterMaintenance;
|
|
439
|
+
Service.FilterMaintenance = FilterMaintenance;
|
|
469
440
|
/**
|
|
470
441
|
* Service "Firmware Update"
|
|
471
442
|
*/
|
|
472
|
-
class FirmwareUpdate extends
|
|
473
|
-
static UUID =
|
|
443
|
+
export class FirmwareUpdate extends Service {
|
|
444
|
+
static UUID = '00000236-0000-1000-8000-0026BB765291';
|
|
474
445
|
constructor(displayName, subtype) {
|
|
475
446
|
super(displayName, FirmwareUpdate.UUID, subtype);
|
|
476
447
|
// Required Characteristics
|
|
477
|
-
this.addCharacteristic(
|
|
478
|
-
this.addCharacteristic(
|
|
448
|
+
this.addCharacteristic(Characteristic.FirmwareUpdateReadiness);
|
|
449
|
+
this.addCharacteristic(Characteristic.FirmwareUpdateStatus);
|
|
479
450
|
// Optional Characteristics
|
|
480
|
-
this.addOptionalCharacteristic(
|
|
481
|
-
this.addOptionalCharacteristic(
|
|
482
|
-
this.addOptionalCharacteristic(
|
|
451
|
+
this.addOptionalCharacteristic(Characteristic.MatterFirmwareUpdateStatus);
|
|
452
|
+
this.addOptionalCharacteristic(Characteristic.StagedFirmwareVersion);
|
|
453
|
+
this.addOptionalCharacteristic(Characteristic.SupportedFirmwareUpdateConfiguration);
|
|
483
454
|
}
|
|
484
455
|
}
|
|
485
|
-
|
|
486
|
-
Service_1.Service.FirmwareUpdate = FirmwareUpdate;
|
|
456
|
+
Service.FirmwareUpdate = FirmwareUpdate;
|
|
487
457
|
/**
|
|
488
458
|
* Service "Garage Door Opener"
|
|
489
459
|
*/
|
|
490
|
-
class GarageDoorOpener extends
|
|
491
|
-
static UUID =
|
|
460
|
+
export class GarageDoorOpener extends Service {
|
|
461
|
+
static UUID = '00000041-0000-1000-8000-0026BB765291';
|
|
492
462
|
constructor(displayName, subtype) {
|
|
493
463
|
super(displayName, GarageDoorOpener.UUID, subtype);
|
|
494
464
|
// Required Characteristics
|
|
495
|
-
this.addCharacteristic(
|
|
496
|
-
this.addCharacteristic(
|
|
497
|
-
this.addCharacteristic(
|
|
465
|
+
this.addCharacteristic(Characteristic.CurrentDoorState);
|
|
466
|
+
this.addCharacteristic(Characteristic.TargetDoorState);
|
|
467
|
+
this.addCharacteristic(Characteristic.ObstructionDetected);
|
|
498
468
|
// Optional Characteristics
|
|
499
|
-
this.addOptionalCharacteristic(
|
|
500
|
-
this.addOptionalCharacteristic(
|
|
501
|
-
this.addOptionalCharacteristic(
|
|
469
|
+
this.addOptionalCharacteristic(Characteristic.LockCurrentState);
|
|
470
|
+
this.addOptionalCharacteristic(Characteristic.LockTargetState);
|
|
471
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
502
472
|
}
|
|
503
473
|
}
|
|
504
|
-
|
|
505
|
-
Service_1.Service.GarageDoorOpener = GarageDoorOpener;
|
|
474
|
+
Service.GarageDoorOpener = GarageDoorOpener;
|
|
506
475
|
/**
|
|
507
476
|
* Service "Heater-Cooler"
|
|
508
477
|
*/
|
|
509
|
-
class HeaterCooler extends
|
|
510
|
-
static UUID =
|
|
478
|
+
export class HeaterCooler extends Service {
|
|
479
|
+
static UUID = '000000BC-0000-1000-8000-0026BB765291';
|
|
511
480
|
constructor(displayName, subtype) {
|
|
512
481
|
super(displayName, HeaterCooler.UUID, subtype);
|
|
513
482
|
// Required Characteristics
|
|
514
|
-
this.addCharacteristic(
|
|
515
|
-
this.addCharacteristic(
|
|
516
|
-
this.addCharacteristic(
|
|
517
|
-
this.addCharacteristic(
|
|
483
|
+
this.addCharacteristic(Characteristic.Active);
|
|
484
|
+
this.addCharacteristic(Characteristic.CurrentHeaterCoolerState);
|
|
485
|
+
this.addCharacteristic(Characteristic.TargetHeaterCoolerState);
|
|
486
|
+
this.addCharacteristic(Characteristic.CurrentTemperature);
|
|
518
487
|
// Optional Characteristics
|
|
519
|
-
this.addOptionalCharacteristic(
|
|
520
|
-
this.addOptionalCharacteristic(
|
|
521
|
-
this.addOptionalCharacteristic(
|
|
522
|
-
this.addOptionalCharacteristic(
|
|
523
|
-
this.addOptionalCharacteristic(
|
|
524
|
-
this.addOptionalCharacteristic(
|
|
525
|
-
this.addOptionalCharacteristic(
|
|
488
|
+
this.addOptionalCharacteristic(Characteristic.LockPhysicalControls);
|
|
489
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
490
|
+
this.addOptionalCharacteristic(Characteristic.RotationSpeed);
|
|
491
|
+
this.addOptionalCharacteristic(Characteristic.SwingMode);
|
|
492
|
+
this.addOptionalCharacteristic(Characteristic.CoolingThresholdTemperature);
|
|
493
|
+
this.addOptionalCharacteristic(Characteristic.HeatingThresholdTemperature);
|
|
494
|
+
this.addOptionalCharacteristic(Characteristic.TemperatureDisplayUnits);
|
|
526
495
|
}
|
|
527
496
|
}
|
|
528
|
-
|
|
529
|
-
Service_1.Service.HeaterCooler = HeaterCooler;
|
|
497
|
+
Service.HeaterCooler = HeaterCooler;
|
|
530
498
|
/**
|
|
531
499
|
* Service "Humidifier-Dehumidifier"
|
|
532
500
|
*/
|
|
533
|
-
class HumidifierDehumidifier extends
|
|
534
|
-
static UUID =
|
|
501
|
+
export class HumidifierDehumidifier extends Service {
|
|
502
|
+
static UUID = '000000BD-0000-1000-8000-0026BB765291';
|
|
535
503
|
constructor(displayName, subtype) {
|
|
536
504
|
super(displayName, HumidifierDehumidifier.UUID, subtype);
|
|
537
505
|
// Required Characteristics
|
|
538
|
-
this.addCharacteristic(
|
|
539
|
-
this.addCharacteristic(
|
|
540
|
-
this.addCharacteristic(
|
|
541
|
-
this.addCharacteristic(
|
|
506
|
+
this.addCharacteristic(Characteristic.Active);
|
|
507
|
+
this.addCharacteristic(Characteristic.CurrentHumidifierDehumidifierState);
|
|
508
|
+
this.addCharacteristic(Characteristic.TargetHumidifierDehumidifierState);
|
|
509
|
+
this.addCharacteristic(Characteristic.CurrentRelativeHumidity);
|
|
542
510
|
// Optional Characteristics
|
|
543
|
-
this.addOptionalCharacteristic(
|
|
544
|
-
this.addOptionalCharacteristic(
|
|
545
|
-
this.addOptionalCharacteristic(
|
|
546
|
-
this.addOptionalCharacteristic(
|
|
547
|
-
this.addOptionalCharacteristic(
|
|
548
|
-
this.addOptionalCharacteristic(
|
|
549
|
-
this.addOptionalCharacteristic(
|
|
511
|
+
this.addOptionalCharacteristic(Characteristic.LockPhysicalControls);
|
|
512
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
513
|
+
this.addOptionalCharacteristic(Characteristic.RelativeHumidityDehumidifierThreshold);
|
|
514
|
+
this.addOptionalCharacteristic(Characteristic.RelativeHumidityHumidifierThreshold);
|
|
515
|
+
this.addOptionalCharacteristic(Characteristic.RotationSpeed);
|
|
516
|
+
this.addOptionalCharacteristic(Characteristic.SwingMode);
|
|
517
|
+
this.addOptionalCharacteristic(Characteristic.WaterLevel);
|
|
550
518
|
}
|
|
551
519
|
}
|
|
552
|
-
|
|
553
|
-
Service_1.Service.HumidifierDehumidifier = HumidifierDehumidifier;
|
|
520
|
+
Service.HumidifierDehumidifier = HumidifierDehumidifier;
|
|
554
521
|
/**
|
|
555
522
|
* Service "Humidity Sensor"
|
|
556
523
|
*/
|
|
557
|
-
class HumiditySensor extends
|
|
558
|
-
static UUID =
|
|
524
|
+
export class HumiditySensor extends Service {
|
|
525
|
+
static UUID = '00000082-0000-1000-8000-0026BB765291';
|
|
559
526
|
constructor(displayName, subtype) {
|
|
560
527
|
super(displayName, HumiditySensor.UUID, subtype);
|
|
561
528
|
// Required Characteristics
|
|
562
|
-
this.addCharacteristic(
|
|
529
|
+
this.addCharacteristic(Characteristic.CurrentRelativeHumidity);
|
|
563
530
|
// Optional Characteristics
|
|
564
|
-
this.addOptionalCharacteristic(
|
|
565
|
-
this.addOptionalCharacteristic(
|
|
566
|
-
this.addOptionalCharacteristic(
|
|
567
|
-
this.addOptionalCharacteristic(
|
|
568
|
-
this.addOptionalCharacteristic(
|
|
531
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
532
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
533
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
534
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
535
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
569
536
|
}
|
|
570
537
|
}
|
|
571
|
-
|
|
572
|
-
Service_1.Service.HumiditySensor = HumiditySensor;
|
|
538
|
+
Service.HumiditySensor = HumiditySensor;
|
|
573
539
|
/**
|
|
574
540
|
* Service "Input Source"
|
|
575
541
|
*/
|
|
576
|
-
class InputSource extends
|
|
577
|
-
static UUID =
|
|
542
|
+
export class InputSource extends Service {
|
|
543
|
+
static UUID = '000000D9-0000-1000-8000-0026BB765291';
|
|
578
544
|
constructor(displayName, subtype) {
|
|
579
545
|
super(displayName, InputSource.UUID, subtype);
|
|
580
546
|
// Required Characteristics
|
|
581
|
-
this.addCharacteristic(
|
|
582
|
-
this.addCharacteristic(
|
|
583
|
-
this.addCharacteristic(
|
|
584
|
-
if (!this.testCharacteristic(
|
|
585
|
-
this.addCharacteristic(
|
|
547
|
+
this.addCharacteristic(Characteristic.ConfiguredName);
|
|
548
|
+
this.addCharacteristic(Characteristic.InputSourceType);
|
|
549
|
+
this.addCharacteristic(Characteristic.IsConfigured);
|
|
550
|
+
if (!this.testCharacteristic(Characteristic.Name)) { // workaround for Name characteristic collision in constructor
|
|
551
|
+
this.addCharacteristic(Characteristic.Name).updateValue('Unnamed Service');
|
|
586
552
|
}
|
|
587
|
-
this.addCharacteristic(
|
|
553
|
+
this.addCharacteristic(Characteristic.CurrentVisibilityState);
|
|
588
554
|
// Optional Characteristics
|
|
589
|
-
this.addOptionalCharacteristic(
|
|
590
|
-
this.addOptionalCharacteristic(
|
|
591
|
-
this.addOptionalCharacteristic(
|
|
555
|
+
this.addOptionalCharacteristic(Characteristic.Identifier);
|
|
556
|
+
this.addOptionalCharacteristic(Characteristic.InputDeviceType);
|
|
557
|
+
this.addOptionalCharacteristic(Characteristic.TargetVisibilityState);
|
|
592
558
|
}
|
|
593
559
|
}
|
|
594
|
-
|
|
595
|
-
Service_1.Service.InputSource = InputSource;
|
|
560
|
+
Service.InputSource = InputSource;
|
|
596
561
|
/**
|
|
597
562
|
* Service "Irrigation-System"
|
|
598
563
|
*/
|
|
599
|
-
class IrrigationSystem extends
|
|
600
|
-
static UUID =
|
|
564
|
+
export class IrrigationSystem extends Service {
|
|
565
|
+
static UUID = '000000CF-0000-1000-8000-0026BB765291';
|
|
601
566
|
constructor(displayName, subtype) {
|
|
602
567
|
super(displayName, IrrigationSystem.UUID, subtype);
|
|
603
568
|
// Required Characteristics
|
|
604
|
-
this.addCharacteristic(
|
|
605
|
-
this.addCharacteristic(
|
|
606
|
-
this.addCharacteristic(
|
|
569
|
+
this.addCharacteristic(Characteristic.Active);
|
|
570
|
+
this.addCharacteristic(Characteristic.ProgramMode);
|
|
571
|
+
this.addCharacteristic(Characteristic.InUse);
|
|
607
572
|
// Optional Characteristics
|
|
608
|
-
this.addOptionalCharacteristic(
|
|
609
|
-
this.addOptionalCharacteristic(
|
|
610
|
-
this.addOptionalCharacteristic(
|
|
573
|
+
this.addOptionalCharacteristic(Characteristic.RemainingDuration);
|
|
574
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
575
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
611
576
|
}
|
|
612
577
|
}
|
|
613
|
-
|
|
614
|
-
Service_1.Service.IrrigationSystem = IrrigationSystem;
|
|
578
|
+
Service.IrrigationSystem = IrrigationSystem;
|
|
615
579
|
/**
|
|
616
580
|
* Service "Leak Sensor"
|
|
617
581
|
*/
|
|
618
|
-
class LeakSensor extends
|
|
619
|
-
static UUID =
|
|
582
|
+
export class LeakSensor extends Service {
|
|
583
|
+
static UUID = '00000083-0000-1000-8000-0026BB765291';
|
|
620
584
|
constructor(displayName, subtype) {
|
|
621
585
|
super(displayName, LeakSensor.UUID, subtype);
|
|
622
586
|
// Required Characteristics
|
|
623
|
-
this.addCharacteristic(
|
|
587
|
+
this.addCharacteristic(Characteristic.LeakDetected);
|
|
624
588
|
// Optional Characteristics
|
|
625
|
-
this.addOptionalCharacteristic(
|
|
626
|
-
this.addOptionalCharacteristic(
|
|
627
|
-
this.addOptionalCharacteristic(
|
|
628
|
-
this.addOptionalCharacteristic(
|
|
629
|
-
this.addOptionalCharacteristic(
|
|
589
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
590
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
591
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
592
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
593
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
630
594
|
}
|
|
631
595
|
}
|
|
632
|
-
|
|
633
|
-
Service_1.Service.LeakSensor = LeakSensor;
|
|
596
|
+
Service.LeakSensor = LeakSensor;
|
|
634
597
|
/**
|
|
635
598
|
* Service "Lightbulb"
|
|
636
599
|
*/
|
|
637
|
-
class Lightbulb extends
|
|
638
|
-
static UUID =
|
|
600
|
+
export class Lightbulb extends Service {
|
|
601
|
+
static UUID = '00000043-0000-1000-8000-0026BB765291';
|
|
639
602
|
constructor(displayName, subtype) {
|
|
640
603
|
super(displayName, Lightbulb.UUID, subtype);
|
|
641
604
|
// Required Characteristics
|
|
642
|
-
this.addCharacteristic(
|
|
605
|
+
this.addCharacteristic(Characteristic.On);
|
|
643
606
|
// Optional Characteristics
|
|
644
|
-
this.addOptionalCharacteristic(
|
|
645
|
-
this.addOptionalCharacteristic(
|
|
646
|
-
this.addOptionalCharacteristic(
|
|
647
|
-
this.addOptionalCharacteristic(
|
|
648
|
-
this.addOptionalCharacteristic(
|
|
649
|
-
this.addOptionalCharacteristic(
|
|
650
|
-
this.addOptionalCharacteristic(
|
|
651
|
-
this.addOptionalCharacteristic(
|
|
607
|
+
this.addOptionalCharacteristic(Characteristic.Brightness);
|
|
608
|
+
this.addOptionalCharacteristic(Characteristic.CharacteristicValueActiveTransitionCount);
|
|
609
|
+
this.addOptionalCharacteristic(Characteristic.CharacteristicValueTransitionControl);
|
|
610
|
+
this.addOptionalCharacteristic(Characteristic.ColorTemperature);
|
|
611
|
+
this.addOptionalCharacteristic(Characteristic.Hue);
|
|
612
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
613
|
+
this.addOptionalCharacteristic(Characteristic.Saturation);
|
|
614
|
+
this.addOptionalCharacteristic(Characteristic.SupportedCharacteristicValueTransitionConfiguration);
|
|
652
615
|
}
|
|
653
616
|
}
|
|
654
|
-
|
|
655
|
-
Service_1.Service.Lightbulb = Lightbulb;
|
|
617
|
+
Service.Lightbulb = Lightbulb;
|
|
656
618
|
/**
|
|
657
619
|
* Service "Light Sensor"
|
|
658
620
|
*/
|
|
659
|
-
class LightSensor extends
|
|
660
|
-
static UUID =
|
|
621
|
+
export class LightSensor extends Service {
|
|
622
|
+
static UUID = '00000084-0000-1000-8000-0026BB765291';
|
|
661
623
|
constructor(displayName, subtype) {
|
|
662
624
|
super(displayName, LightSensor.UUID, subtype);
|
|
663
625
|
// Required Characteristics
|
|
664
|
-
this.addCharacteristic(
|
|
626
|
+
this.addCharacteristic(Characteristic.CurrentAmbientLightLevel);
|
|
665
627
|
// Optional Characteristics
|
|
666
|
-
this.addOptionalCharacteristic(
|
|
667
|
-
this.addOptionalCharacteristic(
|
|
668
|
-
this.addOptionalCharacteristic(
|
|
669
|
-
this.addOptionalCharacteristic(
|
|
670
|
-
this.addOptionalCharacteristic(
|
|
628
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
629
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
630
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
631
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
632
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
671
633
|
}
|
|
672
634
|
}
|
|
673
|
-
|
|
674
|
-
Service_1.Service.LightSensor = LightSensor;
|
|
635
|
+
Service.LightSensor = LightSensor;
|
|
675
636
|
/**
|
|
676
637
|
* Service "Lock Management"
|
|
677
638
|
*/
|
|
678
|
-
class LockManagement extends
|
|
679
|
-
static UUID =
|
|
639
|
+
export class LockManagement extends Service {
|
|
640
|
+
static UUID = '00000044-0000-1000-8000-0026BB765291';
|
|
680
641
|
constructor(displayName, subtype) {
|
|
681
642
|
super(displayName, LockManagement.UUID, subtype);
|
|
682
643
|
// Required Characteristics
|
|
683
|
-
this.addCharacteristic(
|
|
684
|
-
this.addCharacteristic(
|
|
644
|
+
this.addCharacteristic(Characteristic.LockControlPoint);
|
|
645
|
+
this.addCharacteristic(Characteristic.Version);
|
|
685
646
|
// Optional Characteristics
|
|
686
|
-
this.addOptionalCharacteristic(
|
|
687
|
-
this.addOptionalCharacteristic(
|
|
688
|
-
this.addOptionalCharacteristic(
|
|
689
|
-
this.addOptionalCharacteristic(
|
|
690
|
-
this.addOptionalCharacteristic(
|
|
691
|
-
this.addOptionalCharacteristic(
|
|
692
|
-
this.addOptionalCharacteristic(
|
|
647
|
+
this.addOptionalCharacteristic(Characteristic.AdministratorOnlyAccess);
|
|
648
|
+
this.addOptionalCharacteristic(Characteristic.AudioFeedback);
|
|
649
|
+
this.addOptionalCharacteristic(Characteristic.CurrentDoorState);
|
|
650
|
+
this.addOptionalCharacteristic(Characteristic.LockManagementAutoSecurityTimeout);
|
|
651
|
+
this.addOptionalCharacteristic(Characteristic.LockLastKnownAction);
|
|
652
|
+
this.addOptionalCharacteristic(Characteristic.Logs);
|
|
653
|
+
this.addOptionalCharacteristic(Characteristic.MotionDetected);
|
|
693
654
|
}
|
|
694
655
|
}
|
|
695
|
-
|
|
696
|
-
Service_1.Service.LockManagement = LockManagement;
|
|
656
|
+
Service.LockManagement = LockManagement;
|
|
697
657
|
/**
|
|
698
658
|
* Service "Lock Mechanism"
|
|
699
659
|
*/
|
|
700
|
-
class LockMechanism extends
|
|
701
|
-
static UUID =
|
|
660
|
+
export class LockMechanism extends Service {
|
|
661
|
+
static UUID = '00000045-0000-1000-8000-0026BB765291';
|
|
702
662
|
constructor(displayName, subtype) {
|
|
703
663
|
super(displayName, LockMechanism.UUID, subtype);
|
|
704
664
|
// Required Characteristics
|
|
705
|
-
this.addCharacteristic(
|
|
706
|
-
this.addCharacteristic(
|
|
665
|
+
this.addCharacteristic(Characteristic.LockCurrentState);
|
|
666
|
+
this.addCharacteristic(Characteristic.LockTargetState);
|
|
707
667
|
// Optional Characteristics
|
|
708
|
-
this.addOptionalCharacteristic(
|
|
668
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
709
669
|
}
|
|
710
670
|
}
|
|
711
|
-
|
|
712
|
-
Service_1.Service.LockMechanism = LockMechanism;
|
|
671
|
+
Service.LockMechanism = LockMechanism;
|
|
713
672
|
/**
|
|
714
673
|
* Service "Microphone"
|
|
715
674
|
*/
|
|
716
|
-
class Microphone extends
|
|
717
|
-
static UUID =
|
|
675
|
+
export class Microphone extends Service {
|
|
676
|
+
static UUID = '00000112-0000-1000-8000-0026BB765291';
|
|
718
677
|
constructor(displayName, subtype) {
|
|
719
678
|
super(displayName, Microphone.UUID, subtype);
|
|
720
679
|
// Required Characteristics
|
|
721
|
-
this.addCharacteristic(
|
|
680
|
+
this.addCharacteristic(Characteristic.Mute);
|
|
722
681
|
// Optional Characteristics
|
|
723
|
-
this.addOptionalCharacteristic(
|
|
682
|
+
this.addOptionalCharacteristic(Characteristic.Volume);
|
|
724
683
|
}
|
|
725
684
|
}
|
|
726
|
-
|
|
727
|
-
Service_1.Service.Microphone = Microphone;
|
|
685
|
+
Service.Microphone = Microphone;
|
|
728
686
|
/**
|
|
729
687
|
* Service "Motion Sensor"
|
|
730
688
|
*/
|
|
731
|
-
class MotionSensor extends
|
|
732
|
-
static UUID =
|
|
689
|
+
export class MotionSensor extends Service {
|
|
690
|
+
static UUID = '00000085-0000-1000-8000-0026BB765291';
|
|
733
691
|
constructor(displayName, subtype) {
|
|
734
692
|
super(displayName, MotionSensor.UUID, subtype);
|
|
735
693
|
// Required Characteristics
|
|
736
|
-
this.addCharacteristic(
|
|
694
|
+
this.addCharacteristic(Characteristic.MotionDetected);
|
|
737
695
|
// Optional Characteristics
|
|
738
|
-
this.addOptionalCharacteristic(
|
|
739
|
-
this.addOptionalCharacteristic(
|
|
740
|
-
this.addOptionalCharacteristic(
|
|
741
|
-
this.addOptionalCharacteristic(
|
|
742
|
-
this.addOptionalCharacteristic(
|
|
696
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
697
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
698
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
699
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
700
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
743
701
|
}
|
|
744
702
|
}
|
|
745
|
-
|
|
746
|
-
Service_1.Service.MotionSensor = MotionSensor;
|
|
703
|
+
Service.MotionSensor = MotionSensor;
|
|
747
704
|
/**
|
|
748
705
|
* Service "NFC Access"
|
|
749
706
|
* @since iOS 15
|
|
750
707
|
*/
|
|
751
|
-
class NFCAccess extends
|
|
752
|
-
static UUID =
|
|
708
|
+
export class NFCAccess extends Service {
|
|
709
|
+
static UUID = '00000266-0000-1000-8000-0026BB765291';
|
|
753
710
|
constructor(displayName, subtype) {
|
|
754
711
|
super(displayName, NFCAccess.UUID, subtype);
|
|
755
712
|
// Required Characteristics
|
|
756
|
-
this.addCharacteristic(
|
|
757
|
-
this.addCharacteristic(
|
|
758
|
-
this.addCharacteristic(
|
|
713
|
+
this.addCharacteristic(Characteristic.ConfigurationState);
|
|
714
|
+
this.addCharacteristic(Characteristic.NFCAccessControlPoint);
|
|
715
|
+
this.addCharacteristic(Characteristic.NFCAccessSupportedConfiguration);
|
|
759
716
|
}
|
|
760
717
|
}
|
|
761
|
-
|
|
762
|
-
Service_1.Service.NFCAccess = NFCAccess;
|
|
718
|
+
Service.NFCAccess = NFCAccess;
|
|
763
719
|
/**
|
|
764
720
|
* Service "Occupancy Sensor"
|
|
765
721
|
*/
|
|
766
|
-
class OccupancySensor extends
|
|
767
|
-
static UUID =
|
|
722
|
+
export class OccupancySensor extends Service {
|
|
723
|
+
static UUID = '00000086-0000-1000-8000-0026BB765291';
|
|
768
724
|
constructor(displayName, subtype) {
|
|
769
725
|
super(displayName, OccupancySensor.UUID, subtype);
|
|
770
726
|
// Required Characteristics
|
|
771
|
-
this.addCharacteristic(
|
|
727
|
+
this.addCharacteristic(Characteristic.OccupancyDetected);
|
|
772
728
|
// Optional Characteristics
|
|
773
|
-
this.addOptionalCharacteristic(
|
|
774
|
-
this.addOptionalCharacteristic(
|
|
775
|
-
this.addOptionalCharacteristic(
|
|
776
|
-
this.addOptionalCharacteristic(
|
|
777
|
-
this.addOptionalCharacteristic(
|
|
729
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
730
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
731
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
732
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
733
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
778
734
|
}
|
|
779
735
|
}
|
|
780
|
-
|
|
781
|
-
Service_1.Service.OccupancySensor = OccupancySensor;
|
|
736
|
+
Service.OccupancySensor = OccupancySensor;
|
|
782
737
|
/**
|
|
783
738
|
* Service "Outlet"
|
|
784
739
|
* @since iOS 13
|
|
785
740
|
*/
|
|
786
|
-
class Outlet extends
|
|
787
|
-
static UUID =
|
|
741
|
+
export class Outlet extends Service {
|
|
742
|
+
static UUID = '00000047-0000-1000-8000-0026BB765291';
|
|
788
743
|
constructor(displayName, subtype) {
|
|
789
744
|
super(displayName, Outlet.UUID, subtype);
|
|
790
745
|
// Required Characteristics
|
|
791
|
-
this.addCharacteristic(
|
|
746
|
+
this.addCharacteristic(Characteristic.On);
|
|
792
747
|
// Optional Characteristics
|
|
793
|
-
this.addOptionalCharacteristic(
|
|
794
|
-
this.addOptionalCharacteristic(
|
|
748
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
749
|
+
this.addOptionalCharacteristic(Characteristic.OutletInUse);
|
|
795
750
|
}
|
|
796
751
|
}
|
|
797
|
-
|
|
798
|
-
Service_1.Service.Outlet = Outlet;
|
|
752
|
+
Service.Outlet = Outlet;
|
|
799
753
|
/**
|
|
800
754
|
* Service "Pairing"
|
|
801
755
|
*/
|
|
802
|
-
class Pairing extends
|
|
803
|
-
static UUID =
|
|
756
|
+
export class Pairing extends Service {
|
|
757
|
+
static UUID = '00000055-0000-1000-8000-0026BB765291';
|
|
804
758
|
constructor(displayName, subtype) {
|
|
805
759
|
super(displayName, Pairing.UUID, subtype);
|
|
806
760
|
// Required Characteristics
|
|
807
|
-
this.addCharacteristic(
|
|
808
|
-
this.addCharacteristic(
|
|
809
|
-
this.addCharacteristic(
|
|
810
|
-
this.addCharacteristic(
|
|
761
|
+
this.addCharacteristic(Characteristic.ListPairings);
|
|
762
|
+
this.addCharacteristic(Characteristic.PairSetup);
|
|
763
|
+
this.addCharacteristic(Characteristic.PairVerify);
|
|
764
|
+
this.addCharacteristic(Characteristic.PairingFeatures);
|
|
811
765
|
}
|
|
812
766
|
}
|
|
813
|
-
|
|
814
|
-
Service_1.Service.Pairing = Pairing;
|
|
767
|
+
Service.Pairing = Pairing;
|
|
815
768
|
/**
|
|
816
769
|
* Service "Power Management"
|
|
817
770
|
*/
|
|
818
|
-
class PowerManagement extends
|
|
819
|
-
static UUID =
|
|
771
|
+
export class PowerManagement extends Service {
|
|
772
|
+
static UUID = '00000221-0000-1000-8000-0026BB765291';
|
|
820
773
|
constructor(displayName, subtype) {
|
|
821
774
|
super(displayName, PowerManagement.UUID, subtype);
|
|
822
775
|
// Required Characteristics
|
|
823
|
-
this.addCharacteristic(
|
|
776
|
+
this.addCharacteristic(Characteristic.WakeConfiguration);
|
|
824
777
|
// Optional Characteristics
|
|
825
|
-
this.addOptionalCharacteristic(
|
|
826
|
-
this.addOptionalCharacteristic(
|
|
778
|
+
this.addOptionalCharacteristic(Characteristic.SelectedSleepConfiguration);
|
|
779
|
+
this.addOptionalCharacteristic(Characteristic.SupportedSleepConfiguration);
|
|
827
780
|
}
|
|
828
781
|
}
|
|
829
|
-
|
|
830
|
-
Service_1.Service.PowerManagement = PowerManagement;
|
|
782
|
+
Service.PowerManagement = PowerManagement;
|
|
831
783
|
/**
|
|
832
784
|
* Service "Protocol Information"
|
|
833
785
|
*/
|
|
834
|
-
class ProtocolInformation extends
|
|
835
|
-
static UUID =
|
|
786
|
+
export class ProtocolInformation extends Service {
|
|
787
|
+
static UUID = '000000A2-0000-1000-8000-0026BB765291';
|
|
836
788
|
constructor(displayName, subtype) {
|
|
837
789
|
super(displayName, ProtocolInformation.UUID, subtype);
|
|
838
790
|
// Required Characteristics
|
|
839
|
-
this.addCharacteristic(
|
|
791
|
+
this.addCharacteristic(Characteristic.Version);
|
|
840
792
|
}
|
|
841
793
|
}
|
|
842
|
-
|
|
843
|
-
Service_1.Service.ProtocolInformation = ProtocolInformation;
|
|
794
|
+
Service.ProtocolInformation = ProtocolInformation;
|
|
844
795
|
/**
|
|
845
796
|
* Service "Security System"
|
|
846
797
|
*/
|
|
847
|
-
class SecuritySystem extends
|
|
848
|
-
static UUID =
|
|
798
|
+
export class SecuritySystem extends Service {
|
|
799
|
+
static UUID = '0000007E-0000-1000-8000-0026BB765291';
|
|
849
800
|
constructor(displayName, subtype) {
|
|
850
801
|
super(displayName, SecuritySystem.UUID, subtype);
|
|
851
802
|
// Required Characteristics
|
|
852
|
-
this.addCharacteristic(
|
|
853
|
-
this.addCharacteristic(
|
|
803
|
+
this.addCharacteristic(Characteristic.SecuritySystemCurrentState);
|
|
804
|
+
this.addCharacteristic(Characteristic.SecuritySystemTargetState);
|
|
854
805
|
// Optional Characteristics
|
|
855
|
-
this.addOptionalCharacteristic(
|
|
856
|
-
this.addOptionalCharacteristic(
|
|
857
|
-
this.addOptionalCharacteristic(
|
|
858
|
-
this.addOptionalCharacteristic(
|
|
806
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
807
|
+
this.addOptionalCharacteristic(Characteristic.SecuritySystemAlarmType);
|
|
808
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
809
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
859
810
|
}
|
|
860
811
|
}
|
|
861
|
-
|
|
862
|
-
Service_1.Service.SecuritySystem = SecuritySystem;
|
|
812
|
+
Service.SecuritySystem = SecuritySystem;
|
|
863
813
|
/**
|
|
864
814
|
* Service "Service Label"
|
|
865
815
|
*/
|
|
866
|
-
class ServiceLabel extends
|
|
867
|
-
static UUID =
|
|
816
|
+
export class ServiceLabel extends Service {
|
|
817
|
+
static UUID = '000000CC-0000-1000-8000-0026BB765291';
|
|
868
818
|
constructor(displayName, subtype) {
|
|
869
819
|
super(displayName, ServiceLabel.UUID, subtype);
|
|
870
820
|
// Required Characteristics
|
|
871
|
-
this.addCharacteristic(
|
|
821
|
+
this.addCharacteristic(Characteristic.ServiceLabelNamespace);
|
|
872
822
|
}
|
|
873
823
|
}
|
|
874
|
-
|
|
875
|
-
Service_1.Service.ServiceLabel = ServiceLabel;
|
|
824
|
+
Service.ServiceLabel = ServiceLabel;
|
|
876
825
|
/**
|
|
877
826
|
* Service "Siri"
|
|
878
827
|
*/
|
|
879
|
-
class Siri extends
|
|
880
|
-
static UUID =
|
|
828
|
+
export class Siri extends Service {
|
|
829
|
+
static UUID = '00000133-0000-1000-8000-0026BB765291';
|
|
881
830
|
constructor(displayName, subtype) {
|
|
882
831
|
super(displayName, Siri.UUID, subtype);
|
|
883
832
|
// Required Characteristics
|
|
884
|
-
this.addCharacteristic(
|
|
833
|
+
this.addCharacteristic(Characteristic.SiriInputType);
|
|
885
834
|
// Optional Characteristics
|
|
886
|
-
this.addOptionalCharacteristic(
|
|
887
|
-
this.addOptionalCharacteristic(
|
|
888
|
-
this.addOptionalCharacteristic(
|
|
889
|
-
this.addOptionalCharacteristic(
|
|
890
|
-
this.addOptionalCharacteristic(
|
|
891
|
-
this.addOptionalCharacteristic(
|
|
835
|
+
this.addOptionalCharacteristic(Characteristic.MultifunctionButton);
|
|
836
|
+
this.addOptionalCharacteristic(Characteristic.SiriEnable);
|
|
837
|
+
this.addOptionalCharacteristic(Characteristic.SiriEngineVersion);
|
|
838
|
+
this.addOptionalCharacteristic(Characteristic.SiriLightOnUse);
|
|
839
|
+
this.addOptionalCharacteristic(Characteristic.SiriListening);
|
|
840
|
+
this.addOptionalCharacteristic(Characteristic.SiriTouchToUse);
|
|
892
841
|
}
|
|
893
842
|
}
|
|
894
|
-
|
|
895
|
-
Service_1.Service.Siri = Siri;
|
|
843
|
+
Service.Siri = Siri;
|
|
896
844
|
/**
|
|
897
845
|
* Service "Siri Endpoint"
|
|
898
846
|
*/
|
|
899
|
-
class SiriEndpoint extends
|
|
900
|
-
static UUID =
|
|
847
|
+
export class SiriEndpoint extends Service {
|
|
848
|
+
static UUID = '00000253-0000-1000-8000-0026BB765291';
|
|
901
849
|
constructor(displayName, subtype) {
|
|
902
850
|
super(displayName, SiriEndpoint.UUID, subtype);
|
|
903
851
|
// Required Characteristics
|
|
904
|
-
this.addCharacteristic(
|
|
905
|
-
this.addCharacteristic(
|
|
852
|
+
this.addCharacteristic(Characteristic.SiriEndpointSessionStatus);
|
|
853
|
+
this.addCharacteristic(Characteristic.Version);
|
|
906
854
|
// Optional Characteristics
|
|
907
|
-
this.addOptionalCharacteristic(
|
|
908
|
-
this.addOptionalCharacteristic(
|
|
855
|
+
this.addOptionalCharacteristic(Characteristic.ActiveIdentifier);
|
|
856
|
+
this.addOptionalCharacteristic(Characteristic.ManuallyDisabled);
|
|
909
857
|
}
|
|
910
858
|
}
|
|
911
|
-
|
|
912
|
-
Service_1.Service.SiriEndpoint = SiriEndpoint;
|
|
859
|
+
Service.SiriEndpoint = SiriEndpoint;
|
|
913
860
|
/**
|
|
914
861
|
* Service "Slats"
|
|
915
862
|
*/
|
|
916
|
-
class Slats extends
|
|
917
|
-
static UUID =
|
|
863
|
+
export class Slats extends Service {
|
|
864
|
+
static UUID = '000000B9-0000-1000-8000-0026BB765291';
|
|
918
865
|
constructor(displayName, subtype) {
|
|
919
866
|
super(displayName, Slats.UUID, subtype);
|
|
920
867
|
// Required Characteristics
|
|
921
|
-
this.addCharacteristic(
|
|
922
|
-
this.addCharacteristic(
|
|
868
|
+
this.addCharacteristic(Characteristic.CurrentSlatState);
|
|
869
|
+
this.addCharacteristic(Characteristic.SlatType);
|
|
923
870
|
// Optional Characteristics
|
|
924
|
-
this.addOptionalCharacteristic(
|
|
925
|
-
this.addOptionalCharacteristic(
|
|
926
|
-
this.addOptionalCharacteristic(
|
|
927
|
-
this.addOptionalCharacteristic(
|
|
871
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
872
|
+
this.addOptionalCharacteristic(Characteristic.SwingMode);
|
|
873
|
+
this.addOptionalCharacteristic(Characteristic.CurrentTiltAngle);
|
|
874
|
+
this.addOptionalCharacteristic(Characteristic.TargetTiltAngle);
|
|
928
875
|
}
|
|
929
876
|
}
|
|
930
|
-
|
|
931
|
-
Service_1.Service.Slats = Slats;
|
|
877
|
+
Service.Slats = Slats;
|
|
932
878
|
/**
|
|
933
879
|
* Service "Smart Speaker"
|
|
934
880
|
*/
|
|
935
|
-
class SmartSpeaker extends
|
|
936
|
-
static UUID =
|
|
881
|
+
export class SmartSpeaker extends Service {
|
|
882
|
+
static UUID = '00000228-0000-1000-8000-0026BB765291';
|
|
937
883
|
constructor(displayName, subtype) {
|
|
938
884
|
super(displayName, SmartSpeaker.UUID, subtype);
|
|
939
885
|
// Required Characteristics
|
|
940
|
-
this.addCharacteristic(
|
|
941
|
-
this.addCharacteristic(
|
|
886
|
+
this.addCharacteristic(Characteristic.CurrentMediaState);
|
|
887
|
+
this.addCharacteristic(Characteristic.TargetMediaState);
|
|
942
888
|
// Optional Characteristics
|
|
943
|
-
this.addOptionalCharacteristic(
|
|
944
|
-
this.addOptionalCharacteristic(
|
|
945
|
-
this.addOptionalCharacteristic(
|
|
946
|
-
this.addOptionalCharacteristic(
|
|
947
|
-
this.addOptionalCharacteristic(
|
|
889
|
+
this.addOptionalCharacteristic(Characteristic.AirPlayEnable);
|
|
890
|
+
this.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
891
|
+
this.addOptionalCharacteristic(Characteristic.Mute);
|
|
892
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
893
|
+
this.addOptionalCharacteristic(Characteristic.Volume);
|
|
948
894
|
}
|
|
949
895
|
}
|
|
950
|
-
|
|
951
|
-
Service_1.Service.SmartSpeaker = SmartSpeaker;
|
|
896
|
+
Service.SmartSpeaker = SmartSpeaker;
|
|
952
897
|
/**
|
|
953
898
|
* Service "Smoke Sensor"
|
|
954
899
|
*/
|
|
955
|
-
class SmokeSensor extends
|
|
956
|
-
static UUID =
|
|
900
|
+
export class SmokeSensor extends Service {
|
|
901
|
+
static UUID = '00000087-0000-1000-8000-0026BB765291';
|
|
957
902
|
constructor(displayName, subtype) {
|
|
958
903
|
super(displayName, SmokeSensor.UUID, subtype);
|
|
959
904
|
// Required Characteristics
|
|
960
|
-
this.addCharacteristic(
|
|
905
|
+
this.addCharacteristic(Characteristic.SmokeDetected);
|
|
961
906
|
// Optional Characteristics
|
|
962
|
-
this.addOptionalCharacteristic(
|
|
963
|
-
this.addOptionalCharacteristic(
|
|
964
|
-
this.addOptionalCharacteristic(
|
|
965
|
-
this.addOptionalCharacteristic(
|
|
966
|
-
this.addOptionalCharacteristic(
|
|
907
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
908
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
909
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
910
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
911
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
967
912
|
}
|
|
968
913
|
}
|
|
969
|
-
|
|
970
|
-
Service_1.Service.SmokeSensor = SmokeSensor;
|
|
914
|
+
Service.SmokeSensor = SmokeSensor;
|
|
971
915
|
/**
|
|
972
916
|
* Service "Speaker"
|
|
973
917
|
* @since iOS 10
|
|
974
918
|
*/
|
|
975
|
-
class Speaker extends
|
|
976
|
-
static UUID =
|
|
919
|
+
export class Speaker extends Service {
|
|
920
|
+
static UUID = '00000113-0000-1000-8000-0026BB765291';
|
|
977
921
|
constructor(displayName, subtype) {
|
|
978
922
|
super(displayName, Speaker.UUID, subtype);
|
|
979
923
|
// Required Characteristics
|
|
980
|
-
this.addCharacteristic(
|
|
924
|
+
this.addCharacteristic(Characteristic.Mute);
|
|
981
925
|
// Optional Characteristics
|
|
982
|
-
this.addOptionalCharacteristic(
|
|
983
|
-
this.addOptionalCharacteristic(
|
|
926
|
+
this.addOptionalCharacteristic(Characteristic.Active);
|
|
927
|
+
this.addOptionalCharacteristic(Characteristic.Volume);
|
|
984
928
|
}
|
|
985
929
|
}
|
|
986
|
-
|
|
987
|
-
Service_1.Service.Speaker = Speaker;
|
|
930
|
+
Service.Speaker = Speaker;
|
|
988
931
|
/**
|
|
989
932
|
* Service "Stateful Programmable Switch"
|
|
990
933
|
*/
|
|
991
|
-
class StatefulProgrammableSwitch extends
|
|
992
|
-
static UUID =
|
|
934
|
+
export class StatefulProgrammableSwitch extends Service {
|
|
935
|
+
static UUID = '00000088-0000-1000-8000-0026BB765291';
|
|
993
936
|
constructor(displayName, subtype) {
|
|
994
937
|
super(displayName, StatefulProgrammableSwitch.UUID, subtype);
|
|
995
938
|
// Required Characteristics
|
|
996
|
-
this.addCharacteristic(
|
|
997
|
-
this.addCharacteristic(
|
|
939
|
+
this.addCharacteristic(Characteristic.ProgrammableSwitchEvent);
|
|
940
|
+
this.addCharacteristic(Characteristic.ProgrammableSwitchOutputState);
|
|
998
941
|
// Optional Characteristics
|
|
999
|
-
this.addOptionalCharacteristic(
|
|
942
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1000
943
|
}
|
|
1001
944
|
}
|
|
1002
|
-
|
|
1003
|
-
Service_1.Service.StatefulProgrammableSwitch = StatefulProgrammableSwitch;
|
|
945
|
+
Service.StatefulProgrammableSwitch = StatefulProgrammableSwitch;
|
|
1004
946
|
/**
|
|
1005
947
|
* Service "Stateless Programmable Switch"
|
|
1006
948
|
*/
|
|
1007
|
-
class StatelessProgrammableSwitch extends
|
|
1008
|
-
static UUID =
|
|
949
|
+
export class StatelessProgrammableSwitch extends Service {
|
|
950
|
+
static UUID = '00000089-0000-1000-8000-0026BB765291';
|
|
1009
951
|
constructor(displayName, subtype) {
|
|
1010
952
|
super(displayName, StatelessProgrammableSwitch.UUID, subtype);
|
|
1011
953
|
// Required Characteristics
|
|
1012
|
-
this.addCharacteristic(
|
|
954
|
+
this.addCharacteristic(Characteristic.ProgrammableSwitchEvent);
|
|
1013
955
|
// Optional Characteristics
|
|
1014
|
-
this.addOptionalCharacteristic(
|
|
1015
|
-
this.addOptionalCharacteristic(
|
|
956
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
957
|
+
this.addOptionalCharacteristic(Characteristic.ServiceLabelIndex);
|
|
1016
958
|
}
|
|
1017
959
|
}
|
|
1018
|
-
|
|
1019
|
-
Service_1.Service.StatelessProgrammableSwitch = StatelessProgrammableSwitch;
|
|
960
|
+
Service.StatelessProgrammableSwitch = StatelessProgrammableSwitch;
|
|
1020
961
|
/**
|
|
1021
962
|
* Service "Switch"
|
|
1022
963
|
*/
|
|
1023
|
-
class Switch extends
|
|
1024
|
-
static UUID =
|
|
964
|
+
export class Switch extends Service {
|
|
965
|
+
static UUID = '00000049-0000-1000-8000-0026BB765291';
|
|
1025
966
|
constructor(displayName, subtype) {
|
|
1026
967
|
super(displayName, Switch.UUID, subtype);
|
|
1027
968
|
// Required Characteristics
|
|
1028
|
-
this.addCharacteristic(
|
|
969
|
+
this.addCharacteristic(Characteristic.On);
|
|
1029
970
|
// Optional Characteristics
|
|
1030
|
-
this.addOptionalCharacteristic(
|
|
971
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1031
972
|
}
|
|
1032
973
|
}
|
|
1033
|
-
|
|
1034
|
-
Service_1.Service.Switch = Switch;
|
|
974
|
+
Service.Switch = Switch;
|
|
1035
975
|
/**
|
|
1036
976
|
* Service "Tap Management"
|
|
1037
977
|
*/
|
|
1038
|
-
class TapManagement extends
|
|
1039
|
-
static UUID =
|
|
978
|
+
export class TapManagement extends Service {
|
|
979
|
+
static UUID = '0000022E-0000-1000-8000-0026BB765291';
|
|
1040
980
|
constructor(displayName, subtype) {
|
|
1041
981
|
super(displayName, TapManagement.UUID, subtype);
|
|
1042
982
|
// Required Characteristics
|
|
1043
|
-
this.addCharacteristic(
|
|
1044
|
-
this.addCharacteristic(
|
|
1045
|
-
this.addCharacteristic(
|
|
1046
|
-
this.addCharacteristic(
|
|
983
|
+
this.addCharacteristic(Characteristic.Active);
|
|
984
|
+
this.addCharacteristic(Characteristic.CryptoHash);
|
|
985
|
+
this.addCharacteristic(Characteristic.TapType);
|
|
986
|
+
this.addCharacteristic(Characteristic.Token);
|
|
1047
987
|
}
|
|
1048
988
|
}
|
|
1049
|
-
|
|
1050
|
-
Service_1.Service.TapManagement = TapManagement;
|
|
989
|
+
Service.TapManagement = TapManagement;
|
|
1051
990
|
/**
|
|
1052
991
|
* Service "Target Control"
|
|
1053
992
|
*/
|
|
1054
|
-
class TargetControl extends
|
|
1055
|
-
static UUID =
|
|
993
|
+
export class TargetControl extends Service {
|
|
994
|
+
static UUID = '00000125-0000-1000-8000-0026BB765291';
|
|
1056
995
|
constructor(displayName, subtype) {
|
|
1057
996
|
super(displayName, TargetControl.UUID, subtype);
|
|
1058
997
|
// Required Characteristics
|
|
1059
|
-
this.addCharacteristic(
|
|
1060
|
-
this.addCharacteristic(
|
|
1061
|
-
this.addCharacteristic(
|
|
998
|
+
this.addCharacteristic(Characteristic.Active);
|
|
999
|
+
this.addCharacteristic(Characteristic.ActiveIdentifier);
|
|
1000
|
+
this.addCharacteristic(Characteristic.ButtonEvent);
|
|
1062
1001
|
// Optional Characteristics
|
|
1063
|
-
this.addOptionalCharacteristic(
|
|
1002
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1064
1003
|
}
|
|
1065
1004
|
}
|
|
1066
|
-
|
|
1067
|
-
Service_1.Service.TargetControl = TargetControl;
|
|
1005
|
+
Service.TargetControl = TargetControl;
|
|
1068
1006
|
/**
|
|
1069
1007
|
* Service "Target Control Management"
|
|
1070
1008
|
*/
|
|
1071
|
-
class TargetControlManagement extends
|
|
1072
|
-
static UUID =
|
|
1009
|
+
export class TargetControlManagement extends Service {
|
|
1010
|
+
static UUID = '00000122-0000-1000-8000-0026BB765291';
|
|
1073
1011
|
constructor(displayName, subtype) {
|
|
1074
1012
|
super(displayName, TargetControlManagement.UUID, subtype);
|
|
1075
1013
|
// Required Characteristics
|
|
1076
|
-
this.addCharacteristic(
|
|
1077
|
-
this.addCharacteristic(
|
|
1014
|
+
this.addCharacteristic(Characteristic.TargetControlSupportedConfiguration);
|
|
1015
|
+
this.addCharacteristic(Characteristic.TargetControlList);
|
|
1078
1016
|
}
|
|
1079
1017
|
}
|
|
1080
|
-
|
|
1081
|
-
Service_1.Service.TargetControlManagement = TargetControlManagement;
|
|
1018
|
+
Service.TargetControlManagement = TargetControlManagement;
|
|
1082
1019
|
/**
|
|
1083
1020
|
* Service "Television"
|
|
1084
1021
|
*/
|
|
1085
|
-
class Television extends
|
|
1086
|
-
static UUID =
|
|
1022
|
+
export class Television extends Service {
|
|
1023
|
+
static UUID = '000000D8-0000-1000-8000-0026BB765291';
|
|
1087
1024
|
constructor(displayName, subtype) {
|
|
1088
1025
|
super(displayName, Television.UUID, subtype);
|
|
1089
1026
|
// Required Characteristics
|
|
1090
|
-
this.addCharacteristic(
|
|
1091
|
-
this.addCharacteristic(
|
|
1092
|
-
this.addCharacteristic(
|
|
1093
|
-
this.addCharacteristic(
|
|
1094
|
-
this.addCharacteristic(
|
|
1027
|
+
this.addCharacteristic(Characteristic.Active);
|
|
1028
|
+
this.addCharacteristic(Characteristic.ActiveIdentifier);
|
|
1029
|
+
this.addCharacteristic(Characteristic.ConfiguredName);
|
|
1030
|
+
this.addCharacteristic(Characteristic.RemoteKey);
|
|
1031
|
+
this.addCharacteristic(Characteristic.SleepDiscoveryMode);
|
|
1095
1032
|
// Optional Characteristics
|
|
1096
|
-
this.addOptionalCharacteristic(
|
|
1097
|
-
this.addOptionalCharacteristic(
|
|
1098
|
-
this.addOptionalCharacteristic(
|
|
1099
|
-
this.addOptionalCharacteristic(
|
|
1100
|
-
this.addOptionalCharacteristic(
|
|
1101
|
-
this.addOptionalCharacteristic(
|
|
1102
|
-
this.addOptionalCharacteristic(
|
|
1103
|
-
this.addOptionalCharacteristic(
|
|
1033
|
+
this.addOptionalCharacteristic(Characteristic.Brightness);
|
|
1034
|
+
this.addOptionalCharacteristic(Characteristic.ClosedCaptions);
|
|
1035
|
+
this.addOptionalCharacteristic(Characteristic.DisplayOrder);
|
|
1036
|
+
this.addOptionalCharacteristic(Characteristic.CurrentMediaState);
|
|
1037
|
+
this.addOptionalCharacteristic(Characteristic.TargetMediaState);
|
|
1038
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1039
|
+
this.addOptionalCharacteristic(Characteristic.PictureMode);
|
|
1040
|
+
this.addOptionalCharacteristic(Characteristic.PowerModeSelection);
|
|
1104
1041
|
}
|
|
1105
1042
|
}
|
|
1106
|
-
|
|
1107
|
-
Service_1.Service.Television = Television;
|
|
1043
|
+
Service.Television = Television;
|
|
1108
1044
|
/**
|
|
1109
1045
|
* Service "Television Speaker"
|
|
1110
1046
|
*/
|
|
1111
|
-
class TelevisionSpeaker extends
|
|
1112
|
-
static UUID =
|
|
1047
|
+
export class TelevisionSpeaker extends Service {
|
|
1048
|
+
static UUID = '00000113-0000-1000-8000-0026BB765291';
|
|
1113
1049
|
constructor(displayName, subtype) {
|
|
1114
1050
|
super(displayName, TelevisionSpeaker.UUID, subtype);
|
|
1115
1051
|
// Required Characteristics
|
|
1116
|
-
this.addCharacteristic(
|
|
1052
|
+
this.addCharacteristic(Characteristic.Mute);
|
|
1117
1053
|
// Optional Characteristics
|
|
1118
|
-
this.addOptionalCharacteristic(
|
|
1119
|
-
this.addOptionalCharacteristic(
|
|
1120
|
-
this.addOptionalCharacteristic(
|
|
1121
|
-
this.addOptionalCharacteristic(
|
|
1054
|
+
this.addOptionalCharacteristic(Characteristic.Active);
|
|
1055
|
+
this.addOptionalCharacteristic(Characteristic.Volume);
|
|
1056
|
+
this.addOptionalCharacteristic(Characteristic.VolumeControlType);
|
|
1057
|
+
this.addOptionalCharacteristic(Characteristic.VolumeSelector);
|
|
1122
1058
|
}
|
|
1123
1059
|
}
|
|
1124
|
-
|
|
1125
|
-
Service_1.Service.TelevisionSpeaker = TelevisionSpeaker;
|
|
1060
|
+
Service.TelevisionSpeaker = TelevisionSpeaker;
|
|
1126
1061
|
/**
|
|
1127
1062
|
* Service "Temperature Sensor"
|
|
1128
1063
|
*/
|
|
1129
|
-
class TemperatureSensor extends
|
|
1130
|
-
static UUID =
|
|
1064
|
+
export class TemperatureSensor extends Service {
|
|
1065
|
+
static UUID = '0000008A-0000-1000-8000-0026BB765291';
|
|
1131
1066
|
constructor(displayName, subtype) {
|
|
1132
1067
|
super(displayName, TemperatureSensor.UUID, subtype);
|
|
1133
1068
|
// Required Characteristics
|
|
1134
|
-
this.addCharacteristic(
|
|
1069
|
+
this.addCharacteristic(Characteristic.CurrentTemperature);
|
|
1135
1070
|
// Optional Characteristics
|
|
1136
|
-
this.addOptionalCharacteristic(
|
|
1137
|
-
this.addOptionalCharacteristic(
|
|
1138
|
-
this.addOptionalCharacteristic(
|
|
1139
|
-
this.addOptionalCharacteristic(
|
|
1140
|
-
this.addOptionalCharacteristic(
|
|
1071
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1072
|
+
this.addOptionalCharacteristic(Characteristic.StatusActive);
|
|
1073
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
1074
|
+
this.addOptionalCharacteristic(Characteristic.StatusLowBattery);
|
|
1075
|
+
this.addOptionalCharacteristic(Characteristic.StatusTampered);
|
|
1141
1076
|
}
|
|
1142
1077
|
}
|
|
1143
|
-
|
|
1144
|
-
Service_1.Service.TemperatureSensor = TemperatureSensor;
|
|
1078
|
+
Service.TemperatureSensor = TemperatureSensor;
|
|
1145
1079
|
/**
|
|
1146
1080
|
* Service "Thermostat"
|
|
1147
1081
|
*/
|
|
1148
|
-
class Thermostat extends
|
|
1149
|
-
static UUID =
|
|
1082
|
+
export class Thermostat extends Service {
|
|
1083
|
+
static UUID = '0000004A-0000-1000-8000-0026BB765291';
|
|
1150
1084
|
constructor(displayName, subtype) {
|
|
1151
1085
|
super(displayName, Thermostat.UUID, subtype);
|
|
1152
1086
|
// Required Characteristics
|
|
1153
|
-
this.addCharacteristic(
|
|
1154
|
-
this.addCharacteristic(
|
|
1155
|
-
this.addCharacteristic(
|
|
1156
|
-
this.addCharacteristic(
|
|
1157
|
-
this.addCharacteristic(
|
|
1087
|
+
this.addCharacteristic(Characteristic.CurrentHeatingCoolingState);
|
|
1088
|
+
this.addCharacteristic(Characteristic.TargetHeatingCoolingState);
|
|
1089
|
+
this.addCharacteristic(Characteristic.CurrentTemperature);
|
|
1090
|
+
this.addCharacteristic(Characteristic.TargetTemperature);
|
|
1091
|
+
this.addCharacteristic(Characteristic.TemperatureDisplayUnits);
|
|
1158
1092
|
// Optional Characteristics
|
|
1159
|
-
this.addOptionalCharacteristic(
|
|
1160
|
-
this.addOptionalCharacteristic(
|
|
1161
|
-
this.addOptionalCharacteristic(
|
|
1162
|
-
this.addOptionalCharacteristic(
|
|
1163
|
-
this.addOptionalCharacteristic(
|
|
1093
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1094
|
+
this.addOptionalCharacteristic(Characteristic.CurrentRelativeHumidity);
|
|
1095
|
+
this.addOptionalCharacteristic(Characteristic.TargetRelativeHumidity);
|
|
1096
|
+
this.addOptionalCharacteristic(Characteristic.CoolingThresholdTemperature);
|
|
1097
|
+
this.addOptionalCharacteristic(Characteristic.HeatingThresholdTemperature);
|
|
1164
1098
|
}
|
|
1165
1099
|
}
|
|
1166
|
-
|
|
1167
|
-
Service_1.Service.Thermostat = Thermostat;
|
|
1100
|
+
Service.Thermostat = Thermostat;
|
|
1168
1101
|
/**
|
|
1169
1102
|
* Service "Thread Transport"
|
|
1170
1103
|
*/
|
|
1171
|
-
class ThreadTransport extends
|
|
1172
|
-
static UUID =
|
|
1104
|
+
export class ThreadTransport extends Service {
|
|
1105
|
+
static UUID = '00000701-0000-1000-8000-0026BB765291';
|
|
1173
1106
|
constructor(displayName, subtype) {
|
|
1174
1107
|
super(displayName, ThreadTransport.UUID, subtype);
|
|
1175
1108
|
// Required Characteristics
|
|
1176
|
-
this.addCharacteristic(
|
|
1177
|
-
this.addCharacteristic(
|
|
1178
|
-
this.addCharacteristic(
|
|
1179
|
-
this.addCharacteristic(
|
|
1109
|
+
this.addCharacteristic(Characteristic.CurrentTransport);
|
|
1110
|
+
this.addCharacteristic(Characteristic.ThreadControlPoint);
|
|
1111
|
+
this.addCharacteristic(Characteristic.ThreadNodeCapabilities);
|
|
1112
|
+
this.addCharacteristic(Characteristic.ThreadStatus);
|
|
1180
1113
|
// Optional Characteristics
|
|
1181
|
-
this.addOptionalCharacteristic(
|
|
1182
|
-
this.addOptionalCharacteristic(
|
|
1183
|
-
this.addOptionalCharacteristic(
|
|
1184
|
-
this.addOptionalCharacteristic(
|
|
1185
|
-
this.addOptionalCharacteristic(
|
|
1186
|
-
this.addOptionalCharacteristic(
|
|
1187
|
-
this.addOptionalCharacteristic(
|
|
1188
|
-
this.addOptionalCharacteristic(
|
|
1189
|
-
this.addOptionalCharacteristic(
|
|
1190
|
-
this.addOptionalCharacteristic(
|
|
1191
|
-
this.addOptionalCharacteristic(
|
|
1192
|
-
this.addOptionalCharacteristic(
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
Service_1.Service.ThreadTransport = ThreadTransport;
|
|
1114
|
+
this.addOptionalCharacteristic(Characteristic.CCAEnergyDetectThreshold);
|
|
1115
|
+
this.addOptionalCharacteristic(Characteristic.CCASignalDetectThreshold);
|
|
1116
|
+
this.addOptionalCharacteristic(Characteristic.EventRetransmissionMaximum);
|
|
1117
|
+
this.addOptionalCharacteristic(Characteristic.EventTransmissionCounters);
|
|
1118
|
+
this.addOptionalCharacteristic(Characteristic.MACRetransmissionMaximum);
|
|
1119
|
+
this.addOptionalCharacteristic(Characteristic.MACTransmissionCounters);
|
|
1120
|
+
this.addOptionalCharacteristic(Characteristic.ReceiverSensitivity);
|
|
1121
|
+
this.addOptionalCharacteristic(Characteristic.ReceivedSignalStrengthIndication);
|
|
1122
|
+
this.addOptionalCharacteristic(Characteristic.SignalToNoiseRatio);
|
|
1123
|
+
this.addOptionalCharacteristic(Characteristic.ThreadOpenThreadVersion);
|
|
1124
|
+
this.addOptionalCharacteristic(Characteristic.TransmitPower);
|
|
1125
|
+
this.addOptionalCharacteristic(Characteristic.MaximumTransmitPower);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
Service.ThreadTransport = ThreadTransport;
|
|
1197
1129
|
/**
|
|
1198
1130
|
* Service "Transfer Transport Management"
|
|
1199
1131
|
*/
|
|
1200
|
-
class TransferTransportManagement extends
|
|
1201
|
-
static UUID =
|
|
1132
|
+
export class TransferTransportManagement extends Service {
|
|
1133
|
+
static UUID = '00000203-0000-1000-8000-0026BB765291';
|
|
1202
1134
|
constructor(displayName, subtype) {
|
|
1203
1135
|
super(displayName, TransferTransportManagement.UUID, subtype);
|
|
1204
1136
|
// Required Characteristics
|
|
1205
|
-
this.addCharacteristic(
|
|
1206
|
-
this.addCharacteristic(
|
|
1137
|
+
this.addCharacteristic(Characteristic.SupportedTransferTransportConfiguration);
|
|
1138
|
+
this.addCharacteristic(Characteristic.SetupTransferTransport);
|
|
1207
1139
|
}
|
|
1208
1140
|
}
|
|
1209
|
-
|
|
1210
|
-
Service_1.Service.TransferTransportManagement = TransferTransportManagement;
|
|
1141
|
+
Service.TransferTransportManagement = TransferTransportManagement;
|
|
1211
1142
|
/**
|
|
1212
1143
|
* Service "Valve"
|
|
1213
1144
|
*/
|
|
1214
|
-
class Valve extends
|
|
1215
|
-
static UUID =
|
|
1145
|
+
export class Valve extends Service {
|
|
1146
|
+
static UUID = '000000D0-0000-1000-8000-0026BB765291';
|
|
1216
1147
|
constructor(displayName, subtype) {
|
|
1217
1148
|
super(displayName, Valve.UUID, subtype);
|
|
1218
1149
|
// Required Characteristics
|
|
1219
|
-
this.addCharacteristic(
|
|
1220
|
-
this.addCharacteristic(
|
|
1221
|
-
this.addCharacteristic(
|
|
1150
|
+
this.addCharacteristic(Characteristic.Active);
|
|
1151
|
+
this.addCharacteristic(Characteristic.InUse);
|
|
1152
|
+
this.addCharacteristic(Characteristic.ValveType);
|
|
1222
1153
|
// Optional Characteristics
|
|
1223
|
-
this.addOptionalCharacteristic(
|
|
1224
|
-
this.addOptionalCharacteristic(
|
|
1225
|
-
this.addOptionalCharacteristic(
|
|
1226
|
-
this.addOptionalCharacteristic(
|
|
1227
|
-
this.addOptionalCharacteristic(
|
|
1228
|
-
this.addOptionalCharacteristic(
|
|
1154
|
+
this.addOptionalCharacteristic(Characteristic.IsConfigured);
|
|
1155
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1156
|
+
this.addOptionalCharacteristic(Characteristic.RemainingDuration);
|
|
1157
|
+
this.addOptionalCharacteristic(Characteristic.ServiceLabelIndex);
|
|
1158
|
+
this.addOptionalCharacteristic(Characteristic.SetDuration);
|
|
1159
|
+
this.addOptionalCharacteristic(Characteristic.StatusFault);
|
|
1229
1160
|
}
|
|
1230
1161
|
}
|
|
1231
|
-
|
|
1232
|
-
Service_1.Service.Valve = Valve;
|
|
1162
|
+
Service.Valve = Valve;
|
|
1233
1163
|
/**
|
|
1234
1164
|
* Service "Wi-Fi Router"
|
|
1235
1165
|
*/
|
|
1236
|
-
class WiFiRouter extends
|
|
1237
|
-
static UUID =
|
|
1166
|
+
export class WiFiRouter extends Service {
|
|
1167
|
+
static UUID = '0000020A-0000-1000-8000-0026BB765291';
|
|
1238
1168
|
constructor(displayName, subtype) {
|
|
1239
1169
|
super(displayName, WiFiRouter.UUID, subtype);
|
|
1240
1170
|
// Required Characteristics
|
|
1241
|
-
this.addCharacteristic(
|
|
1242
|
-
this.addCharacteristic(
|
|
1243
|
-
this.addCharacteristic(
|
|
1244
|
-
this.addCharacteristic(
|
|
1245
|
-
this.addCharacteristic(
|
|
1246
|
-
this.addCharacteristic(
|
|
1247
|
-
this.addCharacteristic(
|
|
1248
|
-
this.addCharacteristic(
|
|
1249
|
-
this.addCharacteristic(
|
|
1171
|
+
this.addCharacteristic(Characteristic.ConfiguredName);
|
|
1172
|
+
this.addCharacteristic(Characteristic.ManagedNetworkEnable);
|
|
1173
|
+
this.addCharacteristic(Characteristic.NetworkAccessViolationControl);
|
|
1174
|
+
this.addCharacteristic(Characteristic.NetworkClientProfileControl);
|
|
1175
|
+
this.addCharacteristic(Characteristic.NetworkClientStatusControl);
|
|
1176
|
+
this.addCharacteristic(Characteristic.RouterStatus);
|
|
1177
|
+
this.addCharacteristic(Characteristic.SupportedRouterConfiguration);
|
|
1178
|
+
this.addCharacteristic(Characteristic.WANConfigurationList);
|
|
1179
|
+
this.addCharacteristic(Characteristic.WANStatusList);
|
|
1250
1180
|
}
|
|
1251
1181
|
}
|
|
1252
|
-
|
|
1253
|
-
Service_1.Service.WiFiRouter = WiFiRouter;
|
|
1182
|
+
Service.WiFiRouter = WiFiRouter;
|
|
1254
1183
|
/**
|
|
1255
1184
|
* Service "Wi-Fi Satellite"
|
|
1256
1185
|
*/
|
|
1257
|
-
class WiFiSatellite extends
|
|
1258
|
-
static UUID =
|
|
1186
|
+
export class WiFiSatellite extends Service {
|
|
1187
|
+
static UUID = '0000020F-0000-1000-8000-0026BB765291';
|
|
1259
1188
|
constructor(displayName, subtype) {
|
|
1260
1189
|
super(displayName, WiFiSatellite.UUID, subtype);
|
|
1261
1190
|
// Required Characteristics
|
|
1262
|
-
this.addCharacteristic(
|
|
1191
|
+
this.addCharacteristic(Characteristic.WiFiSatelliteStatus);
|
|
1263
1192
|
}
|
|
1264
1193
|
}
|
|
1265
|
-
|
|
1266
|
-
Service_1.Service.WiFiSatellite = WiFiSatellite;
|
|
1194
|
+
Service.WiFiSatellite = WiFiSatellite;
|
|
1267
1195
|
/**
|
|
1268
1196
|
* Service "Wi-Fi Transport"
|
|
1269
1197
|
*/
|
|
1270
|
-
class WiFiTransport extends
|
|
1271
|
-
static UUID =
|
|
1198
|
+
export class WiFiTransport extends Service {
|
|
1199
|
+
static UUID = '0000022A-0000-1000-8000-0026BB765291';
|
|
1272
1200
|
constructor(displayName, subtype) {
|
|
1273
1201
|
super(displayName, WiFiTransport.UUID, subtype);
|
|
1274
1202
|
// Required Characteristics
|
|
1275
|
-
this.addCharacteristic(
|
|
1276
|
-
this.addCharacteristic(
|
|
1203
|
+
this.addCharacteristic(Characteristic.CurrentTransport);
|
|
1204
|
+
this.addCharacteristic(Characteristic.WiFiCapabilities);
|
|
1277
1205
|
// Optional Characteristics
|
|
1278
|
-
this.addOptionalCharacteristic(
|
|
1206
|
+
this.addOptionalCharacteristic(Characteristic.WiFiConfigurationControl);
|
|
1279
1207
|
}
|
|
1280
1208
|
}
|
|
1281
|
-
|
|
1282
|
-
Service_1.Service.WiFiTransport = WiFiTransport;
|
|
1209
|
+
Service.WiFiTransport = WiFiTransport;
|
|
1283
1210
|
/**
|
|
1284
1211
|
* Service "Window"
|
|
1285
1212
|
*/
|
|
1286
|
-
class Window extends
|
|
1287
|
-
static UUID =
|
|
1213
|
+
export class Window extends Service {
|
|
1214
|
+
static UUID = '0000008B-0000-1000-8000-0026BB765291';
|
|
1288
1215
|
constructor(displayName, subtype) {
|
|
1289
1216
|
super(displayName, Window.UUID, subtype);
|
|
1290
1217
|
// Required Characteristics
|
|
1291
|
-
this.addCharacteristic(
|
|
1292
|
-
this.addCharacteristic(
|
|
1293
|
-
this.addCharacteristic(
|
|
1218
|
+
this.addCharacteristic(Characteristic.CurrentPosition);
|
|
1219
|
+
this.addCharacteristic(Characteristic.PositionState);
|
|
1220
|
+
this.addCharacteristic(Characteristic.TargetPosition);
|
|
1294
1221
|
// Optional Characteristics
|
|
1295
|
-
this.addOptionalCharacteristic(
|
|
1296
|
-
this.addOptionalCharacteristic(
|
|
1297
|
-
this.addOptionalCharacteristic(
|
|
1222
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1223
|
+
this.addOptionalCharacteristic(Characteristic.ObstructionDetected);
|
|
1224
|
+
this.addOptionalCharacteristic(Characteristic.HoldPosition);
|
|
1298
1225
|
}
|
|
1299
1226
|
}
|
|
1300
|
-
|
|
1301
|
-
Service_1.Service.Window = Window;
|
|
1227
|
+
Service.Window = Window;
|
|
1302
1228
|
/**
|
|
1303
1229
|
* Service "Window Covering"
|
|
1304
1230
|
*/
|
|
1305
|
-
class WindowCovering extends
|
|
1306
|
-
static UUID =
|
|
1231
|
+
export class WindowCovering extends Service {
|
|
1232
|
+
static UUID = '0000008C-0000-1000-8000-0026BB765291';
|
|
1307
1233
|
constructor(displayName, subtype) {
|
|
1308
1234
|
super(displayName, WindowCovering.UUID, subtype);
|
|
1309
1235
|
// Required Characteristics
|
|
1310
|
-
this.addCharacteristic(
|
|
1311
|
-
this.addCharacteristic(
|
|
1312
|
-
this.addCharacteristic(
|
|
1236
|
+
this.addCharacteristic(Characteristic.CurrentPosition);
|
|
1237
|
+
this.addCharacteristic(Characteristic.PositionState);
|
|
1238
|
+
this.addCharacteristic(Characteristic.TargetPosition);
|
|
1313
1239
|
// Optional Characteristics
|
|
1314
|
-
this.addOptionalCharacteristic(
|
|
1315
|
-
this.addOptionalCharacteristic(
|
|
1316
|
-
this.addOptionalCharacteristic(
|
|
1317
|
-
this.addOptionalCharacteristic(
|
|
1318
|
-
this.addOptionalCharacteristic(
|
|
1319
|
-
this.addOptionalCharacteristic(
|
|
1320
|
-
this.addOptionalCharacteristic(
|
|
1240
|
+
this.addOptionalCharacteristic(Characteristic.CurrentHorizontalTiltAngle);
|
|
1241
|
+
this.addOptionalCharacteristic(Characteristic.TargetHorizontalTiltAngle);
|
|
1242
|
+
this.addOptionalCharacteristic(Characteristic.Name);
|
|
1243
|
+
this.addOptionalCharacteristic(Characteristic.ObstructionDetected);
|
|
1244
|
+
this.addOptionalCharacteristic(Characteristic.HoldPosition);
|
|
1245
|
+
this.addOptionalCharacteristic(Characteristic.CurrentVerticalTiltAngle);
|
|
1246
|
+
this.addOptionalCharacteristic(Characteristic.TargetVerticalTiltAngle);
|
|
1321
1247
|
}
|
|
1322
1248
|
}
|
|
1323
|
-
|
|
1324
|
-
Service_1.Service.WindowCovering = WindowCovering;
|
|
1249
|
+
Service.WindowCovering = WindowCovering;
|
|
1325
1250
|
//# sourceMappingURL=ServiceDefinitions.js.map
|