@zwave-js/cc 14.0.0-beta.4 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/AlarmSensorCC.js +381 -266
- package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
- package/build/cjs/cc/AssociationCC.js +669 -503
- package/build/cjs/cc/AssociationCC.js.map +3 -3
- package/build/cjs/cc/AssociationGroupInfoCC.js +633 -492
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
- package/build/cjs/cc/BarrierOperatorCC.js +595 -429
- package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
- package/build/cjs/cc/BasicCC.js +354 -260
- package/build/cjs/cc/BasicCC.js.map +3 -3
- package/build/cjs/cc/BatteryCC.js +427 -345
- package/build/cjs/cc/BatteryCC.js.map +3 -3
- package/build/cjs/cc/BinarySensorCC.js +391 -276
- package/build/cjs/cc/BinarySensorCC.js.map +3 -3
- package/build/cjs/cc/BinarySwitchCC.js +347 -253
- package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
- package/build/cjs/cc/CRC16CC.js +160 -85
- package/build/cjs/cc/CRC16CC.js.map +3 -3
- package/build/cjs/cc/CentralSceneCC.js +459 -324
- package/build/cjs/cc/CentralSceneCC.js.map +3 -3
- package/build/cjs/cc/ClimateControlScheduleCC.js +459 -293
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
- package/build/cjs/cc/ClockCC.js +254 -150
- package/build/cjs/cc/ClockCC.js.map +3 -3
- package/build/cjs/cc/ColorSwitchCC.js +758 -610
- package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
- package/build/cjs/cc/ConfigurationCC.js +1700 -1453
- package/build/cjs/cc/ConfigurationCC.js.map +3 -3
- package/build/cjs/cc/DeviceResetLocallyCC.js +125 -49
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +3 -3
- package/build/cjs/cc/DoorLockCC.js +904 -777
- package/build/cjs/cc/DoorLockCC.js.map +3 -3
- package/build/cjs/cc/DoorLockLoggingCC.js +321 -206
- package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
- package/build/cjs/cc/EnergyProductionCC.js +249 -160
- package/build/cjs/cc/EnergyProductionCC.js.map +3 -3
- package/build/cjs/cc/EntryControlCC.js +619 -458
- package/build/cjs/cc/EntryControlCC.js.map +3 -3
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +898 -698
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
- package/build/cjs/cc/HailCC.js +57 -11
- package/build/cjs/cc/HailCC.js.map +2 -2
- package/build/cjs/cc/HumidityControlModeCC.js +359 -233
- package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +189 -103
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/HumidityControlSetpointCC.js +682 -495
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
- package/build/cjs/cc/InclusionControllerCC.js +205 -114
- package/build/cjs/cc/InclusionControllerCC.js.map +3 -3
- package/build/cjs/cc/IndicatorCC.js +897 -736
- package/build/cjs/cc/IndicatorCC.js.map +3 -3
- package/build/cjs/cc/IrrigationCC.js +1651 -1405
- package/build/cjs/cc/IrrigationCC.js.map +3 -3
- package/build/cjs/cc/LanguageCC.js +268 -171
- package/build/cjs/cc/LanguageCC.js.map +3 -3
- package/build/cjs/cc/LockCC.js +254 -154
- package/build/cjs/cc/LockCC.js.map +3 -3
- package/build/cjs/cc/ManufacturerProprietaryCC.js +189 -129
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
- package/build/cjs/cc/ManufacturerSpecificCC.js +319 -213
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
- package/build/cjs/cc/MeterCC.js +827 -707
- package/build/cjs/cc/MeterCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelAssociationCC.js +612 -478
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
- package/build/cjs/cc/MultiChannelCC.js +1037 -819
- package/build/cjs/cc/MultiChannelCC.js.map +3 -3
- package/build/cjs/cc/MultiCommandCC.js +172 -97
- package/build/cjs/cc/MultiCommandCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSensorCC.js +589 -449
- package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
- package/build/cjs/cc/MultilevelSwitchCC.js +587 -439
- package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
- package/build/cjs/cc/NoOperationCC.js +89 -27
- package/build/cjs/cc/NoOperationCC.js.map +2 -2
- package/build/cjs/cc/NodeNamingCC.js +417 -277
- package/build/cjs/cc/NodeNamingCC.js.map +3 -3
- package/build/cjs/cc/NotificationCC.js +972 -818
- package/build/cjs/cc/NotificationCC.js.map +3 -3
- package/build/cjs/cc/PowerlevelCC.js +450 -303
- package/build/cjs/cc/PowerlevelCC.js.map +3 -3
- package/build/cjs/cc/ProtectionCC.js +686 -494
- package/build/cjs/cc/ProtectionCC.js.map +3 -3
- package/build/cjs/cc/SceneActivationCC.js +165 -97
- package/build/cjs/cc/SceneActivationCC.js.map +3 -3
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +346 -243
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
- package/build/cjs/cc/SceneControllerConfigurationCC.js +401 -298
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
- package/build/cjs/cc/ScheduleEntryLockCC.js +1552 -1272
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +3 -3
- package/build/cjs/cc/Security2CC.js +1483 -1219
- package/build/cjs/cc/Security2CC.js.map +3 -3
- package/build/cjs/cc/SecurityCC.js +839 -619
- package/build/cjs/cc/SecurityCC.js.map +3 -3
- package/build/cjs/cc/SoundSwitchCC.js +707 -515
- package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
- package/build/cjs/cc/SupervisionCC.js +327 -237
- package/build/cjs/cc/SupervisionCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanModeCC.js +386 -263
- package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatFanStateCC.js +192 -106
- package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatModeCC.js +425 -302
- package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
- package/build/cjs/cc/ThermostatOperatingStateCC.js +188 -102
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetbackCC.js +277 -173
- package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
- package/build/cjs/cc/ThermostatSetpointCC.js +645 -491
- package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
- package/build/cjs/cc/TimeCC.js +515 -353
- package/build/cjs/cc/TimeCC.js.map +3 -3
- package/build/cjs/cc/TimeParametersCC.js +302 -202
- package/build/cjs/cc/TimeParametersCC.js.map +3 -3
- package/build/cjs/cc/TransportServiceCC.js +433 -315
- package/build/cjs/cc/TransportServiceCC.js.map +3 -3
- package/build/cjs/cc/UserCodeCC.js +1385 -1102
- package/build/cjs/cc/UserCodeCC.js.map +3 -3
- package/build/cjs/cc/VersionCC.js +696 -562
- package/build/cjs/cc/VersionCC.js.map +3 -3
- package/build/cjs/cc/WakeUpCC.js +499 -346
- package/build/cjs/cc/WakeUpCC.js.map +3 -3
- package/build/cjs/cc/WindowCoveringCC.js +626 -478
- package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
- package/build/cjs/cc/ZWaveLongRangeCC.js +57 -10
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +2 -2
- package/build/cjs/cc/ZWavePlusCC.js +233 -159
- package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
- package/build/cjs/cc/ZWaveProtocolCC.js +1515 -948
- package/build/cjs/cc/ZWaveProtocolCC.js.map +3 -3
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +1 -1
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +395 -274
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +3 -3
- package/build/cjs/lib/CommandClassDecorators.d.ts +11 -15
- package/build/cjs/lib/CommandClassDecorators.js +19 -20
- package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
- package/build/cjs/lib/Security2/Extension.d.ts +1 -1
- package/build/cjs/lib/Security2/Extension.js +217 -126
- package/build/cjs/lib/Security2/Extension.js.map +3 -3
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/esm/cc/AlarmSensorCC.js +389 -291
- package/build/esm/cc/AlarmSensorCC.js.map +1 -1
- package/build/esm/cc/AssociationCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationCC.js +678 -537
- package/build/esm/cc/AssociationCC.js.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/esm/cc/AssociationGroupInfoCC.js +659 -539
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/esm/cc/BarrierOperatorCC.js +634 -493
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
- package/build/esm/cc/BasicCC.d.ts.map +1 -1
- package/build/esm/cc/BasicCC.js +380 -302
- package/build/esm/cc/BasicCC.js.map +1 -1
- package/build/esm/cc/BatteryCC.d.ts.map +1 -1
- package/build/esm/cc/BatteryCC.js +449 -384
- package/build/esm/cc/BatteryCC.js.map +1 -1
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySensorCC.js +395 -297
- package/build/esm/cc/BinarySensorCC.js.map +1 -1
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/esm/cc/BinarySwitchCC.js +353 -274
- package/build/esm/cc/BinarySwitchCC.js.map +1 -1
- package/build/esm/cc/CRC16CC.js +162 -98
- package/build/esm/cc/CRC16CC.js.map +1 -1
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/esm/cc/CentralSceneCC.js +465 -351
- package/build/esm/cc/CentralSceneCC.js.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/esm/cc/ClimateControlScheduleCC.js +454 -313
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/esm/cc/ClockCC.js +248 -159
- package/build/esm/cc/ClockCC.js.map +1 -1
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/ColorSwitchCC.js +802 -677
- package/build/esm/cc/ColorSwitchCC.js.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +1899 -1687
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/DeviceResetLocallyCC.js +124 -59
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockCC.js +951 -849
- package/build/esm/cc/DoorLockCC.js.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/esm/cc/DoorLockLoggingCC.js +316 -218
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/esm/cc/EnergyProductionCC.js +240 -164
- package/build/esm/cc/EnergyProductionCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +629 -493
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +938 -769
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/esm/cc/HailCC.js +51 -12
- package/build/esm/cc/HailCC.js.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlModeCC.js +357 -250
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlOperatingStateCC.js +182 -109
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/HumidityControlSetpointCC.js +706 -546
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/esm/cc/InclusionControllerCC.js +197 -119
- package/build/esm/cc/InclusionControllerCC.js.map +1 -1
- package/build/esm/cc/IndicatorCC.js +973 -835
- package/build/esm/cc/IndicatorCC.js.map +1 -1
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
- package/build/esm/cc/IrrigationCC.js +1697 -1496
- package/build/esm/cc/IrrigationCC.js.map +1 -1
- package/build/esm/cc/LanguageCC.d.ts.map +1 -1
- package/build/esm/cc/LanguageCC.js +266 -184
- package/build/esm/cc/LanguageCC.js.map +1 -1
- package/build/esm/cc/LockCC.d.ts.map +1 -1
- package/build/esm/cc/LockCC.js +247 -162
- package/build/esm/cc/LockCC.js.map +1 -1
- package/build/esm/cc/ManufacturerProprietaryCC.js +192 -141
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/esm/cc/ManufacturerSpecificCC.js +312 -223
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/esm/cc/MeterCC.d.ts.map +1 -1
- package/build/esm/cc/MeterCC.js +896 -795
- package/build/esm/cc/MeterCC.js.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelAssociationCC.js +631 -518
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/esm/cc/MultiChannelCC.js +1106 -921
- package/build/esm/cc/MultiChannelCC.js.map +1 -1
- package/build/esm/cc/MultiCommandCC.js +166 -102
- package/build/esm/cc/MultiCommandCC.js.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSensorCC.js +616 -497
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/MultilevelSwitchCC.js +621 -496
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/esm/cc/NoOperationCC.js +82 -29
- package/build/esm/cc/NoOperationCC.js.map +1 -1
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/esm/cc/NodeNamingCC.js +413 -294
- package/build/esm/cc/NodeNamingCC.js.map +1 -1
- package/build/esm/cc/NotificationCC.d.ts.map +1 -1
- package/build/esm/cc/NotificationCC.js +1097 -966
- package/build/esm/cc/NotificationCC.js.map +1 -1
- package/build/esm/cc/PowerlevelCC.js +437 -311
- package/build/esm/cc/PowerlevelCC.js.map +1 -1
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
- package/build/esm/cc/ProtectionCC.js +704 -543
- package/build/esm/cc/ProtectionCC.js.map +1 -1
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/esm/cc/SceneActivationCC.js +157 -100
- package/build/esm/cc/SceneActivationCC.js.map +1 -1
- package/build/esm/cc/SceneActuatorConfigurationCC.js +357 -269
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/esm/cc/SceneControllerConfigurationCC.js +434 -346
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/esm/cc/ScheduleEntryLockCC.js +1596 -1357
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/esm/cc/Security2CC.js +1633 -1406
- package/build/esm/cc/Security2CC.js.map +1 -1
- package/build/esm/cc/SecurityCC.js +876 -687
- package/build/esm/cc/SecurityCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +689 -526
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/SupervisionCC.js +349 -272
- package/build/esm/cc/SupervisionCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanModeCC.js +388 -284
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatFanStateCC.js +184 -111
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatModeCC.js +435 -331
- package/build/esm/cc/ThermostatModeCC.js.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatOperatingStateCC.js +180 -107
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetbackCC.js +274 -185
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/esm/cc/ThermostatSetpointCC.js +674 -543
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/esm/cc/TimeCC.js +499 -360
- package/build/esm/cc/TimeCC.js.map +1 -1
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/esm/cc/TimeParametersCC.js +296 -211
- package/build/esm/cc/TimeParametersCC.js.map +1 -1
- package/build/esm/cc/TransportServiceCC.js +464 -363
- package/build/esm/cc/TransportServiceCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +1443 -1205
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/VersionCC.d.ts.map +1 -1
- package/build/esm/cc/VersionCC.js +744 -635
- package/build/esm/cc/VersionCC.js.map +1 -1
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
- package/build/esm/cc/WakeUpCC.js +494 -364
- package/build/esm/cc/WakeUpCC.js.map +1 -1
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/esm/cc/WindowCoveringCC.js +655 -530
- package/build/esm/cc/WindowCoveringCC.js.map +1 -1
- package/build/esm/cc/ZWaveLongRangeCC.js +51 -11
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/esm/cc/ZWavePlusCC.js +223 -162
- package/build/esm/cc/ZWavePlusCC.js.map +1 -1
- package/build/esm/cc/ZWaveProtocolCC.js +1443 -953
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +4 -4
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +390 -286
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/esm/lib/CommandClassDecorators.d.ts +11 -15
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/esm/lib/CommandClassDecorators.js +24 -24
- package/build/esm/lib/CommandClassDecorators.js.map +1 -1
- package/build/esm/lib/Security2/Extension.d.ts +1 -1
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
- package/build/esm/lib/Security2/Extension.js +207 -123
- package/build/esm/lib/Security2/Extension.js.map +1 -1
- package/package.json +6 -6
|
@@ -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 VersionCCReport_1, VersionCCCommandClassReport_1, VersionCCCommandClassGet_1, VersionCCCapabilitiesReport_1, VersionCCZWaveSoftwareReport_1;
|
|
8
35
|
function __assertType(argName, typeName, boundHasError) {
|
|
9
36
|
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
10
37
|
if (boundHasError()) {
|
|
@@ -75,7 +102,7 @@ import { Bytes } from "@zwave-js/shared/safe";
|
|
|
75
102
|
import { getEnumMemberName, num2hex, pick } from "@zwave-js/shared/safe";
|
|
76
103
|
import { CCAPI, PhysicalCCAPI } from "../lib/API.js";
|
|
77
104
|
import { CommandClass, } from "../lib/CommandClass.js";
|
|
78
|
-
import { API, CCCommand,
|
|
105
|
+
import { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, getImplementedVersion, implementedVersion, } from "../lib/CommandClassDecorators.js";
|
|
79
106
|
import { V } from "../lib/Values.js";
|
|
80
107
|
import { VersionCommand } from "../lib/_Types.js";
|
|
81
108
|
export const VersionCCValues = Object.freeze({
|
|
@@ -176,687 +203,769 @@ function parseVersion(buffer) {
|
|
|
176
203
|
return `${buffer[0]}.${buffer[1]}.${buffer[2]}`;
|
|
177
204
|
}
|
|
178
205
|
// @noSetValueAPI This CC is read-only
|
|
179
|
-
let VersionCCAPI =
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
206
|
+
let VersionCCAPI = (() => {
|
|
207
|
+
let _classDecorators = [API(CommandClasses.Version)];
|
|
208
|
+
let _classDescriptor;
|
|
209
|
+
let _classExtraInitializers = [];
|
|
210
|
+
let _classThis;
|
|
211
|
+
let _classSuper = PhysicalCCAPI;
|
|
212
|
+
var VersionCCAPI = class extends _classSuper {
|
|
213
|
+
static { _classThis = this; }
|
|
214
|
+
static {
|
|
215
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
216
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
217
|
+
VersionCCAPI = _classThis = _classDescriptor.value;
|
|
218
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
219
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
220
|
+
}
|
|
221
|
+
supportsCommand(cmd) {
|
|
222
|
+
switch (cmd) {
|
|
223
|
+
case VersionCommand.Get:
|
|
224
|
+
case VersionCommand.Report:
|
|
225
|
+
case VersionCommand.CommandClassGet:
|
|
226
|
+
case VersionCommand.CommandClassReport:
|
|
227
|
+
return true; // This is mandatory
|
|
228
|
+
case VersionCommand.CapabilitiesGet:
|
|
229
|
+
case VersionCommand.CapabilitiesReport:
|
|
230
|
+
case VersionCommand.ZWaveSoftwareReport:
|
|
231
|
+
return this.version >= 3;
|
|
232
|
+
case VersionCommand.ZWaveSoftwareGet: {
|
|
233
|
+
return this.getValueDB().getValue(VersionCCValues.supportsZWaveSoftwareGet.endpoint(this.endpoint.index));
|
|
234
|
+
}
|
|
193
235
|
}
|
|
236
|
+
return super.supportsCommand(cmd);
|
|
194
237
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
]);
|
|
238
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
239
|
+
async get() {
|
|
240
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.Get);
|
|
241
|
+
const cc = new VersionCCGet({
|
|
242
|
+
nodeId: this.endpoint.nodeId,
|
|
243
|
+
endpointIndex: this.endpoint.index,
|
|
244
|
+
});
|
|
245
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
246
|
+
if (response) {
|
|
247
|
+
return pick(response, [
|
|
248
|
+
"libraryType",
|
|
249
|
+
"protocolVersion",
|
|
250
|
+
"firmwareVersions",
|
|
251
|
+
"hardwareVersion",
|
|
252
|
+
]);
|
|
253
|
+
}
|
|
212
254
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
223
|
-
}
|
|
224
|
-
async getCCVersion(requestedCC) {
|
|
225
|
-
__assertType("requestedCC", "CommandClasses", __assertType__number.bind(void 0, requestedCC));
|
|
226
|
-
this.assertSupportsCommand(VersionCommand, VersionCommand.CommandClassGet);
|
|
227
|
-
const cc = new VersionCCCommandClassGet({
|
|
228
|
-
nodeId: this.endpoint.nodeId,
|
|
229
|
-
endpointIndex: this.endpoint.index,
|
|
230
|
-
requestedCC,
|
|
231
|
-
});
|
|
232
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
233
|
-
return response?.ccVersion;
|
|
234
|
-
}
|
|
235
|
-
async reportCCVersion(requestedCC) {
|
|
236
|
-
__assertType("requestedCC", "CommandClasses", __assertType__number.bind(void 0, requestedCC));
|
|
237
|
-
this.assertSupportsCommand(VersionCommand, VersionCommand.CommandClassReport);
|
|
238
|
-
let ccVersion;
|
|
239
|
-
switch (requestedCC) {
|
|
240
|
-
case CommandClasses["Z-Wave Protocol"]:
|
|
241
|
-
case CommandClasses["Z-Wave Long Range"]:
|
|
242
|
-
// These two are only for internal use
|
|
243
|
-
ccVersion = 0;
|
|
244
|
-
break;
|
|
245
|
-
case CommandClasses.Hail:
|
|
246
|
-
case CommandClasses["Manufacturer Proprietary"]:
|
|
247
|
-
// These CCs are obsolete, we cannot enter them in the certification portal
|
|
248
|
-
// but not doing so fails a certification test. Just respond that they
|
|
249
|
-
// are not supported or controlled
|
|
250
|
-
ccVersion = 0;
|
|
251
|
-
break;
|
|
252
|
-
default:
|
|
253
|
-
ccVersion = getImplementedVersion(requestedCC);
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
const cc = new VersionCCCommandClassReport({
|
|
257
|
-
nodeId: this.endpoint.nodeId,
|
|
258
|
-
endpointIndex: this.endpoint.index,
|
|
259
|
-
requestedCC,
|
|
260
|
-
ccVersion,
|
|
261
|
-
});
|
|
262
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
263
|
-
}
|
|
264
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
265
|
-
async getCapabilities() {
|
|
266
|
-
this.assertSupportsCommand(VersionCommand, VersionCommand.CapabilitiesGet);
|
|
267
|
-
const cc = new VersionCCCapabilitiesGet({
|
|
268
|
-
nodeId: this.endpoint.nodeId,
|
|
269
|
-
endpointIndex: this.endpoint.index,
|
|
270
|
-
});
|
|
271
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
272
|
-
if (response) {
|
|
273
|
-
return pick(response, ["supportsZWaveSoftwareGet"]);
|
|
255
|
+
async sendReport(options) {
|
|
256
|
+
__assertType("options", "VersionCCReportOptions", __assertType__VersionCCReportOptions.bind(void 0, options));
|
|
257
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.Report);
|
|
258
|
+
const cc = new VersionCCReport({
|
|
259
|
+
nodeId: this.endpoint.nodeId,
|
|
260
|
+
endpointIndex: this.endpoint.index,
|
|
261
|
+
...options,
|
|
262
|
+
});
|
|
263
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
274
264
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
287
|
-
async getZWaveSoftware() {
|
|
288
|
-
this.assertSupportsCommand(VersionCommand, VersionCommand.ZWaveSoftwareGet);
|
|
289
|
-
const cc = new VersionCCZWaveSoftwareGet({
|
|
290
|
-
nodeId: this.endpoint.nodeId,
|
|
291
|
-
endpointIndex: this.endpoint.index,
|
|
292
|
-
});
|
|
293
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
294
|
-
if (response) {
|
|
295
|
-
return pick(response, [
|
|
296
|
-
"sdkVersion",
|
|
297
|
-
"applicationFrameworkAPIVersion",
|
|
298
|
-
"applicationFrameworkBuildNumber",
|
|
299
|
-
"hostInterfaceVersion",
|
|
300
|
-
"hostInterfaceBuildNumber",
|
|
301
|
-
"zWaveProtocolVersion",
|
|
302
|
-
"zWaveProtocolBuildNumber",
|
|
303
|
-
"applicationVersion",
|
|
304
|
-
"applicationBuildNumber",
|
|
305
|
-
]);
|
|
265
|
+
async getCCVersion(requestedCC) {
|
|
266
|
+
__assertType("requestedCC", "CommandClasses", __assertType__number.bind(void 0, requestedCC));
|
|
267
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.CommandClassGet);
|
|
268
|
+
const cc = new VersionCCCommandClassGet({
|
|
269
|
+
nodeId: this.endpoint.nodeId,
|
|
270
|
+
endpointIndex: this.endpoint.index,
|
|
271
|
+
requestedCC,
|
|
272
|
+
});
|
|
273
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
274
|
+
return response?.ccVersion;
|
|
306
275
|
}
|
|
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
|
-
|
|
276
|
+
async reportCCVersion(requestedCC) {
|
|
277
|
+
__assertType("requestedCC", "CommandClasses", __assertType__number.bind(void 0, requestedCC));
|
|
278
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.CommandClassReport);
|
|
279
|
+
let ccVersion;
|
|
280
|
+
switch (requestedCC) {
|
|
281
|
+
case CommandClasses["Z-Wave Protocol"]:
|
|
282
|
+
case CommandClasses["Z-Wave Long Range"]:
|
|
283
|
+
// These two are only for internal use
|
|
284
|
+
ccVersion = 0;
|
|
285
|
+
break;
|
|
286
|
+
case CommandClasses.Hail:
|
|
287
|
+
case CommandClasses["Manufacturer Proprietary"]:
|
|
288
|
+
// These CCs are obsolete, we cannot enter them in the certification portal
|
|
289
|
+
// but not doing so fails a certification test. Just respond that they
|
|
290
|
+
// are not supported or controlled
|
|
291
|
+
ccVersion = 0;
|
|
292
|
+
break;
|
|
293
|
+
default:
|
|
294
|
+
ccVersion = getImplementedVersion(requestedCC);
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
const cc = new VersionCCCommandClassReport({
|
|
298
|
+
nodeId: this.endpoint.nodeId,
|
|
299
|
+
endpointIndex: this.endpoint.index,
|
|
300
|
+
requestedCC,
|
|
301
|
+
ccVersion,
|
|
302
|
+
});
|
|
303
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
304
|
+
}
|
|
305
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
306
|
+
async getCapabilities() {
|
|
307
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.CapabilitiesGet);
|
|
308
|
+
const cc = new VersionCCCapabilitiesGet({
|
|
309
|
+
nodeId: this.endpoint.nodeId,
|
|
310
|
+
endpointIndex: this.endpoint.index,
|
|
311
|
+
});
|
|
312
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
313
|
+
if (response) {
|
|
314
|
+
return pick(response, ["supportsZWaveSoftwareGet"]);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
async reportCapabilities() {
|
|
318
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.CapabilitiesReport);
|
|
319
|
+
const cc = new VersionCCCapabilitiesReport({
|
|
320
|
+
nodeId: this.endpoint.nodeId,
|
|
321
|
+
endpointIndex: this.endpoint.index,
|
|
322
|
+
// At this time, we do not support responding to Z-Wave Software Get
|
|
323
|
+
supportsZWaveSoftwareGet: false,
|
|
324
|
+
});
|
|
325
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
326
|
+
}
|
|
327
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
328
|
+
async getZWaveSoftware() {
|
|
329
|
+
this.assertSupportsCommand(VersionCommand, VersionCommand.ZWaveSoftwareGet);
|
|
330
|
+
const cc = new VersionCCZWaveSoftwareGet({
|
|
331
|
+
nodeId: this.endpoint.nodeId,
|
|
332
|
+
endpointIndex: this.endpoint.index,
|
|
333
|
+
});
|
|
334
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
335
|
+
if (response) {
|
|
336
|
+
return pick(response, [
|
|
337
|
+
"sdkVersion",
|
|
338
|
+
"applicationFrameworkAPIVersion",
|
|
339
|
+
"applicationFrameworkBuildNumber",
|
|
340
|
+
"hostInterfaceVersion",
|
|
341
|
+
"hostInterfaceBuildNumber",
|
|
342
|
+
"zWaveProtocolVersion",
|
|
343
|
+
"zWaveProtocolBuildNumber",
|
|
344
|
+
"applicationVersion",
|
|
345
|
+
"applicationBuildNumber",
|
|
346
|
+
]);
|
|
344
347
|
}
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
return VersionCCAPI = _classThis;
|
|
351
|
+
})();
|
|
352
|
+
export { VersionCCAPI };
|
|
353
|
+
let VersionCC = (() => {
|
|
354
|
+
let _classDecorators = [commandClass(CommandClasses.Version), implementedVersion(3), ccValues(VersionCCValues)];
|
|
355
|
+
let _classDescriptor;
|
|
356
|
+
let _classExtraInitializers = [];
|
|
357
|
+
let _classThis;
|
|
358
|
+
let _classSuper = CommandClass;
|
|
359
|
+
var VersionCC = class extends _classSuper {
|
|
360
|
+
static { _classThis = this; }
|
|
361
|
+
static {
|
|
362
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
363
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
364
|
+
VersionCC = _classThis = _classDescriptor.value;
|
|
365
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
366
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
367
|
+
}
|
|
368
|
+
determineRequiredCCInterviews() {
|
|
369
|
+
// VersionCC must be the 2nd CC after ManufacturerSpecificCC
|
|
370
|
+
return [CommandClasses["Manufacturer Specific"]];
|
|
371
|
+
}
|
|
372
|
+
async interview(ctx) {
|
|
373
|
+
const node = this.getNode(ctx);
|
|
374
|
+
// SDS13782: In a Multi Channel device, the Version Command Class MUST be supported by the Root Device, while
|
|
375
|
+
// the Version Command Class SHOULD NOT be supported by individual End Points.
|
|
376
|
+
//
|
|
377
|
+
// There may be cases where a given Command Class is not implemented by the Root Device of a Multi
|
|
378
|
+
// Channel device. However, the Root Device MUST respond to Version requests for any Command Class
|
|
379
|
+
// implemented by the Multi Channel device; also in cases where the actual Command Class is only
|
|
380
|
+
// provided by an End Point.
|
|
381
|
+
const endpoint = this.getEndpoint(ctx);
|
|
382
|
+
// Use the CC API of the root device for all queries
|
|
383
|
+
const api = CCAPI.create(CommandClasses.Version, ctx, node).withOptions({
|
|
384
|
+
priority: MessagePriority.NodeQuery,
|
|
385
|
+
});
|
|
345
386
|
ctx.logNode(node.id, {
|
|
346
387
|
endpoint: this.endpointIndex,
|
|
347
|
-
message: `
|
|
348
|
-
direction: "
|
|
388
|
+
message: `Interviewing ${this.ccName}...`,
|
|
389
|
+
direction: "none",
|
|
349
390
|
});
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
391
|
+
const queryCCVersion = async (cc) => {
|
|
392
|
+
// Only query CCs we support. Theoretically we could skip queries where we support only V1,
|
|
393
|
+
// but there are Z-Wave certification tests that require us to query all CCs
|
|
394
|
+
const maxImplemented = getImplementedVersion(cc);
|
|
395
|
+
if (maxImplemented === 0) {
|
|
396
|
+
ctx.logNode(node.id, ` skipping query for ${CommandClasses[cc]} (${num2hex(cc)}) because max implemented version is ${maxImplemented}`);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
ctx.logNode(node.id, {
|
|
400
|
+
endpoint: this.endpointIndex,
|
|
401
|
+
message: ` querying the CC version for ${getCCName(cc)}...`,
|
|
402
|
+
direction: "outbound",
|
|
403
|
+
});
|
|
404
|
+
// query the CC version
|
|
405
|
+
const supportedVersion = await api.getCCVersion(cc);
|
|
406
|
+
if (supportedVersion != undefined) {
|
|
407
|
+
// Remember which CC version this endpoint supports
|
|
408
|
+
let logMessage;
|
|
409
|
+
if (supportedVersion > 0) {
|
|
410
|
+
// Basic CC has special rules for when it is considered supported
|
|
411
|
+
// Therefore we mark all other CCs as supported, but not Basic CC,
|
|
412
|
+
// for which support is determined later.
|
|
413
|
+
if (cc === CommandClasses.Basic) {
|
|
414
|
+
endpoint.addCC(cc, { version: supportedVersion });
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
endpoint.addCC(cc, {
|
|
418
|
+
isSupported: true,
|
|
419
|
+
version: supportedVersion,
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
logMessage = ` supports CC ${CommandClasses[cc]} (${num2hex(cc)}) in version ${supportedVersion}`;
|
|
361
423
|
}
|
|
362
424
|
else {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
425
|
+
// We were lied to - the NIF said this CC is supported, now the node claims it isn't
|
|
426
|
+
// Make sure this is not a critical CC, which must be supported though
|
|
427
|
+
if (cc === CommandClasses.Version
|
|
428
|
+
|| cc === CommandClasses["Manufacturer Specific"]) {
|
|
429
|
+
logMessage = ` claims NOT to support CC ${CommandClasses[cc]} (${num2hex(cc)}), but it must. Assuming the ${this.endpointIndex === 0 ? "node" : "endpoint"} supports version 1...`;
|
|
430
|
+
endpoint.addCC(cc, { version: 1 });
|
|
431
|
+
}
|
|
432
|
+
else if ((cc === CommandClasses.Security
|
|
433
|
+
&& node.hasSecurityClass(SecurityClass.S0_Legacy))
|
|
434
|
+
|| (cc === CommandClasses["Security 2"]
|
|
435
|
+
&& securityClassOrder.some((sc) => securityClassIsS2(sc)
|
|
436
|
+
&& node.hasSecurityClass(sc)))) {
|
|
437
|
+
logMessage = ` claims NOT to support CC ${CommandClasses[cc]} (${num2hex(cc)}), but it is known to support it. Assuming the ${this.endpointIndex === 0 ? "node" : "endpoint"} supports version 1...`;
|
|
438
|
+
endpoint.addCC(cc, { version: 1 });
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
logMessage = ` does NOT support CC ${CommandClasses[cc]} (${num2hex(cc)})`;
|
|
442
|
+
endpoint.removeCC(cc);
|
|
443
|
+
}
|
|
367
444
|
}
|
|
368
|
-
|
|
445
|
+
ctx.logNode(node.id, {
|
|
446
|
+
endpoint: this.endpointIndex,
|
|
447
|
+
message: logMessage,
|
|
448
|
+
});
|
|
369
449
|
}
|
|
370
450
|
else {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
else if ((cc === CommandClasses.Security
|
|
379
|
-
&& node.hasSecurityClass(SecurityClass.S0_Legacy))
|
|
380
|
-
|| (cc === CommandClasses["Security 2"]
|
|
381
|
-
&& securityClassOrder.some((sc) => securityClassIsS2(sc)
|
|
382
|
-
&& node.hasSecurityClass(sc)))) {
|
|
383
|
-
logMessage = ` claims NOT to support CC ${CommandClasses[cc]} (${num2hex(cc)}), but it is known to support it. Assuming the ${this.endpointIndex === 0 ? "node" : "endpoint"} supports version 1...`;
|
|
384
|
-
endpoint.addCC(cc, { version: 1 });
|
|
385
|
-
}
|
|
386
|
-
else {
|
|
387
|
-
logMessage = ` does NOT support CC ${CommandClasses[cc]} (${num2hex(cc)})`;
|
|
388
|
-
endpoint.removeCC(cc);
|
|
389
|
-
}
|
|
451
|
+
ctx.logNode(node.id, {
|
|
452
|
+
endpoint: this.endpointIndex,
|
|
453
|
+
message: `CC version query for ${getCCName(cc)} timed out - assuming the ${this.endpointIndex === 0 ? "node" : "endpoint"} supports version 1...`,
|
|
454
|
+
level: "warn",
|
|
455
|
+
});
|
|
456
|
+
endpoint.addCC(cc, { version: 1 });
|
|
390
457
|
}
|
|
458
|
+
};
|
|
459
|
+
// Version information should not change (except for firmware updates)
|
|
460
|
+
// And it is only relevant on the root endpoint (the node)
|
|
461
|
+
if (this.endpointIndex === 0) {
|
|
462
|
+
// Step 1: Query Version CC version
|
|
463
|
+
await queryCCVersion(CommandClasses.Version);
|
|
464
|
+
// Step 2: Query node versions
|
|
391
465
|
ctx.logNode(node.id, {
|
|
392
466
|
endpoint: this.endpointIndex,
|
|
393
|
-
message:
|
|
467
|
+
message: "querying node versions...",
|
|
468
|
+
direction: "outbound",
|
|
394
469
|
});
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
endpoint: this.endpointIndex,
|
|
399
|
-
message: `CC version query for ${getCCName(cc)} timed out - assuming the ${this.endpointIndex === 0 ? "node" : "endpoint"} supports version 1...`,
|
|
400
|
-
level: "warn",
|
|
401
|
-
});
|
|
402
|
-
endpoint.addCC(cc, { version: 1 });
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
// Version information should not change (except for firmware updates)
|
|
406
|
-
// And it is only relevant on the root endpoint (the node)
|
|
407
|
-
if (this.endpointIndex === 0) {
|
|
408
|
-
// Step 1: Query Version CC version
|
|
409
|
-
await queryCCVersion(CommandClasses.Version);
|
|
410
|
-
// Step 2: Query node versions
|
|
411
|
-
ctx.logNode(node.id, {
|
|
412
|
-
endpoint: this.endpointIndex,
|
|
413
|
-
message: "querying node versions...",
|
|
414
|
-
direction: "outbound",
|
|
415
|
-
});
|
|
416
|
-
const versionGetResponse = await api.get();
|
|
417
|
-
if (versionGetResponse) {
|
|
418
|
-
let logMessage = `received response for node versions:
|
|
470
|
+
const versionGetResponse = await api.get();
|
|
471
|
+
if (versionGetResponse) {
|
|
472
|
+
let logMessage = `received response for node versions:
|
|
419
473
|
library type: ${ZWaveLibraryTypes[versionGetResponse.libraryType]} (${num2hex(versionGetResponse.libraryType)})
|
|
420
474
|
protocol version: ${versionGetResponse.protocolVersion}
|
|
421
475
|
firmware versions: ${versionGetResponse.firmwareVersions.join(", ")}`;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
476
|
+
if (versionGetResponse.hardwareVersion != undefined) {
|
|
477
|
+
logMessage +=
|
|
478
|
+
`\n hardware version: ${versionGetResponse.hardwareVersion}`;
|
|
479
|
+
}
|
|
480
|
+
ctx.logNode(node.id, {
|
|
481
|
+
endpoint: this.endpointIndex,
|
|
482
|
+
message: logMessage,
|
|
483
|
+
direction: "inbound",
|
|
484
|
+
});
|
|
425
485
|
}
|
|
426
|
-
ctx.logNode(node.id, {
|
|
427
|
-
endpoint: this.endpointIndex,
|
|
428
|
-
message: logMessage,
|
|
429
|
-
direction: "inbound",
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
// Step 3: Query all other CC versions
|
|
434
|
-
ctx.logNode(node.id, {
|
|
435
|
-
endpoint: this.endpointIndex,
|
|
436
|
-
message: "querying CC versions...",
|
|
437
|
-
direction: "outbound",
|
|
438
|
-
});
|
|
439
|
-
// Basic CC is not included in the NIF, so it won't be returned by endpoint.getCCs() at this point
|
|
440
|
-
{
|
|
441
|
-
const cc = CommandClasses.Basic;
|
|
442
|
-
// Skip the query of endpoint CCs that are also supported by the root device
|
|
443
|
-
if (this.endpointIndex === 0 || node.getCCVersion(cc) === 0) {
|
|
444
|
-
await queryCCVersion(cc);
|
|
445
486
|
}
|
|
446
|
-
|
|
447
|
-
for (const [cc] of endpoint.getCCs()) {
|
|
448
|
-
// We already queried the Version CC version at the start of this interview
|
|
449
|
-
if (cc === CommandClasses.Version)
|
|
450
|
-
continue;
|
|
451
|
-
// And we queried Basic CC just before this
|
|
452
|
-
if (cc === CommandClasses.Basic)
|
|
453
|
-
continue;
|
|
454
|
-
// Skip the query of endpoint CCs that are also supported by the root device
|
|
455
|
-
if (this.endpointIndex > 0 && node.getCCVersion(cc) > 0)
|
|
456
|
-
continue;
|
|
457
|
-
await queryCCVersion(cc);
|
|
458
|
-
}
|
|
459
|
-
// Step 4: Query VersionCC capabilities (root device only)
|
|
460
|
-
if (this.endpointIndex === 0 && api.version >= 3) {
|
|
461
|
-
// Step 4a: Support for SoftwareGet
|
|
487
|
+
// Step 3: Query all other CC versions
|
|
462
488
|
ctx.logNode(node.id, {
|
|
463
489
|
endpoint: this.endpointIndex,
|
|
464
|
-
message: "querying
|
|
490
|
+
message: "querying CC versions...",
|
|
465
491
|
direction: "outbound",
|
|
466
492
|
});
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
const
|
|
493
|
+
// Basic CC is not included in the NIF, so it won't be returned by endpoint.getCCs() at this point
|
|
494
|
+
{
|
|
495
|
+
const cc = CommandClasses.Basic;
|
|
496
|
+
// Skip the query of endpoint CCs that are also supported by the root device
|
|
497
|
+
if (this.endpointIndex === 0 || node.getCCVersion(cc) === 0) {
|
|
498
|
+
await queryCCVersion(cc);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
for (const [cc] of endpoint.getCCs()) {
|
|
502
|
+
// We already queried the Version CC version at the start of this interview
|
|
503
|
+
if (cc === CommandClasses.Version)
|
|
504
|
+
continue;
|
|
505
|
+
// And we queried Basic CC just before this
|
|
506
|
+
if (cc === CommandClasses.Basic)
|
|
507
|
+
continue;
|
|
508
|
+
// Skip the query of endpoint CCs that are also supported by the root device
|
|
509
|
+
if (this.endpointIndex > 0 && node.getCCVersion(cc) > 0)
|
|
510
|
+
continue;
|
|
511
|
+
await queryCCVersion(cc);
|
|
512
|
+
}
|
|
513
|
+
// Step 4: Query VersionCC capabilities (root device only)
|
|
514
|
+
if (this.endpointIndex === 0 && api.version >= 3) {
|
|
515
|
+
// Step 4a: Support for SoftwareGet
|
|
470
516
|
ctx.logNode(node.id, {
|
|
471
517
|
endpoint: this.endpointIndex,
|
|
472
|
-
message:
|
|
473
|
-
direction: "
|
|
518
|
+
message: "querying if Z-Wave Software Get is supported...",
|
|
519
|
+
direction: "outbound",
|
|
474
520
|
});
|
|
475
|
-
|
|
476
|
-
|
|
521
|
+
const capsResponse = await api.getCapabilities();
|
|
522
|
+
if (capsResponse) {
|
|
523
|
+
const { supportsZWaveSoftwareGet } = capsResponse;
|
|
477
524
|
ctx.logNode(node.id, {
|
|
478
525
|
endpoint: this.endpointIndex,
|
|
479
|
-
message:
|
|
480
|
-
direction: "outbound",
|
|
481
|
-
});
|
|
482
|
-
await api.getZWaveSoftware();
|
|
483
|
-
ctx.logNode(node.id, {
|
|
484
|
-
endpoint: this.endpointIndex,
|
|
485
|
-
message: "received Z-Wave software versions",
|
|
526
|
+
message: `Z-Wave Software Get is${supportsZWaveSoftwareGet ? "" : " not"} supported`,
|
|
486
527
|
direction: "inbound",
|
|
487
528
|
});
|
|
529
|
+
if (supportsZWaveSoftwareGet) {
|
|
530
|
+
// Step 4b: Query Z-Wave Software versions
|
|
531
|
+
ctx.logNode(node.id, {
|
|
532
|
+
endpoint: this.endpointIndex,
|
|
533
|
+
message: "querying Z-Wave software versions...",
|
|
534
|
+
direction: "outbound",
|
|
535
|
+
});
|
|
536
|
+
await api.getZWaveSoftware();
|
|
537
|
+
ctx.logNode(node.id, {
|
|
538
|
+
endpoint: this.endpointIndex,
|
|
539
|
+
message: "received Z-Wave software versions",
|
|
540
|
+
direction: "inbound",
|
|
541
|
+
});
|
|
542
|
+
}
|
|
488
543
|
}
|
|
489
544
|
}
|
|
545
|
+
// Remember that the interview is complete
|
|
546
|
+
this.setInterviewComplete(ctx, true);
|
|
490
547
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
};
|
|
495
|
-
VersionCC = __decorate([
|
|
496
|
-
commandClass(CommandClasses.Version),
|
|
497
|
-
implementedVersion(3),
|
|
498
|
-
ccValues(VersionCCValues)
|
|
499
|
-
], VersionCC);
|
|
548
|
+
};
|
|
549
|
+
return VersionCC = _classThis;
|
|
550
|
+
})();
|
|
500
551
|
export { VersionCC };
|
|
501
|
-
let VersionCCReport =
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
hardwareVersion = raw.payload[5];
|
|
524
|
-
const additionalFirmwares = raw.payload[6];
|
|
525
|
-
validatePayload(raw.payload.length >= 7 + 2 * additionalFirmwares);
|
|
526
|
-
for (let i = 0; i < additionalFirmwares; i++) {
|
|
527
|
-
firmwareVersions.push(`${raw.payload[7 + 2 * i]}.${raw.payload[7 + 2 * i + 1]}`);
|
|
552
|
+
let VersionCCReport = (() => {
|
|
553
|
+
let _classDecorators = [CCCommand(VersionCommand.Report), ccValueProperty("libraryType", VersionCCValues.libraryType), ccValueProperty("protocolVersion", VersionCCValues.protocolVersion), ccValueProperty("firmwareVersions", VersionCCValues.firmwareVersions), ccValueProperty("hardwareVersion", VersionCCValues.hardwareVersion)];
|
|
554
|
+
let _classDescriptor;
|
|
555
|
+
let _classExtraInitializers = [];
|
|
556
|
+
let _classThis;
|
|
557
|
+
let _classSuper = VersionCC;
|
|
558
|
+
var VersionCCReport = class extends _classSuper {
|
|
559
|
+
static { _classThis = this; }
|
|
560
|
+
static {
|
|
561
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
562
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
563
|
+
VersionCCReport = _classThis = _classDescriptor.value;
|
|
564
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
565
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
566
|
+
}
|
|
567
|
+
constructor(options) {
|
|
568
|
+
super(options);
|
|
569
|
+
if (!/^\d+\.\d+(\.\d+)?$/.test(options.protocolVersion)) {
|
|
570
|
+
throw new ZWaveError(`protocolVersion must be a string in the format "major.minor" or "major.minor.patch", received "${options.protocolVersion}"`, ZWaveErrorCodes.Argument_Invalid);
|
|
571
|
+
}
|
|
572
|
+
else if (!options.firmwareVersions.every((fw) => /^\d+\.\d+(\.\d+)?$/.test(fw))) {
|
|
573
|
+
throw new ZWaveError(`firmwareVersions must be an array of strings in the format "major.minor" or "major.minor.patch", received "${JSON.stringify(options.firmwareVersions)}"`, ZWaveErrorCodes.Argument_Invalid);
|
|
528
574
|
}
|
|
575
|
+
this.libraryType = options.libraryType;
|
|
576
|
+
this.protocolVersion = options.protocolVersion;
|
|
577
|
+
this.firmwareVersions = options.firmwareVersions;
|
|
578
|
+
this.hardwareVersion = options.hardwareVersion;
|
|
529
579
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
libraryType
|
|
533
|
-
protocolVersion
|
|
534
|
-
firmwareVersions
|
|
535
|
-
hardwareVersion
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
580
|
+
static from(raw, ctx) {
|
|
581
|
+
validatePayload(raw.payload.length >= 5);
|
|
582
|
+
const libraryType = raw.payload[0];
|
|
583
|
+
const protocolVersion = `${raw.payload[1]}.${raw.payload[2]}`;
|
|
584
|
+
const firmwareVersions = [`${raw.payload[3]}.${raw.payload[4]}`];
|
|
585
|
+
let hardwareVersion;
|
|
586
|
+
if (raw.payload.length >= 7) {
|
|
587
|
+
// V2+
|
|
588
|
+
hardwareVersion = raw.payload[5];
|
|
589
|
+
const additionalFirmwares = raw.payload[6];
|
|
590
|
+
validatePayload(raw.payload.length >= 7 + 2 * additionalFirmwares);
|
|
591
|
+
for (let i = 0; i < additionalFirmwares; i++) {
|
|
592
|
+
firmwareVersions.push(`${raw.payload[7 + 2 * i]}.${raw.payload[7 + 2 * i + 1]}`);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return new this({
|
|
596
|
+
nodeId: ctx.sourceNodeId,
|
|
597
|
+
libraryType,
|
|
598
|
+
protocolVersion,
|
|
599
|
+
firmwareVersions,
|
|
600
|
+
hardwareVersion,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
libraryType;
|
|
604
|
+
protocolVersion;
|
|
605
|
+
firmwareVersions;
|
|
606
|
+
hardwareVersion;
|
|
607
|
+
serialize(ctx) {
|
|
608
|
+
this.payload = Bytes.from([
|
|
609
|
+
this.libraryType,
|
|
610
|
+
...this.protocolVersion
|
|
560
611
|
.split(".")
|
|
561
|
-
.map((n) => parseInt(n))
|
|
562
|
-
|
|
563
|
-
|
|
612
|
+
.map((n) => parseInt(n))
|
|
613
|
+
.slice(0, 2),
|
|
614
|
+
...this.firmwareVersions[0]
|
|
615
|
+
.split(".")
|
|
616
|
+
.map((n) => parseInt(n))
|
|
617
|
+
.slice(0, 2),
|
|
618
|
+
this.hardwareVersion ?? 0x00,
|
|
619
|
+
this.firmwareVersions.length - 1,
|
|
620
|
+
]);
|
|
621
|
+
if (this.firmwareVersions.length > 1) {
|
|
622
|
+
const firmwaresBuffer = new Bytes((this.firmwareVersions.length - 1) * 2);
|
|
623
|
+
for (let i = 1; i < this.firmwareVersions.length; i++) {
|
|
624
|
+
const [major, minor] = this.firmwareVersions[i]
|
|
625
|
+
.split(".")
|
|
626
|
+
.map((n) => parseInt(n));
|
|
627
|
+
firmwaresBuffer[2 * (i - 1)] = major;
|
|
628
|
+
firmwaresBuffer[2 * (i - 1) + 1] = minor;
|
|
629
|
+
}
|
|
630
|
+
this.payload = Bytes.concat([this.payload, firmwaresBuffer]);
|
|
564
631
|
}
|
|
565
|
-
|
|
632
|
+
return super.serialize(ctx);
|
|
566
633
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
};
|
|
584
|
-
__decorate([
|
|
585
|
-
ccValue(VersionCCValues.libraryType)
|
|
586
|
-
], VersionCCReport.prototype, "libraryType", void 0);
|
|
587
|
-
__decorate([
|
|
588
|
-
ccValue(VersionCCValues.protocolVersion)
|
|
589
|
-
], VersionCCReport.prototype, "protocolVersion", void 0);
|
|
590
|
-
__decorate([
|
|
591
|
-
ccValue(VersionCCValues.firmwareVersions)
|
|
592
|
-
], VersionCCReport.prototype, "firmwareVersions", void 0);
|
|
593
|
-
__decorate([
|
|
594
|
-
ccValue(VersionCCValues.hardwareVersion)
|
|
595
|
-
], VersionCCReport.prototype, "hardwareVersion", void 0);
|
|
596
|
-
VersionCCReport = VersionCCReport_1 = __decorate([
|
|
597
|
-
CCCommand(VersionCommand.Report)
|
|
598
|
-
], VersionCCReport);
|
|
634
|
+
toLogEntry(ctx) {
|
|
635
|
+
const message = {
|
|
636
|
+
"library type": getEnumMemberName(ZWaveLibraryTypes, this.libraryType),
|
|
637
|
+
"protocol version": this.protocolVersion,
|
|
638
|
+
"firmware versions": this.firmwareVersions.join(", "),
|
|
639
|
+
};
|
|
640
|
+
if (this.hardwareVersion != undefined) {
|
|
641
|
+
message["hardware version"] = this.hardwareVersion;
|
|
642
|
+
}
|
|
643
|
+
return {
|
|
644
|
+
...super.toLogEntry(ctx),
|
|
645
|
+
message,
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
return VersionCCReport = _classThis;
|
|
650
|
+
})();
|
|
599
651
|
export { VersionCCReport };
|
|
600
|
-
let VersionCCGet =
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
652
|
+
let VersionCCGet = (() => {
|
|
653
|
+
let _classDecorators = [CCCommand(VersionCommand.Get), expectedCCResponse(VersionCCReport)];
|
|
654
|
+
let _classDescriptor;
|
|
655
|
+
let _classExtraInitializers = [];
|
|
656
|
+
let _classThis;
|
|
657
|
+
let _classSuper = VersionCC;
|
|
658
|
+
var VersionCCGet = class extends _classSuper {
|
|
659
|
+
static { _classThis = this; }
|
|
660
|
+
static {
|
|
661
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
662
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
663
|
+
VersionCCGet = _classThis = _classDescriptor.value;
|
|
664
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
665
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
return VersionCCGet = _classThis;
|
|
669
|
+
})();
|
|
606
670
|
export { VersionCCGet };
|
|
607
|
-
let VersionCCCommandClassReport =
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
671
|
+
let VersionCCCommandClassReport = (() => {
|
|
672
|
+
let _classDecorators = [CCCommand(VersionCommand.CommandClassReport)];
|
|
673
|
+
let _classDescriptor;
|
|
674
|
+
let _classExtraInitializers = [];
|
|
675
|
+
let _classThis;
|
|
676
|
+
let _classSuper = VersionCC;
|
|
677
|
+
var VersionCCCommandClassReport = class extends _classSuper {
|
|
678
|
+
static { _classThis = this; }
|
|
679
|
+
static {
|
|
680
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
681
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
682
|
+
VersionCCCommandClassReport = _classThis = _classDescriptor.value;
|
|
683
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
684
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
685
|
+
}
|
|
686
|
+
constructor(options) {
|
|
687
|
+
super(options);
|
|
688
|
+
this.requestedCC = options.requestedCC;
|
|
689
|
+
this.ccVersion = options.ccVersion;
|
|
690
|
+
}
|
|
691
|
+
static from(raw, ctx) {
|
|
692
|
+
validatePayload(raw.payload.length >= 2);
|
|
693
|
+
const requestedCC = raw.payload[0];
|
|
694
|
+
const ccVersion = raw.payload[1];
|
|
695
|
+
return new this({
|
|
696
|
+
nodeId: ctx.sourceNodeId,
|
|
697
|
+
requestedCC,
|
|
698
|
+
ccVersion,
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
ccVersion;
|
|
702
|
+
requestedCC;
|
|
703
|
+
serialize(ctx) {
|
|
704
|
+
this.payload = Bytes.from([this.requestedCC, this.ccVersion]);
|
|
705
|
+
return super.serialize(ctx);
|
|
706
|
+
}
|
|
707
|
+
toLogEntry(ctx) {
|
|
708
|
+
return {
|
|
709
|
+
...super.toLogEntry(ctx),
|
|
710
|
+
message: {
|
|
711
|
+
CC: getCCName(this.requestedCC),
|
|
712
|
+
version: this.ccVersion,
|
|
713
|
+
},
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
return VersionCCCommandClassReport = _classThis;
|
|
718
|
+
})();
|
|
642
719
|
export { VersionCCCommandClassReport };
|
|
643
720
|
function testResponseForVersionCommandClassGet(sent, received) {
|
|
644
721
|
// We expect a Version CommandClass Report that matches the requested CC
|
|
645
722
|
return sent.requestedCC === received.requestedCC;
|
|
646
723
|
}
|
|
647
|
-
let VersionCCCommandClassGet =
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
724
|
+
let VersionCCCommandClassGet = (() => {
|
|
725
|
+
let _classDecorators = [CCCommand(VersionCommand.CommandClassGet), expectedCCResponse(VersionCCCommandClassReport, testResponseForVersionCommandClassGet)];
|
|
726
|
+
let _classDescriptor;
|
|
727
|
+
let _classExtraInitializers = [];
|
|
728
|
+
let _classThis;
|
|
729
|
+
let _classSuper = VersionCC;
|
|
730
|
+
var VersionCCCommandClassGet = class extends _classSuper {
|
|
731
|
+
static { _classThis = this; }
|
|
732
|
+
static {
|
|
733
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
734
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
735
|
+
VersionCCCommandClassGet = _classThis = _classDescriptor.value;
|
|
736
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
737
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
738
|
+
}
|
|
739
|
+
constructor(options) {
|
|
740
|
+
super(options);
|
|
741
|
+
this.requestedCC = options.requestedCC;
|
|
742
|
+
}
|
|
743
|
+
static from(raw, ctx) {
|
|
744
|
+
validatePayload(raw.payload.length >= 1);
|
|
745
|
+
const requestedCC = raw.payload[0];
|
|
746
|
+
return new this({
|
|
747
|
+
nodeId: ctx.sourceNodeId,
|
|
748
|
+
requestedCC,
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
requestedCC;
|
|
752
|
+
serialize(ctx) {
|
|
753
|
+
this.payload = Bytes.from([this.requestedCC]);
|
|
754
|
+
return super.serialize(ctx);
|
|
755
|
+
}
|
|
756
|
+
toLogEntry(ctx) {
|
|
757
|
+
return {
|
|
758
|
+
...super.toLogEntry(ctx),
|
|
759
|
+
message: { CC: getCCName(this.requestedCC) },
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
return VersionCCCommandClassGet = _classThis;
|
|
764
|
+
})();
|
|
676
765
|
export { VersionCCCommandClassGet };
|
|
677
|
-
let VersionCCCapabilitiesReport =
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
]
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
766
|
+
let VersionCCCapabilitiesReport = (() => {
|
|
767
|
+
let _classDecorators = [CCCommand(VersionCommand.CapabilitiesReport), ccValueProperty("supportsZWaveSoftwareGet", VersionCCValues.supportsZWaveSoftwareGet)];
|
|
768
|
+
let _classDescriptor;
|
|
769
|
+
let _classExtraInitializers = [];
|
|
770
|
+
let _classThis;
|
|
771
|
+
let _classSuper = VersionCC;
|
|
772
|
+
var VersionCCCapabilitiesReport = class extends _classSuper {
|
|
773
|
+
static { _classThis = this; }
|
|
774
|
+
static {
|
|
775
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
776
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
777
|
+
VersionCCCapabilitiesReport = _classThis = _classDescriptor.value;
|
|
778
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
779
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
780
|
+
}
|
|
781
|
+
constructor(options) {
|
|
782
|
+
super(options);
|
|
783
|
+
this.supportsZWaveSoftwareGet = options.supportsZWaveSoftwareGet;
|
|
784
|
+
}
|
|
785
|
+
static from(raw, ctx) {
|
|
786
|
+
validatePayload(raw.payload.length >= 1);
|
|
787
|
+
const capabilities = raw.payload[0];
|
|
788
|
+
const supportsZWaveSoftwareGet = !!(capabilities & 0b100);
|
|
789
|
+
return new this({
|
|
790
|
+
nodeId: ctx.sourceNodeId,
|
|
791
|
+
supportsZWaveSoftwareGet,
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
supportsZWaveSoftwareGet;
|
|
795
|
+
serialize(ctx) {
|
|
796
|
+
this.payload = Bytes.from([
|
|
797
|
+
(this.supportsZWaveSoftwareGet ? 0b100 : 0) | 0b11,
|
|
798
|
+
]);
|
|
799
|
+
return super.serialize(ctx);
|
|
800
|
+
}
|
|
801
|
+
toLogEntry(ctx) {
|
|
802
|
+
return {
|
|
803
|
+
...super.toLogEntry(ctx),
|
|
804
|
+
message: {
|
|
805
|
+
"supports Z-Wave Software Get command": this.supportsZWaveSoftwareGet,
|
|
806
|
+
},
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
return VersionCCCapabilitiesReport = _classThis;
|
|
811
|
+
})();
|
|
713
812
|
export { VersionCCCapabilitiesReport };
|
|
714
|
-
let VersionCCCapabilitiesGet =
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
813
|
+
let VersionCCCapabilitiesGet = (() => {
|
|
814
|
+
let _classDecorators = [CCCommand(VersionCommand.CapabilitiesGet), expectedCCResponse(VersionCCCapabilitiesReport)];
|
|
815
|
+
let _classDescriptor;
|
|
816
|
+
let _classExtraInitializers = [];
|
|
817
|
+
let _classThis;
|
|
818
|
+
let _classSuper = VersionCC;
|
|
819
|
+
var VersionCCCapabilitiesGet = class extends _classSuper {
|
|
820
|
+
static { _classThis = this; }
|
|
821
|
+
static {
|
|
822
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
823
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
824
|
+
VersionCCCapabilitiesGet = _classThis = _classDescriptor.value;
|
|
825
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
826
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
return VersionCCCapabilitiesGet = _classThis;
|
|
830
|
+
})();
|
|
720
831
|
export { VersionCCCapabilitiesGet };
|
|
721
|
-
let VersionCCZWaveSoftwareReport =
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
this
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
ccValue(VersionCCValues.zWaveProtocolVersion)
|
|
841
|
-
], VersionCCZWaveSoftwareReport.prototype, "zWaveProtocolVersion", void 0);
|
|
842
|
-
__decorate([
|
|
843
|
-
ccValue(VersionCCValues.zWaveProtocolBuildNumber)
|
|
844
|
-
], VersionCCZWaveSoftwareReport.prototype, "zWaveProtocolBuildNumber", void 0);
|
|
845
|
-
__decorate([
|
|
846
|
-
ccValue(VersionCCValues.applicationVersion)
|
|
847
|
-
], VersionCCZWaveSoftwareReport.prototype, "applicationVersion", void 0);
|
|
848
|
-
__decorate([
|
|
849
|
-
ccValue(VersionCCValues.applicationBuildNumber)
|
|
850
|
-
], VersionCCZWaveSoftwareReport.prototype, "applicationBuildNumber", void 0);
|
|
851
|
-
VersionCCZWaveSoftwareReport = VersionCCZWaveSoftwareReport_1 = __decorate([
|
|
852
|
-
CCCommand(VersionCommand.ZWaveSoftwareReport)
|
|
853
|
-
], VersionCCZWaveSoftwareReport);
|
|
832
|
+
let VersionCCZWaveSoftwareReport = (() => {
|
|
833
|
+
let _classDecorators = [CCCommand(VersionCommand.ZWaveSoftwareReport), ccValueProperty("sdkVersion", VersionCCValues.sdkVersion), ccValueProperty("applicationFrameworkAPIVersion", VersionCCValues.applicationFrameworkAPIVersion), ccValueProperty("applicationFrameworkBuildNumber", VersionCCValues.applicationFrameworkBuildNumber), ccValueProperty("hostInterfaceVersion", VersionCCValues.serialAPIVersion), ccValueProperty("hostInterfaceBuildNumber", VersionCCValues.serialAPIBuildNumber), ccValueProperty("zWaveProtocolVersion", VersionCCValues.zWaveProtocolVersion), ccValueProperty("zWaveProtocolBuildNumber", VersionCCValues.zWaveProtocolBuildNumber), ccValueProperty("applicationVersion", VersionCCValues.applicationVersion), ccValueProperty("applicationBuildNumber", VersionCCValues.applicationBuildNumber)];
|
|
834
|
+
let _classDescriptor;
|
|
835
|
+
let _classExtraInitializers = [];
|
|
836
|
+
let _classThis;
|
|
837
|
+
let _classSuper = VersionCC;
|
|
838
|
+
var VersionCCZWaveSoftwareReport = class extends _classSuper {
|
|
839
|
+
static { _classThis = this; }
|
|
840
|
+
static {
|
|
841
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
842
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
843
|
+
VersionCCZWaveSoftwareReport = _classThis = _classDescriptor.value;
|
|
844
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
845
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
846
|
+
}
|
|
847
|
+
constructor(options) {
|
|
848
|
+
super(options);
|
|
849
|
+
// TODO: Check implementation:
|
|
850
|
+
this.sdkVersion = options.sdkVersion;
|
|
851
|
+
this.applicationFrameworkAPIVersion =
|
|
852
|
+
options.applicationFrameworkAPIVersion;
|
|
853
|
+
this.applicationFrameworkBuildNumber =
|
|
854
|
+
options.applicationFrameworkBuildNumber;
|
|
855
|
+
this.hostInterfaceVersion = options.hostInterfaceVersion;
|
|
856
|
+
this.hostInterfaceBuildNumber = options.hostInterfaceBuildNumber;
|
|
857
|
+
this.zWaveProtocolVersion = options.zWaveProtocolVersion;
|
|
858
|
+
this.zWaveProtocolBuildNumber = options.zWaveProtocolBuildNumber;
|
|
859
|
+
this.applicationVersion = options.applicationVersion;
|
|
860
|
+
this.applicationBuildNumber = options.applicationBuildNumber;
|
|
861
|
+
}
|
|
862
|
+
static from(raw, ctx) {
|
|
863
|
+
validatePayload(raw.payload.length >= 23);
|
|
864
|
+
const sdkVersion = parseVersion(raw.payload);
|
|
865
|
+
const applicationFrameworkAPIVersion = parseVersion(raw.payload.subarray(3));
|
|
866
|
+
let applicationFrameworkBuildNumber;
|
|
867
|
+
if (applicationFrameworkAPIVersion !== "unused") {
|
|
868
|
+
applicationFrameworkBuildNumber = raw.payload.readUInt16BE(6);
|
|
869
|
+
}
|
|
870
|
+
else {
|
|
871
|
+
applicationFrameworkBuildNumber = 0;
|
|
872
|
+
}
|
|
873
|
+
const hostInterfaceVersion = parseVersion(raw.payload.subarray(8));
|
|
874
|
+
let hostInterfaceBuildNumber;
|
|
875
|
+
if (hostInterfaceVersion !== "unused") {
|
|
876
|
+
hostInterfaceBuildNumber = raw.payload.readUInt16BE(11);
|
|
877
|
+
}
|
|
878
|
+
else {
|
|
879
|
+
hostInterfaceBuildNumber = 0;
|
|
880
|
+
}
|
|
881
|
+
const zWaveProtocolVersion = parseVersion(raw.payload.subarray(13));
|
|
882
|
+
let zWaveProtocolBuildNumber;
|
|
883
|
+
if (zWaveProtocolVersion !== "unused") {
|
|
884
|
+
zWaveProtocolBuildNumber = raw.payload.readUInt16BE(16);
|
|
885
|
+
}
|
|
886
|
+
else {
|
|
887
|
+
zWaveProtocolBuildNumber = 0;
|
|
888
|
+
}
|
|
889
|
+
const applicationVersion = parseVersion(raw.payload.subarray(18));
|
|
890
|
+
let applicationBuildNumber;
|
|
891
|
+
if (applicationVersion !== "unused") {
|
|
892
|
+
applicationBuildNumber = raw.payload.readUInt16BE(21);
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
applicationBuildNumber = 0;
|
|
896
|
+
}
|
|
897
|
+
return new this({
|
|
898
|
+
nodeId: ctx.sourceNodeId,
|
|
899
|
+
sdkVersion,
|
|
900
|
+
applicationFrameworkAPIVersion,
|
|
901
|
+
applicationFrameworkBuildNumber,
|
|
902
|
+
hostInterfaceVersion,
|
|
903
|
+
hostInterfaceBuildNumber,
|
|
904
|
+
zWaveProtocolVersion,
|
|
905
|
+
zWaveProtocolBuildNumber,
|
|
906
|
+
applicationVersion,
|
|
907
|
+
applicationBuildNumber,
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
sdkVersion;
|
|
911
|
+
applicationFrameworkAPIVersion;
|
|
912
|
+
applicationFrameworkBuildNumber;
|
|
913
|
+
hostInterfaceVersion;
|
|
914
|
+
hostInterfaceBuildNumber;
|
|
915
|
+
zWaveProtocolVersion;
|
|
916
|
+
zWaveProtocolBuildNumber;
|
|
917
|
+
applicationVersion;
|
|
918
|
+
applicationBuildNumber;
|
|
919
|
+
toLogEntry(ctx) {
|
|
920
|
+
const message = {
|
|
921
|
+
"SDK version": this.sdkVersion,
|
|
922
|
+
};
|
|
923
|
+
message["appl. framework API version"] =
|
|
924
|
+
this.applicationFrameworkAPIVersion;
|
|
925
|
+
if (this.applicationFrameworkAPIVersion !== "unused") {
|
|
926
|
+
message["appl. framework build number"] =
|
|
927
|
+
this.applicationFrameworkBuildNumber;
|
|
928
|
+
}
|
|
929
|
+
message["host interface version"] = this.hostInterfaceVersion;
|
|
930
|
+
if (this.hostInterfaceVersion !== "unused") {
|
|
931
|
+
message["host interface build number"] =
|
|
932
|
+
this.hostInterfaceBuildNumber;
|
|
933
|
+
}
|
|
934
|
+
message["Z-Wave protocol version"] = this.zWaveProtocolVersion;
|
|
935
|
+
if (this.zWaveProtocolVersion !== "unused") {
|
|
936
|
+
message["Z-Wave protocol build number"] =
|
|
937
|
+
this.zWaveProtocolBuildNumber;
|
|
938
|
+
}
|
|
939
|
+
message["application version"] = this.applicationVersion;
|
|
940
|
+
if (this.applicationVersion !== "unused") {
|
|
941
|
+
message["application build number"] = this.applicationBuildNumber;
|
|
942
|
+
}
|
|
943
|
+
return {
|
|
944
|
+
...super.toLogEntry(ctx),
|
|
945
|
+
message,
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
return VersionCCZWaveSoftwareReport = _classThis;
|
|
950
|
+
})();
|
|
854
951
|
export { VersionCCZWaveSoftwareReport };
|
|
855
|
-
let VersionCCZWaveSoftwareGet =
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
952
|
+
let VersionCCZWaveSoftwareGet = (() => {
|
|
953
|
+
let _classDecorators = [CCCommand(VersionCommand.ZWaveSoftwareGet), expectedCCResponse(VersionCCZWaveSoftwareReport)];
|
|
954
|
+
let _classDescriptor;
|
|
955
|
+
let _classExtraInitializers = [];
|
|
956
|
+
let _classThis;
|
|
957
|
+
let _classSuper = VersionCC;
|
|
958
|
+
var VersionCCZWaveSoftwareGet = class extends _classSuper {
|
|
959
|
+
static { _classThis = this; }
|
|
960
|
+
static {
|
|
961
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
962
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
963
|
+
VersionCCZWaveSoftwareGet = _classThis = _classDescriptor.value;
|
|
964
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
965
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
return VersionCCZWaveSoftwareGet = _classThis;
|
|
969
|
+
})();
|
|
861
970
|
export { VersionCCZWaveSoftwareGet };
|
|
862
971
|
//# sourceMappingURL=VersionCC.js.map
|