@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
|
@@ -61,13 +61,45 @@ var import_safe = require("@zwave-js/shared/safe");
|
|
|
61
61
|
var import_CommandClass = require("../lib/CommandClass.js");
|
|
62
62
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
63
63
|
var import_Types = require("../lib/_Types.js");
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
65
|
+
function accept(f) {
|
|
66
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
67
|
+
return f;
|
|
68
|
+
}
|
|
69
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
70
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
71
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
72
|
+
var _, done = false;
|
|
73
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
74
|
+
var context = {};
|
|
75
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
76
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
77
|
+
context.addInitializer = function(f) {
|
|
78
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
79
|
+
extraInitializers.push(accept(f || null));
|
|
80
|
+
};
|
|
81
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
82
|
+
if (kind === "accessor") {
|
|
83
|
+
if (result === void 0) continue;
|
|
84
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
85
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
86
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
87
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
88
|
+
} else if (_ = accept(result)) {
|
|
89
|
+
if (kind === "field") initializers.unshift(_);
|
|
90
|
+
else descriptor[key] = _;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
94
|
+
done = true;
|
|
95
|
+
};
|
|
96
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
97
|
+
var useValue = arguments.length > 2;
|
|
98
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
99
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
100
|
+
}
|
|
101
|
+
return useValue ? value : void 0;
|
|
69
102
|
};
|
|
70
|
-
var ZWaveProtocolCCNodeInformationFrame_1, ZWaveProtocolCCAssignIDs_1, ZWaveProtocolCCFindNodesInRange_1, ZWaveProtocolCCRangeInfo_1, ZWaveProtocolCCCommandComplete_1, ZWaveProtocolCCTransferPresentation_1, ZWaveProtocolCCTransferNodeInformation_1, ZWaveProtocolCCTransferRangeInformation_1, ZWaveProtocolCCTransferEnd_1, ZWaveProtocolCCAssignReturnRoute_1, ZWaveProtocolCCNewNodeRegistered_1, ZWaveProtocolCCNewRangeRegistered_1, ZWaveProtocolCCTransferNewPrimaryControllerComplete_1, ZWaveProtocolCCSUCNodeID_1, ZWaveProtocolCCSetSUC_1, ZWaveProtocolCCSetSUCAck_1, ZWaveProtocolCCStaticRouteRequest_1, ZWaveProtocolCCLost_1, ZWaveProtocolCCAcceptLost_1, ZWaveProtocolCCNOPPower_1, ZWaveProtocolCCReservedIDs_1, ZWaveProtocolCCReserveNodeIDs_1, ZWaveProtocolCCNodesExistReply_1, ZWaveProtocolCCNodesExist_1, ZWaveProtocolCCSetNWIMode_1, ZWaveProtocolCCAssignReturnRoutePriority_1, ZWaveProtocolCCSmartStartIncludedNodeInformation_1;
|
|
71
103
|
var DataRateBitmask;
|
|
72
104
|
(function(DataRateBitmask2) {
|
|
73
105
|
DataRateBitmask2[DataRateBitmask2["9k6"] = 1] = "9k6";
|
|
@@ -80,955 +112,1490 @@ function dataRate2Bitmask(dataRate) {
|
|
|
80
112
|
function bitmask2DataRate(mask) {
|
|
81
113
|
return mask === DataRateBitmask["100k"] ? import_core.ZWaveDataRate["100k"] : mask === DataRateBitmask["40k"] ? import_core.ZWaveDataRate["40k"] : import_core.ZWaveDataRate["9k6"];
|
|
82
114
|
}
|
|
83
|
-
let ZWaveProtocolCC =
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
let
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
115
|
+
let ZWaveProtocolCC = (() => {
|
|
116
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_core.CommandClasses["Z-Wave Protocol"]), (0, import_CommandClassDecorators.implementedVersion)(1)];
|
|
117
|
+
let _classDescriptor;
|
|
118
|
+
let _classExtraInitializers = [];
|
|
119
|
+
let _classThis;
|
|
120
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
121
|
+
var ZWaveProtocolCC2 = class extends _classSuper {
|
|
122
|
+
static {
|
|
123
|
+
_classThis = this;
|
|
124
|
+
}
|
|
125
|
+
static {
|
|
126
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
127
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
128
|
+
ZWaveProtocolCC2 = _classThis = _classDescriptor.value;
|
|
129
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
130
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
return ZWaveProtocolCC2 = _classThis;
|
|
134
|
+
})();
|
|
135
|
+
let ZWaveProtocolCCNodeInformationFrame = (() => {
|
|
136
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NodeInformationFrame)];
|
|
137
|
+
let _classDescriptor;
|
|
138
|
+
let _classExtraInitializers = [];
|
|
139
|
+
let _classThis;
|
|
140
|
+
let _classSuper = ZWaveProtocolCC;
|
|
141
|
+
var ZWaveProtocolCCNodeInformationFrame2 = class extends _classSuper {
|
|
142
|
+
static {
|
|
143
|
+
_classThis = this;
|
|
144
|
+
}
|
|
145
|
+
static {
|
|
146
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
147
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
148
|
+
ZWaveProtocolCCNodeInformationFrame2 = _classThis = _classDescriptor.value;
|
|
149
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
150
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
151
|
+
}
|
|
152
|
+
constructor(options) {
|
|
153
|
+
super(options);
|
|
154
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
155
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
156
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
157
|
+
this.isListening = options.isListening;
|
|
158
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
159
|
+
this.isRouting = options.isRouting;
|
|
160
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
161
|
+
this.protocolVersion = options.protocolVersion;
|
|
162
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
163
|
+
this.nodeType = options.nodeType;
|
|
164
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
165
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
166
|
+
this.supportedCCs = options.supportedCCs;
|
|
167
|
+
}
|
|
168
|
+
static from(raw, ctx) {
|
|
169
|
+
const nif = (0, import_core.parseNodeInformationFrame)(raw.payload);
|
|
170
|
+
return new this({
|
|
171
|
+
nodeId: ctx.sourceNodeId,
|
|
172
|
+
...nif
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
basicDeviceClass;
|
|
176
|
+
genericDeviceClass;
|
|
177
|
+
specificDeviceClass;
|
|
178
|
+
isListening;
|
|
179
|
+
isFrequentListening;
|
|
180
|
+
isRouting;
|
|
181
|
+
supportedDataRates;
|
|
182
|
+
protocolVersion;
|
|
183
|
+
optionalFunctionality;
|
|
184
|
+
nodeType;
|
|
185
|
+
supportsSecurity;
|
|
186
|
+
supportsBeaming;
|
|
187
|
+
supportedCCs;
|
|
188
|
+
serialize(ctx) {
|
|
189
|
+
this.payload = (0, import_core.encodeNodeInformationFrame)(this);
|
|
190
|
+
return super.serialize(ctx);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
return ZWaveProtocolCCNodeInformationFrame2 = _classThis;
|
|
194
|
+
})();
|
|
195
|
+
let ZWaveProtocolCCRequestNodeInformationFrame = (() => {
|
|
196
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.RequestNodeInformationFrame), (0, import_CommandClassDecorators.expectedCCResponse)(ZWaveProtocolCCNodeInformationFrame)];
|
|
197
|
+
let _classDescriptor;
|
|
198
|
+
let _classExtraInitializers = [];
|
|
199
|
+
let _classThis;
|
|
200
|
+
let _classSuper = ZWaveProtocolCC;
|
|
201
|
+
var ZWaveProtocolCCRequestNodeInformationFrame2 = class extends _classSuper {
|
|
202
|
+
static {
|
|
203
|
+
_classThis = this;
|
|
204
|
+
}
|
|
205
|
+
static {
|
|
206
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
207
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
208
|
+
ZWaveProtocolCCRequestNodeInformationFrame2 = _classThis = _classDescriptor.value;
|
|
209
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
210
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
return ZWaveProtocolCCRequestNodeInformationFrame2 = _classThis;
|
|
214
|
+
})();
|
|
215
|
+
let ZWaveProtocolCCAssignIDs = (() => {
|
|
216
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignIDs)];
|
|
217
|
+
let _classDescriptor;
|
|
218
|
+
let _classExtraInitializers = [];
|
|
219
|
+
let _classThis;
|
|
220
|
+
let _classSuper = ZWaveProtocolCC;
|
|
221
|
+
var ZWaveProtocolCCAssignIDs2 = class extends _classSuper {
|
|
222
|
+
static {
|
|
223
|
+
_classThis = this;
|
|
224
|
+
}
|
|
225
|
+
static {
|
|
226
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
227
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
228
|
+
ZWaveProtocolCCAssignIDs2 = _classThis = _classDescriptor.value;
|
|
229
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
230
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
231
|
+
}
|
|
232
|
+
constructor(options) {
|
|
233
|
+
super(options);
|
|
234
|
+
this.assignedNodeId = options.assignedNodeId;
|
|
235
|
+
this.homeId = options.homeId;
|
|
236
|
+
}
|
|
237
|
+
static from(raw, ctx) {
|
|
238
|
+
(0, import_core.validatePayload)(raw.payload.length >= 5);
|
|
239
|
+
const assignedNodeId = raw.payload[0];
|
|
240
|
+
const homeId = raw.payload.readUInt32BE(1);
|
|
241
|
+
return new this({
|
|
242
|
+
nodeId: ctx.sourceNodeId,
|
|
243
|
+
assignedNodeId,
|
|
244
|
+
homeId
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
assignedNodeId;
|
|
248
|
+
homeId;
|
|
249
|
+
serialize(ctx) {
|
|
250
|
+
this.payload = new import_safe.Bytes(5);
|
|
251
|
+
this.payload[0] = this.assignedNodeId;
|
|
252
|
+
this.payload.writeUInt32BE(this.homeId, 1);
|
|
253
|
+
return super.serialize(ctx);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
return ZWaveProtocolCCAssignIDs2 = _classThis;
|
|
257
|
+
})();
|
|
258
|
+
let ZWaveProtocolCCFindNodesInRange = (() => {
|
|
259
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.FindNodesInRange)];
|
|
260
|
+
let _classDescriptor;
|
|
261
|
+
let _classExtraInitializers = [];
|
|
262
|
+
let _classThis;
|
|
263
|
+
let _classSuper = ZWaveProtocolCC;
|
|
264
|
+
var ZWaveProtocolCCFindNodesInRange2 = class extends _classSuper {
|
|
265
|
+
static {
|
|
266
|
+
_classThis = this;
|
|
267
|
+
}
|
|
268
|
+
static {
|
|
269
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
270
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
271
|
+
ZWaveProtocolCCFindNodesInRange2 = _classThis = _classDescriptor.value;
|
|
272
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
273
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
274
|
+
}
|
|
275
|
+
constructor(options) {
|
|
276
|
+
super(options);
|
|
277
|
+
this.candidateNodeIds = options.candidateNodeIds;
|
|
278
|
+
this.wakeUpTime = options.wakeUpTime;
|
|
279
|
+
this.dataRate = options.dataRate ?? import_core.ZWaveDataRate["9k6"];
|
|
280
|
+
}
|
|
281
|
+
static from(raw, ctx) {
|
|
282
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
283
|
+
const speedPresent = raw.payload[0] & 128;
|
|
284
|
+
const bitmaskLength = raw.payload[0] & 31;
|
|
285
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1 + bitmaskLength);
|
|
286
|
+
const candidateNodeIds = (0, import_core.parseBitMask)(raw.payload.subarray(1, 1 + bitmaskLength));
|
|
287
|
+
const rest = raw.payload.subarray(1 + bitmaskLength);
|
|
288
|
+
let dataRate;
|
|
289
|
+
let wakeUpTime;
|
|
290
|
+
if (speedPresent) {
|
|
291
|
+
(0, import_core.validatePayload)(rest.length >= 1);
|
|
292
|
+
if (rest.length === 1) {
|
|
293
|
+
dataRate = rest[0] & 7;
|
|
294
|
+
wakeUpTime = import_Types.WakeUpTime.None;
|
|
295
|
+
} else if (rest.length === 2) {
|
|
296
|
+
wakeUpTime = (0, import_Types.parseWakeUpTime)(rest[0]);
|
|
297
|
+
dataRate = rest[1] & 7;
|
|
298
|
+
} else {
|
|
299
|
+
import_core.validatePayload.fail("Invalid payload length");
|
|
300
|
+
}
|
|
301
|
+
} else if (rest.length >= 1) {
|
|
190
302
|
wakeUpTime = (0, import_Types.parseWakeUpTime)(rest[0]);
|
|
191
|
-
dataRate =
|
|
303
|
+
dataRate = import_core.ZWaveDataRate["9k6"];
|
|
192
304
|
} else {
|
|
193
|
-
|
|
305
|
+
wakeUpTime = import_Types.WakeUpTime.None;
|
|
306
|
+
dataRate = import_core.ZWaveDataRate["9k6"];
|
|
194
307
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
return new ZWaveProtocolCCFindNodesInRange_1({
|
|
203
|
-
nodeId: ctx.sourceNodeId,
|
|
204
|
-
candidateNodeIds,
|
|
205
|
-
dataRate,
|
|
206
|
-
wakeUpTime
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
candidateNodeIds;
|
|
210
|
-
wakeUpTime;
|
|
211
|
-
dataRate;
|
|
212
|
-
serialize(ctx) {
|
|
213
|
-
const nodesBitmask = (0, import_core.encodeBitMask)(this.candidateNodeIds, import_core.MAX_NODES);
|
|
214
|
-
const speedAndLength = 128 | nodesBitmask.length;
|
|
215
|
-
this.payload = import_safe.Bytes.concat([
|
|
216
|
-
import_safe.Bytes.from([speedAndLength]),
|
|
217
|
-
nodesBitmask,
|
|
218
|
-
import_safe.Bytes.from([this.wakeUpTime, this.dataRate])
|
|
219
|
-
]);
|
|
220
|
-
return super.serialize(ctx);
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange_1 = __decorate([
|
|
224
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.FindNodesInRange)
|
|
225
|
-
], ZWaveProtocolCCFindNodesInRange);
|
|
226
|
-
let ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo_1 = class ZWaveProtocolCCRangeInfo2 extends ZWaveProtocolCC {
|
|
227
|
-
constructor(options) {
|
|
228
|
-
super(options);
|
|
229
|
-
this.neighborNodeIds = options.neighborNodeIds;
|
|
230
|
-
this.wakeUpTime = options.wakeUpTime;
|
|
231
|
-
}
|
|
232
|
-
static from(raw, ctx) {
|
|
233
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
234
|
-
const bitmaskLength = raw.payload[0] & 31;
|
|
235
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1 + bitmaskLength);
|
|
236
|
-
const neighborNodeIds = (0, import_core.parseBitMask)(raw.payload.subarray(1, 1 + bitmaskLength));
|
|
237
|
-
let wakeUpTime;
|
|
238
|
-
if (raw.payload.length >= 2 + bitmaskLength) {
|
|
239
|
-
wakeUpTime = (0, import_Types.parseWakeUpTime)(raw.payload[1 + bitmaskLength]);
|
|
240
|
-
}
|
|
241
|
-
return new ZWaveProtocolCCRangeInfo_1({
|
|
242
|
-
nodeId: ctx.sourceNodeId,
|
|
243
|
-
neighborNodeIds,
|
|
244
|
-
wakeUpTime
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
neighborNodeIds;
|
|
248
|
-
wakeUpTime;
|
|
249
|
-
serialize(ctx) {
|
|
250
|
-
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
251
|
-
this.payload = import_safe.Bytes.concat([
|
|
252
|
-
import_safe.Bytes.from([nodesBitmask.length]),
|
|
253
|
-
nodesBitmask,
|
|
254
|
-
this.wakeUpTime != void 0 ? import_safe.Bytes.from([this.wakeUpTime]) : new import_safe.Bytes()
|
|
255
|
-
]);
|
|
256
|
-
return super.serialize(ctx);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo_1 = __decorate([
|
|
260
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.RangeInfo)
|
|
261
|
-
], ZWaveProtocolCCRangeInfo);
|
|
262
|
-
let ZWaveProtocolCCGetNodesInRange = class ZWaveProtocolCCGetNodesInRange2 extends ZWaveProtocolCC {
|
|
263
|
-
};
|
|
264
|
-
ZWaveProtocolCCGetNodesInRange = __decorate([
|
|
265
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.GetNodesInRange),
|
|
266
|
-
(0, import_CommandClassDecorators.expectedCCResponse)(ZWaveProtocolCCRangeInfo)
|
|
267
|
-
], ZWaveProtocolCCGetNodesInRange);
|
|
268
|
-
let ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete_1 = class ZWaveProtocolCCCommandComplete2 extends ZWaveProtocolCC {
|
|
269
|
-
constructor(options) {
|
|
270
|
-
super(options);
|
|
271
|
-
this.sequenceNumber = options.sequenceNumber;
|
|
272
|
-
}
|
|
273
|
-
static from(raw, ctx) {
|
|
274
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
275
|
-
const sequenceNumber = raw.payload[0];
|
|
276
|
-
return new ZWaveProtocolCCCommandComplete_1({
|
|
277
|
-
nodeId: ctx.sourceNodeId,
|
|
278
|
-
sequenceNumber
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
sequenceNumber;
|
|
282
|
-
serialize(ctx) {
|
|
283
|
-
this.payload = import_safe.Bytes.from([this.sequenceNumber]);
|
|
284
|
-
return super.serialize(ctx);
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete_1 = __decorate([
|
|
288
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.CommandComplete)
|
|
289
|
-
], ZWaveProtocolCCCommandComplete);
|
|
290
|
-
let ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation_1 = class ZWaveProtocolCCTransferPresentation2 extends ZWaveProtocolCC {
|
|
291
|
-
constructor(options) {
|
|
292
|
-
super(options);
|
|
293
|
-
if (options.includeNode && options.excludeNode) {
|
|
294
|
-
throw new import_core.ZWaveError(`${this.constructor.name}: the includeNode and excludeNode options cannot both be true`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
295
|
-
}
|
|
296
|
-
this.supportsNWI = options.supportsNWI;
|
|
297
|
-
this.includeNode = options.includeNode;
|
|
298
|
-
this.excludeNode = options.excludeNode;
|
|
299
|
-
}
|
|
300
|
-
static from(raw, ctx) {
|
|
301
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
302
|
-
const option = raw.payload[0];
|
|
303
|
-
const supportsNWI = !!(option & 1);
|
|
304
|
-
const excludeNode = !!(option & 2);
|
|
305
|
-
const includeNode = !!(option & 4);
|
|
306
|
-
return new ZWaveProtocolCCTransferPresentation_1({
|
|
307
|
-
nodeId: ctx.sourceNodeId,
|
|
308
|
-
supportsNWI,
|
|
309
|
-
excludeNode,
|
|
310
|
-
includeNode
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
supportsNWI;
|
|
314
|
-
includeNode;
|
|
315
|
-
excludeNode;
|
|
316
|
-
serialize(ctx) {
|
|
317
|
-
this.payload = import_safe.Bytes.from([
|
|
318
|
-
(this.supportsNWI ? 1 : 0) | (this.excludeNode ? 2 : 0) | (this.includeNode ? 4 : 0)
|
|
319
|
-
]);
|
|
320
|
-
return super.serialize(ctx);
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation_1 = __decorate([
|
|
324
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferPresentation)
|
|
325
|
-
], ZWaveProtocolCCTransferPresentation);
|
|
326
|
-
let ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation_1 = class ZWaveProtocolCCTransferNodeInformation2 extends ZWaveProtocolCC {
|
|
327
|
-
constructor(options) {
|
|
328
|
-
super(options);
|
|
329
|
-
this.sequenceNumber = options.sequenceNumber;
|
|
330
|
-
this.sourceNodeId = options.sourceNodeId;
|
|
331
|
-
this.basicDeviceClass = options.basicDeviceClass;
|
|
332
|
-
this.genericDeviceClass = options.genericDeviceClass;
|
|
333
|
-
this.specificDeviceClass = options.specificDeviceClass;
|
|
334
|
-
this.isListening = options.isListening;
|
|
335
|
-
this.isFrequentListening = options.isFrequentListening;
|
|
336
|
-
this.isRouting = options.isRouting;
|
|
337
|
-
this.supportedDataRates = options.supportedDataRates;
|
|
338
|
-
this.protocolVersion = options.protocolVersion;
|
|
339
|
-
this.optionalFunctionality = options.optionalFunctionality;
|
|
340
|
-
this.nodeType = options.nodeType;
|
|
341
|
-
this.supportsSecurity = options.supportsSecurity;
|
|
342
|
-
this.supportsBeaming = options.supportsBeaming;
|
|
343
|
-
}
|
|
344
|
-
static from(raw, ctx) {
|
|
345
|
-
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
346
|
-
const sequenceNumber = raw.payload[0];
|
|
347
|
-
const sourceNodeId = raw.payload[1];
|
|
348
|
-
const { info } = (0, import_core.parseNodeProtocolInfoAndDeviceClass)(raw.payload.subarray(2));
|
|
349
|
-
return new ZWaveProtocolCCTransferNodeInformation_1({
|
|
350
|
-
nodeId: ctx.sourceNodeId,
|
|
351
|
-
sequenceNumber,
|
|
352
|
-
sourceNodeId,
|
|
353
|
-
...info
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
sequenceNumber;
|
|
357
|
-
sourceNodeId;
|
|
358
|
-
basicDeviceClass;
|
|
359
|
-
genericDeviceClass;
|
|
360
|
-
specificDeviceClass;
|
|
361
|
-
isListening;
|
|
362
|
-
isFrequentListening;
|
|
363
|
-
isRouting;
|
|
364
|
-
supportedDataRates;
|
|
365
|
-
protocolVersion;
|
|
366
|
-
optionalFunctionality;
|
|
367
|
-
nodeType;
|
|
368
|
-
supportsSecurity;
|
|
369
|
-
supportsBeaming;
|
|
370
|
-
serialize(ctx) {
|
|
371
|
-
this.payload = import_safe.Bytes.concat([
|
|
372
|
-
import_safe.Bytes.from([this.sequenceNumber, this.sourceNodeId]),
|
|
373
|
-
(0, import_core.encodeNodeProtocolInfoAndDeviceClass)(this)
|
|
374
|
-
]);
|
|
375
|
-
return super.serialize(ctx);
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation_1 = __decorate([
|
|
379
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferNodeInformation)
|
|
380
|
-
], ZWaveProtocolCCTransferNodeInformation);
|
|
381
|
-
let ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation_1 = class ZWaveProtocolCCTransferRangeInformation2 extends ZWaveProtocolCC {
|
|
382
|
-
constructor(options) {
|
|
383
|
-
super(options);
|
|
384
|
-
this.sequenceNumber = options.sequenceNumber;
|
|
385
|
-
this.testedNodeId = options.testedNodeId;
|
|
386
|
-
this.neighborNodeIds = options.neighborNodeIds;
|
|
387
|
-
}
|
|
388
|
-
static from(raw, ctx) {
|
|
389
|
-
(0, import_core.validatePayload)(raw.payload.length >= 3);
|
|
390
|
-
const sequenceNumber = raw.payload[0];
|
|
391
|
-
const testedNodeId = raw.payload[1];
|
|
392
|
-
const bitmaskLength = raw.payload[2];
|
|
393
|
-
(0, import_core.validatePayload)(raw.payload.length >= 3 + bitmaskLength);
|
|
394
|
-
const neighborNodeIds = (0, import_core.parseBitMask)(raw.payload.subarray(3, 3 + bitmaskLength));
|
|
395
|
-
return new ZWaveProtocolCCTransferRangeInformation_1({
|
|
396
|
-
nodeId: ctx.sourceNodeId,
|
|
397
|
-
sequenceNumber,
|
|
398
|
-
testedNodeId,
|
|
399
|
-
neighborNodeIds
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
sequenceNumber;
|
|
403
|
-
testedNodeId;
|
|
404
|
-
neighborNodeIds;
|
|
405
|
-
serialize(ctx) {
|
|
406
|
-
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
407
|
-
this.payload = import_safe.Bytes.concat([
|
|
408
|
-
import_safe.Bytes.from([
|
|
409
|
-
this.sequenceNumber,
|
|
410
|
-
this.testedNodeId,
|
|
411
|
-
nodesBitmask.length
|
|
412
|
-
]),
|
|
413
|
-
nodesBitmask
|
|
414
|
-
]);
|
|
415
|
-
return super.serialize(ctx);
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation_1 = __decorate([
|
|
419
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferRangeInformation)
|
|
420
|
-
], ZWaveProtocolCCTransferRangeInformation);
|
|
421
|
-
let ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd_1 = class ZWaveProtocolCCTransferEnd2 extends ZWaveProtocolCC {
|
|
422
|
-
constructor(options) {
|
|
423
|
-
super(options);
|
|
424
|
-
this.status = options.status;
|
|
425
|
-
}
|
|
426
|
-
static from(raw, ctx) {
|
|
427
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
428
|
-
const status = raw.payload[0];
|
|
429
|
-
return new ZWaveProtocolCCTransferEnd_1({
|
|
430
|
-
nodeId: ctx.sourceNodeId,
|
|
431
|
-
status
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
status;
|
|
435
|
-
serialize(ctx) {
|
|
436
|
-
this.payload = import_safe.Bytes.from([this.status]);
|
|
437
|
-
return super.serialize(ctx);
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd_1 = __decorate([
|
|
441
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferEnd)
|
|
442
|
-
], ZWaveProtocolCCTransferEnd);
|
|
443
|
-
let ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute_1 = class ZWaveProtocolCCAssignReturnRoute2 extends ZWaveProtocolCC {
|
|
444
|
-
constructor(options) {
|
|
445
|
-
super(options);
|
|
446
|
-
if (options.repeaters.length > import_core.MAX_REPEATERS) {
|
|
447
|
-
throw new import_core.ZWaveError(`${this.constructor.name}: too many repeaters`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
448
|
-
}
|
|
449
|
-
this.destinationNodeId = options.destinationNodeId;
|
|
450
|
-
this.routeIndex = options.routeIndex;
|
|
451
|
-
this.repeaters = options.repeaters;
|
|
452
|
-
this.destinationWakeUp = options.destinationWakeUp;
|
|
453
|
-
this.destinationSpeed = options.destinationSpeed;
|
|
454
|
-
}
|
|
455
|
-
static from(raw, ctx) {
|
|
456
|
-
(0, import_core.validatePayload)(raw.payload.length >= 7);
|
|
457
|
-
const destinationNodeId = raw.payload[0];
|
|
458
|
-
const routeIndex = raw.payload[1] >>> 4;
|
|
459
|
-
const numRepeaters = raw.payload[1] & 15;
|
|
460
|
-
const repeaters = [...raw.payload.subarray(2, 2 + numRepeaters)];
|
|
461
|
-
const speedAndWakeup = raw.payload[2 + numRepeaters];
|
|
462
|
-
const destinationSpeed = bitmask2DataRate(speedAndWakeup >>> 3 & 7);
|
|
463
|
-
const destinationWakeUp = speedAndWakeup >>> 1 & 3;
|
|
464
|
-
return new ZWaveProtocolCCAssignReturnRoute_1({
|
|
465
|
-
nodeId: ctx.sourceNodeId,
|
|
466
|
-
destinationNodeId,
|
|
467
|
-
routeIndex,
|
|
468
|
-
repeaters,
|
|
469
|
-
destinationSpeed,
|
|
470
|
-
destinationWakeUp
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
destinationNodeId;
|
|
474
|
-
routeIndex;
|
|
475
|
-
repeaters;
|
|
476
|
-
destinationWakeUp;
|
|
477
|
-
destinationSpeed;
|
|
478
|
-
serialize(ctx) {
|
|
479
|
-
const routeByte = this.routeIndex << 4 | this.repeaters.length;
|
|
480
|
-
const speedMask = dataRate2Bitmask(this.destinationSpeed);
|
|
481
|
-
const speedByte = speedMask << 3 | this.destinationWakeUp << 1;
|
|
482
|
-
this.payload = import_safe.Bytes.from([
|
|
483
|
-
this.destinationNodeId,
|
|
484
|
-
routeByte,
|
|
485
|
-
...this.repeaters,
|
|
486
|
-
speedByte
|
|
487
|
-
]);
|
|
488
|
-
return super.serialize(ctx);
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute_1 = __decorate([
|
|
492
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignReturnRoute)
|
|
493
|
-
], ZWaveProtocolCCAssignReturnRoute);
|
|
494
|
-
let ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered_1 = class ZWaveProtocolCCNewNodeRegistered2 extends ZWaveProtocolCC {
|
|
495
|
-
constructor(options) {
|
|
496
|
-
super(options);
|
|
497
|
-
this.newNodeId = options.newNodeId;
|
|
498
|
-
this.basicDeviceClass = options.basicDeviceClass;
|
|
499
|
-
this.genericDeviceClass = options.genericDeviceClass;
|
|
500
|
-
this.specificDeviceClass = options.specificDeviceClass;
|
|
501
|
-
this.isListening = options.isListening;
|
|
502
|
-
this.isFrequentListening = options.isFrequentListening;
|
|
503
|
-
this.isRouting = options.isRouting;
|
|
504
|
-
this.supportedDataRates = options.supportedDataRates;
|
|
505
|
-
this.protocolVersion = options.protocolVersion;
|
|
506
|
-
this.optionalFunctionality = options.optionalFunctionality;
|
|
507
|
-
this.nodeType = options.nodeType;
|
|
508
|
-
this.supportsSecurity = options.supportsSecurity;
|
|
509
|
-
this.supportsBeaming = options.supportsBeaming;
|
|
510
|
-
this.supportedCCs = options.supportedCCs;
|
|
511
|
-
}
|
|
512
|
-
static from(raw, ctx) {
|
|
513
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
514
|
-
const newNodeId = raw.payload[0];
|
|
515
|
-
const nif = (0, import_core.parseNodeInformationFrame)(raw.payload.subarray(1));
|
|
516
|
-
return new ZWaveProtocolCCNewNodeRegistered_1({
|
|
517
|
-
nodeId: ctx.sourceNodeId,
|
|
518
|
-
newNodeId,
|
|
519
|
-
...nif
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
newNodeId;
|
|
523
|
-
basicDeviceClass;
|
|
524
|
-
genericDeviceClass;
|
|
525
|
-
specificDeviceClass;
|
|
526
|
-
isListening;
|
|
527
|
-
isFrequentListening;
|
|
528
|
-
isRouting;
|
|
529
|
-
supportedDataRates;
|
|
530
|
-
protocolVersion;
|
|
531
|
-
optionalFunctionality;
|
|
532
|
-
nodeType;
|
|
533
|
-
supportsSecurity;
|
|
534
|
-
supportsBeaming;
|
|
535
|
-
supportedCCs;
|
|
536
|
-
serialize(ctx) {
|
|
537
|
-
this.payload = import_safe.Bytes.concat([
|
|
538
|
-
import_safe.Bytes.from([this.newNodeId]),
|
|
539
|
-
(0, import_core.encodeNodeInformationFrame)(this)
|
|
540
|
-
]);
|
|
541
|
-
return super.serialize(ctx);
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered_1 = __decorate([
|
|
545
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NewNodeRegistered)
|
|
546
|
-
], ZWaveProtocolCCNewNodeRegistered);
|
|
547
|
-
let ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered_1 = class ZWaveProtocolCCNewRangeRegistered2 extends ZWaveProtocolCC {
|
|
548
|
-
constructor(options) {
|
|
549
|
-
super(options);
|
|
550
|
-
this.testedNodeId = options.testedNodeId;
|
|
551
|
-
this.neighborNodeIds = options.neighborNodeIds;
|
|
552
|
-
}
|
|
553
|
-
static from(raw, ctx) {
|
|
554
|
-
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
555
|
-
const testedNodeId = raw.payload[0];
|
|
556
|
-
const numNeighbors = raw.payload[1];
|
|
557
|
-
const neighborNodeIds = [
|
|
558
|
-
...raw.payload.subarray(2, 2 + numNeighbors)
|
|
559
|
-
];
|
|
560
|
-
return new ZWaveProtocolCCNewRangeRegistered_1({
|
|
561
|
-
nodeId: ctx.sourceNodeId,
|
|
562
|
-
testedNodeId,
|
|
563
|
-
neighborNodeIds
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
testedNodeId;
|
|
567
|
-
neighborNodeIds;
|
|
568
|
-
serialize(ctx) {
|
|
569
|
-
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
570
|
-
this.payload = import_safe.Bytes.concat([
|
|
571
|
-
import_safe.Bytes.from([this.testedNodeId, nodesBitmask.length]),
|
|
572
|
-
nodesBitmask
|
|
573
|
-
]);
|
|
574
|
-
return super.serialize(ctx);
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered_1 = __decorate([
|
|
578
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NewRangeRegistered)
|
|
579
|
-
], ZWaveProtocolCCNewRangeRegistered);
|
|
580
|
-
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete_1 = class ZWaveProtocolCCTransferNewPrimaryControllerComplete2 extends ZWaveProtocolCC {
|
|
581
|
-
constructor(options) {
|
|
582
|
-
super(options);
|
|
583
|
-
this.genericDeviceClass = options.genericDeviceClass;
|
|
584
|
-
}
|
|
585
|
-
static from(raw, ctx) {
|
|
586
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
587
|
-
const genericDeviceClass = raw.payload[0];
|
|
588
|
-
return new ZWaveProtocolCCTransferNewPrimaryControllerComplete_1({
|
|
589
|
-
nodeId: ctx.sourceNodeId,
|
|
590
|
-
genericDeviceClass
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
genericDeviceClass;
|
|
594
|
-
serialize(ctx) {
|
|
595
|
-
this.payload = import_safe.Bytes.from([this.genericDeviceClass]);
|
|
596
|
-
return super.serialize(ctx);
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete_1 = __decorate([
|
|
600
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)
|
|
601
|
-
], ZWaveProtocolCCTransferNewPrimaryControllerComplete);
|
|
602
|
-
let ZWaveProtocolCCAutomaticControllerUpdateStart = class ZWaveProtocolCCAutomaticControllerUpdateStart2 extends ZWaveProtocolCC {
|
|
603
|
-
};
|
|
604
|
-
ZWaveProtocolCCAutomaticControllerUpdateStart = __decorate([
|
|
605
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AutomaticControllerUpdateStart)
|
|
606
|
-
], ZWaveProtocolCCAutomaticControllerUpdateStart);
|
|
607
|
-
let ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID_1 = class ZWaveProtocolCCSUCNodeID2 extends ZWaveProtocolCC {
|
|
608
|
-
constructor(options) {
|
|
609
|
-
super(options);
|
|
610
|
-
this.sucNodeId = options.sucNodeId;
|
|
611
|
-
this.isSIS = options.isSIS;
|
|
612
|
-
}
|
|
613
|
-
static from(raw, ctx) {
|
|
614
|
-
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
615
|
-
const sucNodeId = raw.payload[0];
|
|
616
|
-
const capabilities = raw.payload[1] ?? 0;
|
|
617
|
-
const isSIS = !!(capabilities & 1);
|
|
618
|
-
return new ZWaveProtocolCCSUCNodeID_1({
|
|
619
|
-
nodeId: ctx.sourceNodeId,
|
|
620
|
-
sucNodeId,
|
|
621
|
-
isSIS
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
sucNodeId;
|
|
625
|
-
isSIS;
|
|
626
|
-
serialize(ctx) {
|
|
627
|
-
this.payload = import_safe.Bytes.from([this.sucNodeId, this.isSIS ? 1 : 0]);
|
|
628
|
-
return super.serialize(ctx);
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID_1 = __decorate([
|
|
632
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SUCNodeID)
|
|
633
|
-
], ZWaveProtocolCCSUCNodeID);
|
|
634
|
-
let ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC_1 = class ZWaveProtocolCCSetSUC2 extends ZWaveProtocolCC {
|
|
635
|
-
constructor(options) {
|
|
636
|
-
super(options);
|
|
637
|
-
this.enableSIS = options.enableSIS;
|
|
638
|
-
}
|
|
639
|
-
static from(raw, ctx) {
|
|
640
|
-
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
641
|
-
const capabilities = raw.payload[1] ?? 0;
|
|
642
|
-
const enableSIS = !!(capabilities & 1);
|
|
643
|
-
return new ZWaveProtocolCCSetSUC_1({
|
|
644
|
-
nodeId: ctx.sourceNodeId,
|
|
645
|
-
enableSIS
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
enableSIS;
|
|
649
|
-
serialize(ctx) {
|
|
650
|
-
this.payload = import_safe.Bytes.from([1, this.enableSIS ? 1 : 0]);
|
|
651
|
-
return super.serialize(ctx);
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC_1 = __decorate([
|
|
655
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SetSUC)
|
|
656
|
-
], ZWaveProtocolCCSetSUC);
|
|
657
|
-
let ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck_1 = class ZWaveProtocolCCSetSUCAck2 extends ZWaveProtocolCC {
|
|
658
|
-
constructor(options) {
|
|
659
|
-
super(options);
|
|
660
|
-
this.accepted = options.accepted;
|
|
661
|
-
this.isSIS = options.isSIS;
|
|
662
|
-
}
|
|
663
|
-
static from(raw, ctx) {
|
|
664
|
-
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
665
|
-
const accepted = raw.payload[0] === 1;
|
|
666
|
-
const capabilities = raw.payload[1] ?? 0;
|
|
667
|
-
const isSIS = !!(capabilities & 1);
|
|
668
|
-
return new ZWaveProtocolCCSetSUCAck_1({
|
|
669
|
-
nodeId: ctx.sourceNodeId,
|
|
670
|
-
accepted,
|
|
671
|
-
isSIS
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
accepted;
|
|
675
|
-
isSIS;
|
|
676
|
-
serialize(ctx) {
|
|
677
|
-
this.payload = import_safe.Bytes.from([
|
|
678
|
-
this.accepted ? 1 : 0,
|
|
679
|
-
this.isSIS ? 1 : 0
|
|
680
|
-
]);
|
|
681
|
-
return super.serialize(ctx);
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck_1 = __decorate([
|
|
685
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SetSUCAck)
|
|
686
|
-
], ZWaveProtocolCCSetSUCAck);
|
|
687
|
-
let ZWaveProtocolCCAssignSUCReturnRoute = class ZWaveProtocolCCAssignSUCReturnRoute2 extends ZWaveProtocolCCAssignReturnRoute {
|
|
688
|
-
};
|
|
689
|
-
ZWaveProtocolCCAssignSUCReturnRoute = __decorate([
|
|
690
|
-
(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignSUCReturnRoute)
|
|
691
|
-
], ZWaveProtocolCCAssignSUCReturnRoute);
|
|
692
|
-
let ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest_1 = class ZWaveProtocolCCStaticRouteRequest2 extends ZWaveProtocolCC {
|
|
693
|
-
constructor(options) {
|
|
694
|
-
super(options);
|
|
695
|
-
if (options.nodeIds.some((n) => n < 1 || n > import_core.MAX_NODES)) {
|
|
696
|
-
throw new import_core.ZWaveError(`All node IDs must be between 1 and ${import_core.MAX_NODES}!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
697
|
-
}
|
|
698
|
-
this.nodeIds = options.nodeIds;
|
|
699
|
-
}
|
|
700
|
-
static from(raw, ctx) {
|
|
701
|
-
(0, import_core.validatePayload)(raw.payload.length >= 5);
|
|
702
|
-
const nodeIds = [...raw.payload.subarray(0, 5)].filter((id) => id > 0 && id <= import_core.MAX_NODES);
|
|
703
|
-
return new ZWaveProtocolCCStaticRouteRequest_1({
|
|
704
|
-
nodeId: ctx.sourceNodeId,
|
|
705
|
-
nodeIds
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
nodeIds;
|
|
709
|
-
serialize(ctx) {
|
|
710
|
-
this.payload = import_safe.Bytes.alloc(5, 0);
|
|
711
|
-
for (let i = 0; i < this.nodeIds.length && i < 5; i++) {
|
|
712
|
-
this.payload[i] = this.nodeIds[i];
|
|
308
|
+
return new this({
|
|
309
|
+
nodeId: ctx.sourceNodeId,
|
|
310
|
+
candidateNodeIds,
|
|
311
|
+
dataRate,
|
|
312
|
+
wakeUpTime
|
|
313
|
+
});
|
|
713
314
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
]
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
if (
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
]
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
315
|
+
candidateNodeIds;
|
|
316
|
+
wakeUpTime;
|
|
317
|
+
dataRate;
|
|
318
|
+
serialize(ctx) {
|
|
319
|
+
const nodesBitmask = (0, import_core.encodeBitMask)(this.candidateNodeIds, import_core.MAX_NODES);
|
|
320
|
+
const speedAndLength = 128 | nodesBitmask.length;
|
|
321
|
+
this.payload = import_safe.Bytes.concat([
|
|
322
|
+
import_safe.Bytes.from([speedAndLength]),
|
|
323
|
+
nodesBitmask,
|
|
324
|
+
import_safe.Bytes.from([this.wakeUpTime, this.dataRate])
|
|
325
|
+
]);
|
|
326
|
+
return super.serialize(ctx);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
return ZWaveProtocolCCFindNodesInRange2 = _classThis;
|
|
330
|
+
})();
|
|
331
|
+
let ZWaveProtocolCCRangeInfo = (() => {
|
|
332
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.RangeInfo)];
|
|
333
|
+
let _classDescriptor;
|
|
334
|
+
let _classExtraInitializers = [];
|
|
335
|
+
let _classThis;
|
|
336
|
+
let _classSuper = ZWaveProtocolCC;
|
|
337
|
+
var ZWaveProtocolCCRangeInfo2 = class extends _classSuper {
|
|
338
|
+
static {
|
|
339
|
+
_classThis = this;
|
|
340
|
+
}
|
|
341
|
+
static {
|
|
342
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
343
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
344
|
+
ZWaveProtocolCCRangeInfo2 = _classThis = _classDescriptor.value;
|
|
345
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
346
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
347
|
+
}
|
|
348
|
+
constructor(options) {
|
|
349
|
+
super(options);
|
|
350
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
351
|
+
this.wakeUpTime = options.wakeUpTime;
|
|
352
|
+
}
|
|
353
|
+
static from(raw, ctx) {
|
|
354
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
355
|
+
const bitmaskLength = raw.payload[0] & 31;
|
|
356
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1 + bitmaskLength);
|
|
357
|
+
const neighborNodeIds = (0, import_core.parseBitMask)(raw.payload.subarray(1, 1 + bitmaskLength));
|
|
358
|
+
let wakeUpTime;
|
|
359
|
+
if (raw.payload.length >= 2 + bitmaskLength) {
|
|
360
|
+
wakeUpTime = (0, import_Types.parseWakeUpTime)(raw.payload[1 + bitmaskLength]);
|
|
361
|
+
}
|
|
362
|
+
return new this({
|
|
363
|
+
nodeId: ctx.sourceNodeId,
|
|
364
|
+
neighborNodeIds,
|
|
365
|
+
wakeUpTime
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
neighborNodeIds;
|
|
369
|
+
wakeUpTime;
|
|
370
|
+
serialize(ctx) {
|
|
371
|
+
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
372
|
+
this.payload = import_safe.Bytes.concat([
|
|
373
|
+
import_safe.Bytes.from([nodesBitmask.length]),
|
|
374
|
+
nodesBitmask,
|
|
375
|
+
this.wakeUpTime != void 0 ? import_safe.Bytes.from([this.wakeUpTime]) : new import_safe.Bytes()
|
|
376
|
+
]);
|
|
377
|
+
return super.serialize(ctx);
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
return ZWaveProtocolCCRangeInfo2 = _classThis;
|
|
381
|
+
})();
|
|
382
|
+
let ZWaveProtocolCCGetNodesInRange = (() => {
|
|
383
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.GetNodesInRange), (0, import_CommandClassDecorators.expectedCCResponse)(ZWaveProtocolCCRangeInfo)];
|
|
384
|
+
let _classDescriptor;
|
|
385
|
+
let _classExtraInitializers = [];
|
|
386
|
+
let _classThis;
|
|
387
|
+
let _classSuper = ZWaveProtocolCC;
|
|
388
|
+
var ZWaveProtocolCCGetNodesInRange2 = class extends _classSuper {
|
|
389
|
+
static {
|
|
390
|
+
_classThis = this;
|
|
391
|
+
}
|
|
392
|
+
static {
|
|
393
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
394
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
395
|
+
ZWaveProtocolCCGetNodesInRange2 = _classThis = _classDescriptor.value;
|
|
396
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
397
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
return ZWaveProtocolCCGetNodesInRange2 = _classThis;
|
|
401
|
+
})();
|
|
402
|
+
let ZWaveProtocolCCCommandComplete = (() => {
|
|
403
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.CommandComplete)];
|
|
404
|
+
let _classDescriptor;
|
|
405
|
+
let _classExtraInitializers = [];
|
|
406
|
+
let _classThis;
|
|
407
|
+
let _classSuper = ZWaveProtocolCC;
|
|
408
|
+
var ZWaveProtocolCCCommandComplete2 = class extends _classSuper {
|
|
409
|
+
static {
|
|
410
|
+
_classThis = this;
|
|
411
|
+
}
|
|
412
|
+
static {
|
|
413
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
414
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
415
|
+
ZWaveProtocolCCCommandComplete2 = _classThis = _classDescriptor.value;
|
|
416
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
417
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
418
|
+
}
|
|
419
|
+
constructor(options) {
|
|
420
|
+
super(options);
|
|
421
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
422
|
+
}
|
|
423
|
+
static from(raw, ctx) {
|
|
424
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
425
|
+
const sequenceNumber = raw.payload[0];
|
|
426
|
+
return new this({
|
|
427
|
+
nodeId: ctx.sourceNodeId,
|
|
428
|
+
sequenceNumber
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
sequenceNumber;
|
|
432
|
+
serialize(ctx) {
|
|
433
|
+
this.payload = import_safe.Bytes.from([this.sequenceNumber]);
|
|
434
|
+
return super.serialize(ctx);
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
return ZWaveProtocolCCCommandComplete2 = _classThis;
|
|
438
|
+
})();
|
|
439
|
+
let ZWaveProtocolCCTransferPresentation = (() => {
|
|
440
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferPresentation)];
|
|
441
|
+
let _classDescriptor;
|
|
442
|
+
let _classExtraInitializers = [];
|
|
443
|
+
let _classThis;
|
|
444
|
+
let _classSuper = ZWaveProtocolCC;
|
|
445
|
+
var ZWaveProtocolCCTransferPresentation2 = class extends _classSuper {
|
|
446
|
+
static {
|
|
447
|
+
_classThis = this;
|
|
448
|
+
}
|
|
449
|
+
static {
|
|
450
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
451
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
452
|
+
ZWaveProtocolCCTransferPresentation2 = _classThis = _classDescriptor.value;
|
|
453
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
454
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
455
|
+
}
|
|
456
|
+
constructor(options) {
|
|
457
|
+
super(options);
|
|
458
|
+
if (options.includeNode && options.excludeNode) {
|
|
459
|
+
throw new import_core.ZWaveError(`${this.constructor.name}: the includeNode and excludeNode options cannot both be true`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
460
|
+
}
|
|
461
|
+
this.supportsNWI = options.supportsNWI;
|
|
462
|
+
this.includeNode = options.includeNode;
|
|
463
|
+
this.excludeNode = options.excludeNode;
|
|
464
|
+
}
|
|
465
|
+
static from(raw, ctx) {
|
|
466
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
467
|
+
const option = raw.payload[0];
|
|
468
|
+
const supportsNWI = !!(option & 1);
|
|
469
|
+
const excludeNode = !!(option & 2);
|
|
470
|
+
const includeNode = !!(option & 4);
|
|
471
|
+
return new this({
|
|
472
|
+
nodeId: ctx.sourceNodeId,
|
|
473
|
+
supportsNWI,
|
|
474
|
+
excludeNode,
|
|
475
|
+
includeNode
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
supportsNWI;
|
|
479
|
+
includeNode;
|
|
480
|
+
excludeNode;
|
|
481
|
+
serialize(ctx) {
|
|
482
|
+
this.payload = import_safe.Bytes.from([
|
|
483
|
+
(this.supportsNWI ? 1 : 0) | (this.excludeNode ? 2 : 0) | (this.includeNode ? 4 : 0)
|
|
484
|
+
]);
|
|
485
|
+
return super.serialize(ctx);
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
return ZWaveProtocolCCTransferPresentation2 = _classThis;
|
|
489
|
+
})();
|
|
490
|
+
let ZWaveProtocolCCTransferNodeInformation = (() => {
|
|
491
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferNodeInformation)];
|
|
492
|
+
let _classDescriptor;
|
|
493
|
+
let _classExtraInitializers = [];
|
|
494
|
+
let _classThis;
|
|
495
|
+
let _classSuper = ZWaveProtocolCC;
|
|
496
|
+
var ZWaveProtocolCCTransferNodeInformation2 = class extends _classSuper {
|
|
497
|
+
static {
|
|
498
|
+
_classThis = this;
|
|
499
|
+
}
|
|
500
|
+
static {
|
|
501
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
502
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
503
|
+
ZWaveProtocolCCTransferNodeInformation2 = _classThis = _classDescriptor.value;
|
|
504
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
505
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
506
|
+
}
|
|
507
|
+
constructor(options) {
|
|
508
|
+
super(options);
|
|
509
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
510
|
+
this.sourceNodeId = options.sourceNodeId;
|
|
511
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
512
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
513
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
514
|
+
this.isListening = options.isListening;
|
|
515
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
516
|
+
this.isRouting = options.isRouting;
|
|
517
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
518
|
+
this.protocolVersion = options.protocolVersion;
|
|
519
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
520
|
+
this.nodeType = options.nodeType;
|
|
521
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
522
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
523
|
+
}
|
|
524
|
+
static from(raw, ctx) {
|
|
525
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
526
|
+
const sequenceNumber = raw.payload[0];
|
|
527
|
+
const sourceNodeId = raw.payload[1];
|
|
528
|
+
const { info } = (0, import_core.parseNodeProtocolInfoAndDeviceClass)(raw.payload.subarray(2));
|
|
529
|
+
return new this({
|
|
530
|
+
nodeId: ctx.sourceNodeId,
|
|
531
|
+
sequenceNumber,
|
|
532
|
+
sourceNodeId,
|
|
533
|
+
...info
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
sequenceNumber;
|
|
537
|
+
sourceNodeId;
|
|
538
|
+
basicDeviceClass;
|
|
539
|
+
genericDeviceClass;
|
|
540
|
+
specificDeviceClass;
|
|
541
|
+
isListening;
|
|
542
|
+
isFrequentListening;
|
|
543
|
+
isRouting;
|
|
544
|
+
supportedDataRates;
|
|
545
|
+
protocolVersion;
|
|
546
|
+
optionalFunctionality;
|
|
547
|
+
nodeType;
|
|
548
|
+
supportsSecurity;
|
|
549
|
+
supportsBeaming;
|
|
550
|
+
serialize(ctx) {
|
|
551
|
+
this.payload = import_safe.Bytes.concat([
|
|
552
|
+
import_safe.Bytes.from([this.sequenceNumber, this.sourceNodeId]),
|
|
553
|
+
(0, import_core.encodeNodeProtocolInfoAndDeviceClass)(this)
|
|
554
|
+
]);
|
|
555
|
+
return super.serialize(ctx);
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
return ZWaveProtocolCCTransferNodeInformation2 = _classThis;
|
|
559
|
+
})();
|
|
560
|
+
let ZWaveProtocolCCTransferRangeInformation = (() => {
|
|
561
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferRangeInformation)];
|
|
562
|
+
let _classDescriptor;
|
|
563
|
+
let _classExtraInitializers = [];
|
|
564
|
+
let _classThis;
|
|
565
|
+
let _classSuper = ZWaveProtocolCC;
|
|
566
|
+
var ZWaveProtocolCCTransferRangeInformation2 = class extends _classSuper {
|
|
567
|
+
static {
|
|
568
|
+
_classThis = this;
|
|
569
|
+
}
|
|
570
|
+
static {
|
|
571
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
572
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
573
|
+
ZWaveProtocolCCTransferRangeInformation2 = _classThis = _classDescriptor.value;
|
|
574
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
575
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
576
|
+
}
|
|
577
|
+
constructor(options) {
|
|
578
|
+
super(options);
|
|
579
|
+
this.sequenceNumber = options.sequenceNumber;
|
|
580
|
+
this.testedNodeId = options.testedNodeId;
|
|
581
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
582
|
+
}
|
|
583
|
+
static from(raw, ctx) {
|
|
584
|
+
(0, import_core.validatePayload)(raw.payload.length >= 3);
|
|
585
|
+
const sequenceNumber = raw.payload[0];
|
|
586
|
+
const testedNodeId = raw.payload[1];
|
|
587
|
+
const bitmaskLength = raw.payload[2];
|
|
588
|
+
(0, import_core.validatePayload)(raw.payload.length >= 3 + bitmaskLength);
|
|
589
|
+
const neighborNodeIds = (0, import_core.parseBitMask)(raw.payload.subarray(3, 3 + bitmaskLength));
|
|
590
|
+
return new this({
|
|
591
|
+
nodeId: ctx.sourceNodeId,
|
|
592
|
+
sequenceNumber,
|
|
593
|
+
testedNodeId,
|
|
594
|
+
neighborNodeIds
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
sequenceNumber;
|
|
598
|
+
testedNodeId;
|
|
599
|
+
neighborNodeIds;
|
|
600
|
+
serialize(ctx) {
|
|
601
|
+
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
602
|
+
this.payload = import_safe.Bytes.concat([
|
|
603
|
+
import_safe.Bytes.from([
|
|
604
|
+
this.sequenceNumber,
|
|
605
|
+
this.testedNodeId,
|
|
606
|
+
nodesBitmask.length
|
|
607
|
+
]),
|
|
608
|
+
nodesBitmask
|
|
609
|
+
]);
|
|
610
|
+
return super.serialize(ctx);
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
return ZWaveProtocolCCTransferRangeInformation2 = _classThis;
|
|
614
|
+
})();
|
|
615
|
+
let ZWaveProtocolCCTransferEnd = (() => {
|
|
616
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferEnd)];
|
|
617
|
+
let _classDescriptor;
|
|
618
|
+
let _classExtraInitializers = [];
|
|
619
|
+
let _classThis;
|
|
620
|
+
let _classSuper = ZWaveProtocolCC;
|
|
621
|
+
var ZWaveProtocolCCTransferEnd2 = class extends _classSuper {
|
|
622
|
+
static {
|
|
623
|
+
_classThis = this;
|
|
624
|
+
}
|
|
625
|
+
static {
|
|
626
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
627
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
628
|
+
ZWaveProtocolCCTransferEnd2 = _classThis = _classDescriptor.value;
|
|
629
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
630
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
631
|
+
}
|
|
632
|
+
constructor(options) {
|
|
633
|
+
super(options);
|
|
634
|
+
this.status = options.status;
|
|
635
|
+
}
|
|
636
|
+
static from(raw, ctx) {
|
|
637
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
638
|
+
const status = raw.payload[0];
|
|
639
|
+
return new this({
|
|
640
|
+
nodeId: ctx.sourceNodeId,
|
|
641
|
+
status
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
status;
|
|
645
|
+
serialize(ctx) {
|
|
646
|
+
this.payload = import_safe.Bytes.from([this.status]);
|
|
647
|
+
return super.serialize(ctx);
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
return ZWaveProtocolCCTransferEnd2 = _classThis;
|
|
651
|
+
})();
|
|
652
|
+
let ZWaveProtocolCCAssignReturnRoute = (() => {
|
|
653
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignReturnRoute)];
|
|
654
|
+
let _classDescriptor;
|
|
655
|
+
let _classExtraInitializers = [];
|
|
656
|
+
let _classThis;
|
|
657
|
+
let _classSuper = ZWaveProtocolCC;
|
|
658
|
+
var ZWaveProtocolCCAssignReturnRoute2 = class extends _classSuper {
|
|
659
|
+
static {
|
|
660
|
+
_classThis = this;
|
|
661
|
+
}
|
|
662
|
+
static {
|
|
663
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
664
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
665
|
+
ZWaveProtocolCCAssignReturnRoute2 = _classThis = _classDescriptor.value;
|
|
666
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
667
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
668
|
+
}
|
|
669
|
+
constructor(options) {
|
|
670
|
+
super(options);
|
|
671
|
+
if (options.repeaters.length > import_core.MAX_REPEATERS) {
|
|
672
|
+
throw new import_core.ZWaveError(`${this.constructor.name}: too many repeaters`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
673
|
+
}
|
|
674
|
+
this.destinationNodeId = options.destinationNodeId;
|
|
675
|
+
this.routeIndex = options.routeIndex;
|
|
676
|
+
this.repeaters = options.repeaters;
|
|
677
|
+
this.destinationWakeUp = options.destinationWakeUp;
|
|
678
|
+
this.destinationSpeed = options.destinationSpeed;
|
|
679
|
+
}
|
|
680
|
+
static from(raw, ctx) {
|
|
681
|
+
(0, import_core.validatePayload)(raw.payload.length >= 7);
|
|
682
|
+
const destinationNodeId = raw.payload[0];
|
|
683
|
+
const routeIndex = raw.payload[1] >>> 4;
|
|
684
|
+
const numRepeaters = raw.payload[1] & 15;
|
|
685
|
+
const repeaters = [...raw.payload.subarray(2, 2 + numRepeaters)];
|
|
686
|
+
const speedAndWakeup = raw.payload[2 + numRepeaters];
|
|
687
|
+
const destinationSpeed = bitmask2DataRate(speedAndWakeup >>> 3 & 7);
|
|
688
|
+
const destinationWakeUp = speedAndWakeup >>> 1 & 3;
|
|
689
|
+
return new this({
|
|
690
|
+
nodeId: ctx.sourceNodeId,
|
|
691
|
+
destinationNodeId,
|
|
692
|
+
routeIndex,
|
|
693
|
+
repeaters,
|
|
694
|
+
destinationSpeed,
|
|
695
|
+
destinationWakeUp
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
destinationNodeId;
|
|
699
|
+
routeIndex;
|
|
700
|
+
repeaters;
|
|
701
|
+
destinationWakeUp;
|
|
702
|
+
destinationSpeed;
|
|
703
|
+
serialize(ctx) {
|
|
704
|
+
const routeByte = this.routeIndex << 4 | this.repeaters.length;
|
|
705
|
+
const speedMask = dataRate2Bitmask(this.destinationSpeed);
|
|
706
|
+
const speedByte = speedMask << 3 | this.destinationWakeUp << 1;
|
|
707
|
+
this.payload = import_safe.Bytes.from([
|
|
708
|
+
this.destinationNodeId,
|
|
709
|
+
routeByte,
|
|
710
|
+
...this.repeaters,
|
|
711
|
+
speedByte
|
|
712
|
+
]);
|
|
713
|
+
return super.serialize(ctx);
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
return ZWaveProtocolCCAssignReturnRoute2 = _classThis;
|
|
717
|
+
})();
|
|
718
|
+
let ZWaveProtocolCCNewNodeRegistered = (() => {
|
|
719
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NewNodeRegistered)];
|
|
720
|
+
let _classDescriptor;
|
|
721
|
+
let _classExtraInitializers = [];
|
|
722
|
+
let _classThis;
|
|
723
|
+
let _classSuper = ZWaveProtocolCC;
|
|
724
|
+
var ZWaveProtocolCCNewNodeRegistered2 = class extends _classSuper {
|
|
725
|
+
static {
|
|
726
|
+
_classThis = this;
|
|
727
|
+
}
|
|
728
|
+
static {
|
|
729
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
730
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
731
|
+
ZWaveProtocolCCNewNodeRegistered2 = _classThis = _classDescriptor.value;
|
|
732
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
733
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
734
|
+
}
|
|
735
|
+
constructor(options) {
|
|
736
|
+
super(options);
|
|
737
|
+
this.newNodeId = options.newNodeId;
|
|
738
|
+
this.basicDeviceClass = options.basicDeviceClass;
|
|
739
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
740
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
741
|
+
this.isListening = options.isListening;
|
|
742
|
+
this.isFrequentListening = options.isFrequentListening;
|
|
743
|
+
this.isRouting = options.isRouting;
|
|
744
|
+
this.supportedDataRates = options.supportedDataRates;
|
|
745
|
+
this.protocolVersion = options.protocolVersion;
|
|
746
|
+
this.optionalFunctionality = options.optionalFunctionality;
|
|
747
|
+
this.nodeType = options.nodeType;
|
|
748
|
+
this.supportsSecurity = options.supportsSecurity;
|
|
749
|
+
this.supportsBeaming = options.supportsBeaming;
|
|
750
|
+
this.supportedCCs = options.supportedCCs;
|
|
751
|
+
}
|
|
752
|
+
static from(raw, ctx) {
|
|
753
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
754
|
+
const newNodeId = raw.payload[0];
|
|
755
|
+
const nif = (0, import_core.parseNodeInformationFrame)(raw.payload.subarray(1));
|
|
756
|
+
return new this({
|
|
757
|
+
nodeId: ctx.sourceNodeId,
|
|
758
|
+
newNodeId,
|
|
759
|
+
...nif
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
newNodeId;
|
|
763
|
+
basicDeviceClass;
|
|
764
|
+
genericDeviceClass;
|
|
765
|
+
specificDeviceClass;
|
|
766
|
+
isListening;
|
|
767
|
+
isFrequentListening;
|
|
768
|
+
isRouting;
|
|
769
|
+
supportedDataRates;
|
|
770
|
+
protocolVersion;
|
|
771
|
+
optionalFunctionality;
|
|
772
|
+
nodeType;
|
|
773
|
+
supportsSecurity;
|
|
774
|
+
supportsBeaming;
|
|
775
|
+
supportedCCs;
|
|
776
|
+
serialize(ctx) {
|
|
777
|
+
this.payload = import_safe.Bytes.concat([
|
|
778
|
+
import_safe.Bytes.from([this.newNodeId]),
|
|
779
|
+
(0, import_core.encodeNodeInformationFrame)(this)
|
|
780
|
+
]);
|
|
781
|
+
return super.serialize(ctx);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
return ZWaveProtocolCCNewNodeRegistered2 = _classThis;
|
|
785
|
+
})();
|
|
786
|
+
let ZWaveProtocolCCNewRangeRegistered = (() => {
|
|
787
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NewRangeRegistered)];
|
|
788
|
+
let _classDescriptor;
|
|
789
|
+
let _classExtraInitializers = [];
|
|
790
|
+
let _classThis;
|
|
791
|
+
let _classSuper = ZWaveProtocolCC;
|
|
792
|
+
var ZWaveProtocolCCNewRangeRegistered2 = class extends _classSuper {
|
|
793
|
+
static {
|
|
794
|
+
_classThis = this;
|
|
795
|
+
}
|
|
796
|
+
static {
|
|
797
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
798
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
799
|
+
ZWaveProtocolCCNewRangeRegistered2 = _classThis = _classDescriptor.value;
|
|
800
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
801
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
802
|
+
}
|
|
803
|
+
constructor(options) {
|
|
804
|
+
super(options);
|
|
805
|
+
this.testedNodeId = options.testedNodeId;
|
|
806
|
+
this.neighborNodeIds = options.neighborNodeIds;
|
|
807
|
+
}
|
|
808
|
+
static from(raw, ctx) {
|
|
809
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
810
|
+
const testedNodeId = raw.payload[0];
|
|
811
|
+
const numNeighbors = raw.payload[1];
|
|
812
|
+
const neighborNodeIds = [
|
|
813
|
+
...raw.payload.subarray(2, 2 + numNeighbors)
|
|
814
|
+
];
|
|
815
|
+
return new this({
|
|
816
|
+
nodeId: ctx.sourceNodeId,
|
|
817
|
+
testedNodeId,
|
|
818
|
+
neighborNodeIds
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
testedNodeId;
|
|
822
|
+
neighborNodeIds;
|
|
823
|
+
serialize(ctx) {
|
|
824
|
+
const nodesBitmask = (0, import_core.encodeBitMask)(this.neighborNodeIds, import_core.MAX_NODES);
|
|
825
|
+
this.payload = import_safe.Bytes.concat([
|
|
826
|
+
import_safe.Bytes.from([this.testedNodeId, nodesBitmask.length]),
|
|
827
|
+
nodesBitmask
|
|
828
|
+
]);
|
|
829
|
+
return super.serialize(ctx);
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
return ZWaveProtocolCCNewRangeRegistered2 = _classThis;
|
|
833
|
+
})();
|
|
834
|
+
let ZWaveProtocolCCTransferNewPrimaryControllerComplete = (() => {
|
|
835
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)];
|
|
836
|
+
let _classDescriptor;
|
|
837
|
+
let _classExtraInitializers = [];
|
|
838
|
+
let _classThis;
|
|
839
|
+
let _classSuper = ZWaveProtocolCC;
|
|
840
|
+
var ZWaveProtocolCCTransferNewPrimaryControllerComplete2 = class extends _classSuper {
|
|
841
|
+
static {
|
|
842
|
+
_classThis = this;
|
|
843
|
+
}
|
|
844
|
+
static {
|
|
845
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
846
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
847
|
+
ZWaveProtocolCCTransferNewPrimaryControllerComplete2 = _classThis = _classDescriptor.value;
|
|
848
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
849
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
850
|
+
}
|
|
851
|
+
constructor(options) {
|
|
852
|
+
super(options);
|
|
853
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
854
|
+
}
|
|
855
|
+
static from(raw, ctx) {
|
|
856
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
857
|
+
const genericDeviceClass = raw.payload[0];
|
|
858
|
+
return new this({
|
|
859
|
+
nodeId: ctx.sourceNodeId,
|
|
860
|
+
genericDeviceClass
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
genericDeviceClass;
|
|
864
|
+
serialize(ctx) {
|
|
865
|
+
this.payload = import_safe.Bytes.from([this.genericDeviceClass]);
|
|
866
|
+
return super.serialize(ctx);
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
return ZWaveProtocolCCTransferNewPrimaryControllerComplete2 = _classThis;
|
|
870
|
+
})();
|
|
871
|
+
let ZWaveProtocolCCAutomaticControllerUpdateStart = (() => {
|
|
872
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AutomaticControllerUpdateStart)];
|
|
873
|
+
let _classDescriptor;
|
|
874
|
+
let _classExtraInitializers = [];
|
|
875
|
+
let _classThis;
|
|
876
|
+
let _classSuper = ZWaveProtocolCC;
|
|
877
|
+
var ZWaveProtocolCCAutomaticControllerUpdateStart2 = class extends _classSuper {
|
|
878
|
+
static {
|
|
879
|
+
_classThis = this;
|
|
880
|
+
}
|
|
881
|
+
static {
|
|
882
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
883
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
884
|
+
ZWaveProtocolCCAutomaticControllerUpdateStart2 = _classThis = _classDescriptor.value;
|
|
885
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
886
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
return ZWaveProtocolCCAutomaticControllerUpdateStart2 = _classThis;
|
|
890
|
+
})();
|
|
891
|
+
let ZWaveProtocolCCSUCNodeID = (() => {
|
|
892
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SUCNodeID)];
|
|
893
|
+
let _classDescriptor;
|
|
894
|
+
let _classExtraInitializers = [];
|
|
895
|
+
let _classThis;
|
|
896
|
+
let _classSuper = ZWaveProtocolCC;
|
|
897
|
+
var ZWaveProtocolCCSUCNodeID2 = class extends _classSuper {
|
|
898
|
+
static {
|
|
899
|
+
_classThis = this;
|
|
900
|
+
}
|
|
901
|
+
static {
|
|
902
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
903
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
904
|
+
ZWaveProtocolCCSUCNodeID2 = _classThis = _classDescriptor.value;
|
|
905
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
906
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
907
|
+
}
|
|
908
|
+
constructor(options) {
|
|
909
|
+
super(options);
|
|
910
|
+
this.sucNodeId = options.sucNodeId;
|
|
911
|
+
this.isSIS = options.isSIS;
|
|
912
|
+
}
|
|
913
|
+
static from(raw, ctx) {
|
|
914
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
915
|
+
const sucNodeId = raw.payload[0];
|
|
916
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
917
|
+
const isSIS = !!(capabilities & 1);
|
|
918
|
+
return new this({
|
|
919
|
+
nodeId: ctx.sourceNodeId,
|
|
920
|
+
sucNodeId,
|
|
921
|
+
isSIS
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
sucNodeId;
|
|
925
|
+
isSIS;
|
|
926
|
+
serialize(ctx) {
|
|
927
|
+
this.payload = import_safe.Bytes.from([this.sucNodeId, this.isSIS ? 1 : 0]);
|
|
928
|
+
return super.serialize(ctx);
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
return ZWaveProtocolCCSUCNodeID2 = _classThis;
|
|
932
|
+
})();
|
|
933
|
+
let ZWaveProtocolCCSetSUC = (() => {
|
|
934
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SetSUC)];
|
|
935
|
+
let _classDescriptor;
|
|
936
|
+
let _classExtraInitializers = [];
|
|
937
|
+
let _classThis;
|
|
938
|
+
let _classSuper = ZWaveProtocolCC;
|
|
939
|
+
var ZWaveProtocolCCSetSUC2 = class extends _classSuper {
|
|
940
|
+
static {
|
|
941
|
+
_classThis = this;
|
|
942
|
+
}
|
|
943
|
+
static {
|
|
944
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
945
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
946
|
+
ZWaveProtocolCCSetSUC2 = _classThis = _classDescriptor.value;
|
|
947
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
948
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
949
|
+
}
|
|
950
|
+
constructor(options) {
|
|
951
|
+
super(options);
|
|
952
|
+
this.enableSIS = options.enableSIS;
|
|
953
|
+
}
|
|
954
|
+
static from(raw, ctx) {
|
|
955
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
956
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
957
|
+
const enableSIS = !!(capabilities & 1);
|
|
958
|
+
return new this({
|
|
959
|
+
nodeId: ctx.sourceNodeId,
|
|
960
|
+
enableSIS
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
enableSIS;
|
|
964
|
+
serialize(ctx) {
|
|
965
|
+
this.payload = import_safe.Bytes.from([1, this.enableSIS ? 1 : 0]);
|
|
966
|
+
return super.serialize(ctx);
|
|
967
|
+
}
|
|
968
|
+
};
|
|
969
|
+
return ZWaveProtocolCCSetSUC2 = _classThis;
|
|
970
|
+
})();
|
|
971
|
+
let ZWaveProtocolCCSetSUCAck = (() => {
|
|
972
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SetSUCAck)];
|
|
973
|
+
let _classDescriptor;
|
|
974
|
+
let _classExtraInitializers = [];
|
|
975
|
+
let _classThis;
|
|
976
|
+
let _classSuper = ZWaveProtocolCC;
|
|
977
|
+
var ZWaveProtocolCCSetSUCAck2 = class extends _classSuper {
|
|
978
|
+
static {
|
|
979
|
+
_classThis = this;
|
|
980
|
+
}
|
|
981
|
+
static {
|
|
982
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
983
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
984
|
+
ZWaveProtocolCCSetSUCAck2 = _classThis = _classDescriptor.value;
|
|
985
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
986
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
987
|
+
}
|
|
988
|
+
constructor(options) {
|
|
989
|
+
super(options);
|
|
990
|
+
this.accepted = options.accepted;
|
|
991
|
+
this.isSIS = options.isSIS;
|
|
992
|
+
}
|
|
993
|
+
static from(raw, ctx) {
|
|
994
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
995
|
+
const accepted = raw.payload[0] === 1;
|
|
996
|
+
const capabilities = raw.payload[1] ?? 0;
|
|
997
|
+
const isSIS = !!(capabilities & 1);
|
|
998
|
+
return new this({
|
|
999
|
+
nodeId: ctx.sourceNodeId,
|
|
1000
|
+
accepted,
|
|
1001
|
+
isSIS
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
accepted;
|
|
1005
|
+
isSIS;
|
|
1006
|
+
serialize(ctx) {
|
|
1007
|
+
this.payload = import_safe.Bytes.from([
|
|
1008
|
+
this.accepted ? 1 : 0,
|
|
1009
|
+
this.isSIS ? 1 : 0
|
|
1010
|
+
]);
|
|
1011
|
+
return super.serialize(ctx);
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
return ZWaveProtocolCCSetSUCAck2 = _classThis;
|
|
1015
|
+
})();
|
|
1016
|
+
let ZWaveProtocolCCAssignSUCReturnRoute = (() => {
|
|
1017
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignSUCReturnRoute)];
|
|
1018
|
+
let _classDescriptor;
|
|
1019
|
+
let _classExtraInitializers = [];
|
|
1020
|
+
let _classThis;
|
|
1021
|
+
let _classSuper = ZWaveProtocolCCAssignReturnRoute;
|
|
1022
|
+
var ZWaveProtocolCCAssignSUCReturnRoute2 = class extends _classSuper {
|
|
1023
|
+
static {
|
|
1024
|
+
_classThis = this;
|
|
1025
|
+
}
|
|
1026
|
+
static {
|
|
1027
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1028
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1029
|
+
ZWaveProtocolCCAssignSUCReturnRoute2 = _classThis = _classDescriptor.value;
|
|
1030
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1031
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
return ZWaveProtocolCCAssignSUCReturnRoute2 = _classThis;
|
|
1035
|
+
})();
|
|
1036
|
+
let ZWaveProtocolCCStaticRouteRequest = (() => {
|
|
1037
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.StaticRouteRequest)];
|
|
1038
|
+
let _classDescriptor;
|
|
1039
|
+
let _classExtraInitializers = [];
|
|
1040
|
+
let _classThis;
|
|
1041
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1042
|
+
var ZWaveProtocolCCStaticRouteRequest2 = class extends _classSuper {
|
|
1043
|
+
static {
|
|
1044
|
+
_classThis = this;
|
|
1045
|
+
}
|
|
1046
|
+
static {
|
|
1047
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1048
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1049
|
+
ZWaveProtocolCCStaticRouteRequest2 = _classThis = _classDescriptor.value;
|
|
1050
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1051
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1052
|
+
}
|
|
1053
|
+
constructor(options) {
|
|
1054
|
+
super(options);
|
|
1055
|
+
if (options.nodeIds.some((n) => n < 1 || n > import_core.MAX_NODES)) {
|
|
1056
|
+
throw new import_core.ZWaveError(`All node IDs must be between 1 and ${import_core.MAX_NODES}!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
1057
|
+
}
|
|
1058
|
+
this.nodeIds = options.nodeIds;
|
|
1059
|
+
}
|
|
1060
|
+
static from(raw, ctx) {
|
|
1061
|
+
(0, import_core.validatePayload)(raw.payload.length >= 5);
|
|
1062
|
+
const nodeIds = [...raw.payload.subarray(0, 5)].filter((id) => id > 0 && id <= import_core.MAX_NODES);
|
|
1063
|
+
return new this({
|
|
1064
|
+
nodeId: ctx.sourceNodeId,
|
|
1065
|
+
nodeIds
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
nodeIds;
|
|
1069
|
+
serialize(ctx) {
|
|
1070
|
+
this.payload = import_safe.Bytes.alloc(5, 0);
|
|
1071
|
+
for (let i = 0; i < this.nodeIds.length && i < 5; i++) {
|
|
1072
|
+
this.payload[i] = this.nodeIds[i];
|
|
1073
|
+
}
|
|
1074
|
+
return super.serialize(ctx);
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
return ZWaveProtocolCCStaticRouteRequest2 = _classThis;
|
|
1078
|
+
})();
|
|
1079
|
+
let ZWaveProtocolCCLost = (() => {
|
|
1080
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.Lost)];
|
|
1081
|
+
let _classDescriptor;
|
|
1082
|
+
let _classExtraInitializers = [];
|
|
1083
|
+
let _classThis;
|
|
1084
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1085
|
+
var ZWaveProtocolCCLost2 = class extends _classSuper {
|
|
1086
|
+
static {
|
|
1087
|
+
_classThis = this;
|
|
1088
|
+
}
|
|
1089
|
+
static {
|
|
1090
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1091
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1092
|
+
ZWaveProtocolCCLost2 = _classThis = _classDescriptor.value;
|
|
1093
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1094
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1095
|
+
}
|
|
1096
|
+
constructor(options) {
|
|
1097
|
+
super(options);
|
|
1098
|
+
this.lostNodeId = options.lostNodeId;
|
|
1099
|
+
}
|
|
1100
|
+
static from(raw, ctx) {
|
|
1101
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
1102
|
+
const lostNodeId = raw.payload[0];
|
|
1103
|
+
return new this({
|
|
1104
|
+
nodeId: ctx.sourceNodeId,
|
|
1105
|
+
lostNodeId
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
lostNodeId;
|
|
1109
|
+
serialize(ctx) {
|
|
1110
|
+
this.payload = import_safe.Bytes.from([this.lostNodeId]);
|
|
1111
|
+
return super.serialize(ctx);
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
return ZWaveProtocolCCLost2 = _classThis;
|
|
1115
|
+
})();
|
|
1116
|
+
let ZWaveProtocolCCAcceptLost = (() => {
|
|
1117
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AcceptLost)];
|
|
1118
|
+
let _classDescriptor;
|
|
1119
|
+
let _classExtraInitializers = [];
|
|
1120
|
+
let _classThis;
|
|
1121
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1122
|
+
var ZWaveProtocolCCAcceptLost2 = class extends _classSuper {
|
|
1123
|
+
static {
|
|
1124
|
+
_classThis = this;
|
|
1125
|
+
}
|
|
1126
|
+
static {
|
|
1127
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1128
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1129
|
+
ZWaveProtocolCCAcceptLost2 = _classThis = _classDescriptor.value;
|
|
1130
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1131
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1132
|
+
}
|
|
1133
|
+
constructor(options) {
|
|
1134
|
+
super(options);
|
|
1135
|
+
this.accepted = options.accepted;
|
|
1136
|
+
}
|
|
1137
|
+
static from(raw, ctx) {
|
|
1138
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
1139
|
+
(0, import_core.validatePayload)(raw.payload[0] === 4 || raw.payload[0] === 5);
|
|
1140
|
+
const accepted = raw.payload[0] === 5;
|
|
1141
|
+
return new this({
|
|
1142
|
+
nodeId: ctx.sourceNodeId,
|
|
1143
|
+
accepted
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
accepted;
|
|
1147
|
+
serialize(ctx) {
|
|
1148
|
+
this.payload = import_safe.Bytes.from([this.accepted ? 5 : 4]);
|
|
1149
|
+
return super.serialize(ctx);
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
return ZWaveProtocolCCAcceptLost2 = _classThis;
|
|
1153
|
+
})();
|
|
1154
|
+
let ZWaveProtocolCCNOPPower = (() => {
|
|
1155
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NOPPower)];
|
|
1156
|
+
let _classDescriptor;
|
|
1157
|
+
let _classExtraInitializers = [];
|
|
1158
|
+
let _classThis;
|
|
1159
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1160
|
+
var ZWaveProtocolCCNOPPower2 = class extends _classSuper {
|
|
1161
|
+
static {
|
|
1162
|
+
_classThis = this;
|
|
1163
|
+
}
|
|
1164
|
+
static {
|
|
1165
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1166
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1167
|
+
ZWaveProtocolCCNOPPower2 = _classThis = _classDescriptor.value;
|
|
1168
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1169
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1170
|
+
}
|
|
1171
|
+
constructor(options) {
|
|
1172
|
+
super(options);
|
|
1173
|
+
if (options.powerDampening < 0 || options.powerDampening > 14) {
|
|
1174
|
+
throw new import_core.ZWaveError(`${this.constructor.name}: power dampening must be between 0 and 14 dBm!`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
1175
|
+
}
|
|
1176
|
+
this.powerDampening = options.powerDampening;
|
|
1177
|
+
}
|
|
1178
|
+
static from(raw, ctx) {
|
|
1179
|
+
let powerDampening;
|
|
1180
|
+
if (raw.payload.length >= 2) {
|
|
1181
|
+
powerDampening = raw.payload[1];
|
|
1182
|
+
} else if (raw.payload.length === 1) {
|
|
1183
|
+
powerDampening = [
|
|
1184
|
+
240,
|
|
1185
|
+
200,
|
|
1186
|
+
167,
|
|
1187
|
+
145,
|
|
1188
|
+
119,
|
|
1189
|
+
103,
|
|
1190
|
+
96,
|
|
1191
|
+
70,
|
|
1192
|
+
56,
|
|
1193
|
+
53,
|
|
1194
|
+
50,
|
|
1195
|
+
48,
|
|
1196
|
+
36,
|
|
1197
|
+
34,
|
|
1198
|
+
32
|
|
1199
|
+
].indexOf(raw.payload[0]);
|
|
1200
|
+
if (powerDampening === -1)
|
|
1201
|
+
powerDampening = 0;
|
|
1202
|
+
} else {
|
|
1203
|
+
import_core.validatePayload.fail("Invalid payload length!");
|
|
1204
|
+
}
|
|
1205
|
+
return new this({
|
|
1206
|
+
nodeId: ctx.sourceNodeId,
|
|
1207
|
+
powerDampening
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
// Power dampening in (negative) dBm. A value of 2 means -2 dBm.
|
|
1211
|
+
powerDampening;
|
|
1212
|
+
serialize(ctx) {
|
|
1213
|
+
this.payload = import_safe.Bytes.from([0, this.powerDampening]);
|
|
1214
|
+
return super.serialize(ctx);
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
return ZWaveProtocolCCNOPPower2 = _classThis;
|
|
1218
|
+
})();
|
|
1219
|
+
let ZWaveProtocolCCReservedIDs = (() => {
|
|
1220
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.ReservedIDs)];
|
|
1221
|
+
let _classDescriptor;
|
|
1222
|
+
let _classExtraInitializers = [];
|
|
1223
|
+
let _classThis;
|
|
1224
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1225
|
+
var ZWaveProtocolCCReservedIDs2 = class extends _classSuper {
|
|
1226
|
+
static {
|
|
1227
|
+
_classThis = this;
|
|
1228
|
+
}
|
|
1229
|
+
static {
|
|
1230
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1231
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1232
|
+
ZWaveProtocolCCReservedIDs2 = _classThis = _classDescriptor.value;
|
|
1233
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1234
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1235
|
+
}
|
|
1236
|
+
constructor(options) {
|
|
1237
|
+
super(options);
|
|
1238
|
+
this.reservedNodeIDs = options.reservedNodeIDs;
|
|
1239
|
+
}
|
|
1240
|
+
static from(raw, ctx) {
|
|
1241
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
1242
|
+
const numNodeIDs = raw.payload[0];
|
|
1243
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1 + numNodeIDs);
|
|
1244
|
+
const reservedNodeIDs = [
|
|
1245
|
+
...raw.payload.subarray(1, 1 + numNodeIDs)
|
|
1246
|
+
];
|
|
1247
|
+
return new this({
|
|
1248
|
+
nodeId: ctx.sourceNodeId,
|
|
1249
|
+
reservedNodeIDs
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
reservedNodeIDs;
|
|
1253
|
+
serialize(ctx) {
|
|
1254
|
+
this.payload = import_safe.Bytes.from([
|
|
1255
|
+
this.reservedNodeIDs.length,
|
|
1256
|
+
...this.reservedNodeIDs
|
|
1257
|
+
]);
|
|
1258
|
+
return super.serialize(ctx);
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
return ZWaveProtocolCCReservedIDs2 = _classThis;
|
|
1262
|
+
})();
|
|
1263
|
+
let ZWaveProtocolCCReserveNodeIDs = (() => {
|
|
1264
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.ReserveNodeIDs), (0, import_CommandClassDecorators.expectedCCResponse)(ZWaveProtocolCCReservedIDs)];
|
|
1265
|
+
let _classDescriptor;
|
|
1266
|
+
let _classExtraInitializers = [];
|
|
1267
|
+
let _classThis;
|
|
1268
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1269
|
+
var ZWaveProtocolCCReserveNodeIDs2 = class extends _classSuper {
|
|
1270
|
+
static {
|
|
1271
|
+
_classThis = this;
|
|
1272
|
+
}
|
|
1273
|
+
static {
|
|
1274
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1275
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1276
|
+
ZWaveProtocolCCReserveNodeIDs2 = _classThis = _classDescriptor.value;
|
|
1277
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1278
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1279
|
+
}
|
|
1280
|
+
constructor(options) {
|
|
1281
|
+
super(options);
|
|
1282
|
+
this.numNodeIDs = options.numNodeIDs;
|
|
1283
|
+
}
|
|
1284
|
+
static from(raw, ctx) {
|
|
1285
|
+
(0, import_core.validatePayload)(raw.payload.length >= 1);
|
|
1286
|
+
const numNodeIDs = raw.payload[0];
|
|
1287
|
+
return new this({
|
|
1288
|
+
nodeId: ctx.sourceNodeId,
|
|
1289
|
+
numNodeIDs
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
numNodeIDs;
|
|
1293
|
+
serialize(ctx) {
|
|
1294
|
+
this.payload = import_safe.Bytes.from([this.numNodeIDs]);
|
|
1295
|
+
return super.serialize(ctx);
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
return ZWaveProtocolCCReserveNodeIDs2 = _classThis;
|
|
1299
|
+
})();
|
|
1300
|
+
let ZWaveProtocolCCNodesExistReply = (() => {
|
|
1301
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NodesExistReply)];
|
|
1302
|
+
let _classDescriptor;
|
|
1303
|
+
let _classExtraInitializers = [];
|
|
1304
|
+
let _classThis;
|
|
1305
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1306
|
+
var ZWaveProtocolCCNodesExistReply2 = class extends _classSuper {
|
|
1307
|
+
static {
|
|
1308
|
+
_classThis = this;
|
|
1309
|
+
}
|
|
1310
|
+
static {
|
|
1311
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1312
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1313
|
+
ZWaveProtocolCCNodesExistReply2 = _classThis = _classDescriptor.value;
|
|
1314
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1315
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1316
|
+
}
|
|
1317
|
+
constructor(options) {
|
|
1318
|
+
super(options);
|
|
1319
|
+
this.nodeMaskType = options.nodeMaskType;
|
|
1320
|
+
this.nodeListUpdated = options.nodeListUpdated;
|
|
1321
|
+
}
|
|
1322
|
+
static from(raw, ctx) {
|
|
1323
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1324
|
+
const nodeMaskType = raw.payload[0];
|
|
1325
|
+
const nodeListUpdated = raw.payload[1] === 1;
|
|
1326
|
+
return new this({
|
|
1327
|
+
nodeId: ctx.sourceNodeId,
|
|
1328
|
+
nodeMaskType,
|
|
1329
|
+
nodeListUpdated
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
nodeMaskType;
|
|
1333
|
+
nodeListUpdated;
|
|
1334
|
+
serialize(ctx) {
|
|
1335
|
+
this.payload = import_safe.Bytes.from([
|
|
1336
|
+
this.nodeMaskType,
|
|
1337
|
+
this.nodeListUpdated ? 1 : 0
|
|
1338
|
+
]);
|
|
1339
|
+
return super.serialize(ctx);
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
return ZWaveProtocolCCNodesExistReply2 = _classThis;
|
|
1343
|
+
})();
|
|
896
1344
|
function testResponseForZWaveProtocolNodesExist(sent, received) {
|
|
897
1345
|
return received.nodeMaskType === sent.nodeMaskType;
|
|
898
1346
|
}
|
|
899
|
-
let ZWaveProtocolCCNodesExist =
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
let
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
]
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1347
|
+
let ZWaveProtocolCCNodesExist = (() => {
|
|
1348
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.NodesExist), (0, import_CommandClassDecorators.expectedCCResponse)(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)];
|
|
1349
|
+
let _classDescriptor;
|
|
1350
|
+
let _classExtraInitializers = [];
|
|
1351
|
+
let _classThis;
|
|
1352
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1353
|
+
var ZWaveProtocolCCNodesExist2 = class extends _classSuper {
|
|
1354
|
+
static {
|
|
1355
|
+
_classThis = this;
|
|
1356
|
+
}
|
|
1357
|
+
static {
|
|
1358
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1359
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1360
|
+
ZWaveProtocolCCNodesExist2 = _classThis = _classDescriptor.value;
|
|
1361
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1362
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1363
|
+
}
|
|
1364
|
+
constructor(options) {
|
|
1365
|
+
super(options);
|
|
1366
|
+
this.nodeMaskType = options.nodeMaskType;
|
|
1367
|
+
this.nodeIDs = options.nodeIDs;
|
|
1368
|
+
}
|
|
1369
|
+
static from(raw, ctx) {
|
|
1370
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1371
|
+
const nodeMaskType = raw.payload[0];
|
|
1372
|
+
const numNodeIDs = raw.payload[1];
|
|
1373
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2 + numNodeIDs);
|
|
1374
|
+
const nodeIDs = [...raw.payload.subarray(2, 2 + numNodeIDs)];
|
|
1375
|
+
return new this({
|
|
1376
|
+
nodeId: ctx.sourceNodeId,
|
|
1377
|
+
nodeMaskType,
|
|
1378
|
+
nodeIDs
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
nodeMaskType;
|
|
1382
|
+
nodeIDs;
|
|
1383
|
+
serialize(ctx) {
|
|
1384
|
+
this.payload = import_safe.Bytes.from([
|
|
1385
|
+
this.nodeMaskType,
|
|
1386
|
+
this.nodeIDs.length,
|
|
1387
|
+
...this.nodeIDs
|
|
1388
|
+
]);
|
|
1389
|
+
return super.serialize(ctx);
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
return ZWaveProtocolCCNodesExist2 = _classThis;
|
|
1393
|
+
})();
|
|
1394
|
+
let ZWaveProtocolCCSetNWIMode = (() => {
|
|
1395
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SetNWIMode)];
|
|
1396
|
+
let _classDescriptor;
|
|
1397
|
+
let _classExtraInitializers = [];
|
|
1398
|
+
let _classThis;
|
|
1399
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1400
|
+
var ZWaveProtocolCCSetNWIMode2 = class extends _classSuper {
|
|
1401
|
+
static {
|
|
1402
|
+
_classThis = this;
|
|
1403
|
+
}
|
|
1404
|
+
static {
|
|
1405
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1406
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1407
|
+
ZWaveProtocolCCSetNWIMode2 = _classThis = _classDescriptor.value;
|
|
1408
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1409
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1410
|
+
}
|
|
1411
|
+
constructor(options) {
|
|
1412
|
+
super(options);
|
|
1413
|
+
this.enabled = options.enabled;
|
|
1414
|
+
this.timeoutMinutes = options.timeoutMinutes;
|
|
1415
|
+
}
|
|
1416
|
+
static from(raw, ctx) {
|
|
1417
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1418
|
+
const enabled = raw.payload[0] === 1;
|
|
1419
|
+
const timeoutMinutes = raw.payload[1] || void 0;
|
|
1420
|
+
return new this({
|
|
1421
|
+
nodeId: ctx.sourceNodeId,
|
|
1422
|
+
enabled,
|
|
1423
|
+
timeoutMinutes
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
enabled;
|
|
1427
|
+
timeoutMinutes;
|
|
1428
|
+
serialize(ctx) {
|
|
1429
|
+
this.payload = import_safe.Bytes.from([
|
|
1430
|
+
this.enabled ? 1 : 0,
|
|
1431
|
+
this.timeoutMinutes ?? 0
|
|
1432
|
+
]);
|
|
1433
|
+
return super.serialize(ctx);
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
return ZWaveProtocolCCSetNWIMode2 = _classThis;
|
|
1437
|
+
})();
|
|
1438
|
+
let ZWaveProtocolCCExcludeRequest = (() => {
|
|
1439
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.ExcludeRequest)];
|
|
1440
|
+
let _classDescriptor;
|
|
1441
|
+
let _classExtraInitializers = [];
|
|
1442
|
+
let _classThis;
|
|
1443
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1444
|
+
var ZWaveProtocolCCExcludeRequest2 = class extends _classSuper {
|
|
1445
|
+
static {
|
|
1446
|
+
_classThis = this;
|
|
1447
|
+
}
|
|
1448
|
+
static {
|
|
1449
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1450
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1451
|
+
ZWaveProtocolCCExcludeRequest2 = _classThis = _classDescriptor.value;
|
|
1452
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1453
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
return ZWaveProtocolCCExcludeRequest2 = _classThis;
|
|
1457
|
+
})();
|
|
1458
|
+
let ZWaveProtocolCCAssignReturnRoutePriority = (() => {
|
|
1459
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignReturnRoutePriority)];
|
|
1460
|
+
let _classDescriptor;
|
|
1461
|
+
let _classExtraInitializers = [];
|
|
1462
|
+
let _classThis;
|
|
1463
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1464
|
+
var ZWaveProtocolCCAssignReturnRoutePriority2 = class extends _classSuper {
|
|
1465
|
+
static {
|
|
1466
|
+
_classThis = this;
|
|
1467
|
+
}
|
|
1468
|
+
static {
|
|
1469
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1470
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1471
|
+
ZWaveProtocolCCAssignReturnRoutePriority2 = _classThis = _classDescriptor.value;
|
|
1472
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1473
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1474
|
+
}
|
|
1475
|
+
constructor(options) {
|
|
1476
|
+
super(options);
|
|
1477
|
+
this.targetNodeId = options.targetNodeId;
|
|
1478
|
+
this.routeNumber = options.routeNumber;
|
|
1479
|
+
}
|
|
1480
|
+
static from(raw, ctx) {
|
|
1481
|
+
(0, import_core.validatePayload)(raw.payload.length >= 2);
|
|
1482
|
+
const targetNodeId = raw.payload[0];
|
|
1483
|
+
const routeNumber = raw.payload[1];
|
|
1484
|
+
return new this({
|
|
1485
|
+
nodeId: ctx.sourceNodeId,
|
|
1486
|
+
targetNodeId,
|
|
1487
|
+
routeNumber
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
targetNodeId;
|
|
1491
|
+
routeNumber;
|
|
1492
|
+
serialize(ctx) {
|
|
1493
|
+
this.payload = import_safe.Bytes.from([this.targetNodeId, this.routeNumber]);
|
|
1494
|
+
return super.serialize(ctx);
|
|
1495
|
+
}
|
|
1496
|
+
};
|
|
1497
|
+
return ZWaveProtocolCCAssignReturnRoutePriority2 = _classThis;
|
|
1498
|
+
})();
|
|
1499
|
+
let ZWaveProtocolCCAssignSUCReturnRoutePriority = (() => {
|
|
1500
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.AssignSUCReturnRoutePriority)];
|
|
1501
|
+
let _classDescriptor;
|
|
1502
|
+
let _classExtraInitializers = [];
|
|
1503
|
+
let _classThis;
|
|
1504
|
+
let _classSuper = ZWaveProtocolCCAssignReturnRoutePriority;
|
|
1505
|
+
var ZWaveProtocolCCAssignSUCReturnRoutePriority2 = class extends _classSuper {
|
|
1506
|
+
static {
|
|
1507
|
+
_classThis = this;
|
|
1508
|
+
}
|
|
1509
|
+
static {
|
|
1510
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1511
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1512
|
+
ZWaveProtocolCCAssignSUCReturnRoutePriority2 = _classThis = _classDescriptor.value;
|
|
1513
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1514
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
return ZWaveProtocolCCAssignSUCReturnRoutePriority2 = _classThis;
|
|
1518
|
+
})();
|
|
1519
|
+
let ZWaveProtocolCCSmartStartIncludedNodeInformation = (() => {
|
|
1520
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SmartStartIncludedNodeInformation)];
|
|
1521
|
+
let _classDescriptor;
|
|
1522
|
+
let _classExtraInitializers = [];
|
|
1523
|
+
let _classThis;
|
|
1524
|
+
let _classSuper = ZWaveProtocolCC;
|
|
1525
|
+
var ZWaveProtocolCCSmartStartIncludedNodeInformation2 = class extends _classSuper {
|
|
1526
|
+
static {
|
|
1527
|
+
_classThis = this;
|
|
1528
|
+
}
|
|
1529
|
+
static {
|
|
1530
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1531
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1532
|
+
ZWaveProtocolCCSmartStartIncludedNodeInformation2 = _classThis = _classDescriptor.value;
|
|
1533
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1534
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1535
|
+
}
|
|
1536
|
+
constructor(options) {
|
|
1537
|
+
super(options);
|
|
1538
|
+
if (options.nwiHomeId.length !== 4) {
|
|
1539
|
+
throw new import_core.ZWaveError(`nwiHomeId must have length 4`, import_core.ZWaveErrorCodes.Argument_Invalid);
|
|
1540
|
+
}
|
|
1541
|
+
this.nwiHomeId = options.nwiHomeId;
|
|
1542
|
+
}
|
|
1543
|
+
static from(raw, ctx) {
|
|
1544
|
+
(0, import_core.validatePayload)(raw.payload.length >= 4);
|
|
1545
|
+
const nwiHomeId = raw.payload.subarray(0, 4);
|
|
1546
|
+
return new this({
|
|
1547
|
+
nodeId: ctx.sourceNodeId,
|
|
1548
|
+
nwiHomeId
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
nwiHomeId;
|
|
1552
|
+
serialize(ctx) {
|
|
1553
|
+
this.payload = import_safe.Bytes.from(this.nwiHomeId);
|
|
1554
|
+
return super.serialize(ctx);
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
return ZWaveProtocolCCSmartStartIncludedNodeInformation2 = _classThis;
|
|
1558
|
+
})();
|
|
1559
|
+
let ZWaveProtocolCCSmartStartPrime = (() => {
|
|
1560
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SmartStartPrime)];
|
|
1561
|
+
let _classDescriptor;
|
|
1562
|
+
let _classExtraInitializers = [];
|
|
1563
|
+
let _classThis;
|
|
1564
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1565
|
+
var ZWaveProtocolCCSmartStartPrime2 = class extends _classSuper {
|
|
1566
|
+
static {
|
|
1567
|
+
_classThis = this;
|
|
1568
|
+
}
|
|
1569
|
+
static {
|
|
1570
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1571
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1572
|
+
ZWaveProtocolCCSmartStartPrime2 = _classThis = _classDescriptor.value;
|
|
1573
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1574
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
return ZWaveProtocolCCSmartStartPrime2 = _classThis;
|
|
1578
|
+
})();
|
|
1579
|
+
let ZWaveProtocolCCSmartStartInclusionRequest = (() => {
|
|
1580
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ZWaveProtocolCommand.SmartStartInclusionRequest)];
|
|
1581
|
+
let _classDescriptor;
|
|
1582
|
+
let _classExtraInitializers = [];
|
|
1583
|
+
let _classThis;
|
|
1584
|
+
let _classSuper = ZWaveProtocolCCNodeInformationFrame;
|
|
1585
|
+
var ZWaveProtocolCCSmartStartInclusionRequest2 = class extends _classSuper {
|
|
1586
|
+
static {
|
|
1587
|
+
_classThis = this;
|
|
1588
|
+
}
|
|
1589
|
+
static {
|
|
1590
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1591
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
1592
|
+
ZWaveProtocolCCSmartStartInclusionRequest2 = _classThis = _classDescriptor.value;
|
|
1593
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1594
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
1595
|
+
}
|
|
1596
|
+
};
|
|
1597
|
+
return ZWaveProtocolCCSmartStartInclusionRequest2 = _classThis;
|
|
1598
|
+
})();
|
|
1032
1599
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1033
1600
|
0 && (module.exports = {
|
|
1034
1601
|
ZWaveProtocolCC,
|