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