@zwave-js/cc 14.0.0-beta.4 → 14.0.0-beta.5
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/build/cjs/cc/AlarmSensorCC.js +381 -266
- package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
- package/build/cjs/cc/AssociationCC.js +669 -503
- package/build/cjs/cc/AssociationCC.js.map +3 -3
- package/build/cjs/cc/AssociationGroupInfoCC.js +633 -492
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
- package/build/cjs/cc/BarrierOperatorCC.js +595 -429
- package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
- package/build/cjs/cc/BasicCC.js +354 -260
- package/build/cjs/cc/BasicCC.js.map +3 -3
- package/build/cjs/cc/BatteryCC.js +427 -345
- package/build/cjs/cc/BatteryCC.js.map +3 -3
- package/build/cjs/cc/BinarySensorCC.js +391 -276
- package/build/cjs/cc/BinarySensorCC.js.map +3 -3
- package/build/cjs/cc/BinarySwitchCC.js +347 -253
- package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
- package/build/cjs/cc/CRC16CC.js +160 -85
- package/build/cjs/cc/CRC16CC.js.map +3 -3
- package/build/cjs/cc/CentralSceneCC.js +459 -324
- package/build/cjs/cc/CentralSceneCC.js.map +3 -3
- package/build/cjs/cc/ClimateControlScheduleCC.js +459 -293
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
- package/build/cjs/cc/ClockCC.js +254 -150
- package/build/cjs/cc/ClockCC.js.map +3 -3
- package/build/cjs/cc/ColorSwitchCC.js +758 -610
- package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
- package/build/cjs/cc/ConfigurationCC.js +1700 -1453
- package/build/cjs/cc/ConfigurationCC.js.map +3 -3
- package/build/cjs/cc/DeviceResetLocallyCC.js +125 -49
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +3 -3
- package/build/cjs/cc/DoorLockCC.js +904 -777
- package/build/cjs/cc/DoorLockCC.js.map +3 -3
- package/build/cjs/cc/DoorLockLoggingCC.js +321 -206
- package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
- package/build/cjs/cc/EnergyProductionCC.js +249 -160
- package/build/cjs/cc/EnergyProductionCC.js.map +3 -3
- package/build/cjs/cc/EntryControlCC.js +619 -458
- package/build/cjs/cc/EntryControlCC.js.map +3 -3
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +898 -698
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
- package/build/cjs/cc/HailCC.js +57 -11
- package/build/cjs/cc/HailCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.js +359 -233
- package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +189 -103
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlSetpointCC.js +682 -495
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
- package/build/cjs/cc/InclusionControllerCC.js +205 -114
- package/build/cjs/cc/InclusionControllerCC.js.map +3 -3
- package/build/cjs/cc/IndicatorCC.js +897 -736
- package/build/cjs/cc/IndicatorCC.js.map +3 -3
- package/build/cjs/cc/IrrigationCC.js +1651 -1405
- package/build/cjs/cc/IrrigationCC.js.map +3 -3
- package/build/cjs/cc/LanguageCC.js +268 -171
- package/build/cjs/cc/LanguageCC.js.map +3 -3
- package/build/cjs/cc/LockCC.js +254 -154
- package/build/cjs/cc/LockCC.js.map +3 -3
- package/build/cjs/cc/ManufacturerProprietaryCC.js +189 -129
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.js +319 -213
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
- package/build/cjs/cc/MeterCC.js +827 -707
- package/build/cjs/cc/MeterCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelAssociationCC.js +612 -478
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelCC.js +1037 -819
- package/build/cjs/cc/MultiChannelCC.js.map +3 -3
- package/build/cjs/cc/MultiCommandCC.js +172 -97
- package/build/cjs/cc/MultiCommandCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSensorCC.js +589 -449
- package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSwitchCC.js +587 -439
- package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
- package/build/cjs/cc/NoOperationCC.js +89 -27
- package/build/cjs/cc/NoOperationCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.js +417 -277
- package/build/cjs/cc/NodeNamingCC.js.map +3 -3
- package/build/cjs/cc/NotificationCC.js +972 -818
- package/build/cjs/cc/NotificationCC.js.map +3 -3
- package/build/cjs/cc/PowerlevelCC.js +450 -303
- package/build/cjs/cc/PowerlevelCC.js.map +3 -3
- package/build/cjs/cc/ProtectionCC.js +686 -494
- package/build/cjs/cc/ProtectionCC.js.map +3 -3
- package/build/cjs/cc/SceneActivationCC.js +165 -97
- package/build/cjs/cc/SceneActivationCC.js.map +3 -3
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +346 -243
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
- package/build/cjs/cc/SceneControllerConfigurationCC.js +401 -298
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
- package/build/cjs/cc/ScheduleEntryLockCC.js +1552 -1272
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +3 -3
- package/build/cjs/cc/Security2CC.js +1483 -1219
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.js +839 -619
- package/build/cjs/cc/SecurityCC.js.map +3 -3
- package/build/cjs/cc/SoundSwitchCC.js +707 -515
- package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
- package/build/cjs/cc/SupervisionCC.js +327 -237
- package/build/cjs/cc/SupervisionCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanModeCC.js +386 -263
- package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanStateCC.js +192 -106
- package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatModeCC.js +425 -302
- package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatOperatingStateCC.js +188 -102
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetbackCC.js +277 -173
- package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetpointCC.js +645 -491
- package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
- package/build/cjs/cc/TimeCC.js +515 -353
- package/build/cjs/cc/TimeCC.js.map +3 -3
- package/build/cjs/cc/TimeParametersCC.js +302 -202
- package/build/cjs/cc/TimeParametersCC.js.map +3 -3
- package/build/cjs/cc/TransportServiceCC.js +433 -315
- package/build/cjs/cc/TransportServiceCC.js.map +3 -3
- package/build/cjs/cc/UserCodeCC.js +1385 -1102
- package/build/cjs/cc/UserCodeCC.js.map +3 -3
- package/build/cjs/cc/VersionCC.js +696 -562
- package/build/cjs/cc/VersionCC.js.map +3 -3
- package/build/cjs/cc/WakeUpCC.js +499 -346
- package/build/cjs/cc/WakeUpCC.js.map +3 -3
- package/build/cjs/cc/WindowCoveringCC.js +626 -478
- package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
- package/build/cjs/cc/ZWaveLongRangeCC.js +57 -10
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.js +233 -159
- package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
- package/build/cjs/cc/ZWaveProtocolCC.js +1515 -948
- package/build/cjs/cc/ZWaveProtocolCC.js.map +3 -3
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +1 -1
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +395 -274
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +11 -15
- package/build/cjs/lib/CommandClassDecorators.js +19 -20
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.d.ts +1 -1
- package/build/cjs/lib/Security2/Extension.js +217 -126
- package/build/cjs/lib/Security2/Extension.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +389 -291
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +678 -537
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +659 -539
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +634 -493
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +380 -302
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +449 -384
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +395 -297
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +353 -274
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.js +162 -98
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +465 -351
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +454 -313
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.js +248 -159
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +802 -677
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +1899 -1687
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js +124 -59
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +951 -849
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +316 -218
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +240 -164
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +629 -493
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +938 -769
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HailCC.js +51 -12
- package/build/esm/cc/HailCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +357 -250
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +182 -109
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +706 -546
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +197 -119
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.js +973 -835
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +1697 -1496
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +266 -184
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +247 -162
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +192 -141
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +312 -223
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +896 -795
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +631 -518
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +1106 -921
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +166 -102
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +616 -497
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +621 -496
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NoOperationCC.js +82 -29
- package/build/esm/cc/NoOperationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +413 -294
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +1097 -966
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +437 -311
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +704 -543
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +157 -100
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +357 -269
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +434 -346
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +1596 -1357
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.js +1633 -1406
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.js +876 -687
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +689 -526
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.js +349 -272
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +388 -284
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +184 -111
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +435 -331
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +180 -107
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +274 -185
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +674 -543
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.js +499 -360
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +296 -211
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +464 -363
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +1443 -1205
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +744 -635
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +494 -364
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +655 -530
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWaveLongRangeCC.js +51 -11
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +223 -162
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +1443 -953
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +390 -286
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +11 -15
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +24 -24
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Security2/Extension.d.ts +1 -1
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
- package/build/esm/lib/Security2/Extension.js +207 -123
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/package.json +6 -6
|
@@ -35,13 +35,45 @@ var import_API = require("../lib/API.js");
|
|
|
35
35
|
var import_CommandClass = require("../lib/CommandClass.js");
|
|
36
36
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
37
37
|
var import_Types = require("../lib/_Types.js");
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
39
|
+
function accept(f) {
|
|
40
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
41
|
+
return f;
|
|
42
|
+
}
|
|
43
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
44
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
45
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
46
|
+
var _, done = false;
|
|
47
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
48
|
+
var context = {};
|
|
49
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
50
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
51
|
+
context.addInitializer = function(f) {
|
|
52
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
53
|
+
extraInitializers.push(accept(f || null));
|
|
54
|
+
};
|
|
55
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
56
|
+
if (kind === "accessor") {
|
|
57
|
+
if (result === void 0) continue;
|
|
58
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
59
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
60
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
61
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
62
|
+
} else if (_ = accept(result)) {
|
|
63
|
+
if (kind === "field") initializers.unshift(_);
|
|
64
|
+
else descriptor[key] = _;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
68
|
+
done = true;
|
|
69
|
+
};
|
|
70
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
71
|
+
var useValue = arguments.length > 2;
|
|
72
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
73
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
74
|
+
}
|
|
75
|
+
return useValue ? value : void 0;
|
|
43
76
|
};
|
|
44
|
-
var PowerlevelCCSet_1, PowerlevelCCReport_1, PowerlevelCCTestNodeSet_1, PowerlevelCCTestNodeReport_1;
|
|
45
77
|
function __assertType(argName, typeName, boundHasError) {
|
|
46
78
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
47
79
|
if (boundHasError()) {
|
|
@@ -182,320 +214,435 @@ const __assertType__PowerlevelCCTestNodeReportOptions = ($o) => {
|
|
|
182
214
|
}
|
|
183
215
|
return _0($o);
|
|
184
216
|
};
|
|
185
|
-
let PowerlevelCCAPI =
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
case import_Types.PowerlevelCommand.TestNodeSet:
|
|
195
|
-
return true;
|
|
196
|
-
}
|
|
197
|
-
return super.supportsCommand(cmd);
|
|
198
|
-
}
|
|
199
|
-
async setNormalPowerlevel() {
|
|
200
|
-
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Set);
|
|
201
|
-
const cc = new PowerlevelCCSet({
|
|
202
|
-
nodeId: this.endpoint.nodeId,
|
|
203
|
-
endpointIndex: this.endpoint.index,
|
|
204
|
-
powerlevel: import_Types.Powerlevel["Normal Power"]
|
|
205
|
-
});
|
|
206
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
207
|
-
}
|
|
208
|
-
async setCustomPowerlevel(powerlevel, timeout) {
|
|
209
|
-
__assertType("powerlevel", "Powerlevel", __assertType__Powerlevel.bind(void 0, powerlevel));
|
|
210
|
-
__assertType("timeout", "number", __assertType__number.bind(void 0, timeout));
|
|
211
|
-
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Set);
|
|
212
|
-
const cc = new PowerlevelCCSet({
|
|
213
|
-
nodeId: this.endpoint.nodeId,
|
|
214
|
-
endpointIndex: this.endpoint.index,
|
|
215
|
-
powerlevel,
|
|
216
|
-
timeout
|
|
217
|
-
});
|
|
218
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
219
|
-
}
|
|
220
|
-
async getPowerlevel() {
|
|
221
|
-
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Get);
|
|
222
|
-
const cc = new PowerlevelCCGet({
|
|
223
|
-
nodeId: this.endpoint.nodeId,
|
|
224
|
-
endpointIndex: this.endpoint.index
|
|
225
|
-
});
|
|
226
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
227
|
-
if (response) {
|
|
228
|
-
return (0, import_safe3.pick)(response, ["powerlevel", "timeout"]);
|
|
217
|
+
let PowerlevelCCAPI = (() => {
|
|
218
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Powerlevel)];
|
|
219
|
+
let _classDescriptor;
|
|
220
|
+
let _classExtraInitializers = [];
|
|
221
|
+
let _classThis;
|
|
222
|
+
let _classSuper = import_API.PhysicalCCAPI;
|
|
223
|
+
var PowerlevelCCAPI2 = class extends _classSuper {
|
|
224
|
+
static {
|
|
225
|
+
_classThis = this;
|
|
229
226
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
endpointIndex: this.endpoint.index,
|
|
237
|
-
...options
|
|
238
|
-
});
|
|
239
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
240
|
-
}
|
|
241
|
-
async startNodeTest(testNodeId, powerlevel, testFrameCount) {
|
|
242
|
-
__assertType("testNodeId", "number", __assertType__number.bind(void 0, testNodeId));
|
|
243
|
-
__assertType("powerlevel", "Powerlevel", __assertType__Powerlevel.bind(void 0, powerlevel));
|
|
244
|
-
__assertType("testFrameCount", "number", __assertType__number.bind(void 0, testFrameCount));
|
|
245
|
-
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.TestNodeSet);
|
|
246
|
-
if (testNodeId === this.endpoint.nodeId) {
|
|
247
|
-
throw new import_safe.ZWaveError(`For a powerlevel test, the test node ID must different from the source node ID.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
248
|
-
}
|
|
249
|
-
const testNode = this.host.getNodeOrThrow(testNodeId);
|
|
250
|
-
if (testNode.isFrequentListening) {
|
|
251
|
-
throw new import_safe.ZWaveError(`Node ${testNodeId} is FLiRS and therefore cannot be used for a powerlevel test.`, import_safe.ZWaveErrorCodes.PowerlevelCC_UnsupportedTestNode);
|
|
252
|
-
}
|
|
253
|
-
if (testNode.canSleep && testNode.status !== import_safe.NodeStatus.Awake) {
|
|
254
|
-
throw new import_safe.ZWaveError(`Node ${testNodeId} is not awake and therefore cannot be used for a powerlevel test.`, import_safe.ZWaveErrorCodes.PowerlevelCC_UnsupportedTestNode);
|
|
255
|
-
}
|
|
256
|
-
const cc = new PowerlevelCCTestNodeSet({
|
|
257
|
-
nodeId: this.endpoint.nodeId,
|
|
258
|
-
endpointIndex: this.endpoint.index,
|
|
259
|
-
testNodeId,
|
|
260
|
-
powerlevel,
|
|
261
|
-
testFrameCount
|
|
262
|
-
});
|
|
263
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
264
|
-
}
|
|
265
|
-
async getNodeTestStatus() {
|
|
266
|
-
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.TestNodeGet);
|
|
267
|
-
const cc = new PowerlevelCCTestNodeGet({
|
|
268
|
-
nodeId: this.endpoint.nodeId,
|
|
269
|
-
endpointIndex: this.endpoint.index
|
|
270
|
-
});
|
|
271
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
272
|
-
if (response) {
|
|
273
|
-
return (0, import_safe3.pick)(response, [
|
|
274
|
-
"testNodeId",
|
|
275
|
-
"status",
|
|
276
|
-
"acknowledgedFrames"
|
|
277
|
-
]);
|
|
227
|
+
static {
|
|
228
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
229
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
230
|
+
PowerlevelCCAPI2 = _classThis = _classDescriptor.value;
|
|
231
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
232
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
278
233
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
PowerlevelCCAPI = __decorate([
|
|
292
|
-
(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Powerlevel)
|
|
293
|
-
], PowerlevelCCAPI);
|
|
294
|
-
let PowerlevelCC = class PowerlevelCC2 extends import_CommandClass.CommandClass {
|
|
295
|
-
};
|
|
296
|
-
PowerlevelCC = __decorate([
|
|
297
|
-
(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Powerlevel),
|
|
298
|
-
(0, import_CommandClassDecorators.implementedVersion)(1)
|
|
299
|
-
], PowerlevelCC);
|
|
300
|
-
let PowerlevelCCSet = PowerlevelCCSet_1 = class PowerlevelCCSet2 extends PowerlevelCC {
|
|
301
|
-
constructor(options) {
|
|
302
|
-
super(options);
|
|
303
|
-
this.powerlevel = options.powerlevel;
|
|
304
|
-
if (options.powerlevel !== import_Types.Powerlevel["Normal Power"]) {
|
|
305
|
-
if (options.timeout < 1 || options.timeout > 255) {
|
|
306
|
-
throw new import_safe.ZWaveError(`The timeout parameter must be between 1 and 255.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
234
|
+
supportsCommand(cmd) {
|
|
235
|
+
switch (cmd) {
|
|
236
|
+
case import_Types.PowerlevelCommand.Get:
|
|
237
|
+
case import_Types.PowerlevelCommand.Report:
|
|
238
|
+
case import_Types.PowerlevelCommand.TestNodeGet:
|
|
239
|
+
case import_Types.PowerlevelCommand.TestNodeReport:
|
|
240
|
+
return this.isSinglecast();
|
|
241
|
+
case import_Types.PowerlevelCommand.Set:
|
|
242
|
+
case import_Types.PowerlevelCommand.TestNodeSet:
|
|
243
|
+
return true;
|
|
307
244
|
}
|
|
308
|
-
|
|
245
|
+
return super.supportsCommand(cmd);
|
|
309
246
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
nodeId: ctx.sourceNodeId,
|
|
317
|
-
powerlevel
|
|
247
|
+
async setNormalPowerlevel() {
|
|
248
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Set);
|
|
249
|
+
const cc = new PowerlevelCCSet({
|
|
250
|
+
nodeId: this.endpoint.nodeId,
|
|
251
|
+
endpointIndex: this.endpoint.index,
|
|
252
|
+
powerlevel: import_Types.Powerlevel["Normal Power"]
|
|
318
253
|
});
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
254
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
255
|
+
}
|
|
256
|
+
async setCustomPowerlevel(powerlevel, timeout) {
|
|
257
|
+
__assertType("powerlevel", "Powerlevel", __assertType__Powerlevel.bind(void 0, powerlevel));
|
|
258
|
+
__assertType("timeout", "number", __assertType__number.bind(void 0, timeout));
|
|
259
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Set);
|
|
260
|
+
const cc = new PowerlevelCCSet({
|
|
261
|
+
nodeId: this.endpoint.nodeId,
|
|
262
|
+
endpointIndex: this.endpoint.index,
|
|
324
263
|
powerlevel,
|
|
325
264
|
timeout
|
|
326
265
|
});
|
|
266
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
327
267
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
};
|
|
339
|
-
if (this.timeout != void 0) {
|
|
340
|
-
message.timeout = `${this.timeout} s`;
|
|
268
|
+
async getPowerlevel() {
|
|
269
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Get);
|
|
270
|
+
const cc = new PowerlevelCCGet({
|
|
271
|
+
nodeId: this.endpoint.nodeId,
|
|
272
|
+
endpointIndex: this.endpoint.index
|
|
273
|
+
});
|
|
274
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
275
|
+
if (response) {
|
|
276
|
+
return (0, import_safe3.pick)(response, ["powerlevel", "timeout"]);
|
|
277
|
+
}
|
|
341
278
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.Set),
|
|
350
|
-
(0, import_CommandClassDecorators.useSupervision)()
|
|
351
|
-
], PowerlevelCCSet);
|
|
352
|
-
let PowerlevelCCReport = PowerlevelCCReport_1 = class PowerlevelCCReport2 extends PowerlevelCC {
|
|
353
|
-
constructor(options) {
|
|
354
|
-
super(options);
|
|
355
|
-
this.powerlevel = options.powerlevel;
|
|
356
|
-
this.timeout = options.timeout;
|
|
357
|
-
}
|
|
358
|
-
static from(raw, ctx) {
|
|
359
|
-
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
360
|
-
const powerlevel = raw.payload[0];
|
|
361
|
-
if (powerlevel === import_Types.Powerlevel["Normal Power"]) {
|
|
362
|
-
return new PowerlevelCCReport_1({
|
|
363
|
-
nodeId: ctx.sourceNodeId,
|
|
364
|
-
powerlevel
|
|
279
|
+
async reportPowerlevel(options) {
|
|
280
|
+
__assertType("options", "PowerlevelCCReportOptions", __assertType__PowerlevelCCReportOptions.bind(void 0, options));
|
|
281
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.Report);
|
|
282
|
+
const cc = new PowerlevelCCReport({
|
|
283
|
+
nodeId: this.endpoint.nodeId,
|
|
284
|
+
endpointIndex: this.endpoint.index,
|
|
285
|
+
...options
|
|
365
286
|
});
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
287
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
288
|
+
}
|
|
289
|
+
async startNodeTest(testNodeId, powerlevel, testFrameCount) {
|
|
290
|
+
__assertType("testNodeId", "number", __assertType__number.bind(void 0, testNodeId));
|
|
291
|
+
__assertType("powerlevel", "Powerlevel", __assertType__Powerlevel.bind(void 0, powerlevel));
|
|
292
|
+
__assertType("testFrameCount", "number", __assertType__number.bind(void 0, testFrameCount));
|
|
293
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.TestNodeSet);
|
|
294
|
+
if (testNodeId === this.endpoint.nodeId) {
|
|
295
|
+
throw new import_safe.ZWaveError(`For a powerlevel test, the test node ID must different from the source node ID.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
296
|
+
}
|
|
297
|
+
const testNode = this.host.getNodeOrThrow(testNodeId);
|
|
298
|
+
if (testNode.isFrequentListening) {
|
|
299
|
+
throw new import_safe.ZWaveError(`Node ${testNodeId} is FLiRS and therefore cannot be used for a powerlevel test.`, import_safe.ZWaveErrorCodes.PowerlevelCC_UnsupportedTestNode);
|
|
300
|
+
}
|
|
301
|
+
if (testNode.canSleep && testNode.status !== import_safe.NodeStatus.Awake) {
|
|
302
|
+
throw new import_safe.ZWaveError(`Node ${testNodeId} is not awake and therefore cannot be used for a powerlevel test.`, import_safe.ZWaveErrorCodes.PowerlevelCC_UnsupportedTestNode);
|
|
303
|
+
}
|
|
304
|
+
const cc = new PowerlevelCCTestNodeSet({
|
|
305
|
+
nodeId: this.endpoint.nodeId,
|
|
306
|
+
endpointIndex: this.endpoint.index,
|
|
307
|
+
testNodeId,
|
|
371
308
|
powerlevel,
|
|
372
|
-
|
|
309
|
+
testFrameCount
|
|
373
310
|
});
|
|
311
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
374
312
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
313
|
+
async getNodeTestStatus() {
|
|
314
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.TestNodeGet);
|
|
315
|
+
const cc = new PowerlevelCCTestNodeGet({
|
|
316
|
+
nodeId: this.endpoint.nodeId,
|
|
317
|
+
endpointIndex: this.endpoint.index
|
|
318
|
+
});
|
|
319
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
320
|
+
if (response) {
|
|
321
|
+
return (0, import_safe3.pick)(response, [
|
|
322
|
+
"testNodeId",
|
|
323
|
+
"status",
|
|
324
|
+
"acknowledgedFrames"
|
|
325
|
+
]);
|
|
326
|
+
}
|
|
388
327
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
let
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
328
|
+
async sendNodeTestReport(options) {
|
|
329
|
+
__assertType("options", "PowerlevelCCTestNodeReportOptions", __assertType__PowerlevelCCTestNodeReportOptions.bind(void 0, options));
|
|
330
|
+
this.assertSupportsCommand(import_Types.PowerlevelCommand, import_Types.PowerlevelCommand.TestNodeReport);
|
|
331
|
+
const cc = new PowerlevelCCTestNodeReport({
|
|
332
|
+
nodeId: this.endpoint.nodeId,
|
|
333
|
+
endpointIndex: this.endpoint.index,
|
|
334
|
+
...options
|
|
335
|
+
});
|
|
336
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
return PowerlevelCCAPI2 = _classThis;
|
|
340
|
+
})();
|
|
341
|
+
let PowerlevelCC = (() => {
|
|
342
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Powerlevel), (0, import_CommandClassDecorators.implementedVersion)(1)];
|
|
343
|
+
let _classDescriptor;
|
|
344
|
+
let _classExtraInitializers = [];
|
|
345
|
+
let _classThis;
|
|
346
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
347
|
+
var PowerlevelCC2 = class extends _classSuper {
|
|
348
|
+
static {
|
|
349
|
+
_classThis = this;
|
|
350
|
+
}
|
|
351
|
+
static {
|
|
352
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
353
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
354
|
+
PowerlevelCC2 = _classThis = _classDescriptor.value;
|
|
355
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
356
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
return PowerlevelCC2 = _classThis;
|
|
360
|
+
})();
|
|
361
|
+
let PowerlevelCCSet = (() => {
|
|
362
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.Set), (0, import_CommandClassDecorators.useSupervision)()];
|
|
363
|
+
let _classDescriptor;
|
|
364
|
+
let _classExtraInitializers = [];
|
|
365
|
+
let _classThis;
|
|
366
|
+
let _classSuper = PowerlevelCC;
|
|
367
|
+
var PowerlevelCCSet2 = class extends _classSuper {
|
|
368
|
+
static {
|
|
369
|
+
_classThis = this;
|
|
370
|
+
}
|
|
371
|
+
static {
|
|
372
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
373
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
374
|
+
PowerlevelCCSet2 = _classThis = _classDescriptor.value;
|
|
375
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
376
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
377
|
+
}
|
|
378
|
+
constructor(options) {
|
|
379
|
+
super(options);
|
|
380
|
+
this.powerlevel = options.powerlevel;
|
|
381
|
+
if (options.powerlevel !== import_Types.Powerlevel["Normal Power"]) {
|
|
382
|
+
if (options.timeout < 1 || options.timeout > 255) {
|
|
383
|
+
throw new import_safe.ZWaveError(`The timeout parameter must be between 1 and 255.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
384
|
+
}
|
|
385
|
+
this.timeout = options.timeout;
|
|
438
386
|
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
const status = raw.payload[1];
|
|
457
|
-
const acknowledgedFrames = raw.payload.readUInt16BE(2);
|
|
458
|
-
return new PowerlevelCCTestNodeReport_1({
|
|
459
|
-
nodeId: ctx.sourceNodeId,
|
|
460
|
-
testNodeId,
|
|
461
|
-
status,
|
|
462
|
-
acknowledgedFrames
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
testNodeId;
|
|
466
|
-
status;
|
|
467
|
-
acknowledgedFrames;
|
|
468
|
-
serialize(ctx) {
|
|
469
|
-
this.payload = import_safe2.Bytes.from([
|
|
470
|
-
this.testNodeId,
|
|
471
|
-
this.status,
|
|
472
|
-
// Placeholder for acknowledged frames
|
|
473
|
-
0,
|
|
474
|
-
0
|
|
475
|
-
]);
|
|
476
|
-
this.payload.writeUInt16BE(this.acknowledgedFrames, 2);
|
|
477
|
-
return super.serialize(ctx);
|
|
478
|
-
}
|
|
479
|
-
toLogEntry(ctx) {
|
|
480
|
-
return {
|
|
481
|
-
...super.toLogEntry(ctx),
|
|
482
|
-
message: {
|
|
483
|
-
"test node id": this.testNodeId,
|
|
484
|
-
status: (0, import_safe3.getEnumMemberName)(import_Types.PowerlevelTestStatus, this.status),
|
|
485
|
-
"acknowledged frames": this.acknowledgedFrames
|
|
387
|
+
}
|
|
388
|
+
static from(raw, ctx) {
|
|
389
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
390
|
+
const powerlevel = raw.payload[0];
|
|
391
|
+
if (powerlevel === import_Types.Powerlevel["Normal Power"]) {
|
|
392
|
+
return new this({
|
|
393
|
+
nodeId: ctx.sourceNodeId,
|
|
394
|
+
powerlevel
|
|
395
|
+
});
|
|
396
|
+
} else {
|
|
397
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
398
|
+
const timeout = raw.payload[1];
|
|
399
|
+
return new this({
|
|
400
|
+
nodeId: ctx.sourceNodeId,
|
|
401
|
+
powerlevel,
|
|
402
|
+
timeout
|
|
403
|
+
});
|
|
486
404
|
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
405
|
+
}
|
|
406
|
+
powerlevel;
|
|
407
|
+
timeout;
|
|
408
|
+
serialize(ctx) {
|
|
409
|
+
this.payload = import_safe2.Bytes.from([this.powerlevel, this.timeout ?? 0]);
|
|
410
|
+
return super.serialize(ctx);
|
|
411
|
+
}
|
|
412
|
+
toLogEntry(ctx) {
|
|
413
|
+
const message = {
|
|
414
|
+
"power level": (0, import_safe3.getEnumMemberName)(import_Types.Powerlevel, this.powerlevel)
|
|
415
|
+
};
|
|
416
|
+
if (this.timeout != void 0) {
|
|
417
|
+
message.timeout = `${this.timeout} s`;
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
...super.toLogEntry(ctx),
|
|
421
|
+
message
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
return PowerlevelCCSet2 = _classThis;
|
|
426
|
+
})();
|
|
427
|
+
let PowerlevelCCReport = (() => {
|
|
428
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.Report)];
|
|
429
|
+
let _classDescriptor;
|
|
430
|
+
let _classExtraInitializers = [];
|
|
431
|
+
let _classThis;
|
|
432
|
+
let _classSuper = PowerlevelCC;
|
|
433
|
+
var PowerlevelCCReport2 = class extends _classSuper {
|
|
434
|
+
static {
|
|
435
|
+
_classThis = this;
|
|
436
|
+
}
|
|
437
|
+
static {
|
|
438
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
439
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
440
|
+
PowerlevelCCReport2 = _classThis = _classDescriptor.value;
|
|
441
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
442
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
443
|
+
}
|
|
444
|
+
constructor(options) {
|
|
445
|
+
super(options);
|
|
446
|
+
this.powerlevel = options.powerlevel;
|
|
447
|
+
this.timeout = options.timeout;
|
|
448
|
+
}
|
|
449
|
+
static from(raw, ctx) {
|
|
450
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
451
|
+
const powerlevel = raw.payload[0];
|
|
452
|
+
if (powerlevel === import_Types.Powerlevel["Normal Power"]) {
|
|
453
|
+
return new this({
|
|
454
|
+
nodeId: ctx.sourceNodeId,
|
|
455
|
+
powerlevel
|
|
456
|
+
});
|
|
457
|
+
} else {
|
|
458
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
459
|
+
const timeout = raw.payload[1];
|
|
460
|
+
return new this({
|
|
461
|
+
nodeId: ctx.sourceNodeId,
|
|
462
|
+
powerlevel,
|
|
463
|
+
timeout
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
powerlevel;
|
|
468
|
+
timeout;
|
|
469
|
+
serialize(ctx) {
|
|
470
|
+
this.payload = import_safe2.Bytes.from([this.powerlevel, this.timeout ?? 0]);
|
|
471
|
+
return super.serialize(ctx);
|
|
472
|
+
}
|
|
473
|
+
toLogEntry(ctx) {
|
|
474
|
+
const message = {
|
|
475
|
+
"power level": (0, import_safe3.getEnumMemberName)(import_Types.Powerlevel, this.powerlevel)
|
|
476
|
+
};
|
|
477
|
+
if (this.timeout != void 0) {
|
|
478
|
+
message.timeout = `${this.timeout} s`;
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
...super.toLogEntry(ctx),
|
|
482
|
+
message
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
return PowerlevelCCReport2 = _classThis;
|
|
487
|
+
})();
|
|
488
|
+
let PowerlevelCCGet = (() => {
|
|
489
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(PowerlevelCCReport)];
|
|
490
|
+
let _classDescriptor;
|
|
491
|
+
let _classExtraInitializers = [];
|
|
492
|
+
let _classThis;
|
|
493
|
+
let _classSuper = PowerlevelCC;
|
|
494
|
+
var PowerlevelCCGet2 = class extends _classSuper {
|
|
495
|
+
static {
|
|
496
|
+
_classThis = this;
|
|
497
|
+
}
|
|
498
|
+
static {
|
|
499
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
500
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
501
|
+
PowerlevelCCGet2 = _classThis = _classDescriptor.value;
|
|
502
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
503
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
return PowerlevelCCGet2 = _classThis;
|
|
507
|
+
})();
|
|
508
|
+
let PowerlevelCCTestNodeSet = (() => {
|
|
509
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.TestNodeSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
510
|
+
let _classDescriptor;
|
|
511
|
+
let _classExtraInitializers = [];
|
|
512
|
+
let _classThis;
|
|
513
|
+
let _classSuper = PowerlevelCC;
|
|
514
|
+
var PowerlevelCCTestNodeSet2 = class extends _classSuper {
|
|
515
|
+
static {
|
|
516
|
+
_classThis = this;
|
|
517
|
+
}
|
|
518
|
+
static {
|
|
519
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
520
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
521
|
+
PowerlevelCCTestNodeSet2 = _classThis = _classDescriptor.value;
|
|
522
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
523
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
524
|
+
}
|
|
525
|
+
constructor(options) {
|
|
526
|
+
super(options);
|
|
527
|
+
this.testNodeId = options.testNodeId;
|
|
528
|
+
this.powerlevel = options.powerlevel;
|
|
529
|
+
this.testFrameCount = options.testFrameCount;
|
|
530
|
+
}
|
|
531
|
+
static from(raw, ctx) {
|
|
532
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 4);
|
|
533
|
+
const testNodeId = raw.payload[0];
|
|
534
|
+
const powerlevel = raw.payload[1];
|
|
535
|
+
const testFrameCount = raw.payload.readUInt16BE(2);
|
|
536
|
+
return new this({
|
|
537
|
+
nodeId: ctx.sourceNodeId,
|
|
538
|
+
testNodeId,
|
|
539
|
+
powerlevel,
|
|
540
|
+
testFrameCount
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
testNodeId;
|
|
544
|
+
powerlevel;
|
|
545
|
+
testFrameCount;
|
|
546
|
+
serialize(ctx) {
|
|
547
|
+
this.payload = import_safe2.Bytes.from([this.testNodeId, this.powerlevel, 0, 0]);
|
|
548
|
+
this.payload.writeUInt16BE(this.testFrameCount, 2);
|
|
549
|
+
return super.serialize(ctx);
|
|
550
|
+
}
|
|
551
|
+
toLogEntry(ctx) {
|
|
552
|
+
return {
|
|
553
|
+
...super.toLogEntry(ctx),
|
|
554
|
+
message: {
|
|
555
|
+
"test node id": this.testNodeId,
|
|
556
|
+
"power level": (0, import_safe3.getEnumMemberName)(import_Types.Powerlevel, this.powerlevel),
|
|
557
|
+
"test frame count": this.testFrameCount
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
return PowerlevelCCTestNodeSet2 = _classThis;
|
|
563
|
+
})();
|
|
564
|
+
let PowerlevelCCTestNodeReport = (() => {
|
|
565
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.TestNodeReport)];
|
|
566
|
+
let _classDescriptor;
|
|
567
|
+
let _classExtraInitializers = [];
|
|
568
|
+
let _classThis;
|
|
569
|
+
let _classSuper = PowerlevelCC;
|
|
570
|
+
var PowerlevelCCTestNodeReport2 = class extends _classSuper {
|
|
571
|
+
static {
|
|
572
|
+
_classThis = this;
|
|
573
|
+
}
|
|
574
|
+
static {
|
|
575
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
576
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
577
|
+
PowerlevelCCTestNodeReport2 = _classThis = _classDescriptor.value;
|
|
578
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
579
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
580
|
+
}
|
|
581
|
+
constructor(options) {
|
|
582
|
+
super(options);
|
|
583
|
+
this.testNodeId = options.testNodeId;
|
|
584
|
+
this.status = options.status;
|
|
585
|
+
this.acknowledgedFrames = options.acknowledgedFrames;
|
|
586
|
+
}
|
|
587
|
+
static from(raw, ctx) {
|
|
588
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 4);
|
|
589
|
+
const testNodeId = raw.payload[0];
|
|
590
|
+
const status = raw.payload[1];
|
|
591
|
+
const acknowledgedFrames = raw.payload.readUInt16BE(2);
|
|
592
|
+
return new this({
|
|
593
|
+
nodeId: ctx.sourceNodeId,
|
|
594
|
+
testNodeId,
|
|
595
|
+
status,
|
|
596
|
+
acknowledgedFrames
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
testNodeId;
|
|
600
|
+
status;
|
|
601
|
+
acknowledgedFrames;
|
|
602
|
+
serialize(ctx) {
|
|
603
|
+
this.payload = import_safe2.Bytes.from([
|
|
604
|
+
this.testNodeId,
|
|
605
|
+
this.status,
|
|
606
|
+
// Placeholder for acknowledged frames
|
|
607
|
+
0,
|
|
608
|
+
0
|
|
609
|
+
]);
|
|
610
|
+
this.payload.writeUInt16BE(this.acknowledgedFrames, 2);
|
|
611
|
+
return super.serialize(ctx);
|
|
612
|
+
}
|
|
613
|
+
toLogEntry(ctx) {
|
|
614
|
+
return {
|
|
615
|
+
...super.toLogEntry(ctx),
|
|
616
|
+
message: {
|
|
617
|
+
"test node id": this.testNodeId,
|
|
618
|
+
status: (0, import_safe3.getEnumMemberName)(import_Types.PowerlevelTestStatus, this.status),
|
|
619
|
+
"acknowledged frames": this.acknowledgedFrames
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
return PowerlevelCCTestNodeReport2 = _classThis;
|
|
625
|
+
})();
|
|
626
|
+
let PowerlevelCCTestNodeGet = (() => {
|
|
627
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.PowerlevelCommand.TestNodeGet), (0, import_CommandClassDecorators.expectedCCResponse)(PowerlevelCCTestNodeReport)];
|
|
628
|
+
let _classDescriptor;
|
|
629
|
+
let _classExtraInitializers = [];
|
|
630
|
+
let _classThis;
|
|
631
|
+
let _classSuper = PowerlevelCC;
|
|
632
|
+
var PowerlevelCCTestNodeGet2 = class extends _classSuper {
|
|
633
|
+
static {
|
|
634
|
+
_classThis = this;
|
|
635
|
+
}
|
|
636
|
+
static {
|
|
637
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
638
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
639
|
+
PowerlevelCCTestNodeGet2 = _classThis = _classDescriptor.value;
|
|
640
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
641
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
return PowerlevelCCTestNodeGet2 = _classThis;
|
|
645
|
+
})();
|
|
499
646
|
// Annotate the CommonJS export names for ESM import in node:
|
|
500
647
|
0 && (module.exports = {
|
|
501
648
|
PowerlevelCC,
|