@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
|
@@ -36,13 +36,45 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
36
36
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
37
37
|
var import_Values = require("../lib/Values.js");
|
|
38
38
|
var import_Types = require("../lib/_Types.js");
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
40
|
+
function accept(f) {
|
|
41
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
42
|
+
return f;
|
|
43
|
+
}
|
|
44
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
45
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
46
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
47
|
+
var _, done = false;
|
|
48
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
49
|
+
var context = {};
|
|
50
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
51
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
52
|
+
context.addInitializer = function(f) {
|
|
53
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
54
|
+
extraInitializers.push(accept(f || null));
|
|
55
|
+
};
|
|
56
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
57
|
+
if (kind === "accessor") {
|
|
58
|
+
if (result === void 0) continue;
|
|
59
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
60
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
61
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
62
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
63
|
+
} else if (_ = accept(result)) {
|
|
64
|
+
if (kind === "field") initializers.unshift(_);
|
|
65
|
+
else descriptor[key] = _;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
69
|
+
done = true;
|
|
70
|
+
};
|
|
71
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
72
|
+
var useValue = arguments.length > 2;
|
|
73
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
74
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
75
|
+
}
|
|
76
|
+
return useValue ? value : void 0;
|
|
44
77
|
};
|
|
45
|
-
var HumidityControlModeCCReport_1, HumidityControlModeCCSupportedReport_1;
|
|
46
78
|
function __assertType(argName, typeName, boundHasError) {
|
|
47
79
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
48
80
|
if (boundHasError()) {
|
|
@@ -65,250 +97,344 @@ const HumidityControlModeCCValues = Object.freeze({
|
|
|
65
97
|
...import_Values.V.staticProperty("supportedModes", void 0, { internal: true })
|
|
66
98
|
})
|
|
67
99
|
});
|
|
68
|
-
let HumidityControlModeCCAPI =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
100
|
+
let HumidityControlModeCCAPI = (() => {
|
|
101
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Humidity Control Mode"])];
|
|
102
|
+
let _classDescriptor;
|
|
103
|
+
let _classExtraInitializers = [];
|
|
104
|
+
let _classThis;
|
|
105
|
+
let _classSuper = import_API.CCAPI;
|
|
106
|
+
var HumidityControlModeCCAPI2 = class extends _classSuper {
|
|
107
|
+
static {
|
|
108
|
+
_classThis = this;
|
|
109
|
+
}
|
|
110
|
+
static {
|
|
111
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
112
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
113
|
+
HumidityControlModeCCAPI2 = _classThis = _classDescriptor.value;
|
|
114
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
115
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
116
|
+
}
|
|
117
|
+
supportsCommand(cmd) {
|
|
118
|
+
switch (cmd) {
|
|
119
|
+
case import_Types.HumidityControlModeCommand.Get:
|
|
120
|
+
case import_Types.HumidityControlModeCommand.SupportedGet:
|
|
121
|
+
return this.isSinglecast();
|
|
122
|
+
case import_Types.HumidityControlModeCommand.Set:
|
|
123
|
+
return true;
|
|
91
124
|
}
|
|
92
|
-
return
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
125
|
+
return super.supportsCommand(cmd);
|
|
126
|
+
}
|
|
127
|
+
get [import_API.SET_VALUE]() {
|
|
128
|
+
return async function({ property }, value) {
|
|
129
|
+
if (property === "mode") {
|
|
130
|
+
if (typeof value !== "number") {
|
|
131
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
101
134
|
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
135
|
+
}
|
|
136
|
+
const result = await this.set(value);
|
|
137
|
+
if (this.isSinglecast() && !(0, import_safe.supervisedCommandSucceeded)(result)) {
|
|
138
|
+
this.schedulePoll({ property }, value);
|
|
139
|
+
}
|
|
140
|
+
return result;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
get [import_API.POLL_VALUE]() {
|
|
144
|
+
return async function({ property }) {
|
|
145
|
+
switch (property) {
|
|
146
|
+
case "mode":
|
|
147
|
+
return this.get();
|
|
148
|
+
default:
|
|
149
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
async get() {
|
|
154
|
+
this.assertSupportsCommand(import_Types.HumidityControlModeCommand, import_Types.HumidityControlModeCommand.Get);
|
|
155
|
+
const cc = new HumidityControlModeCCGet({
|
|
156
|
+
nodeId: this.endpoint.nodeId,
|
|
157
|
+
endpointIndex: this.endpoint.index
|
|
158
|
+
});
|
|
159
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
160
|
+
if (response) {
|
|
161
|
+
return response?.mode;
|
|
102
162
|
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
async get() {
|
|
106
|
-
this.assertSupportsCommand(import_Types.HumidityControlModeCommand, import_Types.HumidityControlModeCommand.Get);
|
|
107
|
-
const cc = new HumidityControlModeCCGet({
|
|
108
|
-
nodeId: this.endpoint.nodeId,
|
|
109
|
-
endpointIndex: this.endpoint.index
|
|
110
|
-
});
|
|
111
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
112
|
-
if (response) {
|
|
113
|
-
return response?.mode;
|
|
114
163
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
],
|
|
139
|
-
let
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
async set(mode) {
|
|
165
|
+
__assertType("mode", "HumidityControlMode", __assertType__HumidityControlMode.bind(void 0, mode));
|
|
166
|
+
this.assertSupportsCommand(import_Types.HumidityControlModeCommand, import_Types.HumidityControlModeCommand.Set);
|
|
167
|
+
const cc = new HumidityControlModeCCSet({
|
|
168
|
+
nodeId: this.endpoint.nodeId,
|
|
169
|
+
endpointIndex: this.endpoint.index,
|
|
170
|
+
mode
|
|
171
|
+
});
|
|
172
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
173
|
+
}
|
|
174
|
+
async getSupportedModes() {
|
|
175
|
+
this.assertSupportsCommand(import_Types.HumidityControlModeCommand, import_Types.HumidityControlModeCommand.SupportedGet);
|
|
176
|
+
const cc = new HumidityControlModeCCSupportedGet({
|
|
177
|
+
nodeId: this.endpoint.nodeId,
|
|
178
|
+
endpointIndex: this.endpoint.index
|
|
179
|
+
});
|
|
180
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
181
|
+
return response?.supportedModes;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
return HumidityControlModeCCAPI2 = _classThis;
|
|
185
|
+
})();
|
|
186
|
+
let HumidityControlModeCC = (() => {
|
|
187
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Humidity Control Mode"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(HumidityControlModeCCValues)];
|
|
188
|
+
let _classDescriptor;
|
|
189
|
+
let _classExtraInitializers = [];
|
|
190
|
+
let _classThis;
|
|
191
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
192
|
+
var HumidityControlModeCC2 = class extends _classSuper {
|
|
193
|
+
static {
|
|
194
|
+
_classThis = this;
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
198
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
199
|
+
HumidityControlModeCC2 = _classThis = _classDescriptor.value;
|
|
200
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
201
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
202
|
+
}
|
|
203
|
+
async interview(ctx) {
|
|
204
|
+
const node = this.getNode(ctx);
|
|
205
|
+
const endpoint = this.getEndpoint(ctx);
|
|
206
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Humidity Control Mode"], ctx, endpoint).withOptions({
|
|
207
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
208
|
+
});
|
|
160
209
|
ctx.logNode(node.id, {
|
|
161
210
|
endpoint: this.endpointIndex,
|
|
162
|
-
message:
|
|
163
|
-
direction: "
|
|
211
|
+
message: `Interviewing ${this.ccName}...`,
|
|
212
|
+
direction: "none"
|
|
164
213
|
});
|
|
165
|
-
} else {
|
|
166
214
|
ctx.logNode(node.id, {
|
|
167
215
|
endpoint: this.endpointIndex,
|
|
168
|
-
message: "
|
|
169
|
-
|
|
216
|
+
message: "querying supported humidity control modes...",
|
|
217
|
+
direction: "outbound"
|
|
170
218
|
});
|
|
171
|
-
|
|
219
|
+
const supportedModes = await api.getSupportedModes();
|
|
220
|
+
if (supportedModes) {
|
|
221
|
+
const logMessage = `received supported humidity control modes:${supportedModes.map((mode) => `
|
|
222
|
+
\xB7 ${(0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, mode)}`).join("")}`;
|
|
223
|
+
ctx.logNode(node.id, {
|
|
224
|
+
endpoint: this.endpointIndex,
|
|
225
|
+
message: logMessage,
|
|
226
|
+
direction: "inbound"
|
|
227
|
+
});
|
|
228
|
+
} else {
|
|
229
|
+
ctx.logNode(node.id, {
|
|
230
|
+
endpoint: this.endpointIndex,
|
|
231
|
+
message: "Querying supported humidity control modes timed out, skipping interview...",
|
|
232
|
+
level: "warn"
|
|
233
|
+
});
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
await this.refreshValues(ctx);
|
|
237
|
+
this.setInterviewComplete(ctx, true);
|
|
172
238
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const api = import_API.CCAPI.create(import_safe.CommandClasses["Humidity Control Mode"], ctx, endpoint).withOptions({
|
|
180
|
-
priority: import_safe.MessagePriority.NodeQuery
|
|
181
|
-
});
|
|
182
|
-
ctx.logNode(node.id, {
|
|
183
|
-
endpoint: this.endpointIndex,
|
|
184
|
-
message: "querying current humidity control mode...",
|
|
185
|
-
direction: "outbound"
|
|
186
|
-
});
|
|
187
|
-
const currentMode = await api.get();
|
|
188
|
-
if (currentMode) {
|
|
239
|
+
async refreshValues(ctx) {
|
|
240
|
+
const node = this.getNode(ctx);
|
|
241
|
+
const endpoint = this.getEndpoint(ctx);
|
|
242
|
+
const api = import_API.CCAPI.create(import_safe.CommandClasses["Humidity Control Mode"], ctx, endpoint).withOptions({
|
|
243
|
+
priority: import_safe.MessagePriority.NodeQuery
|
|
244
|
+
});
|
|
189
245
|
ctx.logNode(node.id, {
|
|
190
246
|
endpoint: this.endpointIndex,
|
|
191
|
-
message: "
|
|
192
|
-
direction: "
|
|
247
|
+
message: "querying current humidity control mode...",
|
|
248
|
+
direction: "outbound"
|
|
193
249
|
});
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
], HumidityControlModeCC);
|
|
202
|
-
let HumidityControlModeCCSet = class HumidityControlModeCCSet2 extends HumidityControlModeCC {
|
|
203
|
-
constructor(options) {
|
|
204
|
-
super(options);
|
|
205
|
-
this.mode = options.mode;
|
|
206
|
-
}
|
|
207
|
-
static from(_raw, _ctx) {
|
|
208
|
-
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
209
|
-
}
|
|
210
|
-
mode;
|
|
211
|
-
serialize(ctx) {
|
|
212
|
-
this.payload = import_safe2.Bytes.from([this.mode & 15]);
|
|
213
|
-
return super.serialize(ctx);
|
|
214
|
-
}
|
|
215
|
-
toLogEntry(ctx) {
|
|
216
|
-
return {
|
|
217
|
-
...super.toLogEntry(ctx),
|
|
218
|
-
message: {
|
|
219
|
-
mode: (0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, this.mode)
|
|
250
|
+
const currentMode = await api.get();
|
|
251
|
+
if (currentMode) {
|
|
252
|
+
ctx.logNode(node.id, {
|
|
253
|
+
endpoint: this.endpointIndex,
|
|
254
|
+
message: "received current humidity control mode: " + (0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, currentMode),
|
|
255
|
+
direction: "inbound"
|
|
256
|
+
});
|
|
220
257
|
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
(0, import_CommandClassDecorators.useSupervision)()
|
|
227
|
-
|
|
228
|
-
let
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return HumidityControlModeCC2 = _classThis;
|
|
261
|
+
})();
|
|
262
|
+
let HumidityControlModeCCSet = (() => {
|
|
263
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.HumidityControlModeCommand.Set), (0, import_CommandClassDecorators.useSupervision)()];
|
|
264
|
+
let _classDescriptor;
|
|
265
|
+
let _classExtraInitializers = [];
|
|
266
|
+
let _classThis;
|
|
267
|
+
let _classSuper = HumidityControlModeCC;
|
|
268
|
+
var HumidityControlModeCCSet2 = 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
|
+
HumidityControlModeCCSet2 = _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.mode = options.mode;
|
|
282
|
+
}
|
|
283
|
+
static from(_raw, _ctx) {
|
|
284
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
285
|
+
}
|
|
286
|
+
mode;
|
|
287
|
+
serialize(ctx) {
|
|
288
|
+
this.payload = import_safe2.Bytes.from([this.mode & 15]);
|
|
289
|
+
return super.serialize(ctx);
|
|
290
|
+
}
|
|
291
|
+
toLogEntry(ctx) {
|
|
292
|
+
return {
|
|
293
|
+
...super.toLogEntry(ctx),
|
|
294
|
+
message: {
|
|
295
|
+
mode: (0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, this.mode)
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
return HumidityControlModeCCSet2 = _classThis;
|
|
301
|
+
})();
|
|
302
|
+
let HumidityControlModeCCReport = (() => {
|
|
303
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.HumidityControlModeCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("mode", HumidityControlModeCCValues.mode)];
|
|
304
|
+
let _classDescriptor;
|
|
305
|
+
let _classExtraInitializers = [];
|
|
306
|
+
let _classThis;
|
|
307
|
+
let _classSuper = HumidityControlModeCC;
|
|
308
|
+
var HumidityControlModeCCReport2 = class extends _classSuper {
|
|
309
|
+
static {
|
|
310
|
+
_classThis = this;
|
|
311
|
+
}
|
|
312
|
+
static {
|
|
313
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
314
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
315
|
+
HumidityControlModeCCReport2 = _classThis = _classDescriptor.value;
|
|
316
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
317
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
318
|
+
}
|
|
319
|
+
constructor(options) {
|
|
320
|
+
super(options);
|
|
321
|
+
this.mode = options.mode;
|
|
322
|
+
}
|
|
323
|
+
static from(raw, ctx) {
|
|
324
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
325
|
+
const mode = raw.payload[0] & 15;
|
|
326
|
+
return new this({
|
|
327
|
+
nodeId: ctx.sourceNodeId,
|
|
328
|
+
mode
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
mode;
|
|
332
|
+
toLogEntry(ctx) {
|
|
333
|
+
return {
|
|
334
|
+
...super.toLogEntry(ctx),
|
|
335
|
+
message: {
|
|
336
|
+
mode: (0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, this.mode)
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
return HumidityControlModeCCReport2 = _classThis;
|
|
342
|
+
})();
|
|
343
|
+
let HumidityControlModeCCGet = (() => {
|
|
344
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.HumidityControlModeCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(HumidityControlModeCCReport)];
|
|
345
|
+
let _classDescriptor;
|
|
346
|
+
let _classExtraInitializers = [];
|
|
347
|
+
let _classThis;
|
|
348
|
+
let _classSuper = HumidityControlModeCC;
|
|
349
|
+
var HumidityControlModeCCGet2 = class extends _classSuper {
|
|
350
|
+
static {
|
|
351
|
+
_classThis = this;
|
|
352
|
+
}
|
|
353
|
+
static {
|
|
354
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
355
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
356
|
+
HumidityControlModeCCGet2 = _classThis = _classDescriptor.value;
|
|
357
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
358
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
return HumidityControlModeCCGet2 = _classThis;
|
|
362
|
+
})();
|
|
363
|
+
let HumidityControlModeCCSupportedReport = (() => {
|
|
364
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.HumidityControlModeCommand.SupportedReport), (0, import_CommandClassDecorators.ccValueProperty)("supportedModes", HumidityControlModeCCValues.supportedModes)];
|
|
365
|
+
let _classDescriptor;
|
|
366
|
+
let _classExtraInitializers = [];
|
|
367
|
+
let _classThis;
|
|
368
|
+
let _classSuper = HumidityControlModeCC;
|
|
369
|
+
var HumidityControlModeCCSupportedReport2 = class extends _classSuper {
|
|
370
|
+
static {
|
|
371
|
+
_classThis = this;
|
|
372
|
+
}
|
|
373
|
+
static {
|
|
374
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
375
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
376
|
+
HumidityControlModeCCSupportedReport2 = _classThis = _classDescriptor.value;
|
|
377
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
378
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
379
|
+
}
|
|
380
|
+
constructor(options) {
|
|
381
|
+
super(options);
|
|
382
|
+
this.supportedModes = options.supportedModes;
|
|
383
|
+
}
|
|
384
|
+
static from(raw, ctx) {
|
|
385
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
386
|
+
const supportedModes = (0, import_safe.parseBitMask)(raw.payload, import_Types.HumidityControlMode.Off);
|
|
387
|
+
if (!supportedModes.includes(import_Types.HumidityControlMode.Off)) {
|
|
388
|
+
supportedModes.unshift(import_Types.HumidityControlMode.Off);
|
|
247
389
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
270
|
-
const supportedModes = (0, import_safe.parseBitMask)(raw.payload, import_Types.HumidityControlMode.Off);
|
|
271
|
-
if (!supportedModes.includes(import_Types.HumidityControlMode.Off)) {
|
|
272
|
-
supportedModes.unshift(import_Types.HumidityControlMode.Off);
|
|
273
|
-
}
|
|
274
|
-
return new HumidityControlModeCCSupportedReport_1({
|
|
275
|
-
nodeId: ctx.sourceNodeId,
|
|
276
|
-
supportedModes
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
persistValues(ctx) {
|
|
280
|
-
if (!super.persistValues(ctx))
|
|
281
|
-
return false;
|
|
282
|
-
const modeValue = HumidityControlModeCCValues.mode;
|
|
283
|
-
this.setMetadata(ctx, modeValue, {
|
|
284
|
-
...modeValue.meta,
|
|
285
|
-
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.HumidityControlMode, this.supportedModes)
|
|
286
|
-
});
|
|
287
|
-
return true;
|
|
288
|
-
}
|
|
289
|
-
supportedModes;
|
|
290
|
-
toLogEntry(ctx) {
|
|
291
|
-
return {
|
|
292
|
-
...super.toLogEntry(ctx),
|
|
293
|
-
message: {
|
|
294
|
-
"supported modes": this.supportedModes.map((mode) => `
|
|
390
|
+
return new this({
|
|
391
|
+
nodeId: ctx.sourceNodeId,
|
|
392
|
+
supportedModes
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
persistValues(ctx) {
|
|
396
|
+
if (!super.persistValues(ctx))
|
|
397
|
+
return false;
|
|
398
|
+
const modeValue = HumidityControlModeCCValues.mode;
|
|
399
|
+
this.setMetadata(ctx, modeValue, {
|
|
400
|
+
...modeValue.meta,
|
|
401
|
+
states: (0, import_safe.enumValuesToMetadataStates)(import_Types.HumidityControlMode, this.supportedModes)
|
|
402
|
+
});
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
supportedModes;
|
|
406
|
+
toLogEntry(ctx) {
|
|
407
|
+
return {
|
|
408
|
+
...super.toLogEntry(ctx),
|
|
409
|
+
message: {
|
|
410
|
+
"supported modes": this.supportedModes.map((mode) => `
|
|
295
411
|
\xB7 ${(0, import_safe3.getEnumMemberName)(import_Types.HumidityControlMode, mode)}`).join("")
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
]
|
|
306
|
-
let
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
return HumidityControlModeCCSupportedReport2 = _classThis;
|
|
417
|
+
})();
|
|
418
|
+
let HumidityControlModeCCSupportedGet = (() => {
|
|
419
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.HumidityControlModeCommand.SupportedGet), (0, import_CommandClassDecorators.expectedCCResponse)(HumidityControlModeCCSupportedReport)];
|
|
420
|
+
let _classDescriptor;
|
|
421
|
+
let _classExtraInitializers = [];
|
|
422
|
+
let _classThis;
|
|
423
|
+
let _classSuper = HumidityControlModeCC;
|
|
424
|
+
var HumidityControlModeCCSupportedGet2 = class extends _classSuper {
|
|
425
|
+
static {
|
|
426
|
+
_classThis = this;
|
|
427
|
+
}
|
|
428
|
+
static {
|
|
429
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
430
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
431
|
+
HumidityControlModeCCSupportedGet2 = _classThis = _classDescriptor.value;
|
|
432
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
433
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
return HumidityControlModeCCSupportedGet2 = _classThis;
|
|
437
|
+
})();
|
|
312
438
|
// Annotate the CommonJS export names for ESM import in node:
|
|
313
439
|
0 && (module.exports = {
|
|
314
440
|
HumidityControlModeCC,
|