@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
|
@@ -41,13 +41,45 @@ var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
|
41
41
|
var import_Values = require("../lib/Values.js");
|
|
42
42
|
var import_Types = require("../lib/_Types.js");
|
|
43
43
|
var import_serializers = require("../lib/serializers.js");
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
45
|
+
function accept(f) {
|
|
46
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
47
|
+
return f;
|
|
48
|
+
}
|
|
49
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
50
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
51
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
52
|
+
var _, done = false;
|
|
53
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
54
|
+
var context = {};
|
|
55
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
56
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
57
|
+
context.addInitializer = function(f) {
|
|
58
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
59
|
+
extraInitializers.push(accept(f || null));
|
|
60
|
+
};
|
|
61
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
62
|
+
if (kind === "accessor") {
|
|
63
|
+
if (result === void 0) continue;
|
|
64
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
65
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
66
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
67
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
68
|
+
} else if (_ = accept(result)) {
|
|
69
|
+
if (kind === "field") initializers.unshift(_);
|
|
70
|
+
else descriptor[key] = _;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
74
|
+
done = true;
|
|
75
|
+
};
|
|
76
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
77
|
+
var useValue = arguments.length > 2;
|
|
78
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
79
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
80
|
+
}
|
|
81
|
+
return useValue ? value : void 0;
|
|
49
82
|
};
|
|
50
|
-
var ClimateControlScheduleCCReport_1, ClimateControlScheduleCCChangedReport_1, ClimateControlScheduleCCOverrideReport_1;
|
|
51
83
|
function __assertType(argName, typeName, boundHasError) {
|
|
52
84
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
53
85
|
if (boundHasError()) {
|
|
@@ -170,299 +202,433 @@ const ClimateControlScheduleCCValues = Object.freeze({
|
|
|
170
202
|
}))
|
|
171
203
|
})
|
|
172
204
|
});
|
|
173
|
-
let ClimateControlScheduleCCAPI =
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
case import_Types.ClimateControlScheduleCommand.OverrideGet:
|
|
183
|
-
return this.isSinglecast();
|
|
184
|
-
}
|
|
185
|
-
return super.supportsCommand(cmd);
|
|
186
|
-
}
|
|
187
|
-
async set(weekday, switchPoints) {
|
|
188
|
-
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
189
|
-
__assertType("switchPoints", void 0, __assertType__sa__2_ea_2.bind(void 0, switchPoints));
|
|
190
|
-
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.Set);
|
|
191
|
-
const cc = new ClimateControlScheduleCCSet({
|
|
192
|
-
nodeId: this.endpoint.nodeId,
|
|
193
|
-
endpointIndex: this.endpoint.index,
|
|
194
|
-
weekday,
|
|
195
|
-
switchPoints
|
|
196
|
-
});
|
|
197
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
198
|
-
}
|
|
199
|
-
async get(weekday) {
|
|
200
|
-
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
201
|
-
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.Get);
|
|
202
|
-
const cc = new ClimateControlScheduleCCGet({
|
|
203
|
-
nodeId: this.endpoint.nodeId,
|
|
204
|
-
endpointIndex: this.endpoint.index,
|
|
205
|
-
weekday
|
|
206
|
-
});
|
|
207
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
208
|
-
return response?.schedule;
|
|
209
|
-
}
|
|
210
|
-
async getChangeCounter() {
|
|
211
|
-
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.ChangedGet);
|
|
212
|
-
const cc = new ClimateControlScheduleCCChangedGet({
|
|
213
|
-
nodeId: this.endpoint.nodeId,
|
|
214
|
-
endpointIndex: this.endpoint.index
|
|
215
|
-
});
|
|
216
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
217
|
-
return response?.changeCounter;
|
|
218
|
-
}
|
|
219
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
220
|
-
async getOverride() {
|
|
221
|
-
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.OverrideGet);
|
|
222
|
-
const cc = new ClimateControlScheduleCCOverrideGet({
|
|
223
|
-
nodeId: this.endpoint.nodeId,
|
|
224
|
-
endpointIndex: this.endpoint.index
|
|
225
|
-
});
|
|
226
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
227
|
-
if (response) {
|
|
228
|
-
return {
|
|
229
|
-
type: response.overrideType,
|
|
230
|
-
state: response.overrideState
|
|
231
|
-
};
|
|
205
|
+
let ClimateControlScheduleCCAPI = (() => {
|
|
206
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Climate Control Schedule"])];
|
|
207
|
+
let _classDescriptor;
|
|
208
|
+
let _classExtraInitializers = [];
|
|
209
|
+
let _classThis;
|
|
210
|
+
let _classSuper = import_API.CCAPI;
|
|
211
|
+
var ClimateControlScheduleCCAPI2 = class extends _classSuper {
|
|
212
|
+
static {
|
|
213
|
+
_classThis = this;
|
|
232
214
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
nodeId: this.endpoint.nodeId,
|
|
240
|
-
endpointIndex: this.endpoint.index,
|
|
241
|
-
overrideType: type,
|
|
242
|
-
overrideState: state
|
|
243
|
-
});
|
|
244
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
ClimateControlScheduleCCAPI = __decorate([
|
|
248
|
-
(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Climate Control Schedule"])
|
|
249
|
-
], ClimateControlScheduleCCAPI);
|
|
250
|
-
let ClimateControlScheduleCC = class ClimateControlScheduleCC2 extends import_CommandClass.CommandClass {
|
|
251
|
-
};
|
|
252
|
-
ClimateControlScheduleCC = __decorate([
|
|
253
|
-
(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Climate Control Schedule"]),
|
|
254
|
-
(0, import_CommandClassDecorators.implementedVersion)(1),
|
|
255
|
-
(0, import_CommandClassDecorators.ccValues)(ClimateControlScheduleCCValues)
|
|
256
|
-
], ClimateControlScheduleCC);
|
|
257
|
-
let ClimateControlScheduleCCSet = class ClimateControlScheduleCCSet2 extends ClimateControlScheduleCC {
|
|
258
|
-
constructor(options) {
|
|
259
|
-
super(options);
|
|
260
|
-
this.switchPoints = options.switchPoints;
|
|
261
|
-
this.weekday = options.weekday;
|
|
262
|
-
}
|
|
263
|
-
static from(_raw, _ctx) {
|
|
264
|
-
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
265
|
-
}
|
|
266
|
-
switchPoints;
|
|
267
|
-
weekday;
|
|
268
|
-
serialize(ctx) {
|
|
269
|
-
const allSwitchPoints = this.switchPoints.slice(0, 9);
|
|
270
|
-
while (allSwitchPoints.length < 9) {
|
|
271
|
-
allSwitchPoints.push({
|
|
272
|
-
hour: 0,
|
|
273
|
-
minute: 0,
|
|
274
|
-
state: "Unused"
|
|
275
|
-
});
|
|
215
|
+
static {
|
|
216
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
217
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
218
|
+
ClimateControlScheduleCCAPI2 = _classThis = _classDescriptor.value;
|
|
219
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
220
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
276
221
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
weekday: (0, import_safe3.getEnumMemberName)(import_Types.Weekday, this.weekday),
|
|
288
|
-
switchpoints: `${this.switchPoints.map((sp) => `
|
|
289
|
-
\xB7 ${(0, import_strings.padStart)(sp.hour.toString(), 2, "0")}:${(0, import_strings.padStart)(sp.minute.toString(), 2, "0")} --> ${sp.state}`).join("")}`
|
|
222
|
+
supportsCommand(cmd) {
|
|
223
|
+
switch (cmd) {
|
|
224
|
+
case import_Types.ClimateControlScheduleCommand.Set:
|
|
225
|
+
case import_Types.ClimateControlScheduleCommand.OverrideSet:
|
|
226
|
+
return true;
|
|
227
|
+
// mandatory
|
|
228
|
+
case import_Types.ClimateControlScheduleCommand.Get:
|
|
229
|
+
case import_Types.ClimateControlScheduleCommand.ChangedGet:
|
|
230
|
+
case import_Types.ClimateControlScheduleCommand.OverrideGet:
|
|
231
|
+
return this.isSinglecast();
|
|
290
232
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
(
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
233
|
+
return super.supportsCommand(cmd);
|
|
234
|
+
}
|
|
235
|
+
async set(weekday, switchPoints) {
|
|
236
|
+
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
237
|
+
__assertType("switchPoints", void 0, __assertType__sa__2_ea_2.bind(void 0, switchPoints));
|
|
238
|
+
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.Set);
|
|
239
|
+
const cc = new ClimateControlScheduleCCSet({
|
|
240
|
+
nodeId: this.endpoint.nodeId,
|
|
241
|
+
endpointIndex: this.endpoint.index,
|
|
242
|
+
weekday,
|
|
243
|
+
switchPoints
|
|
244
|
+
});
|
|
245
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
246
|
+
}
|
|
247
|
+
async get(weekday) {
|
|
248
|
+
__assertType("weekday", "Weekday", __assertType__Weekday.bind(void 0, weekday));
|
|
249
|
+
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.Get);
|
|
250
|
+
const cc = new ClimateControlScheduleCCGet({
|
|
251
|
+
nodeId: this.endpoint.nodeId,
|
|
252
|
+
endpointIndex: this.endpoint.index,
|
|
253
|
+
weekday
|
|
254
|
+
});
|
|
255
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
256
|
+
return response?.schedule;
|
|
257
|
+
}
|
|
258
|
+
async getChangeCounter() {
|
|
259
|
+
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.ChangedGet);
|
|
260
|
+
const cc = new ClimateControlScheduleCCChangedGet({
|
|
261
|
+
nodeId: this.endpoint.nodeId,
|
|
262
|
+
endpointIndex: this.endpoint.index
|
|
263
|
+
});
|
|
264
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
265
|
+
return response?.changeCounter;
|
|
266
|
+
}
|
|
267
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
268
|
+
async getOverride() {
|
|
269
|
+
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.OverrideGet);
|
|
270
|
+
const cc = new ClimateControlScheduleCCOverrideGet({
|
|
271
|
+
nodeId: this.endpoint.nodeId,
|
|
272
|
+
endpointIndex: this.endpoint.index
|
|
273
|
+
});
|
|
274
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
275
|
+
if (response) {
|
|
276
|
+
return {
|
|
277
|
+
type: response.overrideType,
|
|
278
|
+
state: response.overrideState
|
|
279
|
+
};
|
|
327
280
|
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
const overrideType = raw.payload[0] & 3;
|
|
400
|
-
const overrideState = (0, import_serializers.decodeSetbackState)(raw.payload[1]) || raw.payload[1];
|
|
401
|
-
return new ClimateControlScheduleCCOverrideReport_1({
|
|
402
|
-
nodeId: ctx.sourceNodeId,
|
|
403
|
-
overrideType,
|
|
404
|
-
overrideState
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
overrideType;
|
|
408
|
-
overrideState;
|
|
409
|
-
toLogEntry(ctx) {
|
|
410
|
-
return {
|
|
411
|
-
...super.toLogEntry(ctx),
|
|
412
|
-
message: {
|
|
413
|
-
"override type": (0, import_safe3.getEnumMemberName)(import_Types.ScheduleOverrideType, this.overrideType),
|
|
414
|
-
"override state": this.overrideState
|
|
281
|
+
}
|
|
282
|
+
async setOverride(type, state) {
|
|
283
|
+
__assertType("type", "ScheduleOverrideType", __assertType__ScheduleOverrideType.bind(void 0, type));
|
|
284
|
+
__assertType("state", "SetbackState", __assertType__SetbackState.bind(void 0, state));
|
|
285
|
+
this.assertSupportsCommand(import_Types.ClimateControlScheduleCommand, import_Types.ClimateControlScheduleCommand.OverrideSet);
|
|
286
|
+
const cc = new ClimateControlScheduleCCOverrideSet({
|
|
287
|
+
nodeId: this.endpoint.nodeId,
|
|
288
|
+
endpointIndex: this.endpoint.index,
|
|
289
|
+
overrideType: type,
|
|
290
|
+
overrideState: state
|
|
291
|
+
});
|
|
292
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
return ClimateControlScheduleCCAPI2 = _classThis;
|
|
296
|
+
})();
|
|
297
|
+
let ClimateControlScheduleCC = (() => {
|
|
298
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Climate Control Schedule"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(ClimateControlScheduleCCValues)];
|
|
299
|
+
let _classDescriptor;
|
|
300
|
+
let _classExtraInitializers = [];
|
|
301
|
+
let _classThis;
|
|
302
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
303
|
+
var ClimateControlScheduleCC2 = class extends _classSuper {
|
|
304
|
+
static {
|
|
305
|
+
_classThis = this;
|
|
306
|
+
}
|
|
307
|
+
static {
|
|
308
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
309
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
310
|
+
ClimateControlScheduleCC2 = _classThis = _classDescriptor.value;
|
|
311
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
312
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
return ClimateControlScheduleCC2 = _classThis;
|
|
316
|
+
})();
|
|
317
|
+
let ClimateControlScheduleCCSet = (() => {
|
|
318
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.Set), (0, import_CommandClassDecorators.useSupervision)()];
|
|
319
|
+
let _classDescriptor;
|
|
320
|
+
let _classExtraInitializers = [];
|
|
321
|
+
let _classThis;
|
|
322
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
323
|
+
var ClimateControlScheduleCCSet2 = class extends _classSuper {
|
|
324
|
+
static {
|
|
325
|
+
_classThis = this;
|
|
326
|
+
}
|
|
327
|
+
static {
|
|
328
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
329
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
330
|
+
ClimateControlScheduleCCSet2 = _classThis = _classDescriptor.value;
|
|
331
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
332
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
333
|
+
}
|
|
334
|
+
constructor(options) {
|
|
335
|
+
super(options);
|
|
336
|
+
this.switchPoints = options.switchPoints;
|
|
337
|
+
this.weekday = options.weekday;
|
|
338
|
+
}
|
|
339
|
+
static from(_raw, _ctx) {
|
|
340
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
341
|
+
}
|
|
342
|
+
switchPoints;
|
|
343
|
+
weekday;
|
|
344
|
+
serialize(ctx) {
|
|
345
|
+
const allSwitchPoints = this.switchPoints.slice(0, 9);
|
|
346
|
+
while (allSwitchPoints.length < 9) {
|
|
347
|
+
allSwitchPoints.push({
|
|
348
|
+
hour: 0,
|
|
349
|
+
minute: 0,
|
|
350
|
+
state: "Unused"
|
|
351
|
+
});
|
|
415
352
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
|
|
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
|
-
|
|
353
|
+
this.payload = import_safe2.Bytes.concat([
|
|
354
|
+
import_safe2.Bytes.from([this.weekday & 7]),
|
|
355
|
+
...allSwitchPoints.map((sp) => (0, import_serializers.encodeSwitchpoint)(sp))
|
|
356
|
+
]);
|
|
357
|
+
return super.serialize(ctx);
|
|
358
|
+
}
|
|
359
|
+
toLogEntry(ctx) {
|
|
360
|
+
return {
|
|
361
|
+
...super.toLogEntry(ctx),
|
|
362
|
+
message: {
|
|
363
|
+
weekday: (0, import_safe3.getEnumMemberName)(import_Types.Weekday, this.weekday),
|
|
364
|
+
switchpoints: `${this.switchPoints.map((sp) => `
|
|
365
|
+
\xB7 ${(0, import_strings.padStart)(sp.hour.toString(), 2, "0")}:${(0, import_strings.padStart)(sp.minute.toString(), 2, "0")} --> ${sp.state}`).join("")}`
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
return ClimateControlScheduleCCSet2 = _classThis;
|
|
371
|
+
})();
|
|
372
|
+
let ClimateControlScheduleCCReport = (() => {
|
|
373
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.Report), (0, import_CommandClassDecorators.ccValueProperty)("schedule", ClimateControlScheduleCCValues.schedule, (self) => [self.weekday])];
|
|
374
|
+
let _classDescriptor;
|
|
375
|
+
let _classExtraInitializers = [];
|
|
376
|
+
let _classThis;
|
|
377
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
378
|
+
var ClimateControlScheduleCCReport2 = class extends _classSuper {
|
|
379
|
+
static {
|
|
380
|
+
_classThis = this;
|
|
381
|
+
}
|
|
382
|
+
static {
|
|
383
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
384
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
385
|
+
ClimateControlScheduleCCReport2 = _classThis = _classDescriptor.value;
|
|
386
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
387
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
388
|
+
}
|
|
389
|
+
constructor(options) {
|
|
390
|
+
super(options);
|
|
391
|
+
this.weekday = options.weekday;
|
|
392
|
+
this.schedule = options.schedule;
|
|
393
|
+
}
|
|
394
|
+
static from(raw, ctx) {
|
|
395
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 28);
|
|
396
|
+
const weekday = raw.payload[0] & 7;
|
|
397
|
+
const allSwitchpoints = [];
|
|
398
|
+
for (let i = 0; i <= 8; i++) {
|
|
399
|
+
allSwitchpoints.push((0, import_serializers.decodeSwitchpoint)(raw.payload.subarray(1 + 3 * i)));
|
|
458
400
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
401
|
+
const schedule = allSwitchpoints.filter((sp) => sp.state !== "Unused");
|
|
402
|
+
return new this({
|
|
403
|
+
nodeId: ctx.sourceNodeId,
|
|
404
|
+
weekday,
|
|
405
|
+
schedule
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
weekday;
|
|
409
|
+
schedule;
|
|
410
|
+
toLogEntry(ctx) {
|
|
411
|
+
return {
|
|
412
|
+
...super.toLogEntry(ctx),
|
|
413
|
+
message: {
|
|
414
|
+
weekday: (0, import_safe3.getEnumMemberName)(import_Types.Weekday, this.weekday),
|
|
415
|
+
schedule: `${this.schedule.map((sp) => `
|
|
416
|
+
\xB7 ${(0, import_strings.padStart)(sp.hour.toString(), 2, "0")}:${(0, import_strings.padStart)(sp.minute.toString(), 2, "0")} --> ${sp.state}`).join("")}`
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
return ClimateControlScheduleCCReport2 = _classThis;
|
|
422
|
+
})();
|
|
423
|
+
let ClimateControlScheduleCCGet = (() => {
|
|
424
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(ClimateControlScheduleCCReport)];
|
|
425
|
+
let _classDescriptor;
|
|
426
|
+
let _classExtraInitializers = [];
|
|
427
|
+
let _classThis;
|
|
428
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
429
|
+
var ClimateControlScheduleCCGet2 = class extends _classSuper {
|
|
430
|
+
static {
|
|
431
|
+
_classThis = this;
|
|
432
|
+
}
|
|
433
|
+
static {
|
|
434
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
435
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
436
|
+
ClimateControlScheduleCCGet2 = _classThis = _classDescriptor.value;
|
|
437
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
438
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
439
|
+
}
|
|
440
|
+
constructor(options) {
|
|
441
|
+
super(options);
|
|
442
|
+
this.weekday = options.weekday;
|
|
443
|
+
}
|
|
444
|
+
static from(_raw, _ctx) {
|
|
445
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
446
|
+
}
|
|
447
|
+
weekday;
|
|
448
|
+
serialize(ctx) {
|
|
449
|
+
this.payload = import_safe2.Bytes.from([this.weekday & 7]);
|
|
450
|
+
return super.serialize(ctx);
|
|
451
|
+
}
|
|
452
|
+
toLogEntry(ctx) {
|
|
453
|
+
return {
|
|
454
|
+
...super.toLogEntry(ctx),
|
|
455
|
+
message: { weekday: (0, import_safe3.getEnumMemberName)(import_Types.Weekday, this.weekday) }
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
return ClimateControlScheduleCCGet2 = _classThis;
|
|
460
|
+
})();
|
|
461
|
+
let ClimateControlScheduleCCChangedReport = (() => {
|
|
462
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.ChangedReport)];
|
|
463
|
+
let _classDescriptor;
|
|
464
|
+
let _classExtraInitializers = [];
|
|
465
|
+
let _classThis;
|
|
466
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
467
|
+
var ClimateControlScheduleCCChangedReport2 = class extends _classSuper {
|
|
468
|
+
static {
|
|
469
|
+
_classThis = this;
|
|
470
|
+
}
|
|
471
|
+
static {
|
|
472
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
473
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
474
|
+
ClimateControlScheduleCCChangedReport2 = _classThis = _classDescriptor.value;
|
|
475
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
476
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
477
|
+
}
|
|
478
|
+
constructor(options) {
|
|
479
|
+
super(options);
|
|
480
|
+
this.changeCounter = options.changeCounter;
|
|
481
|
+
}
|
|
482
|
+
static from(raw, ctx) {
|
|
483
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 1);
|
|
484
|
+
const changeCounter = raw.payload[0];
|
|
485
|
+
return new this({
|
|
486
|
+
nodeId: ctx.sourceNodeId,
|
|
487
|
+
changeCounter
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
changeCounter;
|
|
491
|
+
toLogEntry(ctx) {
|
|
492
|
+
return {
|
|
493
|
+
...super.toLogEntry(ctx),
|
|
494
|
+
message: { "change counter": this.changeCounter }
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
return ClimateControlScheduleCCChangedReport2 = _classThis;
|
|
499
|
+
})();
|
|
500
|
+
let ClimateControlScheduleCCChangedGet = (() => {
|
|
501
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.ChangedGet), (0, import_CommandClassDecorators.expectedCCResponse)(ClimateControlScheduleCCChangedReport)];
|
|
502
|
+
let _classDescriptor;
|
|
503
|
+
let _classExtraInitializers = [];
|
|
504
|
+
let _classThis;
|
|
505
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
506
|
+
var ClimateControlScheduleCCChangedGet2 = class extends _classSuper {
|
|
507
|
+
static {
|
|
508
|
+
_classThis = this;
|
|
509
|
+
}
|
|
510
|
+
static {
|
|
511
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
512
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
513
|
+
ClimateControlScheduleCCChangedGet2 = _classThis = _classDescriptor.value;
|
|
514
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
515
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
return ClimateControlScheduleCCChangedGet2 = _classThis;
|
|
519
|
+
})();
|
|
520
|
+
let ClimateControlScheduleCCOverrideReport = (() => {
|
|
521
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.OverrideReport), (0, import_CommandClassDecorators.ccValueProperty)("overrideType", ClimateControlScheduleCCValues.overrideType), (0, import_CommandClassDecorators.ccValueProperty)("overrideState", ClimateControlScheduleCCValues.overrideState)];
|
|
522
|
+
let _classDescriptor;
|
|
523
|
+
let _classExtraInitializers = [];
|
|
524
|
+
let _classThis;
|
|
525
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
526
|
+
var ClimateControlScheduleCCOverrideReport2 = class extends _classSuper {
|
|
527
|
+
static {
|
|
528
|
+
_classThis = this;
|
|
529
|
+
}
|
|
530
|
+
static {
|
|
531
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
532
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
533
|
+
ClimateControlScheduleCCOverrideReport2 = _classThis = _classDescriptor.value;
|
|
534
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
535
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
536
|
+
}
|
|
537
|
+
constructor(options) {
|
|
538
|
+
super(options);
|
|
539
|
+
this.overrideType = options.overrideType;
|
|
540
|
+
this.overrideState = options.overrideState;
|
|
541
|
+
}
|
|
542
|
+
static from(raw, ctx) {
|
|
543
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
544
|
+
const overrideType = raw.payload[0] & 3;
|
|
545
|
+
const overrideState = (0, import_serializers.decodeSetbackState)(raw.payload[1]) || raw.payload[1];
|
|
546
|
+
return new this({
|
|
547
|
+
nodeId: ctx.sourceNodeId,
|
|
548
|
+
overrideType,
|
|
549
|
+
overrideState
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
overrideType;
|
|
553
|
+
overrideState;
|
|
554
|
+
toLogEntry(ctx) {
|
|
555
|
+
return {
|
|
556
|
+
...super.toLogEntry(ctx),
|
|
557
|
+
message: {
|
|
558
|
+
"override type": (0, import_safe3.getEnumMemberName)(import_Types.ScheduleOverrideType, this.overrideType),
|
|
559
|
+
"override state": this.overrideState
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
return ClimateControlScheduleCCOverrideReport2 = _classThis;
|
|
565
|
+
})();
|
|
566
|
+
let ClimateControlScheduleCCOverrideGet = (() => {
|
|
567
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.OverrideGet), (0, import_CommandClassDecorators.expectedCCResponse)(ClimateControlScheduleCCOverrideReport)];
|
|
568
|
+
let _classDescriptor;
|
|
569
|
+
let _classExtraInitializers = [];
|
|
570
|
+
let _classThis;
|
|
571
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
572
|
+
var ClimateControlScheduleCCOverrideGet2 = class extends _classSuper {
|
|
573
|
+
static {
|
|
574
|
+
_classThis = this;
|
|
575
|
+
}
|
|
576
|
+
static {
|
|
577
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
578
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
579
|
+
ClimateControlScheduleCCOverrideGet2 = _classThis = _classDescriptor.value;
|
|
580
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
581
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
return ClimateControlScheduleCCOverrideGet2 = _classThis;
|
|
585
|
+
})();
|
|
586
|
+
let ClimateControlScheduleCCOverrideSet = (() => {
|
|
587
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ClimateControlScheduleCommand.OverrideSet), (0, import_CommandClassDecorators.useSupervision)()];
|
|
588
|
+
let _classDescriptor;
|
|
589
|
+
let _classExtraInitializers = [];
|
|
590
|
+
let _classThis;
|
|
591
|
+
let _classSuper = ClimateControlScheduleCC;
|
|
592
|
+
var ClimateControlScheduleCCOverrideSet2 = class extends _classSuper {
|
|
593
|
+
static {
|
|
594
|
+
_classThis = this;
|
|
595
|
+
}
|
|
596
|
+
static {
|
|
597
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
598
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
599
|
+
ClimateControlScheduleCCOverrideSet2 = _classThis = _classDescriptor.value;
|
|
600
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
601
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
602
|
+
}
|
|
603
|
+
constructor(options) {
|
|
604
|
+
super(options);
|
|
605
|
+
this.overrideType = options.overrideType;
|
|
606
|
+
this.overrideState = options.overrideState;
|
|
607
|
+
}
|
|
608
|
+
static from(_raw, _ctx) {
|
|
609
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
610
|
+
}
|
|
611
|
+
overrideType;
|
|
612
|
+
overrideState;
|
|
613
|
+
serialize(ctx) {
|
|
614
|
+
this.payload = import_safe2.Bytes.from([
|
|
615
|
+
this.overrideType & 3,
|
|
616
|
+
(0, import_serializers.encodeSetbackState)(this.overrideState)
|
|
617
|
+
]);
|
|
618
|
+
return super.serialize(ctx);
|
|
619
|
+
}
|
|
620
|
+
toLogEntry(ctx) {
|
|
621
|
+
return {
|
|
622
|
+
...super.toLogEntry(ctx),
|
|
623
|
+
message: {
|
|
624
|
+
"override type": (0, import_safe3.getEnumMemberName)(import_Types.ScheduleOverrideType, this.overrideType),
|
|
625
|
+
"override state": this.overrideState
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
return ClimateControlScheduleCCOverrideSet2 = _classThis;
|
|
631
|
+
})();
|
|
466
632
|
// Annotate the CommonJS export names for ESM import in node:
|
|
467
633
|
0 && (module.exports = {
|
|
468
634
|
ClimateControlScheduleCC,
|