@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
|
@@ -40,13 +40,45 @@ var import_API = require("../../lib/API.js");
|
|
|
40
40
|
var import_CommandClassDecorators = require("../../lib/CommandClassDecorators.js");
|
|
41
41
|
var import_ManufacturerProprietaryCC = require("../ManufacturerProprietaryCC.js");
|
|
42
42
|
var import_Decorators = require("./Decorators.js");
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
44
|
+
function accept(f) {
|
|
45
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
49
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
50
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
51
|
+
var _, done = false;
|
|
52
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
53
|
+
var context = {};
|
|
54
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
55
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
56
|
+
context.addInitializer = function(f) {
|
|
57
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
58
|
+
extraInitializers.push(accept(f || null));
|
|
59
|
+
};
|
|
60
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
61
|
+
if (kind === "accessor") {
|
|
62
|
+
if (result === void 0) continue;
|
|
63
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
64
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
65
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
66
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
67
|
+
} else if (_ = accept(result)) {
|
|
68
|
+
if (kind === "field") initializers.unshift(_);
|
|
69
|
+
else descriptor[key] = _;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
73
|
+
done = true;
|
|
74
|
+
};
|
|
75
|
+
var __runInitializers = function(thisArg, initializers, value) {
|
|
76
|
+
var useValue = arguments.length > 2;
|
|
77
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
78
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
79
|
+
}
|
|
80
|
+
return useValue ? value : void 0;
|
|
48
81
|
};
|
|
49
|
-
var FibaroCC_1, FibaroVenetianBlindCCReport_1, FibaroVenetianBlindCCGet_1;
|
|
50
82
|
function __assertType(argName, typeName, boundHasError) {
|
|
51
83
|
const { ZWaveError: ZWaveError2, ZWaveErrorCodes: ZWaveErrorCodes2 } = require("@zwave-js/core");
|
|
52
84
|
if (boundHasError()) {
|
|
@@ -99,300 +131,389 @@ var FibaroCCIDs;
|
|
|
99
131
|
(function(FibaroCCIDs2) {
|
|
100
132
|
FibaroCCIDs2[FibaroCCIDs2["VenetianBlind"] = 38] = "VenetianBlind";
|
|
101
133
|
})(FibaroCCIDs || (FibaroCCIDs = {}));
|
|
102
|
-
let FibaroCCAPI =
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return (0, import_shared.pick)(response, ["position", "tilt"]);
|
|
134
|
+
let FibaroCCAPI = (() => {
|
|
135
|
+
let _classDecorators = [(0, import_Decorators.manufacturerProprietaryAPI)(MANUFACTURERID_FIBARO)];
|
|
136
|
+
let _classDescriptor;
|
|
137
|
+
let _classExtraInitializers = [];
|
|
138
|
+
let _classThis;
|
|
139
|
+
let _classSuper = import_ManufacturerProprietaryCC.ManufacturerProprietaryCCAPI;
|
|
140
|
+
var FibaroCCAPI2 = class extends _classSuper {
|
|
141
|
+
static {
|
|
142
|
+
_classThis = this;
|
|
112
143
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
});
|
|
130
|
-
await this.host.sendCommand(cc, this.commandOptions);
|
|
131
|
-
}
|
|
132
|
-
get [import_API.SET_VALUE]() {
|
|
133
|
-
return async function({ property, propertyKey }, value) {
|
|
134
|
-
if (property !== "fibaro") {
|
|
135
|
-
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
144
|
+
static {
|
|
145
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
146
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
147
|
+
FibaroCCAPI2 = _classThis = _classDescriptor.value;
|
|
148
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
149
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
150
|
+
}
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
152
|
+
async fibaroVenetianBlindsGet() {
|
|
153
|
+
const cc = new FibaroVenetianBlindCCGet({
|
|
154
|
+
nodeId: this.endpoint.nodeId,
|
|
155
|
+
endpointIndex: this.endpoint.index
|
|
156
|
+
});
|
|
157
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
158
|
+
if (response) {
|
|
159
|
+
return (0, import_shared.pick)(response, ["position", "tilt"]);
|
|
136
160
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
161
|
+
}
|
|
162
|
+
async fibaroVenetianBlindsSetPosition(value) {
|
|
163
|
+
__assertType("value", "number", __assertType__number.bind(void 0, value));
|
|
164
|
+
const cc = new FibaroVenetianBlindCCSet({
|
|
165
|
+
nodeId: this.endpoint.nodeId,
|
|
166
|
+
endpointIndex: this.endpoint.index,
|
|
167
|
+
position: value
|
|
168
|
+
});
|
|
169
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
170
|
+
}
|
|
171
|
+
async fibaroVenetianBlindsSetTilt(value) {
|
|
172
|
+
__assertType("value", "number", __assertType__number.bind(void 0, value));
|
|
173
|
+
const cc = new FibaroVenetianBlindCCSet({
|
|
174
|
+
nodeId: this.endpoint.nodeId,
|
|
175
|
+
endpointIndex: this.endpoint.index,
|
|
176
|
+
tilt: value
|
|
177
|
+
});
|
|
178
|
+
await this.host.sendCommand(cc, this.commandOptions);
|
|
179
|
+
}
|
|
180
|
+
get [import_API.SET_VALUE]() {
|
|
181
|
+
return async function({ property, propertyKey }, value) {
|
|
182
|
+
if (property !== "fibaro") {
|
|
183
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
140
184
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
185
|
+
if (propertyKey === "venetianBlindsPosition") {
|
|
186
|
+
if (typeof value !== "number") {
|
|
187
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
188
|
+
}
|
|
189
|
+
await this.fibaroVenetianBlindsSetPosition(value);
|
|
190
|
+
} else if (propertyKey === "venetianBlindsTilt") {
|
|
191
|
+
if (typeof value !== "number") {
|
|
192
|
+
(0, import_API.throwWrongValueType)(this.ccId, property, "number", typeof value);
|
|
193
|
+
}
|
|
194
|
+
await this.fibaroVenetianBlindsSetTilt(value);
|
|
195
|
+
} else {
|
|
196
|
+
return;
|
|
145
197
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
(
|
|
158
|
-
|
|
159
|
-
|
|
198
|
+
this.schedulePoll({ property, propertyKey }, value);
|
|
199
|
+
return void 0;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
get [import_API.POLL_VALUE]() {
|
|
203
|
+
return async function({ property, propertyKey }) {
|
|
204
|
+
if (property !== "fibaro") {
|
|
205
|
+
(0, import_API.throwUnsupportedProperty)(this.ccId, property);
|
|
206
|
+
} else if (propertyKey == void 0) {
|
|
207
|
+
(0, import_API.throwMissingPropertyKey)(this.ccId, property);
|
|
208
|
+
}
|
|
209
|
+
switch (propertyKey) {
|
|
210
|
+
case "venetianBlindsPosition":
|
|
211
|
+
return (await this.fibaroVenetianBlindsGet())?.position;
|
|
212
|
+
case "venetianBlindsTilt":
|
|
213
|
+
return (await this.fibaroVenetianBlindsGet())?.tilt;
|
|
214
|
+
default:
|
|
215
|
+
(0, import_API.throwUnsupportedPropertyKey)(this.ccId, property, propertyKey);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
return FibaroCCAPI2 = _classThis;
|
|
221
|
+
})();
|
|
222
|
+
let FibaroCC = (() => {
|
|
223
|
+
let _classDecorators = [(0, import_Decorators.manufacturerId)(MANUFACTURERID_FIBARO)];
|
|
224
|
+
let _classDescriptor;
|
|
225
|
+
let _classExtraInitializers = [];
|
|
226
|
+
let _classThis;
|
|
227
|
+
let _classSuper = import_ManufacturerProprietaryCC.ManufacturerProprietaryCC;
|
|
228
|
+
var FibaroCC2 = class extends _classSuper {
|
|
229
|
+
static {
|
|
230
|
+
_classThis = this;
|
|
231
|
+
}
|
|
232
|
+
static {
|
|
233
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
234
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
235
|
+
FibaroCC2 = _classThis = _classDescriptor.value;
|
|
236
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
237
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
238
|
+
}
|
|
239
|
+
constructor(options) {
|
|
240
|
+
super(options);
|
|
241
|
+
this.fibaroCCId = (0, import_Decorators.getFibaroCCId)(this);
|
|
242
|
+
this.fibaroCCCommand = (0, import_Decorators.getFibaroCCCommand)(this);
|
|
243
|
+
}
|
|
244
|
+
static from(raw, ctx) {
|
|
245
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
246
|
+
const fibaroCCId = raw.payload[0];
|
|
247
|
+
const fibaroCCCommand2 = raw.payload[1];
|
|
248
|
+
const FibaroConstructor = (0, import_Decorators.getFibaroCCCommandConstructor)(fibaroCCId, fibaroCCCommand2);
|
|
249
|
+
if (FibaroConstructor) {
|
|
250
|
+
return FibaroConstructor.from(raw.withPayload(raw.payload.subarray(2)), ctx);
|
|
160
251
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
252
|
+
return new FibaroCC2({
|
|
253
|
+
nodeId: ctx.sourceNodeId
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
fibaroCCId;
|
|
257
|
+
fibaroCCCommand;
|
|
258
|
+
async interview(ctx) {
|
|
259
|
+
const node = this.getNode(ctx);
|
|
260
|
+
const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
|
|
261
|
+
for (const ccId of supportedFibaroCCIDs) {
|
|
262
|
+
const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
|
|
263
|
+
if (SubConstructor) {
|
|
264
|
+
const instance = new SubConstructor({ nodeId: node.id });
|
|
265
|
+
await instance.interview(ctx);
|
|
266
|
+
}
|
|
168
267
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
this.fibaroCCCommand = (0, import_Decorators.getFibaroCCCommand)(this);
|
|
180
|
-
}
|
|
181
|
-
static from(raw, ctx) {
|
|
182
|
-
(0, import_safe.validatePayload)(raw.payload.length >= 2);
|
|
183
|
-
const fibaroCCId = raw.payload[0];
|
|
184
|
-
const fibaroCCCommand2 = raw.payload[1];
|
|
185
|
-
const FibaroConstructor = (0, import_Decorators.getFibaroCCCommandConstructor)(fibaroCCId, fibaroCCCommand2);
|
|
186
|
-
if (FibaroConstructor) {
|
|
187
|
-
return FibaroConstructor.from(raw.withPayload(raw.payload.subarray(2)), ctx);
|
|
188
|
-
}
|
|
189
|
-
return new FibaroCC_1({
|
|
190
|
-
nodeId: ctx.sourceNodeId
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
fibaroCCId;
|
|
194
|
-
fibaroCCCommand;
|
|
195
|
-
async interview(ctx) {
|
|
196
|
-
const node = this.getNode(ctx);
|
|
197
|
-
const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
|
|
198
|
-
for (const ccId of supportedFibaroCCIDs) {
|
|
199
|
-
const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
|
|
200
|
-
if (SubConstructor) {
|
|
201
|
-
const instance = new SubConstructor({ nodeId: node.id });
|
|
202
|
-
await instance.interview(ctx);
|
|
268
|
+
}
|
|
269
|
+
async refreshValues(ctx) {
|
|
270
|
+
const node = this.getNode(ctx);
|
|
271
|
+
const supportedFibaroCCIDs = getSupportedFibaroCCIDs(ctx, node.id);
|
|
272
|
+
for (const ccId of supportedFibaroCCIDs) {
|
|
273
|
+
const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
|
|
274
|
+
if (SubConstructor) {
|
|
275
|
+
const instance = new SubConstructor({ nodeId: node.id });
|
|
276
|
+
await instance.refreshValues(ctx);
|
|
277
|
+
}
|
|
203
278
|
}
|
|
204
279
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
const SubConstructor = (0, import_Decorators.getFibaroCCConstructor)(ccId);
|
|
211
|
-
if (SubConstructor) {
|
|
212
|
-
const instance = new SubConstructor({ nodeId: node.id });
|
|
213
|
-
await instance.refreshValues(ctx);
|
|
280
|
+
serialize(ctx) {
|
|
281
|
+
if (this.fibaroCCId == void 0) {
|
|
282
|
+
throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC ID", import_safe.ZWaveErrorCodes.CC_Invalid);
|
|
283
|
+
} else if (this.fibaroCCCommand == void 0) {
|
|
284
|
+
throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC Command", import_safe.ZWaveErrorCodes.CC_Invalid);
|
|
214
285
|
}
|
|
286
|
+
this.payload = import_shared.Bytes.concat([
|
|
287
|
+
import_shared.Bytes.from([this.fibaroCCId, this.fibaroCCCommand]),
|
|
288
|
+
this.payload
|
|
289
|
+
]);
|
|
290
|
+
return super.serialize(ctx);
|
|
215
291
|
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC ID", import_safe.ZWaveErrorCodes.CC_Invalid);
|
|
220
|
-
} else if (this.fibaroCCCommand == void 0) {
|
|
221
|
-
throw new import_safe.ZWaveError("Cannot serialize a Fibaro CC without a Fibaro CC Command", import_safe.ZWaveErrorCodes.CC_Invalid);
|
|
222
|
-
}
|
|
223
|
-
this.payload = import_shared.Bytes.concat([
|
|
224
|
-
import_shared.Bytes.from([this.fibaroCCId, this.fibaroCCCommand]),
|
|
225
|
-
this.payload
|
|
226
|
-
]);
|
|
227
|
-
return super.serialize(ctx);
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
FibaroCC = FibaroCC_1 = __decorate([
|
|
231
|
-
(0, import_Decorators.manufacturerId)(MANUFACTURERID_FIBARO)
|
|
232
|
-
], FibaroCC);
|
|
292
|
+
};
|
|
293
|
+
return FibaroCC2 = _classThis;
|
|
294
|
+
})();
|
|
233
295
|
var FibaroVenetianBlindCCCommand;
|
|
234
296
|
(function(FibaroVenetianBlindCCCommand2) {
|
|
235
297
|
FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Set"] = 1] = "Set";
|
|
236
298
|
FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Get"] = 2] = "Get";
|
|
237
299
|
FibaroVenetianBlindCCCommand2[FibaroVenetianBlindCCCommand2["Report"] = 3] = "Report";
|
|
238
300
|
})(FibaroVenetianBlindCCCommand || (FibaroVenetianBlindCCCommand = {}));
|
|
239
|
-
let FibaroVenetianBlindCC =
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}));
|
|
263
|
-
if (resp) {
|
|
264
|
-
const logMessage = `received venetian blind state:
|
|
265
|
-
position: ${resp.position}
|
|
266
|
-
tilt: ${resp.tilt}`;
|
|
301
|
+
let FibaroVenetianBlindCC = (() => {
|
|
302
|
+
let _classDecorators = [(0, import_Decorators.fibaroCC)(FibaroCCIDs.VenetianBlind)];
|
|
303
|
+
let _classDescriptor;
|
|
304
|
+
let _classExtraInitializers = [];
|
|
305
|
+
let _classThis;
|
|
306
|
+
let _classSuper = FibaroCC;
|
|
307
|
+
var FibaroVenetianBlindCC2 = class extends _classSuper {
|
|
308
|
+
static {
|
|
309
|
+
_classThis = this;
|
|
310
|
+
}
|
|
311
|
+
static {
|
|
312
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
313
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
314
|
+
FibaroVenetianBlindCC2 = _classThis = _classDescriptor.value;
|
|
315
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
316
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
317
|
+
}
|
|
318
|
+
constructor(options) {
|
|
319
|
+
super(options);
|
|
320
|
+
this.fibaroCCId = FibaroCCIDs.VenetianBlind;
|
|
321
|
+
}
|
|
322
|
+
async interview(ctx) {
|
|
323
|
+
const node = this.getNode(ctx);
|
|
267
324
|
ctx.logNode(node.id, {
|
|
268
|
-
|
|
269
|
-
|
|
325
|
+
endpoint: this.endpointIndex,
|
|
326
|
+
message: `Interviewing Fibaro Venetian Blind CC...`,
|
|
327
|
+
direction: "none"
|
|
270
328
|
});
|
|
329
|
+
await this.refreshValues(ctx);
|
|
271
330
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
331
|
+
async refreshValues(ctx) {
|
|
332
|
+
const node = this.getNode(ctx);
|
|
333
|
+
ctx.logNode(node.id, {
|
|
334
|
+
message: "Requesting venetian blind position and tilt...",
|
|
335
|
+
direction: "outbound"
|
|
336
|
+
});
|
|
337
|
+
const resp = await ctx.sendCommand(new FibaroVenetianBlindCCGet({
|
|
338
|
+
nodeId: this.nodeId,
|
|
339
|
+
endpointIndex: this.endpointIndex
|
|
340
|
+
}));
|
|
341
|
+
if (resp) {
|
|
342
|
+
const logMessage = `received venetian blind state:
|
|
343
|
+
position: ${resp.position}
|
|
344
|
+
tilt: ${resp.tilt}`;
|
|
345
|
+
ctx.logNode(node.id, {
|
|
346
|
+
message: logMessage,
|
|
347
|
+
direction: "inbound"
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
return FibaroVenetianBlindCC2 = _classThis;
|
|
353
|
+
})();
|
|
354
|
+
let FibaroVenetianBlindCCSet = (() => {
|
|
355
|
+
let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Set)];
|
|
356
|
+
let _classDescriptor;
|
|
357
|
+
let _classExtraInitializers = [];
|
|
358
|
+
let _classThis;
|
|
359
|
+
let _classSuper = FibaroVenetianBlindCC;
|
|
360
|
+
var FibaroVenetianBlindCCSet2 = class extends _classSuper {
|
|
361
|
+
static {
|
|
362
|
+
_classThis = this;
|
|
363
|
+
}
|
|
364
|
+
static {
|
|
365
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
366
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
367
|
+
FibaroVenetianBlindCCSet2 = _classThis = _classDescriptor.value;
|
|
368
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
369
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
370
|
+
}
|
|
371
|
+
constructor(options) {
|
|
372
|
+
super(options);
|
|
373
|
+
this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Set;
|
|
374
|
+
if ("position" in options)
|
|
375
|
+
this.position = options.position;
|
|
376
|
+
if ("tilt" in options)
|
|
377
|
+
this.tilt = options.tilt;
|
|
378
|
+
}
|
|
379
|
+
static from(_raw, _ctx) {
|
|
380
|
+
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
381
|
+
}
|
|
382
|
+
position;
|
|
383
|
+
tilt;
|
|
384
|
+
serialize(ctx) {
|
|
385
|
+
const controlByte = (this.position != void 0 ? 2 : 0) | (this.tilt != void 0 ? 1 : 0);
|
|
386
|
+
this.payload = import_shared.Bytes.from([
|
|
387
|
+
controlByte,
|
|
388
|
+
this.position ?? 0,
|
|
389
|
+
this.tilt ?? 0
|
|
390
|
+
]);
|
|
391
|
+
return super.serialize(ctx);
|
|
392
|
+
}
|
|
393
|
+
toLogEntry(ctx) {
|
|
394
|
+
const message = {};
|
|
395
|
+
if (this.position != void 0) {
|
|
396
|
+
message.position = this.position;
|
|
397
|
+
}
|
|
398
|
+
if (this.tilt != void 0) {
|
|
399
|
+
message.tilt = this.tilt;
|
|
400
|
+
}
|
|
401
|
+
return {
|
|
402
|
+
...super.toLogEntry(ctx),
|
|
403
|
+
message
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
return FibaroVenetianBlindCCSet2 = _classThis;
|
|
408
|
+
})();
|
|
409
|
+
let FibaroVenetianBlindCCReport = (() => {
|
|
410
|
+
let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Report)];
|
|
411
|
+
let _classDescriptor;
|
|
412
|
+
let _classExtraInitializers = [];
|
|
413
|
+
let _classThis;
|
|
414
|
+
let _classSuper = FibaroVenetianBlindCC;
|
|
415
|
+
var FibaroVenetianBlindCCReport2 = class extends _classSuper {
|
|
416
|
+
static {
|
|
417
|
+
_classThis = this;
|
|
418
|
+
}
|
|
419
|
+
static {
|
|
420
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
421
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
422
|
+
FibaroVenetianBlindCCReport2 = _classThis = _classDescriptor.value;
|
|
423
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
424
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
425
|
+
}
|
|
426
|
+
constructor(options) {
|
|
427
|
+
super(options);
|
|
428
|
+
this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Report;
|
|
282
429
|
this.position = options.position;
|
|
283
|
-
if ("tilt" in options)
|
|
284
430
|
this.tilt = options.tilt;
|
|
285
|
-
}
|
|
286
|
-
static from(_raw, _ctx) {
|
|
287
|
-
throw new import_safe.ZWaveError(`${this.name}: deserialization not implemented`, import_safe.ZWaveErrorCodes.Deserialization_NotImplemented);
|
|
288
|
-
}
|
|
289
|
-
position;
|
|
290
|
-
tilt;
|
|
291
|
-
serialize(ctx) {
|
|
292
|
-
const controlByte = (this.position != void 0 ? 2 : 0) | (this.tilt != void 0 ? 1 : 0);
|
|
293
|
-
this.payload = import_shared.Bytes.from([
|
|
294
|
-
controlByte,
|
|
295
|
-
this.position ?? 0,
|
|
296
|
-
this.tilt ?? 0
|
|
297
|
-
]);
|
|
298
|
-
return super.serialize(ctx);
|
|
299
|
-
}
|
|
300
|
-
toLogEntry(ctx) {
|
|
301
|
-
const message = {};
|
|
302
|
-
if (this.position != void 0) {
|
|
303
|
-
message.position = this.position;
|
|
304
|
-
}
|
|
305
|
-
if (this.tilt != void 0) {
|
|
306
|
-
message.tilt = this.tilt;
|
|
307
431
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.tilt = options.tilt;
|
|
323
|
-
}
|
|
324
|
-
static from(raw, ctx) {
|
|
325
|
-
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
326
|
-
let position;
|
|
327
|
-
if (!!(raw.payload[0] & 2)) {
|
|
328
|
-
position = (0, import_safe.parseMaybeNumber)(raw.payload[1]);
|
|
329
|
-
}
|
|
330
|
-
let tilt;
|
|
331
|
-
if (!!(raw.payload[0] & 1)) {
|
|
332
|
-
tilt = (0, import_safe.parseMaybeNumber)(raw.payload[2]);
|
|
333
|
-
}
|
|
334
|
-
return new FibaroVenetianBlindCCReport_1({
|
|
335
|
-
nodeId: ctx.sourceNodeId,
|
|
336
|
-
position,
|
|
337
|
-
tilt
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
persistValues(ctx) {
|
|
341
|
-
if (!super.persistValues(ctx))
|
|
342
|
-
return false;
|
|
343
|
-
const valueDB = this.getValueDB(ctx);
|
|
344
|
-
if (this.position != void 0) {
|
|
345
|
-
const positionValueId = getFibaroVenetianBlindPositionValueId(this.endpointIndex);
|
|
346
|
-
valueDB.setMetadata(positionValueId, {
|
|
347
|
-
...import_safe.ValueMetadata.Level,
|
|
348
|
-
label: "Venetian blinds position"
|
|
432
|
+
static from(raw, ctx) {
|
|
433
|
+
(0, import_safe.validatePayload)(raw.payload.length >= 3);
|
|
434
|
+
let position;
|
|
435
|
+
if (!!(raw.payload[0] & 2)) {
|
|
436
|
+
position = (0, import_safe.parseMaybeNumber)(raw.payload[1]);
|
|
437
|
+
}
|
|
438
|
+
let tilt;
|
|
439
|
+
if (!!(raw.payload[0] & 1)) {
|
|
440
|
+
tilt = (0, import_safe.parseMaybeNumber)(raw.payload[2]);
|
|
441
|
+
}
|
|
442
|
+
return new this({
|
|
443
|
+
nodeId: ctx.sourceNodeId,
|
|
444
|
+
position,
|
|
445
|
+
tilt
|
|
349
446
|
});
|
|
350
|
-
valueDB.setValue(positionValueId, this.position);
|
|
351
447
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
448
|
+
persistValues(ctx) {
|
|
449
|
+
if (!super.persistValues(ctx))
|
|
450
|
+
return false;
|
|
451
|
+
const valueDB = this.getValueDB(ctx);
|
|
452
|
+
if (this.position != void 0) {
|
|
453
|
+
const positionValueId = getFibaroVenetianBlindPositionValueId(this.endpointIndex);
|
|
454
|
+
valueDB.setMetadata(positionValueId, {
|
|
455
|
+
...import_safe.ValueMetadata.Level,
|
|
456
|
+
label: "Venetian blinds position"
|
|
457
|
+
});
|
|
458
|
+
valueDB.setValue(positionValueId, this.position);
|
|
459
|
+
}
|
|
460
|
+
if (this.tilt != void 0) {
|
|
461
|
+
const tiltValueId = getFibaroVenetianBlindTiltValueId(this.endpointIndex);
|
|
462
|
+
valueDB.setMetadata(tiltValueId, {
|
|
463
|
+
...import_safe.ValueMetadata.Level,
|
|
464
|
+
label: "Venetian blinds tilt"
|
|
465
|
+
});
|
|
466
|
+
valueDB.setValue(tiltValueId, this.tilt);
|
|
467
|
+
}
|
|
468
|
+
return true;
|
|
469
|
+
}
|
|
470
|
+
position;
|
|
471
|
+
tilt;
|
|
472
|
+
toLogEntry(ctx) {
|
|
473
|
+
const message = {};
|
|
474
|
+
if (this.position != void 0) {
|
|
475
|
+
message.position = this.position;
|
|
476
|
+
}
|
|
477
|
+
if (this.tilt != void 0) {
|
|
478
|
+
message.tilt = this.tilt;
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
...super.toLogEntry(ctx),
|
|
482
|
+
message
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
return FibaroVenetianBlindCCReport2 = _classThis;
|
|
487
|
+
})();
|
|
488
|
+
let FibaroVenetianBlindCCGet = (() => {
|
|
489
|
+
let _classDecorators = [(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Get), (0, import_CommandClassDecorators.expectedCCResponse)(FibaroVenetianBlindCCReport)];
|
|
490
|
+
let _classDescriptor;
|
|
491
|
+
let _classExtraInitializers = [];
|
|
492
|
+
let _classThis;
|
|
493
|
+
let _classSuper = FibaroVenetianBlindCC;
|
|
494
|
+
var FibaroVenetianBlindCCGet2 = class extends _classSuper {
|
|
495
|
+
static {
|
|
496
|
+
_classThis = this;
|
|
497
|
+
}
|
|
498
|
+
static {
|
|
499
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
500
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
501
|
+
FibaroVenetianBlindCCGet2 = _classThis = _classDescriptor.value;
|
|
502
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
503
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
504
|
+
}
|
|
505
|
+
constructor(options) {
|
|
506
|
+
super(options);
|
|
507
|
+
this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Get;
|
|
508
|
+
}
|
|
509
|
+
static from(raw, ctx) {
|
|
510
|
+
return new this({
|
|
511
|
+
nodeId: ctx.sourceNodeId
|
|
357
512
|
});
|
|
358
|
-
valueDB.setValue(tiltValueId, this.tilt);
|
|
359
513
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
tilt;
|
|
364
|
-
toLogEntry(ctx) {
|
|
365
|
-
const message = {};
|
|
366
|
-
if (this.position != void 0) {
|
|
367
|
-
message.position = this.position;
|
|
368
|
-
}
|
|
369
|
-
if (this.tilt != void 0) {
|
|
370
|
-
message.tilt = this.tilt;
|
|
371
|
-
}
|
|
372
|
-
return {
|
|
373
|
-
...super.toLogEntry(ctx),
|
|
374
|
-
message
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
FibaroVenetianBlindCCReport = FibaroVenetianBlindCCReport_1 = __decorate([
|
|
379
|
-
(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Report)
|
|
380
|
-
], FibaroVenetianBlindCCReport);
|
|
381
|
-
let FibaroVenetianBlindCCGet = FibaroVenetianBlindCCGet_1 = class FibaroVenetianBlindCCGet2 extends FibaroVenetianBlindCC {
|
|
382
|
-
constructor(options) {
|
|
383
|
-
super(options);
|
|
384
|
-
this.fibaroCCCommand = FibaroVenetianBlindCCCommand.Get;
|
|
385
|
-
}
|
|
386
|
-
static from(raw, ctx) {
|
|
387
|
-
return new FibaroVenetianBlindCCGet_1({
|
|
388
|
-
nodeId: ctx.sourceNodeId
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
FibaroVenetianBlindCCGet = FibaroVenetianBlindCCGet_1 = __decorate([
|
|
393
|
-
(0, import_Decorators.fibaroCCCommand)(FibaroVenetianBlindCCCommand.Get),
|
|
394
|
-
(0, import_CommandClassDecorators.expectedCCResponse)(FibaroVenetianBlindCCReport)
|
|
395
|
-
], FibaroVenetianBlindCCGet);
|
|
514
|
+
};
|
|
515
|
+
return FibaroVenetianBlindCCGet2 = _classThis;
|
|
516
|
+
})();
|
|
396
517
|
// Annotate the CommonJS export names for ESM import in node:
|
|
397
518
|
0 && (module.exports = {
|
|
398
519
|
FibaroCC,
|