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