@zwave-js/cc 14.0.0-beta.4 → 14.0.0
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
|
@@ -33,270 +33,360 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
33
33
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
34
34
|
var import_Values = require("../lib/Values.js");
|
|
35
35
|
var import_Types = require("../lib/_Types.js");
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
37
|
+
function accept(f) {
|
|
38
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
39
|
+
return f;
|
|
40
|
+
}
|
|
41
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
42
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
43
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
44
|
+
var _, done = false;
|
|
45
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
46
|
+
var context = {};
|
|
47
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
48
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
49
|
+
context.addInitializer = function(f) {
|
|
50
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
51
|
+
extraInitializers.push(accept(f || null));
|
|
52
|
+
};
|
|
53
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
54
|
+
if (kind === "accessor") {
|
|
55
|
+
if (result === void 0) continue;
|
|
56
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
57
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
58
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
59
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
60
|
+
} else if (_ = accept(result)) {
|
|
61
|
+
if (kind === "field") initializers.unshift(_);
|
|
62
|
+
else descriptor[key] = _;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
66
|
+
done = true;
|
|
67
|
+
};
|
|
68
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
69
|
+
var useValue = arguments.length > 2;
|
|
70
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
71
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
72
|
+
}
|
|
73
|
+
return useValue ? value : void 0;
|
|
41
74
|
};
|
|
42
|
-
var SupervisionCC_1, SupervisionCCReport_1, SupervisionCCGet_1;
|
|
43
75
|
const SupervisionCCValues = Object.freeze({
|
|
44
76
|
...import_Values.V.defineDynamicCCValues(import_safe.CommandClasses.Supervision, {
|
|
45
77
|
// Used to remember whether a node supports supervision-encapsulation of the given CC
|
|
46
78
|
...import_Values.V.dynamicPropertyAndKeyWithName("ccSupported", "ccSupported", (ccId) => ccId, ({ property, propertyKey }) => property === "commandSupported" && typeof propertyKey === "number", void 0, { internal: true, supportsEndpoints: false })
|
|
47
79
|
})
|
|
48
80
|
});
|
|
49
|
-
let SupervisionCCAPI =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
81
|
+
let SupervisionCCAPI = (() => {
|
|
82
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses.Supervision)];
|
|
83
|
+
let _classDescriptor;
|
|
84
|
+
let _classExtraInitializers = [];
|
|
85
|
+
let _classThis;
|
|
86
|
+
let _classSuper = import_API.PhysicalCCAPI;
|
|
87
|
+
var SupervisionCCAPI2 = class extends _classSuper {
|
|
88
|
+
static {
|
|
89
|
+
_classThis = this;
|
|
55
90
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
91
|
+
static {
|
|
92
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
93
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
94
|
+
SupervisionCCAPI2 = _classThis = _classDescriptor.value;
|
|
95
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
96
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
97
|
+
}
|
|
98
|
+
supportsCommand(cmd) {
|
|
99
|
+
switch (cmd) {
|
|
100
|
+
case import_Types.SupervisionCommand.Get:
|
|
101
|
+
case import_Types.SupervisionCommand.Report:
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
return super.supportsCommand(cmd);
|
|
105
|
+
}
|
|
106
|
+
async sendReport(options) {
|
|
107
|
+
const { encapsulationFlags = import_safe.EncapsulationFlags.None, lowPriority = false, ...cmdOptions } = options;
|
|
108
|
+
const cc = new SupervisionCCReport({
|
|
109
|
+
nodeId: this.endpoint.nodeId,
|
|
110
|
+
endpointIndex: this.endpoint.index,
|
|
111
|
+
...cmdOptions
|
|
76
112
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
113
|
+
cc.encapsulationFlags = encapsulationFlags;
|
|
114
|
+
try {
|
|
115
|
+
await this.host.sendCommand(cc, {
|
|
116
|
+
...this.commandOptions,
|
|
117
|
+
// Supervision Reports must be prioritized over normal messages
|
|
118
|
+
priority: lowPriority ? import_safe.MessagePriority.ImmediateLow : import_safe.MessagePriority.Immediate,
|
|
119
|
+
// But we don't want to wait for an ACK because this can lock up the network for seconds
|
|
120
|
+
// if the target node is asleep or unreachable
|
|
121
|
+
transmitOptions: import_safe.TransmitOptions.DEFAULT_NOACK,
|
|
122
|
+
// Only try sending the report once. If it fails, the node will ask again
|
|
123
|
+
maxSendAttempts: 1
|
|
124
|
+
});
|
|
125
|
+
} catch (e) {
|
|
126
|
+
if ((0, import_safe.isTransmissionError)(e)) {
|
|
127
|
+
return;
|
|
128
|
+
} else {
|
|
129
|
+
throw e;
|
|
130
|
+
}
|
|
82
131
|
}
|
|
83
132
|
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
let
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if (!cc.isSinglecast()) {
|
|
97
|
-
throw new import_safe.ZWaveError(`Supervision is only possible for singlecast commands!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
133
|
+
};
|
|
134
|
+
return SupervisionCCAPI2 = _classThis;
|
|
135
|
+
})();
|
|
136
|
+
let SupervisionCC = (() => {
|
|
137
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Supervision), (0, import_CommandClassDecorators.implementedVersion)(2)];
|
|
138
|
+
let _classDescriptor;
|
|
139
|
+
let _classExtraInitializers = [];
|
|
140
|
+
let _classThis;
|
|
141
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
142
|
+
var SupervisionCC2 = class extends _classSuper {
|
|
143
|
+
static {
|
|
144
|
+
_classThis = this;
|
|
98
145
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
requestStatusUpdates
|
|
106
|
-
});
|
|
107
|
-
ret.encapsulationFlags = cc.encapsulationFlags & ~import_safe.EncapsulationFlags.Supervision;
|
|
108
|
-
return ret;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Given a CC instance, this returns the Supervision session ID which is used for this command.
|
|
112
|
-
* Returns `undefined` when there is no session ID or the command was sent as multicast.
|
|
113
|
-
*/
|
|
114
|
-
static getSessionId(command) {
|
|
115
|
-
if (command.isEncapsulatedWith(import_safe.CommandClasses.Supervision, import_Types.SupervisionCommand.Get)) {
|
|
116
|
-
const supervisionEncapsulation = command.getEncapsulatingCC(import_safe.CommandClasses.Supervision, import_Types.SupervisionCommand.Get);
|
|
117
|
-
if (supervisionEncapsulation.frameType !== "broadcast" && supervisionEncapsulation.frameType !== "multicast") {
|
|
118
|
-
return supervisionEncapsulation.sessionId;
|
|
119
|
-
}
|
|
146
|
+
static {
|
|
147
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
148
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
149
|
+
SupervisionCC2 = _classThis = _classDescriptor.value;
|
|
150
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
151
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
120
152
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*/
|
|
125
|
-
static getCCSupportedWithSupervision(ctx, endpoint, ccId) {
|
|
126
|
-
return ctx.getValueDB(endpoint.nodeId).getValue(SupervisionCCValues.ccSupported(ccId).endpoint(endpoint.index)) ?? true;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Remembers whether a node supports the given CC with Supervision encapsulation.
|
|
130
|
-
*/
|
|
131
|
-
static setCCSupportedWithSupervision(ctx, endpoint, ccId, supported) {
|
|
132
|
-
ctx.getValueDB(endpoint.nodeId).setValue(SupervisionCCValues.ccSupported(ccId).endpoint(endpoint.index), supported);
|
|
133
|
-
}
|
|
134
|
-
/** Returns whether this is a valid command to send supervised */
|
|
135
|
-
static mayUseSupervision(ctx, command) {
|
|
136
|
-
if (!command.isSinglecast())
|
|
137
|
-
return false;
|
|
138
|
-
if (command.expectsCCResponse())
|
|
139
|
-
return false;
|
|
140
|
-
const node = command.getNode(ctx);
|
|
141
|
-
if (!node)
|
|
142
|
-
return false;
|
|
143
|
-
const endpoint = command.getEndpoint(ctx);
|
|
144
|
-
if (!endpoint)
|
|
145
|
-
return false;
|
|
146
|
-
return (
|
|
147
|
-
// ... the node supports it
|
|
148
|
-
node.supportsCC(import_safe.CommandClasses.Supervision) && (0, import_CommandClassDecorators.shouldUseSupervision)(command) && SupervisionCC_1.getCCSupportedWithSupervision(ctx, endpoint, command.ccId)
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
SupervisionCC = SupervisionCC_1 = __decorate([
|
|
153
|
-
(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses.Supervision),
|
|
154
|
-
(0, import_CommandClassDecorators.implementedVersion)(2)
|
|
155
|
-
], SupervisionCC);
|
|
156
|
-
let SupervisionCCReport = SupervisionCCReport_1 = class SupervisionCCReport2 extends SupervisionCC {
|
|
157
|
-
constructor(options) {
|
|
158
|
-
super(options);
|
|
159
|
-
this.moreUpdatesFollow = options.moreUpdatesFollow;
|
|
160
|
-
this.requestWakeUpOnDemand = !!options.requestWakeUpOnDemand;
|
|
161
|
-
this.sessionId = options.sessionId;
|
|
162
|
-
this.status = options.status;
|
|
163
|
-
if (options.status === import_safe.SupervisionStatus.Working) {
|
|
164
|
-
this.duration = options.duration;
|
|
165
|
-
} else {
|
|
166
|
-
this.duration = new import_safe.Duration(0, "seconds");
|
|
153
|
+
/** Tests if a command should be supervised and thus requires encapsulation */
|
|
154
|
+
static requiresEncapsulation(cc) {
|
|
155
|
+
return !!(cc.encapsulationFlags & import_safe.EncapsulationFlags.Supervision) && !(cc instanceof SupervisionCCGet) && !(cc instanceof SupervisionCCReport);
|
|
167
156
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
nodeId: ctx.sourceNodeId,
|
|
179
|
-
moreUpdatesFollow,
|
|
180
|
-
requestWakeUpOnDemand,
|
|
181
|
-
sessionId,
|
|
182
|
-
status,
|
|
183
|
-
duration
|
|
184
|
-
});
|
|
185
|
-
} else {
|
|
186
|
-
return new SupervisionCCReport_1({
|
|
187
|
-
nodeId: ctx.sourceNodeId,
|
|
188
|
-
moreUpdatesFollow,
|
|
189
|
-
requestWakeUpOnDemand,
|
|
157
|
+
/** Encapsulates a command that targets a specific endpoint */
|
|
158
|
+
static encapsulate(cc, sessionId, requestStatusUpdates = true) {
|
|
159
|
+
if (!cc.isSinglecast()) {
|
|
160
|
+
throw new import_safe.ZWaveError(`Supervision is only possible for singlecast commands!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
161
|
+
}
|
|
162
|
+
const ret = new SupervisionCCGet({
|
|
163
|
+
nodeId: cc.nodeId,
|
|
164
|
+
// Supervision CC is wrapped inside MultiChannel CCs, so the endpoint must be copied
|
|
165
|
+
endpointIndex: cc.endpointIndex,
|
|
166
|
+
encapsulated: cc,
|
|
190
167
|
sessionId,
|
|
191
|
-
|
|
168
|
+
requestStatusUpdates
|
|
192
169
|
});
|
|
170
|
+
ret.encapsulationFlags = cc.encapsulationFlags & ~import_safe.EncapsulationFlags.Supervision;
|
|
171
|
+
return ret;
|
|
193
172
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Given a CC instance, this returns the Supervision session ID which is used for this command.
|
|
175
|
+
* Returns `undefined` when there is no session ID or the command was sent as multicast.
|
|
176
|
+
*/
|
|
177
|
+
static getSessionId(command) {
|
|
178
|
+
if (command.isEncapsulatedWith(import_safe.CommandClasses.Supervision, import_Types.SupervisionCommand.Get)) {
|
|
179
|
+
const supervisionEncapsulation = command.getEncapsulatingCC(import_safe.CommandClasses.Supervision, import_Types.SupervisionCommand.Get);
|
|
180
|
+
if (supervisionEncapsulation.frameType !== "broadcast" && supervisionEncapsulation.frameType !== "multicast") {
|
|
181
|
+
return supervisionEncapsulation.sessionId;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Returns whether a node supports the given CC with Supervision encapsulation.
|
|
187
|
+
*/
|
|
188
|
+
static getCCSupportedWithSupervision(ctx, endpoint, ccId) {
|
|
189
|
+
return ctx.getValueDB(endpoint.nodeId).getValue(SupervisionCCValues.ccSupported(ccId).endpoint(endpoint.index)) ?? true;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Remembers whether a node supports the given CC with Supervision encapsulation.
|
|
193
|
+
*/
|
|
194
|
+
static setCCSupportedWithSupervision(ctx, endpoint, ccId, supported) {
|
|
195
|
+
ctx.getValueDB(endpoint.nodeId).setValue(SupervisionCCValues.ccSupported(ccId).endpoint(endpoint.index), supported);
|
|
196
|
+
}
|
|
197
|
+
/** Returns whether this is a valid command to send supervised */
|
|
198
|
+
static mayUseSupervision(ctx, command) {
|
|
199
|
+
if (!command.isSinglecast())
|
|
200
|
+
return false;
|
|
201
|
+
if (command.expectsCCResponse())
|
|
202
|
+
return false;
|
|
203
|
+
const node = command.getNode(ctx);
|
|
204
|
+
if (!node)
|
|
205
|
+
return false;
|
|
206
|
+
const endpoint = command.getEndpoint(ctx);
|
|
207
|
+
if (!endpoint)
|
|
208
|
+
return false;
|
|
209
|
+
return (
|
|
210
|
+
// ... the node supports it
|
|
211
|
+
node.supportsCC(import_safe.CommandClasses.Supervision) && (0, import_CommandClassDecorators.shouldUseSupervision)(command) && SupervisionCC2.getCCSupportedWithSupervision(ctx, endpoint, command.ccId)
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
return SupervisionCC2 = _classThis;
|
|
216
|
+
})();
|
|
217
|
+
let SupervisionCCReport = (() => {
|
|
218
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.SupervisionCommand.Report)];
|
|
219
|
+
let _classDescriptor;
|
|
220
|
+
let _classExtraInitializers = [];
|
|
221
|
+
let _classThis;
|
|
222
|
+
let _classSuper = SupervisionCC;
|
|
223
|
+
var SupervisionCCReport2 = class extends _classSuper {
|
|
224
|
+
static {
|
|
225
|
+
_classThis = this;
|
|
226
|
+
}
|
|
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
|
+
SupervisionCCReport2 = _classThis = _classDescriptor.value;
|
|
231
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
232
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
233
|
+
}
|
|
234
|
+
constructor(options) {
|
|
235
|
+
super(options);
|
|
236
|
+
this.moreUpdatesFollow = options.moreUpdatesFollow;
|
|
237
|
+
this.requestWakeUpOnDemand = !!options.requestWakeUpOnDemand;
|
|
238
|
+
this.sessionId = options.sessionId;
|
|
239
|
+
this.status = options.status;
|
|
240
|
+
if (options.status === import_safe.SupervisionStatus.Working) {
|
|
241
|
+
this.duration = options.duration;
|
|
242
|
+
} else {
|
|
243
|
+
this.duration = new import_safe.Duration(0, "seconds");
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
static from(raw, ctx) {
|
|
247
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
248
|
+
const moreUpdatesFollow = !!(raw.payload[0] & 128);
|
|
249
|
+
const requestWakeUpOnDemand = !!(raw.payload[0] & 64);
|
|
250
|
+
const sessionId = raw.payload[0] & 63;
|
|
251
|
+
const status = raw.payload[1];
|
|
252
|
+
if (status === import_safe.SupervisionStatus.Working) {
|
|
253
|
+
const duration = import_safe.Duration.parseReport(raw.payload[2]) ?? new import_safe.Duration(0, "seconds");
|
|
254
|
+
return new this({
|
|
255
|
+
nodeId: ctx.sourceNodeId,
|
|
256
|
+
moreUpdatesFollow,
|
|
257
|
+
requestWakeUpOnDemand,
|
|
258
|
+
sessionId,
|
|
259
|
+
status,
|
|
260
|
+
duration
|
|
261
|
+
});
|
|
262
|
+
} else {
|
|
263
|
+
return new this({
|
|
264
|
+
nodeId: ctx.sourceNodeId,
|
|
265
|
+
moreUpdatesFollow,
|
|
266
|
+
requestWakeUpOnDemand,
|
|
267
|
+
sessionId,
|
|
268
|
+
status
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
moreUpdatesFollow;
|
|
273
|
+
requestWakeUpOnDemand;
|
|
274
|
+
sessionId;
|
|
275
|
+
status;
|
|
276
|
+
duration;
|
|
277
|
+
serialize(ctx) {
|
|
208
278
|
this.payload = import_safe2.Bytes.concat([
|
|
209
|
-
|
|
210
|
-
|
|
279
|
+
import_safe2.Bytes.from([
|
|
280
|
+
(this.moreUpdatesFollow ? 128 : 0) | (this.requestWakeUpOnDemand ? 64 : 0) | this.sessionId & 63,
|
|
281
|
+
this.status
|
|
282
|
+
])
|
|
211
283
|
]);
|
|
284
|
+
if (this.duration) {
|
|
285
|
+
this.payload = import_safe2.Bytes.concat([
|
|
286
|
+
this.payload,
|
|
287
|
+
import_safe2.Bytes.from([this.duration.serializeReport()])
|
|
288
|
+
]);
|
|
289
|
+
}
|
|
290
|
+
return super.serialize(ctx);
|
|
212
291
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"more updates follow": this.moreUpdatesFollow,
|
|
219
|
-
status: (0, import_safe3.getEnumMemberName)(import_safe.SupervisionStatus, this.status)
|
|
220
|
-
};
|
|
221
|
-
if (this.duration) {
|
|
222
|
-
message.duration = this.duration.toString();
|
|
223
|
-
}
|
|
224
|
-
return {
|
|
225
|
-
...super.toLogEntry(ctx),
|
|
226
|
-
message
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
toSupervisionResult() {
|
|
230
|
-
if (this.status === import_safe.SupervisionStatus.Working) {
|
|
231
|
-
return {
|
|
232
|
-
status: this.status,
|
|
233
|
-
remainingDuration: this.duration
|
|
292
|
+
toLogEntry(ctx) {
|
|
293
|
+
const message = {
|
|
294
|
+
"session id": this.sessionId,
|
|
295
|
+
"more updates follow": this.moreUpdatesFollow,
|
|
296
|
+
status: (0, import_safe3.getEnumMemberName)(import_safe.SupervisionStatus, this.status)
|
|
234
297
|
};
|
|
235
|
-
|
|
298
|
+
if (this.duration) {
|
|
299
|
+
message.duration = this.duration.toString();
|
|
300
|
+
}
|
|
236
301
|
return {
|
|
237
|
-
|
|
302
|
+
...super.toLogEntry(ctx),
|
|
303
|
+
message
|
|
238
304
|
};
|
|
239
305
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
306
|
+
toSupervisionResult() {
|
|
307
|
+
if (this.status === import_safe.SupervisionStatus.Working) {
|
|
308
|
+
return {
|
|
309
|
+
status: this.status,
|
|
310
|
+
remainingDuration: this.duration
|
|
311
|
+
};
|
|
312
|
+
} else {
|
|
313
|
+
return {
|
|
314
|
+
status: this.status
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
return SupervisionCCReport2 = _classThis;
|
|
320
|
+
})();
|
|
245
321
|
function testResponseForSupervisionCCGet(sent, received) {
|
|
246
322
|
return received.sessionId === sent.sessionId;
|
|
247
323
|
}
|
|
248
|
-
let SupervisionCCGet =
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
324
|
+
let SupervisionCCGet = (() => {
|
|
325
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.SupervisionCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(SupervisionCCReport, testResponseForSupervisionCCGet)];
|
|
326
|
+
let _classDescriptor;
|
|
327
|
+
let _classExtraInitializers = [];
|
|
328
|
+
let _classThis;
|
|
329
|
+
let _classSuper = SupervisionCC;
|
|
330
|
+
var SupervisionCCGet2 = class extends _classSuper {
|
|
331
|
+
static {
|
|
332
|
+
_classThis = this;
|
|
333
|
+
}
|
|
334
|
+
static {
|
|
335
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
336
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
337
|
+
SupervisionCCGet2 = _classThis = _classDescriptor.value;
|
|
338
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
339
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
340
|
+
}
|
|
341
|
+
constructor(options) {
|
|
342
|
+
super(options);
|
|
343
|
+
this.sessionId = options.sessionId;
|
|
344
|
+
this.requestStatusUpdates = options.requestStatusUpdates;
|
|
345
|
+
this.encapsulated = options.encapsulated;
|
|
346
|
+
this.encapsulated.endpointIndex = this.endpointIndex;
|
|
347
|
+
this.encapsulated.encapsulatingCC = this;
|
|
348
|
+
}
|
|
349
|
+
static from(raw, ctx) {
|
|
350
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
351
|
+
const requestStatusUpdates = !!(raw.payload[0] & 128);
|
|
352
|
+
const sessionId = raw.payload[0] & 63;
|
|
353
|
+
const encapsulated = import_CommandClass.CommandClass.parse(raw.payload.subarray(2), ctx);
|
|
354
|
+
return new this({
|
|
355
|
+
nodeId: ctx.sourceNodeId,
|
|
356
|
+
requestStatusUpdates,
|
|
357
|
+
sessionId,
|
|
358
|
+
encapsulated
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
requestStatusUpdates;
|
|
362
|
+
sessionId;
|
|
363
|
+
encapsulated;
|
|
364
|
+
serialize(ctx) {
|
|
365
|
+
const encapCC = this.encapsulated.serialize(ctx);
|
|
366
|
+
this.payload = import_safe2.Bytes.concat([
|
|
367
|
+
import_safe2.Bytes.from([
|
|
368
|
+
(this.requestStatusUpdates ? 128 : 0) | this.sessionId & 63,
|
|
369
|
+
encapCC.length
|
|
370
|
+
]),
|
|
371
|
+
encapCC
|
|
372
|
+
]);
|
|
373
|
+
return super.serialize(ctx);
|
|
374
|
+
}
|
|
375
|
+
computeEncapsulationOverhead() {
|
|
376
|
+
return super.computeEncapsulationOverhead() + 2;
|
|
377
|
+
}
|
|
378
|
+
toLogEntry(ctx) {
|
|
379
|
+
return {
|
|
380
|
+
...super.toLogEntry(ctx),
|
|
381
|
+
message: {
|
|
382
|
+
"session id": this.sessionId,
|
|
383
|
+
"request updates": this.requestStatusUpdates
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return SupervisionCCGet2 = _classThis;
|
|
389
|
+
})();
|
|
300
390
|
// Annotate the CommonJS export names for ESM import in node:
|
|
301
391
|
0 && (module.exports = {
|
|
302
392
|
SupervisionCC,
|