@zwave-js/cc 14.0.0-beta.4 → 14.0.0-beta.5
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
|
@@ -34,13 +34,45 @@ var import_CommandClass = require("../lib/CommandClass.js");
|
|
|
34
34
|
var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
|
|
35
35
|
var import_Values = require("../lib/Values.js");
|
|
36
36
|
var import_Types = require("../lib/_Types.js");
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
38
|
+
function accept(f) {
|
|
39
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
40
|
+
return f;
|
|
41
|
+
}
|
|
42
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
43
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
44
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
45
|
+
var _, done = false;
|
|
46
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
47
|
+
var context = {};
|
|
48
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
49
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
50
|
+
context.addInitializer = function(f) {
|
|
51
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
52
|
+
extraInitializers.push(accept(f || null));
|
|
53
|
+
};
|
|
54
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
55
|
+
if (kind === "accessor") {
|
|
56
|
+
if (result === void 0) continue;
|
|
57
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
58
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
59
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
60
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
61
|
+
} else if (_ = accept(result)) {
|
|
62
|
+
if (kind === "field") initializers.unshift(_);
|
|
63
|
+
else descriptor[key] = _;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
67
|
+
done = true;
|
|
68
|
+
};
|
|
69
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
70
|
+
var useValue = arguments.length > 2;
|
|
71
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
72
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
73
|
+
}
|
|
74
|
+
return useValue ? value : void 0;
|
|
42
75
|
};
|
|
43
|
-
var SceneActuatorConfigurationCCReport_1;
|
|
44
76
|
function __assertType(argName, typeName, boundHasError) {
|
|
45
77
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
46
78
|
if (boundHasError()) {
|
|
@@ -106,258 +138,329 @@ const SceneActuatorConfigurationCCValues = Object.freeze({
|
|
|
106
138
|
}))
|
|
107
139
|
})
|
|
108
140
|
});
|
|
109
|
-
let SceneActuatorConfigurationCCAPI =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
141
|
+
let SceneActuatorConfigurationCCAPI = (() => {
|
|
142
|
+
let _classDecorators = [(0, import_CommandClassDecorators.API)(import_safe.CommandClasses["Scene Actuator Configuration"])];
|
|
143
|
+
let _classDescriptor;
|
|
144
|
+
let _classExtraInitializers = [];
|
|
145
|
+
let _classThis;
|
|
146
|
+
let _classSuper = import_API.CCAPI;
|
|
147
|
+
var SceneActuatorConfigurationCCAPI2 = class extends _classSuper {
|
|
148
|
+
static {
|
|
149
|
+
_classThis = this;
|
|
150
|
+
}
|
|
151
|
+
static {
|
|
152
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
153
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
154
|
+
SceneActuatorConfigurationCCAPI2 = _classThis = _classDescriptor.value;
|
|
155
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
156
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
157
|
+
}
|
|
158
|
+
supportsCommand(cmd) {
|
|
159
|
+
switch (cmd) {
|
|
160
|
+
case import_Types.SceneActuatorConfigurationCommand.Get:
|
|
161
|
+
return this.isSinglecast();
|
|
162
|
+
case import_Types.SceneActuatorConfigurationCommand.Set:
|
|
163
|
+
return true;
|
|
125
164
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
(0, import_API.throwWrongValueType)(this.ccId, property, "duration", typeof value);
|
|
165
|
+
return super.supportsCommand(cmd);
|
|
166
|
+
}
|
|
167
|
+
get [import_API.SET_VALUE]() {
|
|
168
|
+
return async function({ property, propertyKey }, value, options) {
|
|
169
|
+
if (propertyKey == void 0) {
|
|
170
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
171
|
+
} else if (typeof propertyKey !== "number") {
|
|
172
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
135
173
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
174
|
+
if (property === "level") {
|
|
175
|
+
if (typeof value !== "number") {
|
|
176
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
177
|
+
}
|
|
178
|
+
const dimmingDuration = import_safe.Duration.from(options?.transitionDuration) ?? this.tryGetValueDB()?.getValue(SceneActuatorConfigurationCCValues.dimmingDuration(propertyKey).endpoint(this.endpoint.index));
|
|
179
|
+
return this.set(propertyKey, dimmingDuration, value);
|
|
180
|
+
} else if (property === "dimmingDuration") {
|
|
181
|
+
if (typeof value !== "string" && !(value instanceof import_safe.Duration)) {
|
|
182
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "duration", typeof value);
|
|
183
|
+
}
|
|
184
|
+
const dimmingDuration = import_safe.Duration.from(value);
|
|
185
|
+
if (dimmingDuration == void 0) {
|
|
186
|
+
throw new import_safe.ZWaveError(`${(0, import_safe.getCCName)(this.ccId)}: "${property}" could not be set. ${JSON.stringify(value)} is not a valid duration.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
187
|
+
}
|
|
188
|
+
const level = this.tryGetValueDB()?.getValue(SceneActuatorConfigurationCCValues.level(propertyKey).endpoint(this.endpoint.index));
|
|
189
|
+
return this.set(propertyKey, dimmingDuration, level);
|
|
190
|
+
} else {
|
|
191
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
139
192
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
154
|
-
} else if (typeof propertyKey !== "number") {
|
|
155
|
-
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
get [import_API.POLL_VALUE]() {
|
|
196
|
+
return async function({ property, propertyKey }) {
|
|
197
|
+
switch (property) {
|
|
198
|
+
case "level":
|
|
199
|
+
case "dimmingDuration": {
|
|
200
|
+
if (propertyKey == void 0) {
|
|
201
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
202
|
+
} else if (typeof propertyKey !== "number") {
|
|
203
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
204
|
+
}
|
|
205
|
+
return (await this.get(propertyKey))?.[property];
|
|
156
206
|
}
|
|
157
|
-
|
|
207
|
+
default:
|
|
208
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
158
209
|
}
|
|
159
|
-
|
|
160
|
-
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
async set(sceneId, dimmingDuration, level) {
|
|
213
|
+
__assertType("sceneId", "number", __assertType__number.bind(void 0, sceneId));
|
|
214
|
+
__assertType("dimmingDuration", void 0, __assertType__optional_su__string__2_eu.bind(void 0, dimmingDuration));
|
|
215
|
+
__assertType("level", "(optional) number", __assertType__optional_number.bind(void 0, level));
|
|
216
|
+
this.assertSupportsCommand(import_Types.SceneActuatorConfigurationCommand, import_Types.SceneActuatorConfigurationCommand.Set);
|
|
217
|
+
const cc = new SceneActuatorConfigurationCCSet({
|
|
218
|
+
nodeId: this.endpoint.nodeId,
|
|
219
|
+
endpointIndex: this.endpoint.index,
|
|
220
|
+
sceneId,
|
|
221
|
+
dimmingDuration: import_safe.Duration.from(dimmingDuration) ?? new import_safe.Duration(0, "seconds"),
|
|
222
|
+
level
|
|
223
|
+
});
|
|
224
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
225
|
+
}
|
|
226
|
+
async getActive() {
|
|
227
|
+
this.assertSupportsCommand(import_Types.SceneActuatorConfigurationCommand, import_Types.SceneActuatorConfigurationCommand.Get);
|
|
228
|
+
const cc = new SceneActuatorConfigurationCCGet({
|
|
229
|
+
nodeId: this.endpoint.nodeId,
|
|
230
|
+
endpointIndex: this.endpoint.index,
|
|
231
|
+
sceneId: 0
|
|
232
|
+
});
|
|
233
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
234
|
+
if (response) {
|
|
235
|
+
return (0, import_safe3.pick)(response, ["sceneId", "level", "dimmingDuration"]);
|
|
161
236
|
}
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
async set(sceneId, dimmingDuration, level) {
|
|
165
|
-
__assertType("sceneId", "number", __assertType__number.bind(void 0, sceneId));
|
|
166
|
-
__assertType("dimmingDuration", void 0, __assertType__optional_su__string__2_eu.bind(void 0, dimmingDuration));
|
|
167
|
-
__assertType("level", "(optional) number", __assertType__optional_number.bind(void 0, level));
|
|
168
|
-
this.assertSupportsCommand(import_Types.SceneActuatorConfigurationCommand, import_Types.SceneActuatorConfigurationCommand.Set);
|
|
169
|
-
const cc = new SceneActuatorConfigurationCCSet({
|
|
170
|
-
nodeId: this.endpoint.nodeId,
|
|
171
|
-
endpointIndex: this.endpoint.index,
|
|
172
|
-
sceneId,
|
|
173
|
-
dimmingDuration: import_safe.Duration.from(dimmingDuration) ?? new import_safe.Duration(0, "seconds"),
|
|
174
|
-
level
|
|
175
|
-
});
|
|
176
|
-
return this.host.sendCommand(cc, this.commandOptions);
|
|
177
|
-
}
|
|
178
|
-
async getActive() {
|
|
179
|
-
this.assertSupportsCommand(import_Types.SceneActuatorConfigurationCommand, import_Types.SceneActuatorConfigurationCommand.Get);
|
|
180
|
-
const cc = new SceneActuatorConfigurationCCGet({
|
|
181
|
-
nodeId: this.endpoint.nodeId,
|
|
182
|
-
endpointIndex: this.endpoint.index,
|
|
183
|
-
sceneId: 0
|
|
184
|
-
});
|
|
185
|
-
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
186
|
-
if (response) {
|
|
187
|
-
return (0, import_safe3.pick)(response, ["sceneId", "level", "dimmingDuration"]);
|
|
188
237
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
238
|
+
async get(sceneId) {
|
|
239
|
+
__assertType("sceneId", "number", __assertType__number.bind(void 0, sceneId));
|
|
240
|
+
this.assertSupportsCommand(import_Types.SceneActuatorConfigurationCommand, import_Types.SceneActuatorConfigurationCommand.Get);
|
|
241
|
+
if (sceneId === 0) {
|
|
242
|
+
throw new import_safe.ZWaveError(`Invalid scene ID 0. To get the currently active scene, use getActive() instead.`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
243
|
+
}
|
|
244
|
+
const cc = new SceneActuatorConfigurationCCGet({
|
|
245
|
+
nodeId: this.endpoint.nodeId,
|
|
246
|
+
endpointIndex: this.endpoint.index,
|
|
247
|
+
sceneId
|
|
248
|
+
});
|
|
249
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
250
|
+
if (response) {
|
|
251
|
+
return (0, import_safe3.pick)(response, ["level", "dimmingDuration"]);
|
|
252
|
+
}
|
|
204
253
|
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
],
|
|
210
|
-
let
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
});
|
|
218
|
-
for (let sceneId = 1; sceneId <= 255; sceneId++) {
|
|
219
|
-
const levelValue = SceneActuatorConfigurationCCValues.level(sceneId);
|
|
220
|
-
this.ensureMetadata(ctx, levelValue);
|
|
221
|
-
const dimmingDurationValue = SceneActuatorConfigurationCCValues.dimmingDuration(sceneId);
|
|
222
|
-
this.ensureMetadata(ctx, dimmingDurationValue);
|
|
254
|
+
};
|
|
255
|
+
return SceneActuatorConfigurationCCAPI2 = _classThis;
|
|
256
|
+
})();
|
|
257
|
+
let SceneActuatorConfigurationCC = (() => {
|
|
258
|
+
let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_safe.CommandClasses["Scene Actuator Configuration"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(SceneActuatorConfigurationCCValues)];
|
|
259
|
+
let _classDescriptor;
|
|
260
|
+
let _classExtraInitializers = [];
|
|
261
|
+
let _classThis;
|
|
262
|
+
let _classSuper = import_CommandClass.CommandClass;
|
|
263
|
+
var SceneActuatorConfigurationCC2 = class extends _classSuper {
|
|
264
|
+
static {
|
|
265
|
+
_classThis = this;
|
|
223
266
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
(0, import_CommandClassDecorators.ccValues)(SceneActuatorConfigurationCCValues)
|
|
231
|
-
], SceneActuatorConfigurationCC);
|
|
232
|
-
let SceneActuatorConfigurationCCSet = class SceneActuatorConfigurationCCSet2 extends SceneActuatorConfigurationCC {
|
|
233
|
-
constructor(options) {
|
|
234
|
-
super(options);
|
|
235
|
-
if (options.sceneId < 1 || options.sceneId > 255) {
|
|
236
|
-
throw new import_safe.ZWaveError(`The scene id ${options.sceneId} must be between 1 and 255!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
237
|
-
}
|
|
238
|
-
this.sceneId = options.sceneId;
|
|
239
|
-
this.dimmingDuration = options.dimmingDuration;
|
|
240
|
-
this.level = options.level;
|
|
241
|
-
}
|
|
242
|
-
static from(_raw, _ctx) {
|
|
243
|
-
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
244
|
-
}
|
|
245
|
-
sceneId;
|
|
246
|
-
dimmingDuration;
|
|
247
|
-
level;
|
|
248
|
-
serialize(ctx) {
|
|
249
|
-
this.payload = import_safe2.Bytes.from([
|
|
250
|
-
this.sceneId,
|
|
251
|
-
this.dimmingDuration.serializeSet(),
|
|
252
|
-
this.level != void 0 ? 128 : 0,
|
|
253
|
-
this.level ?? 255
|
|
254
|
-
]);
|
|
255
|
-
return super.serialize(ctx);
|
|
256
|
-
}
|
|
257
|
-
toLogEntry(ctx) {
|
|
258
|
-
const message = {
|
|
259
|
-
sceneId: this.sceneId,
|
|
260
|
-
dimmingDuration: this.dimmingDuration.toString()
|
|
261
|
-
};
|
|
262
|
-
if (this.level != void 0) {
|
|
263
|
-
message.level = this.level;
|
|
267
|
+
static {
|
|
268
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
269
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
270
|
+
SceneActuatorConfigurationCC2 = _classThis = _classDescriptor.value;
|
|
271
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
272
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
264
273
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
this.level = options.level;
|
|
280
|
-
this.dimmingDuration = options.dimmingDuration;
|
|
281
|
-
}
|
|
282
|
-
static from(raw, ctx) {
|
|
283
|
-
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
284
|
-
const sceneId = raw.payload[0];
|
|
285
|
-
let level;
|
|
286
|
-
let dimmingDuration;
|
|
287
|
-
if (sceneId !== 0) {
|
|
288
|
-
level = raw.payload[1];
|
|
289
|
-
dimmingDuration = import_safe.Duration.parseReport(raw.payload[2]) ?? import_safe.Duration.unknown();
|
|
290
|
-
}
|
|
291
|
-
return new SceneActuatorConfigurationCCReport_1({
|
|
292
|
-
nodeId: ctx.sourceNodeId,
|
|
293
|
-
sceneId,
|
|
294
|
-
level,
|
|
295
|
-
dimmingDuration
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
sceneId;
|
|
299
|
-
level;
|
|
300
|
-
dimmingDuration;
|
|
301
|
-
persistValues(ctx) {
|
|
302
|
-
if (!super.persistValues(ctx))
|
|
303
|
-
return false;
|
|
304
|
-
if (this.sceneId === 0 || this.level == void 0 || this.dimmingDuration == void 0) {
|
|
305
|
-
return false;
|
|
306
|
-
}
|
|
307
|
-
const levelValue = SceneActuatorConfigurationCCValues.level(this.sceneId);
|
|
308
|
-
this.ensureMetadata(ctx, levelValue);
|
|
309
|
-
const dimmingDurationValue = SceneActuatorConfigurationCCValues.dimmingDuration(this.sceneId);
|
|
310
|
-
this.ensureMetadata(ctx, dimmingDurationValue);
|
|
311
|
-
this.setValue(ctx, levelValue, this.level);
|
|
312
|
-
this.setValue(ctx, dimmingDurationValue, this.dimmingDuration);
|
|
313
|
-
return true;
|
|
314
|
-
}
|
|
315
|
-
toLogEntry(ctx) {
|
|
316
|
-
const message = {
|
|
317
|
-
sceneId: this.sceneId
|
|
318
|
-
};
|
|
319
|
-
if (this.dimmingDuration != void 0) {
|
|
320
|
-
message.dimmingDuration = this.dimmingDuration.toString();
|
|
274
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
275
|
+
async interview(ctx) {
|
|
276
|
+
const node = this.getNode(ctx);
|
|
277
|
+
ctx.logNode(node.id, {
|
|
278
|
+
message: `${this.constructor.name}: setting metadata`,
|
|
279
|
+
direction: "none"
|
|
280
|
+
});
|
|
281
|
+
for (let sceneId = 1; sceneId <= 255; sceneId++) {
|
|
282
|
+
const levelValue = SceneActuatorConfigurationCCValues.level(sceneId);
|
|
283
|
+
this.ensureMetadata(ctx, levelValue);
|
|
284
|
+
const dimmingDurationValue = SceneActuatorConfigurationCCValues.dimmingDuration(sceneId);
|
|
285
|
+
this.ensureMetadata(ctx, dimmingDurationValue);
|
|
286
|
+
}
|
|
287
|
+
this.setInterviewComplete(ctx, true);
|
|
321
288
|
}
|
|
322
|
-
|
|
323
|
-
|
|
289
|
+
};
|
|
290
|
+
return SceneActuatorConfigurationCC2 = _classThis;
|
|
291
|
+
})();
|
|
292
|
+
let SceneActuatorConfigurationCCSet = (() => {
|
|
293
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.SceneActuatorConfigurationCommand.Set), (0, import_CommandClassDecorators.useSupervision)()];
|
|
294
|
+
let _classDescriptor;
|
|
295
|
+
let _classExtraInitializers = [];
|
|
296
|
+
let _classThis;
|
|
297
|
+
let _classSuper = SceneActuatorConfigurationCC;
|
|
298
|
+
var SceneActuatorConfigurationCCSet2 = class extends _classSuper {
|
|
299
|
+
static {
|
|
300
|
+
_classThis = this;
|
|
324
301
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
302
|
+
static {
|
|
303
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
304
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
305
|
+
SceneActuatorConfigurationCCSet2 = _classThis = _classDescriptor.value;
|
|
306
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
307
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
308
|
+
}
|
|
309
|
+
constructor(options) {
|
|
310
|
+
super(options);
|
|
311
|
+
if (options.sceneId < 1 || options.sceneId > 255) {
|
|
312
|
+
throw new import_safe.ZWaveError(`The scene id ${options.sceneId} must be between 1 and 255!`, import_safe.ZWaveErrorCodes.Argument_Invalid);
|
|
313
|
+
}
|
|
314
|
+
this.sceneId = options.sceneId;
|
|
315
|
+
this.dimmingDuration = options.dimmingDuration;
|
|
316
|
+
this.level = options.level;
|
|
317
|
+
}
|
|
318
|
+
static from(_raw, _ctx) {
|
|
319
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
320
|
+
}
|
|
321
|
+
sceneId;
|
|
322
|
+
dimmingDuration;
|
|
323
|
+
level;
|
|
324
|
+
serialize(ctx) {
|
|
325
|
+
this.payload = import_safe2.Bytes.from([
|
|
326
|
+
this.sceneId,
|
|
327
|
+
this.dimmingDuration.serializeSet(),
|
|
328
|
+
this.level != void 0 ? 128 : 0,
|
|
329
|
+
this.level ?? 255
|
|
330
|
+
]);
|
|
331
|
+
return super.serialize(ctx);
|
|
332
|
+
}
|
|
333
|
+
toLogEntry(ctx) {
|
|
334
|
+
const message = {
|
|
335
|
+
sceneId: this.sceneId,
|
|
336
|
+
dimmingDuration: this.dimmingDuration.toString()
|
|
337
|
+
};
|
|
338
|
+
if (this.level != void 0) {
|
|
339
|
+
message.level = this.level;
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
...super.toLogEntry(ctx),
|
|
343
|
+
message
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
return SceneActuatorConfigurationCCSet2 = _classThis;
|
|
348
|
+
})();
|
|
349
|
+
let SceneActuatorConfigurationCCReport = (() => {
|
|
350
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.SceneActuatorConfigurationCommand.Report)];
|
|
351
|
+
let _classDescriptor;
|
|
352
|
+
let _classExtraInitializers = [];
|
|
353
|
+
let _classThis;
|
|
354
|
+
let _classSuper = SceneActuatorConfigurationCC;
|
|
355
|
+
var SceneActuatorConfigurationCCReport2 = class extends _classSuper {
|
|
356
|
+
static {
|
|
357
|
+
_classThis = this;
|
|
358
|
+
}
|
|
359
|
+
static {
|
|
360
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
361
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
362
|
+
SceneActuatorConfigurationCCReport2 = _classThis = _classDescriptor.value;
|
|
363
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
364
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
365
|
+
}
|
|
366
|
+
constructor(options) {
|
|
367
|
+
super(options);
|
|
368
|
+
this.sceneId = options.sceneId;
|
|
369
|
+
this.level = options.level;
|
|
370
|
+
this.dimmingDuration = options.dimmingDuration;
|
|
371
|
+
}
|
|
372
|
+
static from(raw, ctx) {
|
|
373
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
374
|
+
const sceneId = raw.payload[0];
|
|
375
|
+
let level;
|
|
376
|
+
let dimmingDuration;
|
|
377
|
+
if (sceneId !== 0) {
|
|
378
|
+
level = raw.payload[1];
|
|
379
|
+
dimmingDuration = import_safe.Duration.parseReport(raw.payload[2]) ?? import_safe.Duration.unknown();
|
|
380
|
+
}
|
|
381
|
+
return new this({
|
|
382
|
+
nodeId: ctx.sourceNodeId,
|
|
383
|
+
sceneId,
|
|
384
|
+
level,
|
|
385
|
+
dimmingDuration
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
sceneId;
|
|
389
|
+
level;
|
|
390
|
+
dimmingDuration;
|
|
391
|
+
persistValues(ctx) {
|
|
392
|
+
if (!super.persistValues(ctx))
|
|
393
|
+
return false;
|
|
394
|
+
if (this.sceneId === 0 || this.level == void 0 || this.dimmingDuration == void 0) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
const levelValue = SceneActuatorConfigurationCCValues.level(this.sceneId);
|
|
398
|
+
this.ensureMetadata(ctx, levelValue);
|
|
399
|
+
const dimmingDurationValue = SceneActuatorConfigurationCCValues.dimmingDuration(this.sceneId);
|
|
400
|
+
this.ensureMetadata(ctx, dimmingDurationValue);
|
|
401
|
+
this.setValue(ctx, levelValue, this.level);
|
|
402
|
+
this.setValue(ctx, dimmingDurationValue, this.dimmingDuration);
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
toLogEntry(ctx) {
|
|
406
|
+
const message = {
|
|
407
|
+
sceneId: this.sceneId
|
|
408
|
+
};
|
|
409
|
+
if (this.dimmingDuration != void 0) {
|
|
410
|
+
message.dimmingDuration = this.dimmingDuration.toString();
|
|
411
|
+
}
|
|
412
|
+
if (this.level != void 0) {
|
|
413
|
+
message.level = this.level;
|
|
414
|
+
}
|
|
415
|
+
return {
|
|
416
|
+
...super.toLogEntry(ctx),
|
|
417
|
+
message
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
return SceneActuatorConfigurationCCReport2 = _classThis;
|
|
422
|
+
})();
|
|
334
423
|
function testResponseForSceneActuatorConfigurationGet(sent, received) {
|
|
335
424
|
return sent.sceneId === 0 || received.sceneId === sent.sceneId;
|
|
336
425
|
}
|
|
337
|
-
let SceneActuatorConfigurationCCGet =
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
426
|
+
let SceneActuatorConfigurationCCGet = (() => {
|
|
427
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.SceneActuatorConfigurationCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(SceneActuatorConfigurationCCReport, testResponseForSceneActuatorConfigurationGet)];
|
|
428
|
+
let _classDescriptor;
|
|
429
|
+
let _classExtraInitializers = [];
|
|
430
|
+
let _classThis;
|
|
431
|
+
let _classSuper = SceneActuatorConfigurationCC;
|
|
432
|
+
var SceneActuatorConfigurationCCGet2 = class extends _classSuper {
|
|
433
|
+
static {
|
|
434
|
+
_classThis = this;
|
|
435
|
+
}
|
|
436
|
+
static {
|
|
437
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
438
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
439
|
+
SceneActuatorConfigurationCCGet2 = _classThis = _classDescriptor.value;
|
|
440
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
441
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
442
|
+
}
|
|
443
|
+
constructor(options) {
|
|
444
|
+
super(options);
|
|
445
|
+
this.sceneId = options.sceneId;
|
|
446
|
+
}
|
|
447
|
+
static from(_raw, _ctx) {
|
|
448
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
449
|
+
}
|
|
450
|
+
sceneId;
|
|
451
|
+
serialize(ctx) {
|
|
452
|
+
this.payload = import_safe2.Bytes.from([this.sceneId]);
|
|
453
|
+
return super.serialize(ctx);
|
|
454
|
+
}
|
|
455
|
+
toLogEntry(ctx) {
|
|
456
|
+
return {
|
|
457
|
+
...super.toLogEntry(ctx),
|
|
458
|
+
message: { "scene id": this.sceneId }
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
return SceneActuatorConfigurationCCGet2 = _classThis;
|
|
463
|
+
})();
|
|
361
464
|
// Annotate the CommonJS export names for ESM import in node:
|
|
362
465
|
0 && (module.exports = {
|
|
363
466
|
SceneActuatorConfigurationCC,
|