@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 ClimateControlScheduleCCReport_1, ClimateControlScheduleCCChangedReport_1, ClimateControlScheduleCCOverrideReport_1;
|
|
8
35
|
function __assertType(argName, typeName, boundHasError) {
|
|
9
36
|
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
10
37
|
if (boundHasError()) {
|
|
@@ -116,7 +143,7 @@ import { getEnumMemberName } from "@zwave-js/shared/safe";
|
|
|
116
143
|
import { padStart } from "alcalzone-shared/strings/index.js";
|
|
117
144
|
import { CCAPI } from "../lib/API.js";
|
|
118
145
|
import { CommandClass } from "../lib/CommandClass.js";
|
|
119
|
-
import { API, CCCommand,
|
|
146
|
+
import { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from "../lib/CommandClassDecorators.js";
|
|
120
147
|
import { V } from "../lib/Values.js";
|
|
121
148
|
import { ClimateControlScheduleCommand, ScheduleOverrideType, Weekday, } from "../lib/_Types.js";
|
|
122
149
|
import { decodeSetbackState, decodeSwitchpoint, encodeSetbackState, encodeSwitchpoint, } from "../lib/serializers.js";
|
|
@@ -143,324 +170,438 @@ export const ClimateControlScheduleCCValues = Object.freeze({
|
|
|
143
170
|
})),
|
|
144
171
|
}),
|
|
145
172
|
});
|
|
146
|
-
let ClimateControlScheduleCCAPI =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
161
|
-
__assertType("switchPoints", undefined, __assertType__sa__2_ea_2.bind(void 0, switchPoints));
|
|
162
|
-
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.Set);
|
|
163
|
-
const cc = new ClimateControlScheduleCCSet({
|
|
164
|
-
nodeId: this.endpoint.nodeId,
|
|
165
|
-
endpointIndex: this.endpoint.index,
|
|
166
|
-
weekday,
|
|
167
|
-
switchPoints,
|
|
168
|
-
});
|
|
169
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
170
|
-
}
|
|
171
|
-
async get(weekday) {
|
|
172
|
-
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
173
|
-
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.Get);
|
|
174
|
-
const cc = new ClimateControlScheduleCCGet({
|
|
175
|
-
nodeId: this.endpoint.nodeId,
|
|
176
|
-
endpointIndex: this.endpoint.index,
|
|
177
|
-
weekday,
|
|
178
|
-
});
|
|
179
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
180
|
-
return response?.schedule;
|
|
181
|
-
}
|
|
182
|
-
async getChangeCounter() {
|
|
183
|
-
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.ChangedGet);
|
|
184
|
-
const cc = new ClimateControlScheduleCCChangedGet({
|
|
185
|
-
nodeId: this.endpoint.nodeId,
|
|
186
|
-
endpointIndex: this.endpoint.index,
|
|
187
|
-
});
|
|
188
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
189
|
-
return response?.changeCounter;
|
|
190
|
-
}
|
|
191
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
192
|
-
async getOverride() {
|
|
193
|
-
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.OverrideGet);
|
|
194
|
-
const cc = new ClimateControlScheduleCCOverrideGet({
|
|
195
|
-
nodeId: this.endpoint.nodeId,
|
|
196
|
-
endpointIndex: this.endpoint.index,
|
|
197
|
-
});
|
|
198
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
199
|
-
if (response) {
|
|
200
|
-
return {
|
|
201
|
-
type: response.overrideType,
|
|
202
|
-
state: response.overrideState,
|
|
203
|
-
};
|
|
173
|
+
let ClimateControlScheduleCCAPI = (() => {
|
|
174
|
+
let _classDecorators = [API(CommandClasses["Climate Control Schedule"])];
|
|
175
|
+
let _classDescriptor;
|
|
176
|
+
let _classExtraInitializers = [];
|
|
177
|
+
let _classThis;
|
|
178
|
+
let _classSuper = CCAPI;
|
|
179
|
+
var ClimateControlScheduleCCAPI = class extends _classSuper {
|
|
180
|
+
static { _classThis = this; }
|
|
181
|
+
static {
|
|
182
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
183
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
184
|
+
ClimateControlScheduleCCAPI = _classThis = _classDescriptor.value;
|
|
185
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
186
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
204
187
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
188
|
+
supportsCommand(cmd) {
|
|
189
|
+
switch (cmd) {
|
|
190
|
+
case ClimateControlScheduleCommand.Set:
|
|
191
|
+
case ClimateControlScheduleCommand.OverrideSet:
|
|
192
|
+
return true; // mandatory
|
|
193
|
+
case ClimateControlScheduleCommand.Get:
|
|
194
|
+
case ClimateControlScheduleCommand.ChangedGet:
|
|
195
|
+
case ClimateControlScheduleCommand.OverrideGet:
|
|
196
|
+
return this.isSinglecast();
|
|
197
|
+
}
|
|
198
|
+
return super.supportsCommand(cmd);
|
|
199
|
+
}
|
|
200
|
+
async set(weekday, switchPoints) {
|
|
201
|
+
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
202
|
+
__assertType("switchPoints", undefined, __assertType__sa__2_ea_2.bind(void 0, switchPoints));
|
|
203
|
+
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.Set);
|
|
204
|
+
const cc = new ClimateControlScheduleCCSet({
|
|
205
|
+
nodeId: this.endpoint.nodeId,
|
|
206
|
+
endpointIndex: this.endpoint.index,
|
|
207
|
+
weekday,
|
|
208
|
+
switchPoints,
|
|
209
|
+
});
|
|
210
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
211
|
+
}
|
|
212
|
+
async get(weekday) {
|
|
213
|
+
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
214
|
+
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.Get);
|
|
215
|
+
const cc = new ClimateControlScheduleCCGet({
|
|
216
|
+
nodeId: this.endpoint.nodeId,
|
|
217
|
+
endpointIndex: this.endpoint.index,
|
|
218
|
+
weekday,
|
|
219
|
+
});
|
|
220
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
221
|
+
return response?.schedule;
|
|
222
|
+
}
|
|
223
|
+
async getChangeCounter() {
|
|
224
|
+
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.ChangedGet);
|
|
225
|
+
const cc = new ClimateControlScheduleCCChangedGet({
|
|
226
|
+
nodeId: this.endpoint.nodeId,
|
|
227
|
+
endpointIndex: this.endpoint.index,
|
|
228
|
+
});
|
|
229
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
230
|
+
return response?.changeCounter;
|
|
231
|
+
}
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
233
|
+
async getOverride() {
|
|
234
|
+
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.OverrideGet);
|
|
235
|
+
const cc = new ClimateControlScheduleCCOverrideGet({
|
|
236
|
+
nodeId: this.endpoint.nodeId,
|
|
237
|
+
endpointIndex: this.endpoint.index,
|
|
238
|
+
});
|
|
239
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
240
|
+
if (response) {
|
|
241
|
+
return {
|
|
242
|
+
type: response.overrideType,
|
|
243
|
+
state: response.overrideState,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async setOverride(type, state) {
|
|
248
|
+
__assertType("type", "ScheduleOverrideType", __assertType__ScheduleOverrideType.bind(void 0, type));
|
|
249
|
+
__assertType("state", "SetbackState", __assertType__SetbackState.bind(void 0, state));
|
|
250
|
+
this.assertSupportsCommand(ClimateControlScheduleCommand, ClimateControlScheduleCommand.OverrideSet);
|
|
251
|
+
const cc = new ClimateControlScheduleCCOverrideSet({
|
|
252
|
+
nodeId: this.endpoint.nodeId,
|
|
253
|
+
endpointIndex: this.endpoint.index,
|
|
254
|
+
overrideType: type,
|
|
255
|
+
overrideState: state,
|
|
256
|
+
});
|
|
257
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return ClimateControlScheduleCCAPI = _classThis;
|
|
261
|
+
})();
|
|
222
262
|
export { ClimateControlScheduleCCAPI };
|
|
223
|
-
let ClimateControlScheduleCC =
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
263
|
+
let ClimateControlScheduleCC = (() => {
|
|
264
|
+
let _classDecorators = [commandClass(CommandClasses["Climate Control Schedule"]), implementedVersion(1), ccValues(ClimateControlScheduleCCValues)];
|
|
265
|
+
let _classDescriptor;
|
|
266
|
+
let _classExtraInitializers = [];
|
|
267
|
+
let _classThis;
|
|
268
|
+
let _classSuper = CommandClass;
|
|
269
|
+
var ClimateControlScheduleCC = class extends _classSuper {
|
|
270
|
+
static { _classThis = this; }
|
|
271
|
+
static {
|
|
272
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
273
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
274
|
+
ClimateControlScheduleCC = _classThis = _classDescriptor.value;
|
|
275
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
276
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
return ClimateControlScheduleCC = _classThis;
|
|
280
|
+
})();
|
|
230
281
|
export { ClimateControlScheduleCC };
|
|
231
|
-
let ClimateControlScheduleCCSet =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
serialize(ctx) {
|
|
246
|
-
// Make sure we have exactly 9 entries
|
|
247
|
-
const allSwitchPoints = this.switchPoints.slice(0, 9); // maximum 9
|
|
248
|
-
while (allSwitchPoints.length < 9) {
|
|
249
|
-
allSwitchPoints.push({
|
|
250
|
-
hour: 0,
|
|
251
|
-
minute: 0,
|
|
252
|
-
state: "Unused",
|
|
253
|
-
});
|
|
282
|
+
let ClimateControlScheduleCCSet = (() => {
|
|
283
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.Set), useSupervision()];
|
|
284
|
+
let _classDescriptor;
|
|
285
|
+
let _classExtraInitializers = [];
|
|
286
|
+
let _classThis;
|
|
287
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
288
|
+
var ClimateControlScheduleCCSet = class extends _classSuper {
|
|
289
|
+
static { _classThis = this; }
|
|
290
|
+
static {
|
|
291
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
292
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
293
|
+
ClimateControlScheduleCCSet = _classThis = _classDescriptor.value;
|
|
294
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
295
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
254
296
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
297
|
+
constructor(options) {
|
|
298
|
+
super(options);
|
|
299
|
+
this.switchPoints = options.switchPoints;
|
|
300
|
+
this.weekday = options.weekday;
|
|
301
|
+
}
|
|
302
|
+
static from(_raw, _ctx) {
|
|
303
|
+
throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
304
|
+
// return new ClimateControlScheduleCCSet({
|
|
305
|
+
// nodeId: ctx.sourceNodeId,
|
|
306
|
+
// });
|
|
307
|
+
}
|
|
308
|
+
switchPoints;
|
|
309
|
+
weekday;
|
|
310
|
+
serialize(ctx) {
|
|
311
|
+
// Make sure we have exactly 9 entries
|
|
312
|
+
const allSwitchPoints = this.switchPoints.slice(0, 9); // maximum 9
|
|
313
|
+
while (allSwitchPoints.length < 9) {
|
|
314
|
+
allSwitchPoints.push({
|
|
315
|
+
hour: 0,
|
|
316
|
+
minute: 0,
|
|
317
|
+
state: "Unused",
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
this.payload = Bytes.concat([
|
|
321
|
+
Bytes.from([this.weekday & 0b111]),
|
|
322
|
+
...allSwitchPoints.map((sp) => encodeSwitchpoint(sp)),
|
|
323
|
+
]);
|
|
324
|
+
return super.serialize(ctx);
|
|
325
|
+
}
|
|
326
|
+
toLogEntry(ctx) {
|
|
327
|
+
return {
|
|
328
|
+
...super.toLogEntry(ctx),
|
|
329
|
+
message: {
|
|
330
|
+
weekday: getEnumMemberName(Weekday, this.weekday),
|
|
331
|
+
switchpoints: `${this.switchPoints
|
|
332
|
+
.map((sp) => `
|
|
268
333
|
· ${padStart(sp.hour.toString(), 2, "0")}:${padStart(sp.minute.toString(), 2, "0")} --> ${sp.state}`)
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
};
|
|
274
|
-
ClimateControlScheduleCCSet =
|
|
275
|
-
|
|
276
|
-
useSupervision()
|
|
277
|
-
], ClimateControlScheduleCCSet);
|
|
334
|
+
.join("")}`,
|
|
335
|
+
},
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
return ClimateControlScheduleCCSet = _classThis;
|
|
340
|
+
})();
|
|
278
341
|
export { ClimateControlScheduleCCSet };
|
|
279
|
-
let ClimateControlScheduleCCReport =
|
|
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
|
-
|
|
342
|
+
let ClimateControlScheduleCCReport = (() => {
|
|
343
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.Report), ccValueProperty("schedule", ClimateControlScheduleCCValues.schedule, (self) => [self.weekday])];
|
|
344
|
+
let _classDescriptor;
|
|
345
|
+
let _classExtraInitializers = [];
|
|
346
|
+
let _classThis;
|
|
347
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
348
|
+
var ClimateControlScheduleCCReport = class extends _classSuper {
|
|
349
|
+
static { _classThis = this; }
|
|
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
|
+
ClimateControlScheduleCCReport = _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
|
+
// TODO: Check implementation:
|
|
360
|
+
this.weekday = options.weekday;
|
|
361
|
+
this.schedule = options.schedule;
|
|
362
|
+
}
|
|
363
|
+
static from(raw, ctx) {
|
|
364
|
+
validatePayload(raw.payload.length >= 28);
|
|
365
|
+
const weekday = raw.payload[0] & 0b111;
|
|
366
|
+
const allSwitchpoints = [];
|
|
367
|
+
for (let i = 0; i <= 8; i++) {
|
|
368
|
+
allSwitchpoints.push(decodeSwitchpoint(raw.payload.subarray(1 + 3 * i)));
|
|
369
|
+
}
|
|
370
|
+
const schedule = allSwitchpoints.filter((sp) => sp.state !== "Unused");
|
|
371
|
+
return new this({
|
|
372
|
+
nodeId: ctx.sourceNodeId,
|
|
373
|
+
weekday,
|
|
374
|
+
schedule,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
weekday;
|
|
378
|
+
schedule;
|
|
379
|
+
toLogEntry(ctx) {
|
|
380
|
+
return {
|
|
381
|
+
...super.toLogEntry(ctx),
|
|
382
|
+
message: {
|
|
383
|
+
weekday: getEnumMemberName(Weekday, this.weekday),
|
|
384
|
+
schedule: `${this.schedule
|
|
385
|
+
.map((sp) => `
|
|
309
386
|
· ${padStart(sp.hour.toString(), 2, "0")}:${padStart(sp.minute.toString(), 2, "0")} --> ${sp.state}`)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
], ClimateControlScheduleCCReport.prototype, "schedule", void 0);
|
|
318
|
-
ClimateControlScheduleCCReport = ClimateControlScheduleCCReport_1 = __decorate([
|
|
319
|
-
CCCommand(ClimateControlScheduleCommand.Report)
|
|
320
|
-
], ClimateControlScheduleCCReport);
|
|
387
|
+
.join("")}`,
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
return ClimateControlScheduleCCReport = _classThis;
|
|
393
|
+
})();
|
|
321
394
|
export { ClimateControlScheduleCCReport };
|
|
322
|
-
let ClimateControlScheduleCCGet =
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
395
|
+
let ClimateControlScheduleCCGet = (() => {
|
|
396
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.Get), expectedCCResponse(ClimateControlScheduleCCReport)];
|
|
397
|
+
let _classDescriptor;
|
|
398
|
+
let _classExtraInitializers = [];
|
|
399
|
+
let _classThis;
|
|
400
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
401
|
+
var ClimateControlScheduleCCGet = class extends _classSuper {
|
|
402
|
+
static { _classThis = this; }
|
|
403
|
+
static {
|
|
404
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
405
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
406
|
+
ClimateControlScheduleCCGet = _classThis = _classDescriptor.value;
|
|
407
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
408
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
409
|
+
}
|
|
410
|
+
constructor(options) {
|
|
411
|
+
super(options);
|
|
412
|
+
this.weekday = options.weekday;
|
|
413
|
+
}
|
|
414
|
+
static from(_raw, _ctx) {
|
|
415
|
+
throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
416
|
+
// return new ClimateControlScheduleCCGet({
|
|
417
|
+
// nodeId: ctx.sourceNodeId,
|
|
418
|
+
// });
|
|
419
|
+
}
|
|
420
|
+
weekday;
|
|
421
|
+
serialize(ctx) {
|
|
422
|
+
this.payload = Bytes.from([this.weekday & 0b111]);
|
|
423
|
+
return super.serialize(ctx);
|
|
424
|
+
}
|
|
425
|
+
toLogEntry(ctx) {
|
|
426
|
+
return {
|
|
427
|
+
...super.toLogEntry(ctx),
|
|
428
|
+
message: { weekday: getEnumMemberName(Weekday, this.weekday) },
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
return ClimateControlScheduleCCGet = _classThis;
|
|
433
|
+
})();
|
|
349
434
|
export { ClimateControlScheduleCCGet };
|
|
350
|
-
let ClimateControlScheduleCCChangedReport =
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
435
|
+
let ClimateControlScheduleCCChangedReport = (() => {
|
|
436
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.ChangedReport)];
|
|
437
|
+
let _classDescriptor;
|
|
438
|
+
let _classExtraInitializers = [];
|
|
439
|
+
let _classThis;
|
|
440
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
441
|
+
var ClimateControlScheduleCCChangedReport = class extends _classSuper {
|
|
442
|
+
static { _classThis = this; }
|
|
443
|
+
static {
|
|
444
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
445
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
446
|
+
ClimateControlScheduleCCChangedReport = _classThis = _classDescriptor.value;
|
|
447
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
448
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
449
|
+
}
|
|
450
|
+
constructor(options) {
|
|
451
|
+
super(options);
|
|
452
|
+
// TODO: Check implementation:
|
|
453
|
+
this.changeCounter = options.changeCounter;
|
|
454
|
+
}
|
|
455
|
+
static from(raw, ctx) {
|
|
456
|
+
validatePayload(raw.payload.length >= 1);
|
|
457
|
+
const changeCounter = raw.payload[0];
|
|
458
|
+
return new this({
|
|
459
|
+
nodeId: ctx.sourceNodeId,
|
|
460
|
+
changeCounter,
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
changeCounter;
|
|
464
|
+
toLogEntry(ctx) {
|
|
465
|
+
return {
|
|
466
|
+
...super.toLogEntry(ctx),
|
|
467
|
+
message: { "change counter": this.changeCounter },
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
return ClimateControlScheduleCCChangedReport = _classThis;
|
|
472
|
+
})();
|
|
375
473
|
export { ClimateControlScheduleCCChangedReport };
|
|
376
|
-
let ClimateControlScheduleCCChangedGet =
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
474
|
+
let ClimateControlScheduleCCChangedGet = (() => {
|
|
475
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.ChangedGet), expectedCCResponse(ClimateControlScheduleCCChangedReport)];
|
|
476
|
+
let _classDescriptor;
|
|
477
|
+
let _classExtraInitializers = [];
|
|
478
|
+
let _classThis;
|
|
479
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
480
|
+
var ClimateControlScheduleCCChangedGet = class extends _classSuper {
|
|
481
|
+
static { _classThis = this; }
|
|
482
|
+
static {
|
|
483
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
484
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
485
|
+
ClimateControlScheduleCCChangedGet = _classThis = _classDescriptor.value;
|
|
486
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
487
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
return ClimateControlScheduleCCChangedGet = _classThis;
|
|
491
|
+
})();
|
|
382
492
|
export { ClimateControlScheduleCCChangedGet };
|
|
383
|
-
let ClimateControlScheduleCCOverrideReport =
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
493
|
+
let ClimateControlScheduleCCOverrideReport = (() => {
|
|
494
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.OverrideReport), ccValueProperty("overrideType", ClimateControlScheduleCCValues.overrideType), ccValueProperty("overrideState", ClimateControlScheduleCCValues.overrideState)];
|
|
495
|
+
let _classDescriptor;
|
|
496
|
+
let _classExtraInitializers = [];
|
|
497
|
+
let _classThis;
|
|
498
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
499
|
+
var ClimateControlScheduleCCOverrideReport = class extends _classSuper {
|
|
500
|
+
static { _classThis = this; }
|
|
501
|
+
static {
|
|
502
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
503
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
504
|
+
ClimateControlScheduleCCOverrideReport = _classThis = _classDescriptor.value;
|
|
505
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
506
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
507
|
+
}
|
|
508
|
+
constructor(options) {
|
|
509
|
+
super(options);
|
|
510
|
+
// TODO: Check implementation:
|
|
511
|
+
this.overrideType = options.overrideType;
|
|
512
|
+
this.overrideState = options.overrideState;
|
|
513
|
+
}
|
|
514
|
+
static from(raw, ctx) {
|
|
515
|
+
validatePayload(raw.payload.length >= 2);
|
|
516
|
+
const overrideType = raw.payload[0] & 0b11;
|
|
517
|
+
const overrideState = decodeSetbackState(raw.payload[1])
|
|
518
|
+
|| raw.payload[1];
|
|
519
|
+
return new this({
|
|
520
|
+
nodeId: ctx.sourceNodeId,
|
|
521
|
+
overrideType,
|
|
522
|
+
overrideState,
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
overrideType;
|
|
526
|
+
overrideState;
|
|
527
|
+
toLogEntry(ctx) {
|
|
528
|
+
return {
|
|
529
|
+
...super.toLogEntry(ctx),
|
|
530
|
+
message: {
|
|
531
|
+
"override type": getEnumMemberName(ScheduleOverrideType, this.overrideType),
|
|
532
|
+
"override state": this.overrideState,
|
|
533
|
+
},
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
return ClimateControlScheduleCCOverrideReport = _classThis;
|
|
538
|
+
})();
|
|
422
539
|
export { ClimateControlScheduleCCOverrideReport };
|
|
423
|
-
let ClimateControlScheduleCCOverrideGet =
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
540
|
+
let ClimateControlScheduleCCOverrideGet = (() => {
|
|
541
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.OverrideGet), expectedCCResponse(ClimateControlScheduleCCOverrideReport)];
|
|
542
|
+
let _classDescriptor;
|
|
543
|
+
let _classExtraInitializers = [];
|
|
544
|
+
let _classThis;
|
|
545
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
546
|
+
var ClimateControlScheduleCCOverrideGet = class extends _classSuper {
|
|
547
|
+
static { _classThis = this; }
|
|
548
|
+
static {
|
|
549
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
550
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
551
|
+
ClimateControlScheduleCCOverrideGet = _classThis = _classDescriptor.value;
|
|
552
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
553
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
return ClimateControlScheduleCCOverrideGet = _classThis;
|
|
557
|
+
})();
|
|
429
558
|
export { ClimateControlScheduleCCOverrideGet };
|
|
430
|
-
let ClimateControlScheduleCCOverrideSet =
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
559
|
+
let ClimateControlScheduleCCOverrideSet = (() => {
|
|
560
|
+
let _classDecorators = [CCCommand(ClimateControlScheduleCommand.OverrideSet), useSupervision()];
|
|
561
|
+
let _classDescriptor;
|
|
562
|
+
let _classExtraInitializers = [];
|
|
563
|
+
let _classThis;
|
|
564
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
565
|
+
var ClimateControlScheduleCCOverrideSet = class extends _classSuper {
|
|
566
|
+
static { _classThis = this; }
|
|
567
|
+
static {
|
|
568
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
569
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
570
|
+
ClimateControlScheduleCCOverrideSet = _classThis = _classDescriptor.value;
|
|
571
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
572
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
573
|
+
}
|
|
574
|
+
constructor(options) {
|
|
575
|
+
super(options);
|
|
576
|
+
this.overrideType = options.overrideType;
|
|
577
|
+
this.overrideState = options.overrideState;
|
|
578
|
+
}
|
|
579
|
+
static from(_raw, _ctx) {
|
|
580
|
+
throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
581
|
+
// return new ClimateControlScheduleCCOverrideSet({
|
|
582
|
+
// nodeId: ctx.sourceNodeId,
|
|
583
|
+
// });
|
|
584
|
+
}
|
|
585
|
+
overrideType;
|
|
586
|
+
overrideState;
|
|
587
|
+
serialize(ctx) {
|
|
588
|
+
this.payload = Bytes.from([
|
|
589
|
+
this.overrideType & 0b11,
|
|
590
|
+
encodeSetbackState(this.overrideState),
|
|
591
|
+
]);
|
|
592
|
+
return super.serialize(ctx);
|
|
593
|
+
}
|
|
594
|
+
toLogEntry(ctx) {
|
|
595
|
+
return {
|
|
596
|
+
...super.toLogEntry(ctx),
|
|
597
|
+
message: {
|
|
598
|
+
"override type": getEnumMemberName(ScheduleOverrideType, this.overrideType),
|
|
599
|
+
"override state": this.overrideState,
|
|
600
|
+
},
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
return ClimateControlScheduleCCOverrideSet = _classThis;
|
|
605
|
+
})();
|
|
465
606
|
export { ClimateControlScheduleCCOverrideSet };
|
|
466
607
|
//# sourceMappingURL=ClimateControlScheduleCC.js.map
|