From d65b2d9f337186746d67b9bd4df94a449eb4065b Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Sat, 13 Jul 2024 11:37:29 +0100 Subject: [PATCH] 2.0.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/hap-types.ts | 47 +++++------------------------------------------ 3 files changed, 8 insertions(+), 45 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3a0af31..4661b57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@homebridge/hap-client", - "version": "1.10.2", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@homebridge/hap-client", - "version": "1.10.2", + "version": "2.0.0", "license": "MIT", "dependencies": { "axios": "1.7.2", diff --git a/package.json b/package.json index 965cd6c..6317290 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@homebridge/hap-client", - "version": "1.10.2", + "version": "2.0.0", "description": "A client for HAP-NodeJS.", "main": "./dist/index.js", "scripts": { diff --git a/src/hap-types.ts b/src/hap-types.ts index 27daaf8..7d22c94 100644 --- a/src/hap-types.ts +++ b/src/hap-types.ts @@ -21,19 +21,11 @@ export const Services = { 'Assistant': '0000026A-0000-1000-8000-0026BB765291', '00000127-0000-1000-8000-0026BB765291': 'AudioStreamManagement', 'AudioStreamManagement': '00000127-0000-1000-8000-0026BB765291', - '00000096-0000-1000-8000-0026BB765291': 'BatteryService', - 'BatteryService': '00000096-0000-1000-8000-0026BB765291', + '00000096-0000-1000-8000-0026BB765291': 'Battery', 'Battery': '00000096-0000-1000-8000-0026BB765291', - '000000A1-0000-1000-8000-0026BB765291': 'BridgeConfiguration', - 'BridgeConfiguration': '000000A1-0000-1000-8000-0026BB765291', - '00000062-0000-1000-8000-0026BB765291': 'BridgingState', - 'BridgingState': '00000062-0000-1000-8000-0026BB765291', - '00000111-0000-1000-8000-0026BB765291': 'CameraControl', - 'CameraControl': '00000111-0000-1000-8000-0026BB765291', '0000021A-0000-1000-8000-0026BB765291': 'CameraOperatingMode', 'CameraOperatingMode': '0000021A-0000-1000-8000-0026BB765291', - '00000204-0000-1000-8000-0026BB765291': 'CameraEventRecordingManagement', - 'CameraEventRecordingManagement': '00000204-0000-1000-8000-0026BB765291', + '00000204-0000-1000-8000-0026BB765291': 'CameraRecordingManagement', 'CameraRecordingManagement': '00000204-0000-1000-8000-0026BB765291', '00000110-0000-1000-8000-0026BB765291': 'CameraRTPStreamManagement', 'CameraRTPStreamManagement': '00000110-0000-1000-8000-0026BB765291', @@ -41,8 +33,7 @@ export const Services = { 'CarbonDioxideSensor': '00000097-0000-1000-8000-0026BB765291', '0000007F-0000-1000-8000-0026BB765291': 'CarbonMonoxideSensor', 'CarbonMonoxideSensor': '0000007F-0000-1000-8000-0026BB765291', - '0000005A-0000-1000-8000-0026BB765291': 'Relay', - 'Relay': '0000005A-0000-1000-8000-0026BB765291', + '0000005A-0000-1000-8000-0026BB765291': 'CloudRelay', 'CloudRelay': '0000005A-0000-1000-8000-0026BB765291', '00000080-0000-1000-8000-0026BB765291': 'ContactSensor', 'ContactSensor': '00000080-0000-1000-8000-0026BB765291', @@ -110,8 +101,7 @@ export const Services = { 'Siri': '00000133-0000-1000-8000-0026BB765291', '00000253-0000-1000-8000-0026BB765291': 'SiriEndpoint', 'SiriEndpoint': '00000253-0000-1000-8000-0026BB765291', - '000000B9-0000-1000-8000-0026BB765291': 'Slat', - 'Slat': '000000B9-0000-1000-8000-0026BB765291', + '000000B9-0000-1000-8000-0026BB765291': 'Slats', 'Slats': '000000B9-0000-1000-8000-0026BB765291', '00000228-0000-1000-8000-0026BB765291': 'SmartSpeaker', 'SmartSpeaker': '00000228-0000-1000-8000-0026BB765291', @@ -140,12 +130,9 @@ export const Services = { 'Thermostat': '0000004A-0000-1000-8000-0026BB765291', '00000701-0000-1000-8000-0026BB765291': 'ThreadTransport', 'ThreadTransport': '00000701-0000-1000-8000-0026BB765291', - '00000099-0000-1000-8000-0026BB765291': 'TimeInformation', - 'TimeInformation': '00000099-0000-1000-8000-0026BB765291', '00000203-0000-1000-8000-0026BB765291': 'TransferTransportManagement', 'TransferTransportManagement': '00000203-0000-1000-8000-0026BB765291', - '00000056-0000-1000-8000-0026BB765291': 'TunneledBTLEAccessoryService', - 'TunneledBTLEAccessoryService': '00000056-0000-1000-8000-0026BB765291', + '00000056-0000-1000-8000-0026BB765291': 'Tunnel', 'Tunnel': '00000056-0000-1000-8000-0026BB765291', '000000D0-0000-1000-8000-0026BB765291': 'Valve', 'Valve': '000000D0-0000-1000-8000-0026BB765291', @@ -214,8 +201,6 @@ export const Characteristics = { 'CarbonMonoxideLevel': '00000090-0000-1000-8000-0026BB765291', '00000091-0000-1000-8000-0026BB765291': 'CarbonMonoxidePeakLevel', 'CarbonMonoxidePeakLevel': '00000091-0000-1000-8000-0026BB765291', - '000000A3-0000-1000-8000-0026BB765291': 'Category', - 'Category': '000000A3-0000-1000-8000-0026BB765291', '00000246-0000-1000-8000-0026BB765291': 'CCAEnergyDetectThreshold', 'CCAEnergyDetectThreshold': '00000246-0000-1000-8000-0026BB765291', '00000245-0000-1000-8000-0026BB765291': 'CCASignalDetectThreshold', @@ -232,10 +217,6 @@ export const Characteristics = { 'ColorTemperature': '000000CE-0000-1000-8000-0026BB765291', '00000263-0000-1000-8000-0026BB765291': 'ConfigurationState', 'ConfigurationState': '00000263-0000-1000-8000-0026BB765291', - '000000A0-0000-1000-8000-0026BB765291': 'ConfigureBridgedAccessory', - 'ConfigureBridgedAccessory': '000000A0-0000-1000-8000-0026BB765291', - '0000009D-0000-1000-8000-0026BB765291': 'ConfigureBridgedAccessoryStatus', - 'ConfigureBridgedAccessoryStatus': '0000009D-0000-1000-8000-0026BB765291', '000000E3-0000-1000-8000-0026BB765291': 'ConfiguredName', 'ConfiguredName': '000000E3-0000-1000-8000-0026BB765291', '0000006A-0000-1000-8000-0026BB765291': 'ContactSensorState', @@ -272,8 +253,6 @@ export const Characteristics = { 'CurrentTemperature': '00000011-0000-1000-8000-0026BB765291', '000000C1-0000-1000-8000-0026BB765291': 'CurrentTiltAngle', 'CurrentTiltAngle': '000000C1-0000-1000-8000-0026BB765291', - '0000009B-0000-1000-8000-0026BB765291': 'CurrentTime', - 'CurrentTime': '0000009B-0000-1000-8000-0026BB765291', '0000022B-0000-1000-8000-0026BB765291': 'CurrentTransport', 'CurrentTransport': '0000022B-0000-1000-8000-0026BB765291', '0000006E-0000-1000-8000-0026BB765291': 'CurrentVerticalTiltAngle', @@ -284,16 +263,10 @@ export const Characteristics = { 'DataStreamHAPTransport': '00000138-0000-1000-8000-0026BB765291', '00000139-0000-1000-8000-0026BB765291': 'DataStreamHAPTransportInterrupt', 'DataStreamHAPTransportInterrupt': '00000139-0000-1000-8000-0026BB765291', - '00000098-0000-1000-8000-0026BB765291': 'DayoftheWeek', - 'DayoftheWeek': '00000098-0000-1000-8000-0026BB765291', '00000224-0000-1000-8000-0026BB765291': 'DiagonalFieldOfView', 'DiagonalFieldOfView': '00000224-0000-1000-8000-0026BB765291', '0000011D-0000-1000-8000-0026BB765291': 'DigitalZoom', 'DigitalZoom': '0000011D-0000-1000-8000-0026BB765291', - '0000009E-0000-1000-8000-0026BB765291': 'DiscoverBridgedAccessories', - 'DiscoverBridgedAccessories': '0000009E-0000-1000-8000-0026BB765291', - '0000009F-0000-1000-8000-0026BB765291': 'DiscoveredBridgedAccessories', - 'DiscoveredBridgedAccessories': '0000009F-0000-1000-8000-0026BB765291', '00000136-0000-1000-8000-0026BB765291': 'DisplayOrder', 'DisplayOrder': '00000136-0000-1000-8000-0026BB765291', '0000023D-0000-1000-8000-0026BB765291': 'EventRetransmissionMaximum', @@ -344,8 +317,6 @@ export const Characteristics = { 'IsConfigured': '000000D6-0000-1000-8000-0026BB765291', '00000070-0000-1000-8000-0026BB765291': 'LeakDetected', 'LeakDetected': '00000070-0000-1000-8000-0026BB765291', - '0000009C-0000-1000-8000-0026BB765291': 'LinkQuality', - 'LinkQuality': '0000009C-0000-1000-8000-0026BB765291', '00000050-0000-1000-8000-0026BB765291': 'ListPairings', 'ListPairings': '00000050-0000-1000-8000-0026BB765291', '00000019-0000-1000-8000-0026BB765291': 'LockControlPoint', @@ -444,8 +415,6 @@ export const Characteristics = { 'ProgrammableSwitchOutputState': '00000074-0000-1000-8000-0026BB765291', '000000D1-0000-1000-8000-0026BB765291': 'ProgramMode', 'ProgramMode': '000000D1-0000-1000-8000-0026BB765291', - '00000063-0000-1000-8000-0026BB765291': 'Reachable', - 'Reachable': '00000063-0000-1000-8000-0026BB765291', '0000023F-0000-1000-8000-0026BB765291': 'ReceivedSignalStrengthIndication', 'ReceivedSignalStrengthIndication': '0000023F-0000-1000-8000-0026BB765291', '00000244-0000-1000-8000-0026BB765291': 'ReceiverSensitivity', @@ -586,8 +555,6 @@ export const Characteristics = { 'TapType': '0000022F-0000-1000-8000-0026BB765291', '000000A8-0000-1000-8000-0026BB765291': 'TargetAirPurifierState', 'TargetAirPurifierState': '000000A8-0000-1000-8000-0026BB765291', - '000000AE-0000-1000-8000-0026BB765291': 'TargetAirQuality', - 'TargetAirQuality': '000000AE-0000-1000-8000-0026BB765291', '00000124-0000-1000-8000-0026BB765291': 'TargetControlList', 'TargetControlList': '00000124-0000-1000-8000-0026BB765291', '00000123-0000-1000-8000-0026BB765291': 'TargetControlSupportedConfiguration', @@ -610,8 +577,6 @@ export const Characteristics = { 'TargetPosition': '0000007C-0000-1000-8000-0026BB765291', '00000034-0000-1000-8000-0026BB765291': 'TargetRelativeHumidity', 'TargetRelativeHumidity': '00000034-0000-1000-8000-0026BB765291', - '000000BE-0000-1000-8000-0026BB765291': 'TargetSlatState', - 'TargetSlatState': '000000BE-0000-1000-8000-0026BB765291', '00000035-0000-1000-8000-0026BB765291': 'TargetTemperature', 'TargetTemperature': '00000035-0000-1000-8000-0026BB765291', '000000C2-0000-1000-8000-0026BB765291': 'TargetTiltAngle', @@ -632,8 +597,6 @@ export const Characteristics = { 'ThreadOpenThreadVersion': '00000706-0000-1000-8000-0026BB765291', '00000703-0000-1000-8000-0026BB765291': 'ThreadStatus', 'ThreadStatus': '00000703-0000-1000-8000-0026BB765291', - '0000009A-0000-1000-8000-0026BB765291': 'TimeUpdate', - 'TimeUpdate': '0000009A-0000-1000-8000-0026BB765291', '00000231-0000-1000-8000-0026BB765291': 'Token', 'Token': '00000231-0000-1000-8000-0026BB765291', '00000242-0000-1000-8000-0026BB765291': 'TransmitPower',