@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
|
@@ -35,13 +35,45 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
35
35
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
36
36
|
var import_Values = require("../lib/Values.js");
|
|
37
37
|
var import_Types = require("../lib/_Types.js");
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
39
|
+
function accept(f) {
|
|
40
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
41
|
+
return f;
|
|
42
|
+
}
|
|
43
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
44
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
45
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
46
|
+
var _, done = false;
|
|
47
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
48
|
+
var context = {};
|
|
49
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
50
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
51
|
+
context.addInitializer = function(f) {
|
|
52
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
53
|
+
extraInitializers.push(accept(f || null));
|
|
54
|
+
};
|
|
55
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
56
|
+
if (kind === "accessor") {
|
|
57
|
+
if (result === void 0) continue;
|
|
58
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
59
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
60
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
61
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
62
|
+
} else if (_ = accept(result)) {
|
|
63
|
+
if (kind === "field") initializers.unshift(_);
|
|
64
|
+
else descriptor[key] = _;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
68
|
+
done = true;
|
|
69
|
+
};
|
|
70
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
71
|
+
var useValue = arguments.length > 2;
|
|
72
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
73
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
74
|
+
}
|
|
75
|
+
return useValue ? value : void 0;
|
|
43
76
|
};
|
|
44
|
-
var ManufacturerSpecificCCReport_1, ManufacturerSpecificCCDeviceSpecificReport_1;
|
|
45
77
|
function __assertType(argName, typeName, boundHasError) {
|
|
46
78
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
47
79
|
if (boundHasError()) {
|
|
@@ -105,222 +137,296 @@ const ManufacturerSpecificCCValues = Object.freeze({
|
|
|
105
137
|
}), { minVersion: 2 })
|
|
106
138
|
})
|
|
107
139
|
});
|
|
108
|
-
let ManufacturerSpecificCCAPI =
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return this.version >= 2;
|
|
140
|
+
let ManufacturerSpecificCCAPI = (() => {
|
|
141
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Manufacturer Specific"])];
|
|
142
|
+
let _classDescriptor;
|
|
143
|
+
let _classExtraInitializers = [];
|
|
144
|
+
let _classThis;
|
|
145
|
+
let _classSuper = import_API.PhysicalCCAPI;
|
|
146
|
+
var ManufacturerSpecificCCAPI2 = class extends _classSuper {
|
|
147
|
+
static {
|
|
148
|
+
_classThis = this;
|
|
118
149
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
nodeId: this.endpoint.nodeId,
|
|
126
|
-
endpointIndex: this.endpoint.index
|
|
127
|
-
});
|
|
128
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
129
|
-
if (response) {
|
|
130
|
-
return (0, import_safe3.pick)(response, [
|
|
131
|
-
"manufacturerId",
|
|
132
|
-
"productType",
|
|
133
|
-
"productId"
|
|
134
|
-
]);
|
|
150
|
+
static {
|
|
151
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
152
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
153
|
+
ManufacturerSpecificCCAPI2 = _classThis = _classDescriptor.value;
|
|
154
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
155
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
135
156
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
...options
|
|
155
|
-
});
|
|
156
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
ManufacturerSpecificCCAPI = __decorate([
|
|
160
|
-
(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Manufacturer Specific"])
|
|
161
|
-
], ManufacturerSpecificCCAPI);
|
|
162
|
-
let ManufacturerSpecificCC = class ManufacturerSpecificCC2 extends import_CommandClass.CommandClass {
|
|
163
|
-
determineRequiredCCInterviews() {
|
|
164
|
-
return [];
|
|
165
|
-
}
|
|
166
|
-
async interview(ctx) {
|
|
167
|
-
const node = this.getNode(ctx);
|
|
168
|
-
const endpoint = this.getEndpoint(ctx);
|
|
169
|
-
const api = import_API.CCAPI.create(import_safe.CommandClasses["Manufacturer Specific"], ctx, endpoint).withOptions({ priority: import_safe.MessagePriority.NodeQuery });
|
|
170
|
-
if (node.id !== ctx.ownNodeId) {
|
|
171
|
-
ctx.logNode(node.id, {
|
|
172
|
-
endpoint: this.endpointIndex,
|
|
173
|
-
message: `Interviewing ${this.ccName}...`,
|
|
174
|
-
direction: "none"
|
|
157
|
+
supportsCommand(cmd) {
|
|
158
|
+
switch (cmd) {
|
|
159
|
+
case import_Types.ManufacturerSpecificCommand.Get:
|
|
160
|
+
case import_Types.ManufacturerSpecificCommand.Report:
|
|
161
|
+
return true;
|
|
162
|
+
// This is mandatory
|
|
163
|
+
case import_Types.ManufacturerSpecificCommand.DeviceSpecificGet:
|
|
164
|
+
case import_Types.ManufacturerSpecificCommand.DeviceSpecificReport:
|
|
165
|
+
return this.version >= 2;
|
|
166
|
+
}
|
|
167
|
+
return super.supportsCommand(cmd);
|
|
168
|
+
}
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
170
|
+
async get() {
|
|
171
|
+
this.assertSupportsCommand(import_Types.ManufacturerSpecificCommand, import_Types.ManufacturerSpecificCommand.Get);
|
|
172
|
+
const cc = new ManufacturerSpecificCCGet({
|
|
173
|
+
nodeId: this.endpoint.nodeId,
|
|
174
|
+
endpointIndex: this.endpoint.index
|
|
175
175
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
177
|
+
if (response) {
|
|
178
|
+
return (0, import_safe3.pick)(response, [
|
|
179
|
+
"manufacturerId",
|
|
180
|
+
"productType",
|
|
181
|
+
"productId"
|
|
182
|
+
]);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
async deviceSpecificGet(deviceIdType) {
|
|
186
|
+
__assertType("deviceIdType", "DeviceIdType", __assertType__number.bind(void 0, deviceIdType));
|
|
187
|
+
this.assertSupportsCommand(import_Types.ManufacturerSpecificCommand, import_Types.ManufacturerSpecificCommand.DeviceSpecificGet);
|
|
188
|
+
const cc = new ManufacturerSpecificCCDeviceSpecificGet({
|
|
189
|
+
nodeId: this.endpoint.nodeId,
|
|
190
|
+
endpointIndex: this.endpoint.index,
|
|
191
|
+
deviceIdType
|
|
180
192
|
});
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
193
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
194
|
+
return response?.deviceId;
|
|
195
|
+
}
|
|
196
|
+
async sendReport(options) {
|
|
197
|
+
__assertType("options", "ManufacturerSpecificCCReportOptions", __assertType__ManufacturerSpecificCCReportOptions.bind(void 0, options));
|
|
198
|
+
this.assertSupportsCommand(import_Types.ManufacturerSpecificCommand, import_Types.ManufacturerSpecificCommand.Report);
|
|
199
|
+
const cc = new ManufacturerSpecificCCReport({
|
|
200
|
+
nodeId: this.endpoint.nodeId,
|
|
201
|
+
endpointIndex: this.endpoint.index,
|
|
202
|
+
...options
|
|
203
|
+
});
|
|
204
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
return ManufacturerSpecificCCAPI2 = _classThis;
|
|
208
|
+
})();
|
|
209
|
+
let ManufacturerSpecificCC = (() => {
|
|
210
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Manufacturer Specific"]), (0, import_CommandClassDecorators.implementedVersion)(2), (0, import_CommandClassDecorators.ccValues)(ManufacturerSpecificCCValues)];
|
|
211
|
+
let _classDescriptor;
|
|
212
|
+
let _classExtraInitializers = [];
|
|
213
|
+
let _classThis;
|
|
214
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
215
|
+
var ManufacturerSpecificCC2 = class extends _classSuper {
|
|
216
|
+
static {
|
|
217
|
+
_classThis = this;
|
|
218
|
+
}
|
|
219
|
+
static {
|
|
220
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
221
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
222
|
+
ManufacturerSpecificCC2 = _classThis = _classDescriptor.value;
|
|
223
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
224
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
225
|
+
}
|
|
226
|
+
determineRequiredCCInterviews() {
|
|
227
|
+
return [];
|
|
228
|
+
}
|
|
229
|
+
async interview(ctx) {
|
|
230
|
+
const node = this.getNode(ctx);
|
|
231
|
+
const endpoint = this.getEndpoint(ctx);
|
|
232
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Manufacturer Specific"], ctx, endpoint).withOptions({ priority: import_safe.MessagePriority.NodeQuery });
|
|
233
|
+
if (node.id !== ctx.ownNodeId) {
|
|
187
234
|
ctx.logNode(node.id, {
|
|
188
235
|
endpoint: this.endpointIndex,
|
|
189
|
-
message:
|
|
190
|
-
direction: "
|
|
236
|
+
message: `Interviewing ${this.ccName}...`,
|
|
237
|
+
direction: "none"
|
|
191
238
|
});
|
|
239
|
+
ctx.logNode(node.id, {
|
|
240
|
+
endpoint: this.endpointIndex,
|
|
241
|
+
message: "querying manufacturer information...",
|
|
242
|
+
direction: "outbound"
|
|
243
|
+
});
|
|
244
|
+
const mfResp = await api.get();
|
|
245
|
+
if (mfResp) {
|
|
246
|
+
const logMessage = `received response for manufacturer information:
|
|
247
|
+
manufacturer: ${ctx.lookupManufacturer(mfResp.manufacturerId) || "unknown"} (${(0, import_safe3.num2hex)(mfResp.manufacturerId)})
|
|
248
|
+
product type: ${(0, import_safe3.num2hex)(mfResp.productType)}
|
|
249
|
+
product id: ${(0, import_safe3.num2hex)(mfResp.productId)}`;
|
|
250
|
+
ctx.logNode(node.id, {
|
|
251
|
+
endpoint: this.endpointIndex,
|
|
252
|
+
message: logMessage,
|
|
253
|
+
direction: "inbound"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
192
256
|
}
|
|
257
|
+
this.setInterviewComplete(ctx, true);
|
|
193
258
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
(0, import_CommandClassDecorators.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
let
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
manufacturerId
|
|
217
|
-
productType
|
|
218
|
-
productId
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
259
|
+
};
|
|
260
|
+
return ManufacturerSpecificCC2 = _classThis;
|
|
261
|
+
})();
|
|
262
|
+
let ManufacturerSpecificCCReport = (() => {
|
|
263
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ManufacturerSpecificCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("manufacturerId", ManufacturerSpecificCCValues.manufacturerId), (0, import_CommandClassDecorators.ccValueProperty)("productType", ManufacturerSpecificCCValues.productType), (0, import_CommandClassDecorators.ccValueProperty)("productId", ManufacturerSpecificCCValues.productId)];
|
|
264
|
+
let _classDescriptor;
|
|
265
|
+
let _classExtraInitializers = [];
|
|
266
|
+
let _classThis;
|
|
267
|
+
let _classSuper = ManufacturerSpecificCC;
|
|
268
|
+
var ManufacturerSpecificCCReport2 = class extends _classSuper {
|
|
269
|
+
static {
|
|
270
|
+
_classThis = this;
|
|
271
|
+
}
|
|
272
|
+
static {
|
|
273
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
274
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
275
|
+
ManufacturerSpecificCCReport2 = _classThis = _classDescriptor.value;
|
|
276
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
277
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
278
|
+
}
|
|
279
|
+
constructor(options) {
|
|
280
|
+
super(options);
|
|
281
|
+
this.manufacturerId = options.manufacturerId;
|
|
282
|
+
this.productType = options.productType;
|
|
283
|
+
this.productId = options.productId;
|
|
284
|
+
}
|
|
285
|
+
static from(raw, ctx) {
|
|
286
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 6);
|
|
287
|
+
const manufacturerId = raw.payload.readUInt16BE(0);
|
|
288
|
+
const productType = raw.payload.readUInt16BE(2);
|
|
289
|
+
const productId = raw.payload.readUInt16BE(4);
|
|
290
|
+
return new this({
|
|
291
|
+
nodeId: ctx.sourceNodeId,
|
|
292
|
+
manufacturerId,
|
|
293
|
+
productType,
|
|
294
|
+
productId
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
manufacturerId;
|
|
298
|
+
productType;
|
|
299
|
+
productId;
|
|
300
|
+
serialize(ctx) {
|
|
301
|
+
this.payload = new import_safe2.Bytes(6);
|
|
302
|
+
this.payload.writeUInt16BE(this.manufacturerId, 0);
|
|
303
|
+
this.payload.writeUInt16BE(this.productType, 2);
|
|
304
|
+
this.payload.writeUInt16BE(this.productId, 4);
|
|
305
|
+
return super.serialize(ctx);
|
|
306
|
+
}
|
|
307
|
+
toLogEntry(ctx) {
|
|
308
|
+
return {
|
|
309
|
+
...super.toLogEntry(ctx),
|
|
310
|
+
message: {
|
|
311
|
+
"manufacturer id": (0, import_safe3.num2hex)(this.manufacturerId),
|
|
312
|
+
"product type": (0, import_safe3.num2hex)(this.productType),
|
|
313
|
+
"product id": (0, import_safe3.num2hex)(this.productId)
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
return ManufacturerSpecificCCReport2 = _classThis;
|
|
319
|
+
})();
|
|
320
|
+
let ManufacturerSpecificCCGet = (() => {
|
|
321
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ManufacturerSpecificCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(ManufacturerSpecificCCReport)];
|
|
322
|
+
let _classDescriptor;
|
|
323
|
+
let _classExtraInitializers = [];
|
|
324
|
+
let _classThis;
|
|
325
|
+
let _classSuper = ManufacturerSpecificCC;
|
|
326
|
+
var ManufacturerSpecificCCGet2 = class extends _classSuper {
|
|
327
|
+
static {
|
|
328
|
+
_classThis = this;
|
|
329
|
+
}
|
|
330
|
+
static {
|
|
331
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
332
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
333
|
+
ManufacturerSpecificCCGet2 = _classThis = _classDescriptor.value;
|
|
334
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
335
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
return ManufacturerSpecificCCGet2 = _classThis;
|
|
339
|
+
})();
|
|
340
|
+
let ManufacturerSpecificCCDeviceSpecificReport = (() => {
|
|
341
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ManufacturerSpecificCommand.DeviceSpecificReport), (0, import_CommandClassDecorators.ccValueProperty)("deviceId", ManufacturerSpecificCCValues.deviceId, (self) => [self.type])];
|
|
342
|
+
let _classDescriptor;
|
|
343
|
+
let _classExtraInitializers = [];
|
|
344
|
+
let _classThis;
|
|
345
|
+
let _classSuper = ManufacturerSpecificCC;
|
|
346
|
+
var ManufacturerSpecificCCDeviceSpecificReport2 = class extends _classSuper {
|
|
347
|
+
static {
|
|
348
|
+
_classThis = this;
|
|
349
|
+
}
|
|
350
|
+
static {
|
|
351
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
352
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
353
|
+
ManufacturerSpecificCCDeviceSpecificReport2 = _classThis = _classDescriptor.value;
|
|
354
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
355
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
356
|
+
}
|
|
357
|
+
constructor(options) {
|
|
358
|
+
super(options);
|
|
359
|
+
this.type = options.type;
|
|
360
|
+
this.deviceId = options.deviceId;
|
|
361
|
+
}
|
|
362
|
+
static from(raw, ctx) {
|
|
363
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
364
|
+
const type = raw.payload[0] & 7;
|
|
365
|
+
const dataFormat = raw.payload[1] >>> 5;
|
|
366
|
+
const dataLength = raw.payload[1] & 31;
|
|
367
|
+
(0, import_safe.validatePayload)(dataLength > 0, raw.payload.length >= 2 + dataLength);
|
|
368
|
+
const deviceIdData = raw.payload.subarray(2, 2 + dataLength);
|
|
369
|
+
const deviceId = dataFormat === 0 ? deviceIdData.toString("utf8") : "0x" + deviceIdData.toString("hex");
|
|
370
|
+
return new this({
|
|
371
|
+
nodeId: ctx.sourceNodeId,
|
|
372
|
+
type,
|
|
373
|
+
deviceId
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
type;
|
|
377
|
+
deviceId;
|
|
378
|
+
toLogEntry(ctx) {
|
|
379
|
+
return {
|
|
380
|
+
...super.toLogEntry(ctx),
|
|
381
|
+
message: {
|
|
382
|
+
"device id type": (0, import_safe3.getEnumMemberName)(import_Types.DeviceIdType, this.type),
|
|
383
|
+
"device id": this.deviceId
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return ManufacturerSpecificCCDeviceSpecificReport2 = _classThis;
|
|
389
|
+
})();
|
|
390
|
+
let ManufacturerSpecificCCDeviceSpecificGet = (() => {
|
|
391
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ManufacturerSpecificCommand.DeviceSpecificGet), (0, import_CommandClassDecorators.expectedCCResponse)(ManufacturerSpecificCCDeviceSpecificReport)];
|
|
392
|
+
let _classDescriptor;
|
|
393
|
+
let _classExtraInitializers = [];
|
|
394
|
+
let _classThis;
|
|
395
|
+
let _classSuper = ManufacturerSpecificCC;
|
|
396
|
+
var ManufacturerSpecificCCDeviceSpecificGet2 = class extends _classSuper {
|
|
397
|
+
static {
|
|
398
|
+
_classThis = this;
|
|
399
|
+
}
|
|
400
|
+
static {
|
|
401
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
402
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
403
|
+
ManufacturerSpecificCCDeviceSpecificGet2 = _classThis = _classDescriptor.value;
|
|
404
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
405
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
406
|
+
}
|
|
407
|
+
constructor(options) {
|
|
408
|
+
super(options);
|
|
409
|
+
this.deviceIdType = options.deviceIdType;
|
|
410
|
+
}
|
|
411
|
+
static from(_raw, _ctx) {
|
|
412
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
413
|
+
}
|
|
414
|
+
deviceIdType;
|
|
415
|
+
serialize(ctx) {
|
|
416
|
+
this.payload = import_safe2.Bytes.from([(this.deviceIdType || 0) & 7]);
|
|
417
|
+
return super.serialize(ctx);
|
|
418
|
+
}
|
|
419
|
+
toLogEntry(ctx) {
|
|
420
|
+
return {
|
|
421
|
+
...super.toLogEntry(ctx),
|
|
422
|
+
message: {
|
|
423
|
+
"device id type": (0, import_safe3.getEnumMemberName)(import_Types.DeviceIdType, this.deviceIdType)
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
return ManufacturerSpecificCCDeviceSpecificGet2 = _classThis;
|
|
429
|
+
})();
|
|
324
430
|
// Annotate the CommonJS export names for ESM import in node:
|
|
325
431
|
0 && (module.exports = {
|
|
326
432
|
ManufacturerSpecificCC,
|