From f1b48575cb9ce9a848cdeab2ecc4c34a8ba993dc Mon Sep 17 00:00:00 2001 From: Lars Strojny Date: Mon, 7 Nov 2022 23:43:44 +0100 Subject: [PATCH] Use hap-nodejs instead --- src/hap.ts | 700 ------------------------------------------------- src/metrics.ts | 17 +- 2 files changed, 14 insertions(+), 703 deletions(-) delete mode 100644 src/hap.ts diff --git a/src/hap.ts b/src/hap.ts deleted file mode 100644 index 87737b5..0000000 --- a/src/hap.ts +++ /dev/null @@ -1,700 +0,0 @@ -/** Copied from https://github.com/oznu/hap-client/blob/master/src/hap-types.ts */ - -export const Services = { - '00000260-0000-1000-8000-0026BB765291': 'AccessCode', - AccessCode: '00000260-0000-1000-8000-0026BB765291', - '000000DA-0000-1000-8000-0026BB765291': 'AccessControl', - AccessControl: '000000DA-0000-1000-8000-0026BB765291', - '0000003E-0000-1000-8000-0026BB765291': 'AccessoryInformation', - AccessoryInformation: '0000003E-0000-1000-8000-0026BB765291', - '00000270-0000-1000-8000-0026BB765291': 'AccessoryMetrics', - AccessoryMetrics: '00000270-0000-1000-8000-0026BB765291', - '00000239-0000-1000-8000-0026BB765291': 'AccessoryRuntimeInformation', - AccessoryRuntimeInformation: '00000239-0000-1000-8000-0026BB765291', - '000000BB-0000-1000-8000-0026BB765291': 'AirPurifier', - AirPurifier: '000000BB-0000-1000-8000-0026BB765291', - '0000008D-0000-1000-8000-0026BB765291': 'AirQualitySensor', - AirQualitySensor: '0000008D-0000-1000-8000-0026BB765291', - '00000267-0000-1000-8000-0026BB765291': 'AssetUpdate', - AssetUpdate: '00000267-0000-1000-8000-0026BB765291', - '0000026A-0000-1000-8000-0026BB765291': 'Assistant', - 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', - 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', - CameraRecordingManagement: '00000204-0000-1000-8000-0026BB765291', - '00000110-0000-1000-8000-0026BB765291': 'CameraRTPStreamManagement', - CameraRTPStreamManagement: '00000110-0000-1000-8000-0026BB765291', - '00000097-0000-1000-8000-0026BB765291': 'CarbonDioxideSensor', - 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', - CloudRelay: '0000005A-0000-1000-8000-0026BB765291', - '00000080-0000-1000-8000-0026BB765291': 'ContactSensor', - ContactSensor: '00000080-0000-1000-8000-0026BB765291', - '00000129-0000-1000-8000-0026BB765291': 'DataStreamTransportManagement', - DataStreamTransportManagement: '00000129-0000-1000-8000-0026BB765291', - '00000237-0000-1000-8000-0026BB765291': 'Diagnostics', - Diagnostics: '00000237-0000-1000-8000-0026BB765291', - '00000081-0000-1000-8000-0026BB765291': 'Door', - Door: '00000081-0000-1000-8000-0026BB765291', - '00000121-0000-1000-8000-0026BB765291': 'Doorbell', - Doorbell: '00000121-0000-1000-8000-0026BB765291', - '00000040-0000-1000-8000-0026BB765291': 'Fan', - Fan: '00000040-0000-1000-8000-0026BB765291', - '000000B7-0000-1000-8000-0026BB765291': 'Fanv2', - Fanv2: '000000B7-0000-1000-8000-0026BB765291', - '000000D7-0000-1000-8000-0026BB765291': 'Faucet', - Faucet: '000000D7-0000-1000-8000-0026BB765291', - '000000BA-0000-1000-8000-0026BB765291': 'FilterMaintenance', - FilterMaintenance: '000000BA-0000-1000-8000-0026BB765291', - '00000041-0000-1000-8000-0026BB765291': 'GarageDoorOpener', - GarageDoorOpener: '00000041-0000-1000-8000-0026BB765291', - '000000BC-0000-1000-8000-0026BB765291': 'HeaterCooler', - HeaterCooler: '000000BC-0000-1000-8000-0026BB765291', - '000000BD-0000-1000-8000-0026BB765291': 'HumidifierDehumidifier', - HumidifierDehumidifier: '000000BD-0000-1000-8000-0026BB765291', - '00000082-0000-1000-8000-0026BB765291': 'HumiditySensor', - HumiditySensor: '00000082-0000-1000-8000-0026BB765291', - '000000D9-0000-1000-8000-0026BB765291': 'InputSource', - InputSource: '000000D9-0000-1000-8000-0026BB765291', - '000000CF-0000-1000-8000-0026BB765291': 'IrrigationSystem', - IrrigationSystem: '000000CF-0000-1000-8000-0026BB765291', - '00000083-0000-1000-8000-0026BB765291': 'LeakSensor', - LeakSensor: '00000083-0000-1000-8000-0026BB765291', - '00000043-0000-1000-8000-0026BB765291': 'Lightbulb', - Lightbulb: '00000043-0000-1000-8000-0026BB765291', - '00000084-0000-1000-8000-0026BB765291': 'LightSensor', - LightSensor: '00000084-0000-1000-8000-0026BB765291', - '00000044-0000-1000-8000-0026BB765291': 'LockManagement', - LockManagement: '00000044-0000-1000-8000-0026BB765291', - '00000045-0000-1000-8000-0026BB765291': 'LockMechanism', - LockMechanism: '00000045-0000-1000-8000-0026BB765291', - '00000112-0000-1000-8000-0026BB765291': 'Microphone', - Microphone: '00000112-0000-1000-8000-0026BB765291', - '00000085-0000-1000-8000-0026BB765291': 'MotionSensor', - MotionSensor: '00000085-0000-1000-8000-0026BB765291', - '00000266-0000-1000-8000-0026BB765291': 'NFCAccess', - NFCAccess: '00000266-0000-1000-8000-0026BB765291', - '00000086-0000-1000-8000-0026BB765291': 'OccupancySensor', - OccupancySensor: '00000086-0000-1000-8000-0026BB765291', - '00000047-0000-1000-8000-0026BB765291': 'Outlet', - Outlet: '00000047-0000-1000-8000-0026BB765291', - '00000055-0000-1000-8000-0026BB765291': 'Pairing', - Pairing: '00000055-0000-1000-8000-0026BB765291', - '00000221-0000-1000-8000-0026BB765291': 'PowerManagement', - PowerManagement: '00000221-0000-1000-8000-0026BB765291', - '000000A2-0000-1000-8000-0026BB765291': 'ProtocolInformation', - ProtocolInformation: '000000A2-0000-1000-8000-0026BB765291', - '0000007E-0000-1000-8000-0026BB765291': 'SecuritySystem', - SecuritySystem: '0000007E-0000-1000-8000-0026BB765291', - '000000CC-0000-1000-8000-0026BB765291': 'ServiceLabel', - ServiceLabel: '000000CC-0000-1000-8000-0026BB765291', - '00000133-0000-1000-8000-0026BB765291': 'Siri', - 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', - Slats: '000000B9-0000-1000-8000-0026BB765291', - '00000228-0000-1000-8000-0026BB765291': 'SmartSpeaker', - SmartSpeaker: '00000228-0000-1000-8000-0026BB765291', - '00000087-0000-1000-8000-0026BB765291': 'SmokeSensor', - SmokeSensor: '00000087-0000-1000-8000-0026BB765291', - '00000113-0000-1000-8000-0026BB765291': 'Speaker', - Speaker: '00000113-0000-1000-8000-0026BB765291', - '00000088-0000-1000-8000-0026BB765291': 'StatefulProgrammableSwitch', - StatefulProgrammableSwitch: '00000088-0000-1000-8000-0026BB765291', - '00000089-0000-1000-8000-0026BB765291': 'StatelessProgrammableSwitch', - StatelessProgrammableSwitch: '00000089-0000-1000-8000-0026BB765291', - '00000049-0000-1000-8000-0026BB765291': 'Switch', - Switch: '00000049-0000-1000-8000-0026BB765291', - '00000125-0000-1000-8000-0026BB765291': 'TargetControl', - TargetControl: '00000125-0000-1000-8000-0026BB765291', - '00000122-0000-1000-8000-0026BB765291': 'TargetControlManagement', - TargetControlManagement: '00000122-0000-1000-8000-0026BB765291', - '000000D8-0000-1000-8000-0026BB765291': 'Television', - Television: '000000D8-0000-1000-8000-0026BB765291', - TelevisionSpeaker: '00000113-0000-1000-8000-0026BB765291', - '0000008A-0000-1000-8000-0026BB765291': 'TemperatureSensor', - TemperatureSensor: '0000008A-0000-1000-8000-0026BB765291', - '0000004A-0000-1000-8000-0026BB765291': 'Thermostat', - 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', - Tunnel: '00000056-0000-1000-8000-0026BB765291', - '000000D0-0000-1000-8000-0026BB765291': 'Valve', - Valve: '000000D0-0000-1000-8000-0026BB765291', - '0000020A-0000-1000-8000-0026BB765291': 'WiFiRouter', - WiFiRouter: '0000020A-0000-1000-8000-0026BB765291', - '0000020F-0000-1000-8000-0026BB765291': 'WiFiSatellite', - WiFiSatellite: '0000020F-0000-1000-8000-0026BB765291', - '0000022A-0000-1000-8000-0026BB765291': 'WiFiTransport', - WiFiTransport: '0000022A-0000-1000-8000-0026BB765291', - '0000008B-0000-1000-8000-0026BB765291': 'Window', - Window: '0000008B-0000-1000-8000-0026BB765291', - '0000008C-0000-1000-8000-0026BB765291': 'WindowCovering', - WindowCovering: '0000008C-0000-1000-8000-0026BB765291', -} as const - -export const Characteristics = { - '00000262-0000-1000-8000-0026BB765291': 'AccessCodeControlPoint', - AccessCodeControlPoint: '00000262-0000-1000-8000-0026BB765291', - '00000261-0000-1000-8000-0026BB765291': 'AccessCodeSupportedConfiguration', - AccessCodeSupportedConfiguration: '00000261-0000-1000-8000-0026BB765291', - '000000E5-0000-1000-8000-0026BB765291': 'AccessControlLevel', - AccessControlLevel: '000000E5-0000-1000-8000-0026BB765291', - '000000A6-0000-1000-8000-0026BB765291': 'AccessoryFlags', - AccessoryFlags: '000000A6-0000-1000-8000-0026BB765291', - '00000057-0000-1000-8000-0026BB765291': 'AccessoryIdentifier', - AccessoryIdentifier: '00000057-0000-1000-8000-0026BB765291', - '000000B0-0000-1000-8000-0026BB765291': 'Active', - Active: '000000B0-0000-1000-8000-0026BB765291', - '000000E7-0000-1000-8000-0026BB765291': 'ActiveIdentifier', - ActiveIdentifier: '000000E7-0000-1000-8000-0026BB765291', - '0000023B-0000-1000-8000-0026BB765291': 'ActivityInterval', - ActivityInterval: '0000023B-0000-1000-8000-0026BB765291', - '00000001-0000-1000-8000-0026BB765291': 'AdministratorOnlyAccess', - AdministratorOnlyAccess: '00000001-0000-1000-8000-0026BB765291', - '00000064-0000-1000-8000-0026BB765291': 'AirParticulateDensity', - AirParticulateDensity: '00000064-0000-1000-8000-0026BB765291', - '00000065-0000-1000-8000-0026BB765291': 'AirParticulateSize', - AirParticulateSize: '00000065-0000-1000-8000-0026BB765291', - '0000025B-0000-1000-8000-0026BB765291': 'AirPlayEnable', - AirPlayEnable: '0000025B-0000-1000-8000-0026BB765291', - '00000095-0000-1000-8000-0026BB765291': 'AirQuality', - AirQuality: '00000095-0000-1000-8000-0026BB765291', - '000000A4-0000-1000-8000-0026BB765291': 'AppMatchingIdentifier', - AppMatchingIdentifier: '000000A4-0000-1000-8000-0026BB765291', - '00000269-0000-1000-8000-0026BB765291': 'AssetUpdateReadiness', - AssetUpdateReadiness: '00000269-0000-1000-8000-0026BB765291', - '00000005-0000-1000-8000-0026BB765291': 'AudioFeedback', - AudioFeedback: '00000005-0000-1000-8000-0026BB765291', - '00000068-0000-1000-8000-0026BB765291': 'BatteryLevel', - BatteryLevel: '00000068-0000-1000-8000-0026BB765291', - '00000008-0000-1000-8000-0026BB765291': 'Brightness', - Brightness: '00000008-0000-1000-8000-0026BB765291', - '00000126-0000-1000-8000-0026BB765291': 'ButtonEvent', - ButtonEvent: '00000126-0000-1000-8000-0026BB765291', - '0000021D-0000-1000-8000-0026BB765291': 'CameraOperatingModeIndicator', - CameraOperatingModeIndicator: '0000021D-0000-1000-8000-0026BB765291', - '00000092-0000-1000-8000-0026BB765291': 'CarbonDioxideDetected', - CarbonDioxideDetected: '00000092-0000-1000-8000-0026BB765291', - '00000093-0000-1000-8000-0026BB765291': 'CarbonDioxideLevel', - CarbonDioxideLevel: '00000093-0000-1000-8000-0026BB765291', - '00000094-0000-1000-8000-0026BB765291': 'CarbonDioxidePeakLevel', - CarbonDioxidePeakLevel: '00000094-0000-1000-8000-0026BB765291', - '00000069-0000-1000-8000-0026BB765291': 'CarbonMonoxideDetected', - CarbonMonoxideDetected: '00000069-0000-1000-8000-0026BB765291', - '00000090-0000-1000-8000-0026BB765291': 'CarbonMonoxideLevel', - 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', - CCASignalDetectThreshold: '00000245-0000-1000-8000-0026BB765291', - '0000024B-0000-1000-8000-0026BB765291': 'CharacteristicValueActiveTransitionCount', - CharacteristicValueActiveTransitionCount: '0000024B-0000-1000-8000-0026BB765291', - '00000143-0000-1000-8000-0026BB765291': 'CharacteristicValueTransitionControl', - CharacteristicValueTransitionControl: '00000143-0000-1000-8000-0026BB765291', - '0000008F-0000-1000-8000-0026BB765291': 'ChargingState', - ChargingState: '0000008F-0000-1000-8000-0026BB765291', - '000000DD-0000-1000-8000-0026BB765291': 'ClosedCaptions', - ClosedCaptions: '000000DD-0000-1000-8000-0026BB765291', - '000000CE-0000-1000-8000-0026BB765291': 'ColorTemperature', - 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', - ContactSensorState: '0000006A-0000-1000-8000-0026BB765291', - '0000000D-0000-1000-8000-0026BB765291': 'CoolingThresholdTemperature', - CoolingThresholdTemperature: '0000000D-0000-1000-8000-0026BB765291', - '000000A9-0000-1000-8000-0026BB765291': 'CurrentAirPurifierState', - CurrentAirPurifierState: '000000A9-0000-1000-8000-0026BB765291', - '0000006B-0000-1000-8000-0026BB765291': 'CurrentAmbientLightLevel', - CurrentAmbientLightLevel: '0000006B-0000-1000-8000-0026BB765291', - '0000000E-0000-1000-8000-0026BB765291': 'CurrentDoorState', - CurrentDoorState: '0000000E-0000-1000-8000-0026BB765291', - '000000AF-0000-1000-8000-0026BB765291': 'CurrentFanState', - CurrentFanState: '000000AF-0000-1000-8000-0026BB765291', - '000000B1-0000-1000-8000-0026BB765291': 'CurrentHeaterCoolerState', - CurrentHeaterCoolerState: '000000B1-0000-1000-8000-0026BB765291', - '0000000F-0000-1000-8000-0026BB765291': 'CurrentHeatingCoolingState', - CurrentHeatingCoolingState: '0000000F-0000-1000-8000-0026BB765291', - '0000006C-0000-1000-8000-0026BB765291': 'CurrentHorizontalTiltAngle', - CurrentHorizontalTiltAngle: '0000006C-0000-1000-8000-0026BB765291', - '000000B3-0000-1000-8000-0026BB765291': 'CurrentHumidifierDehumidifierState', - CurrentHumidifierDehumidifierState: '000000B3-0000-1000-8000-0026BB765291', - '000000E0-0000-1000-8000-0026BB765291': 'CurrentMediaState', - CurrentMediaState: '000000E0-0000-1000-8000-0026BB765291', - '0000006D-0000-1000-8000-0026BB765291': 'CurrentPosition', - CurrentPosition: '0000006D-0000-1000-8000-0026BB765291', - '00000010-0000-1000-8000-0026BB765291': 'CurrentRelativeHumidity', - CurrentRelativeHumidity: '00000010-0000-1000-8000-0026BB765291', - '000000AA-0000-1000-8000-0026BB765291': 'CurrentSlatState', - CurrentSlatState: '000000AA-0000-1000-8000-0026BB765291', - '00000011-0000-1000-8000-0026BB765291': 'CurrentTemperature', - 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', - CurrentVerticalTiltAngle: '0000006E-0000-1000-8000-0026BB765291', - '00000135-0000-1000-8000-0026BB765291': 'CurrentVisibilityState', - CurrentVisibilityState: '00000135-0000-1000-8000-0026BB765291', - '00000138-0000-1000-8000-0026BB765291': 'DataStreamHAPTransport', - 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', - EventRetransmissionMaximum: '0000023D-0000-1000-8000-0026BB765291', - '00000223-0000-1000-8000-0026BB765291': 'EventSnapshotsActive', - EventSnapshotsActive: '00000223-0000-1000-8000-0026BB765291', - '0000023E-0000-1000-8000-0026BB765291': 'EventTransmissionCounters', - EventTransmissionCounters: '0000023E-0000-1000-8000-0026BB765291', - '000000AC-0000-1000-8000-0026BB765291': 'FilterChangeIndication', - FilterChangeIndication: '000000AC-0000-1000-8000-0026BB765291', - '000000AB-0000-1000-8000-0026BB765291': 'FilterLifeLevel', - FilterLifeLevel: '000000AB-0000-1000-8000-0026BB765291', - '00000052-0000-1000-8000-0026BB765291': 'FirmwareRevision', - FirmwareRevision: '00000052-0000-1000-8000-0026BB765291', - '00000234-0000-1000-8000-0026BB765291': 'FirmwareUpdateReadiness', - FirmwareUpdateReadiness: '00000234-0000-1000-8000-0026BB765291', - '00000235-0000-1000-8000-0026BB765291': 'FirmwareUpdateStatus', - FirmwareUpdateStatus: '00000235-0000-1000-8000-0026BB765291', - '0000026C-0000-1000-8000-0026BB765291': 'HardwareFinish', - HardwareFinish: '0000026C-0000-1000-8000-0026BB765291', - '00000053-0000-1000-8000-0026BB765291': 'HardwareRevision', - HardwareRevision: '00000053-0000-1000-8000-0026BB765291', - '0000024A-0000-1000-8000-0026BB765291': 'HeartBeat', - HeartBeat: '0000024A-0000-1000-8000-0026BB765291', - '00000012-0000-1000-8000-0026BB765291': 'HeatingThresholdTemperature', - HeatingThresholdTemperature: '00000012-0000-1000-8000-0026BB765291', - '0000006F-0000-1000-8000-0026BB765291': 'HoldPosition', - HoldPosition: '0000006F-0000-1000-8000-0026BB765291', - '0000021B-0000-1000-8000-0026BB765291': 'HomeKitCameraActive', - HomeKitCameraActive: '0000021B-0000-1000-8000-0026BB765291', - '00000013-0000-1000-8000-0026BB765291': 'Hue', - Hue: '00000013-0000-1000-8000-0026BB765291', - '000000E6-0000-1000-8000-0026BB765291': 'Identifier', - Identifier: '000000E6-0000-1000-8000-0026BB765291', - '00000014-0000-1000-8000-0026BB765291': 'Identify', - Identify: '00000014-0000-1000-8000-0026BB765291', - '0000011F-0000-1000-8000-0026BB765291': 'ImageMirroring', - ImageMirroring: '0000011F-0000-1000-8000-0026BB765291', - '0000011E-0000-1000-8000-0026BB765291': 'ImageRotation', - ImageRotation: '0000011E-0000-1000-8000-0026BB765291', - '000000DC-0000-1000-8000-0026BB765291': 'InputDeviceType', - InputDeviceType: '000000DC-0000-1000-8000-0026BB765291', - '000000DB-0000-1000-8000-0026BB765291': 'InputSourceType', - InputSourceType: '000000DB-0000-1000-8000-0026BB765291', - '000000D2-0000-1000-8000-0026BB765291': 'InUse', - InUse: '000000D2-0000-1000-8000-0026BB765291', - '000000D6-0000-1000-8000-0026BB765291': 'IsConfigured', - 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', - LockControlPoint: '00000019-0000-1000-8000-0026BB765291', - '0000001D-0000-1000-8000-0026BB765291': 'LockCurrentState', - LockCurrentState: '0000001D-0000-1000-8000-0026BB765291', - '0000001C-0000-1000-8000-0026BB765291': 'LockLastKnownAction', - LockLastKnownAction: '0000001C-0000-1000-8000-0026BB765291', - '0000001A-0000-1000-8000-0026BB765291': 'LockManagementAutoSecurityTimeout', - LockManagementAutoSecurityTimeout: '0000001A-0000-1000-8000-0026BB765291', - '000000A7-0000-1000-8000-0026BB765291': 'LockPhysicalControls', - LockPhysicalControls: '000000A7-0000-1000-8000-0026BB765291', - '0000001E-0000-1000-8000-0026BB765291': 'LockTargetState', - LockTargetState: '0000001E-0000-1000-8000-0026BB765291', - '0000001F-0000-1000-8000-0026BB765291': 'Logs', - Logs: '0000001F-0000-1000-8000-0026BB765291', - '00000247-0000-1000-8000-0026BB765291': 'MACRetransmissionMaximum', - MACRetransmissionMaximum: '00000247-0000-1000-8000-0026BB765291', - '00000248-0000-1000-8000-0026BB765291': 'MACTransmissionCounters', - MACTransmissionCounters: '00000248-0000-1000-8000-0026BB765291', - '00000215-0000-1000-8000-0026BB765291': 'ManagedNetworkEnable', - ManagedNetworkEnable: '00000215-0000-1000-8000-0026BB765291', - '00000227-0000-1000-8000-0026BB765291': 'ManuallyDisabled', - ManuallyDisabled: '00000227-0000-1000-8000-0026BB765291', - '00000020-0000-1000-8000-0026BB765291': 'Manufacturer', - Manufacturer: '00000020-0000-1000-8000-0026BB765291', - '00000243-0000-1000-8000-0026BB765291': 'MaximumTransmitPower', - MaximumTransmitPower: '00000243-0000-1000-8000-0026BB765291', - '00000021-0000-1000-8000-0026BB765291': 'Model', - Model: '00000021-0000-1000-8000-0026BB765291', - '00000022-0000-1000-8000-0026BB765291': 'MotionDetected', - MotionDetected: '00000022-0000-1000-8000-0026BB765291', - '0000026B-0000-1000-8000-0026BB765291': 'MultifunctionButton', - MultifunctionButton: '0000026B-0000-1000-8000-0026BB765291', - '0000011A-0000-1000-8000-0026BB765291': 'Mute', - Mute: '0000011A-0000-1000-8000-0026BB765291', - '00000023-0000-1000-8000-0026BB765291': 'Name', - Name: '00000023-0000-1000-8000-0026BB765291', - '0000021F-0000-1000-8000-0026BB765291': 'NetworkAccessViolationControl', - NetworkAccessViolationControl: '0000021F-0000-1000-8000-0026BB765291', - '0000020C-0000-1000-8000-0026BB765291': 'NetworkClientProfileControl', - NetworkClientProfileControl: '0000020C-0000-1000-8000-0026BB765291', - '0000020D-0000-1000-8000-0026BB765291': 'NetworkClientStatusControl', - NetworkClientStatusControl: '0000020D-0000-1000-8000-0026BB765291', - '00000264-0000-1000-8000-0026BB765291': 'NFCAccessControlPoint', - NFCAccessControlPoint: '00000264-0000-1000-8000-0026BB765291', - '00000265-0000-1000-8000-0026BB765291': 'NFCAccessSupportedConfiguration', - NFCAccessSupportedConfiguration: '00000265-0000-1000-8000-0026BB765291', - '0000011B-0000-1000-8000-0026BB765291': 'NightVision', - NightVision: '0000011B-0000-1000-8000-0026BB765291', - '000000C4-0000-1000-8000-0026BB765291': 'NitrogenDioxideDensity', - NitrogenDioxideDensity: '000000C4-0000-1000-8000-0026BB765291', - '00000024-0000-1000-8000-0026BB765291': 'ObstructionDetected', - ObstructionDetected: '00000024-0000-1000-8000-0026BB765291', - '00000071-0000-1000-8000-0026BB765291': 'OccupancyDetected', - OccupancyDetected: '00000071-0000-1000-8000-0026BB765291', - '00000025-0000-1000-8000-0026BB765291': 'On', - On: '00000025-0000-1000-8000-0026BB765291', - '00000232-0000-1000-8000-0026BB765291': 'OperatingStateResponse', - OperatingStateResponse: '00000232-0000-1000-8000-0026BB765291', - '0000011C-0000-1000-8000-0026BB765291': 'OpticalZoom', - OpticalZoom: '0000011C-0000-1000-8000-0026BB765291', - '00000026-0000-1000-8000-0026BB765291': 'OutletInUse', - OutletInUse: '00000026-0000-1000-8000-0026BB765291', - '000000C3-0000-1000-8000-0026BB765291': 'OzoneDensity', - OzoneDensity: '000000C3-0000-1000-8000-0026BB765291', - '0000004F-0000-1000-8000-0026BB765291': 'PairingFeatures', - PairingFeatures: '0000004F-0000-1000-8000-0026BB765291', - '0000004C-0000-1000-8000-0026BB765291': 'PairSetup', - PairSetup: '0000004C-0000-1000-8000-0026BB765291', - '0000004E-0000-1000-8000-0026BB765291': 'PairVerify', - PairVerify: '0000004E-0000-1000-8000-0026BB765291', - '000000E4-0000-1000-8000-0026BB765291': 'PasswordSetting', - PasswordSetting: '000000E4-0000-1000-8000-0026BB765291', - '00000225-0000-1000-8000-0026BB765291': 'PeriodicSnapshotsActive', - PeriodicSnapshotsActive: '00000225-0000-1000-8000-0026BB765291', - '000000E2-0000-1000-8000-0026BB765291': 'PictureMode', - PictureMode: '000000E2-0000-1000-8000-0026BB765291', - '0000023C-0000-1000-8000-0026BB765291': 'Ping', - Ping: '0000023C-0000-1000-8000-0026BB765291', - '000000C7-0000-1000-8000-0026BB765291': 'PM10Density', - PM10Density: '000000C7-0000-1000-8000-0026BB765291', - '000000C6-0000-1000-8000-0026BB765291': 'PM2_5Density', - PM2_5Density: '000000C6-0000-1000-8000-0026BB765291', - '00000072-0000-1000-8000-0026BB765291': 'PositionState', - PositionState: '00000072-0000-1000-8000-0026BB765291', - '000000DF-0000-1000-8000-0026BB765291': 'PowerModeSelection', - PowerModeSelection: '000000DF-0000-1000-8000-0026BB765291', - '00000220-0000-1000-8000-0026BB765291': 'ProductData', - ProductData: '00000220-0000-1000-8000-0026BB765291', - '00000073-0000-1000-8000-0026BB765291': 'ProgrammableSwitchEvent', - ProgrammableSwitchEvent: '00000073-0000-1000-8000-0026BB765291', - '00000074-0000-1000-8000-0026BB765291': 'ProgrammableSwitchOutputState', - 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', - ReceiverSensitivity: '00000244-0000-1000-8000-0026BB765291', - '00000226-0000-1000-8000-0026BB765291': 'RecordingAudioActive', - RecordingAudioActive: '00000226-0000-1000-8000-0026BB765291', - '000000C9-0000-1000-8000-0026BB765291': 'RelativeHumidityDehumidifierThreshold', - RelativeHumidityDehumidifierThreshold: '000000C9-0000-1000-8000-0026BB765291', - '000000CA-0000-1000-8000-0026BB765291': 'RelativeHumidityHumidifierThreshold', - RelativeHumidityHumidifierThreshold: '000000CA-0000-1000-8000-0026BB765291', - '0000005E-0000-1000-8000-0026BB765291': 'RelayControlPoint', - RelayControlPoint: '0000005E-0000-1000-8000-0026BB765291', - '0000005B-0000-1000-8000-0026BB765291': 'RelayEnabled', - RelayEnabled: '0000005B-0000-1000-8000-0026BB765291', - '0000005C-0000-1000-8000-0026BB765291': 'RelayState', - RelayState: '0000005C-0000-1000-8000-0026BB765291', - '000000D4-0000-1000-8000-0026BB765291': 'RemainingDuration', - RemainingDuration: '000000D4-0000-1000-8000-0026BB765291', - '000000E1-0000-1000-8000-0026BB765291': 'RemoteKey', - RemoteKey: '000000E1-0000-1000-8000-0026BB765291', - '000000AD-0000-1000-8000-0026BB765291': 'ResetFilterIndication', - ResetFilterIndication: '000000AD-0000-1000-8000-0026BB765291', - '00000028-0000-1000-8000-0026BB765291': 'RotationDirection', - RotationDirection: '00000028-0000-1000-8000-0026BB765291', - '00000029-0000-1000-8000-0026BB765291': 'RotationSpeed', - RotationSpeed: '00000029-0000-1000-8000-0026BB765291', - '0000020E-0000-1000-8000-0026BB765291': 'RouterStatus', - RouterStatus: '0000020E-0000-1000-8000-0026BB765291', - '0000002F-0000-1000-8000-0026BB765291': 'Saturation', - Saturation: '0000002F-0000-1000-8000-0026BB765291', - '0000008E-0000-1000-8000-0026BB765291': 'SecuritySystemAlarmType', - SecuritySystemAlarmType: '0000008E-0000-1000-8000-0026BB765291', - '00000066-0000-1000-8000-0026BB765291': 'SecuritySystemCurrentState', - SecuritySystemCurrentState: '00000066-0000-1000-8000-0026BB765291', - '00000067-0000-1000-8000-0026BB765291': 'SecuritySystemTargetState', - SecuritySystemTargetState: '00000067-0000-1000-8000-0026BB765291', - '00000128-0000-1000-8000-0026BB765291': 'SelectedAudioStreamConfiguration', - SelectedAudioStreamConfiguration: '00000128-0000-1000-8000-0026BB765291', - '00000209-0000-1000-8000-0026BB765291': 'SelectedCameraRecordingConfiguration', - SelectedCameraRecordingConfiguration: '00000209-0000-1000-8000-0026BB765291', - '0000024D-0000-1000-8000-0026BB765291': 'SelectedDiagnosticsModes', - SelectedDiagnosticsModes: '0000024D-0000-1000-8000-0026BB765291', - '00000117-0000-1000-8000-0026BB765291': 'SelectedRTPStreamConfiguration', - SelectedRTPStreamConfiguration: '00000117-0000-1000-8000-0026BB765291', - '00000030-0000-1000-8000-0026BB765291': 'SerialNumber', - SerialNumber: '00000030-0000-1000-8000-0026BB765291', - '000000CB-0000-1000-8000-0026BB765291': 'ServiceLabelIndex', - ServiceLabelIndex: '000000CB-0000-1000-8000-0026BB765291', - '000000CD-0000-1000-8000-0026BB765291': 'ServiceLabelNamespace', - ServiceLabelNamespace: '000000CD-0000-1000-8000-0026BB765291', - '000000D3-0000-1000-8000-0026BB765291': 'SetDuration', - SetDuration: '000000D3-0000-1000-8000-0026BB765291', - '00000131-0000-1000-8000-0026BB765291': 'SetupDataStreamTransport', - SetupDataStreamTransport: '00000131-0000-1000-8000-0026BB765291', - '00000118-0000-1000-8000-0026BB765291': 'SetupEndpoints', - SetupEndpoints: '00000118-0000-1000-8000-0026BB765291', - '00000201-0000-1000-8000-0026BB765291': 'SetupTransferTransport', - SetupTransferTransport: '00000201-0000-1000-8000-0026BB765291', - '00000241-0000-1000-8000-0026BB765291': 'SignalToNoiseRatio', - SignalToNoiseRatio: '00000241-0000-1000-8000-0026BB765291', - '00000255-0000-1000-8000-0026BB765291': 'SiriEnable', - SiriEnable: '00000255-0000-1000-8000-0026BB765291', - '00000254-0000-1000-8000-0026BB765291': 'SiriEndpointSessionStatus', - SiriEndpointSessionStatus: '00000254-0000-1000-8000-0026BB765291', - '0000025A-0000-1000-8000-0026BB765291': 'SiriEngineVersion', - SiriEngineVersion: '0000025A-0000-1000-8000-0026BB765291', - '00000132-0000-1000-8000-0026BB765291': 'SiriInputType', - SiriInputType: '00000132-0000-1000-8000-0026BB765291', - '00000258-0000-1000-8000-0026BB765291': 'SiriLightOnUse', - SiriLightOnUse: '00000258-0000-1000-8000-0026BB765291', - '00000256-0000-1000-8000-0026BB765291': 'SiriListening', - SiriListening: '00000256-0000-1000-8000-0026BB765291', - '00000257-0000-1000-8000-0026BB765291': 'SiriTouchToUse', - SiriTouchToUse: '00000257-0000-1000-8000-0026BB765291', - '000000C0-0000-1000-8000-0026BB765291': 'SlatType', - SlatType: '000000C0-0000-1000-8000-0026BB765291', - '000000E8-0000-1000-8000-0026BB765291': 'SleepDiscoveryMode', - SleepDiscoveryMode: '000000E8-0000-1000-8000-0026BB765291', - '0000023A-0000-1000-8000-0026BB765291': 'SleepInterval', - SleepInterval: '0000023A-0000-1000-8000-0026BB765291', - '00000076-0000-1000-8000-0026BB765291': 'SmokeDetected', - SmokeDetected: '00000076-0000-1000-8000-0026BB765291', - '00000054-0000-1000-8000-0026BB765291': 'SoftwareRevision', - SoftwareRevision: '00000054-0000-1000-8000-0026BB765291', - '00000249-0000-1000-8000-0026BB765291': 'StagedFirmwareVersion', - StagedFirmwareVersion: '00000249-0000-1000-8000-0026BB765291', - '00000075-0000-1000-8000-0026BB765291': 'StatusActive', - StatusActive: '00000075-0000-1000-8000-0026BB765291', - '00000077-0000-1000-8000-0026BB765291': 'StatusFault', - StatusFault: '00000077-0000-1000-8000-0026BB765291', - '00000078-0000-1000-8000-0026BB765291': 'StatusJammed', - StatusJammed: '00000078-0000-1000-8000-0026BB765291', - '00000079-0000-1000-8000-0026BB765291': 'StatusLowBattery', - StatusLowBattery: '00000079-0000-1000-8000-0026BB765291', - '0000007A-0000-1000-8000-0026BB765291': 'StatusTampered', - StatusTampered: '0000007A-0000-1000-8000-0026BB765291', - '00000120-0000-1000-8000-0026BB765291': 'StreamingStatus', - StreamingStatus: '00000120-0000-1000-8000-0026BB765291', - '000000C5-0000-1000-8000-0026BB765291': 'SulphurDioxideDensity', - SulphurDioxideDensity: '000000C5-0000-1000-8000-0026BB765291', - '00000268-0000-1000-8000-0026BB765291': 'SupportedAssetTypes', - SupportedAssetTypes: '00000268-0000-1000-8000-0026BB765291', - '00000207-0000-1000-8000-0026BB765291': 'SupportedAudioRecordingConfiguration', - SupportedAudioRecordingConfiguration: '00000207-0000-1000-8000-0026BB765291', - '00000115-0000-1000-8000-0026BB765291': 'SupportedAudioStreamConfiguration', - SupportedAudioStreamConfiguration: '00000115-0000-1000-8000-0026BB765291', - '00000205-0000-1000-8000-0026BB765291': 'SupportedCameraRecordingConfiguration', - SupportedCameraRecordingConfiguration: '00000205-0000-1000-8000-0026BB765291', - '00000144-0000-1000-8000-0026BB765291': 'SupportedCharacteristicValueTransitionConfiguration', - SupportedCharacteristicValueTransitionConfiguration: '00000144-0000-1000-8000-0026BB765291', - '00000130-0000-1000-8000-0026BB765291': 'SupportedDataStreamTransportConfiguration', - SupportedDataStreamTransportConfiguration: '00000130-0000-1000-8000-0026BB765291', - '0000024C-0000-1000-8000-0026BB765291': 'SupportedDiagnosticsModes', - SupportedDiagnosticsModes: '0000024C-0000-1000-8000-0026BB765291', - '00000238-0000-1000-8000-0026BB765291': 'SupportedDiagnosticsSnapshot', - SupportedDiagnosticsSnapshot: '00000238-0000-1000-8000-0026BB765291', - '00000233-0000-1000-8000-0026BB765291': 'SupportedFirmwareUpdateConfiguration', - SupportedFirmwareUpdateConfiguration: '00000233-0000-1000-8000-0026BB765291', - '00000210-0000-1000-8000-0026BB765291': 'SupportedRouterConfiguration', - SupportedRouterConfiguration: '00000210-0000-1000-8000-0026BB765291', - '00000116-0000-1000-8000-0026BB765291': 'SupportedRTPConfiguration', - SupportedRTPConfiguration: '00000116-0000-1000-8000-0026BB765291', - '00000202-0000-1000-8000-0026BB765291': 'SupportedTransferTransportConfiguration', - SupportedTransferTransportConfiguration: '00000202-0000-1000-8000-0026BB765291', - '00000206-0000-1000-8000-0026BB765291': 'SupportedVideoRecordingConfiguration', - SupportedVideoRecordingConfiguration: '00000206-0000-1000-8000-0026BB765291', - '00000114-0000-1000-8000-0026BB765291': 'SupportedVideoStreamConfiguration', - SupportedVideoStreamConfiguration: '00000114-0000-1000-8000-0026BB765291', - '000000B6-0000-1000-8000-0026BB765291': 'SwingMode', - SwingMode: '000000B6-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', - TargetControlSupportedConfiguration: '00000123-0000-1000-8000-0026BB765291', - '00000032-0000-1000-8000-0026BB765291': 'TargetDoorState', - TargetDoorState: '00000032-0000-1000-8000-0026BB765291', - '000000BF-0000-1000-8000-0026BB765291': 'TargetFanState', - TargetFanState: '000000BF-0000-1000-8000-0026BB765291', - '000000B2-0000-1000-8000-0026BB765291': 'TargetHeaterCoolerState', - TargetHeaterCoolerState: '000000B2-0000-1000-8000-0026BB765291', - '00000033-0000-1000-8000-0026BB765291': 'TargetHeatingCoolingState', - TargetHeatingCoolingState: '00000033-0000-1000-8000-0026BB765291', - '0000007B-0000-1000-8000-0026BB765291': 'TargetHorizontalTiltAngle', - TargetHorizontalTiltAngle: '0000007B-0000-1000-8000-0026BB765291', - '000000B4-0000-1000-8000-0026BB765291': 'TargetHumidifierDehumidifierState', - TargetHumidifierDehumidifierState: '000000B4-0000-1000-8000-0026BB765291', - '00000137-0000-1000-8000-0026BB765291': 'TargetMediaState', - TargetMediaState: '00000137-0000-1000-8000-0026BB765291', - '0000007C-0000-1000-8000-0026BB765291': 'TargetPosition', - 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', - TargetTiltAngle: '000000C2-0000-1000-8000-0026BB765291', - '0000007D-0000-1000-8000-0026BB765291': 'TargetVerticalTiltAngle', - TargetVerticalTiltAngle: '0000007D-0000-1000-8000-0026BB765291', - '00000134-0000-1000-8000-0026BB765291': 'TargetVisibilityState', - TargetVisibilityState: '00000134-0000-1000-8000-0026BB765291', - '00000036-0000-1000-8000-0026BB765291': 'TemperatureDisplayUnits', - TemperatureDisplayUnits: '00000036-0000-1000-8000-0026BB765291', - '0000021C-0000-1000-8000-0026BB765291': 'ThirdPartyCameraActive', - ThirdPartyCameraActive: '0000021C-0000-1000-8000-0026BB765291', - '00000704-0000-1000-8000-0026BB765291': 'ThreadControlPoint', - ThreadControlPoint: '00000704-0000-1000-8000-0026BB765291', - '00000702-0000-1000-8000-0026BB765291': 'ThreadNodeCapabilities', - ThreadNodeCapabilities: '00000702-0000-1000-8000-0026BB765291', - '00000706-0000-1000-8000-0026BB765291': 'ThreadOpenThreadVersion', - 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', - '00000242-0000-1000-8000-0026BB765291': 'TransmitPower', - TransmitPower: '00000242-0000-1000-8000-0026BB765291', - '00000061-0000-1000-8000-0026BB765291': 'TunnelConnectionTimeout', - TunnelConnectionTimeout: '00000061-0000-1000-8000-0026BB765291', - '00000060-0000-1000-8000-0026BB765291': 'TunneledAccessoryAdvertising', - TunneledAccessoryAdvertising: '00000060-0000-1000-8000-0026BB765291', - '00000059-0000-1000-8000-0026BB765291': 'TunneledAccessoryConnected', - TunneledAccessoryConnected: '00000059-0000-1000-8000-0026BB765291', - '00000058-0000-1000-8000-0026BB765291': 'TunneledAccessoryStateNumber', - TunneledAccessoryStateNumber: '00000058-0000-1000-8000-0026BB765291', - '000000D5-0000-1000-8000-0026BB765291': 'ValveType', - ValveType: '000000D5-0000-1000-8000-0026BB765291', - '00000037-0000-1000-8000-0026BB765291': 'Version', - Version: '00000037-0000-1000-8000-0026BB765291', - '00000229-0000-1000-8000-0026BB765291': 'VideoAnalysisActive', - VideoAnalysisActive: '00000229-0000-1000-8000-0026BB765291', - '000000C8-0000-1000-8000-0026BB765291': 'VOCDensity', - VOCDensity: '000000C8-0000-1000-8000-0026BB765291', - '00000119-0000-1000-8000-0026BB765291': 'Volume', - Volume: '00000119-0000-1000-8000-0026BB765291', - '000000E9-0000-1000-8000-0026BB765291': 'VolumeControlType', - VolumeControlType: '000000E9-0000-1000-8000-0026BB765291', - '000000EA-0000-1000-8000-0026BB765291': 'VolumeSelector', - VolumeSelector: '000000EA-0000-1000-8000-0026BB765291', - '00000222-0000-1000-8000-0026BB765291': 'WakeConfiguration', - WakeConfiguration: '00000222-0000-1000-8000-0026BB765291', - '00000211-0000-1000-8000-0026BB765291': 'WANConfigurationList', - WANConfigurationList: '00000211-0000-1000-8000-0026BB765291', - '00000212-0000-1000-8000-0026BB765291': 'WANStatusList', - WANStatusList: '00000212-0000-1000-8000-0026BB765291', - '000000B5-0000-1000-8000-0026BB765291': 'WaterLevel', - WaterLevel: '000000B5-0000-1000-8000-0026BB765291', - '0000022C-0000-1000-8000-0026BB765291': 'WiFiCapabilities', - WiFiCapabilities: '0000022C-0000-1000-8000-0026BB765291', - '0000022D-0000-1000-8000-0026BB765291': 'WiFiConfigurationControl', - WiFiConfigurationControl: '0000022D-0000-1000-8000-0026BB765291', - '0000021E-0000-1000-8000-0026BB765291': 'WiFiSatelliteStatus', - WiFiSatelliteStatus: '0000021E-0000-1000-8000-0026BB765291', -} as const - -export const Categories = { - OTHER: 1, - BRIDGE: 2, - FAN: 3, - GARAGE_DOOR_OPENER: 4, - LIGHTBULB: 5, - DOOR_LOCK: 6, - OUTLET: 7, - SWITCH: 8, - THERMOSTAT: 9, - SENSOR: 10, - ALARM_SYSTEM: 11, - SECURITY_SYSTEM: 11, - DOOR: 12, - WINDOW: 13, - WINDOW_COVERING: 14, - PROGRAMMABLE_SWITCH: 15, - RANGE_EXTENDER: 16, - CAMERA: 17, - IP_CAMERA: 17, - VIDEO_DOORBELL: 18, - AIR_PURIFIER: 19, - AIR_HEATER: 20, - AIR_CONDITIONER: 21, - AIR_HUMIDIFIER: 22, - AIR_DEHUMIDIFIER: 23, - APPLE_TV: 24, - HOMEPOD: 25, - SPEAKER: 26, - AIRPORT: 27, - SPRINKLER: 28, - FAUCET: 29, - SHOWER_HEAD: 30, - TELEVISION: 31, - TARGET_CONTROLLER: 32, - ROUTER: 33, - AUDIO_RECEIVER: 34, - TV_SET_TOP_BOX: 35, - TV_STREAMING_STICK: 36, -} as const diff --git a/src/metrics.ts b/src/metrics.ts index 90bfad6..fabbbde 100644 --- a/src/metrics.ts +++ b/src/metrics.ts @@ -1,8 +1,7 @@ import type { Accessory, Device, Service } from './boundaries' import { isType } from './std' import { NUMBER_TYPES } from './boundaries' - -import { Services } from './hap' +import { Service as HapService } from 'hap-nodejs' export class Metric { constructor( @@ -36,7 +35,7 @@ export function aggregate(devices: Device[], timestamp: Date): Metric[] { continue } const name = formatName( - Services[service.type as keyof typeof Services], + uuidToServerName(service.type), characteristic.description, characteristic.unit, ) @@ -113,3 +112,15 @@ function getServiceLabels(service: Service): Record { return labels } + +function uuidToServerName(uuid: string): string { + for (const name of Object.getOwnPropertyNames(HapService)) { + const maybeService = (HapService as unknown as Record)[name] + if (typeof maybeService === 'function' && 'UUID' in maybeService) { + if ((maybeService as Record)['UUID'] === uuid) { + return name + } + } + } + throw new Error(`Could not resolve UUID ${uuid} to service`) +} \ No newline at end of file