@zwave-js/cc 14.0.0-beta.1 → 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.d.ts +194 -0
- package/build/cjs/cc/AlarmSensorCC.js +510 -0
- package/build/cjs/cc/AlarmSensorCC.js.map +7 -0
- package/build/cjs/cc/AssociationCC.d.ts +253 -0
- package/build/cjs/cc/AssociationCC.js +877 -0
- package/build/cjs/cc/AssociationCC.js.map +7 -0
- package/build/cjs/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js +887 -0
- package/build/cjs/cc/AssociationGroupInfoCC.js.map +7 -0
- package/build/cjs/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/cjs/cc/BarrierOperatorCC.js +748 -0
- package/build/cjs/cc/BarrierOperatorCC.js.map +7 -0
- package/build/cjs/cc/BasicCC.d.ts +191 -0
- package/build/cjs/cc/BasicCC.js +478 -0
- package/build/cjs/cc/BasicCC.js.map +7 -0
- package/build/cjs/cc/BatteryCC.d.ts +406 -0
- package/build/cjs/cc/BatteryCC.js +590 -0
- package/build/cjs/cc/BatteryCC.js.map +7 -0
- package/build/cjs/cc/BinarySensorCC.d.ts +122 -0
- package/build/cjs/cc/BinarySensorCC.js +546 -0
- package/build/cjs/cc/BinarySensorCC.js.map +7 -0
- package/build/cjs/cc/BinarySwitchCC.d.ts +139 -0
- package/build/cjs/cc/BinarySwitchCC.js +472 -0
- package/build/cjs/cc/BinarySwitchCC.js.map +7 -0
- package/build/cjs/cc/CRC16CC.d.ts +29 -0
- package/build/cjs/cc/CRC16CC.js +208 -0
- package/build/cjs/cc/CRC16CC.js.map +7 -0
- package/build/cjs/cc/CentralSceneCC.d.ts +210 -0
- package/build/cjs/cc/CentralSceneCC.js +584 -0
- package/build/cjs/cc/CentralSceneCC.js.map +7 -0
- package/build/cjs/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js +646 -0
- package/build/cjs/cc/ClimateControlScheduleCC.js.map +7 -0
- package/build/cjs/cc/ClockCC.d.ts +47 -0
- package/build/cjs/cc/ClockCC.js +330 -0
- package/build/cjs/cc/ClockCC.js.map +7 -0
- package/build/cjs/cc/ColorSwitchCC.d.ts +339 -0
- package/build/cjs/cc/ColorSwitchCC.js +1265 -0
- package/build/cjs/cc/ColorSwitchCC.js.map +7 -0
- package/build/cjs/cc/ConfigurationCC.d.ts +396 -0
- package/build/cjs/cc/ConfigurationCC.js +2477 -0
- package/build/cjs/cc/ConfigurationCC.js.map +7 -0
- package/build/cjs/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js +168 -0
- package/build/cjs/cc/DeviceResetLocallyCC.js.map +7 -0
- package/build/cjs/cc/DoorLockCC.d.ts +837 -0
- package/build/cjs/cc/DoorLockCC.js +1366 -0
- package/build/cjs/cc/DoorLockCC.js.map +7 -0
- package/build/cjs/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/cjs/cc/DoorLockLoggingCC.js +458 -0
- package/build/cjs/cc/DoorLockLoggingCC.js.map +7 -0
- package/build/cjs/cc/EnergyProductionCC.d.ts +77 -0
- package/build/cjs/cc/EnergyProductionCC.js +329 -0
- package/build/cjs/cc/EnergyProductionCC.js.map +7 -0
- package/build/cjs/cc/EntryControlCC.d.ts +231 -0
- package/build/cjs/cc/EntryControlCC.js +754 -0
- package/build/cjs/cc/EntryControlCC.js.map +7 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +1322 -0
- package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +7 -0
- package/build/cjs/cc/HailCC.d.ts +6 -0
- package/build/cjs/cc/HailCC.js +91 -0
- package/build/cjs/cc/HailCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/cjs/cc/HumidityControlModeCC.js +449 -0
- package/build/cjs/cc/HumidityControlModeCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js +250 -0
- package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js +821 -0
- package/build/cjs/cc/HumidityControlSetpointCC.js.map +7 -0
- package/build/cjs/cc/InclusionControllerCC.d.ts +42 -0
- package/build/cjs/cc/InclusionControllerCC.js +251 -0
- package/build/cjs/cc/InclusionControllerCC.js.map +7 -0
- package/build/cjs/cc/IndicatorCC.d.ts +338 -0
- package/build/cjs/cc/IndicatorCC.js +1395 -0
- package/build/cjs/cc/IndicatorCC.js.map +7 -0
- package/build/cjs/cc/IrrigationCC.d.ts +1496 -0
- package/build/cjs/cc/IrrigationCC.js +2224 -0
- package/build/cjs/cc/IrrigationCC.js.map +7 -0
- package/build/cjs/cc/LanguageCC.d.ts +101 -0
- package/build/cjs/cc/LanguageCC.js +364 -0
- package/build/cjs/cc/LanguageCC.js.map +7 -0
- package/build/cjs/cc/LockCC.d.ts +73 -0
- package/build/cjs/cc/LockCC.js +322 -0
- package/build/cjs/cc/LockCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js +269 -0
- package/build/cjs/cc/ManufacturerProprietaryCC.js.map +7 -0
- package/build/cjs/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js +440 -0
- package/build/cjs/cc/ManufacturerSpecificCC.js.map +7 -0
- package/build/cjs/cc/MeterCC.d.ts +318 -0
- package/build/cjs/cc/MeterCC.js +1355 -0
- package/build/cjs/cc/MeterCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js +1090 -0
- package/build/cjs/cc/MultiChannelAssociationCC.js.map +7 -0
- package/build/cjs/cc/MultiChannelCC.d.ts +394 -0
- package/build/cjs/cc/MultiChannelCC.js +1268 -0
- package/build/cjs/cc/MultiChannelCC.js.map +7 -0
- package/build/cjs/cc/MultiCommandCC.d.ts +27 -0
- package/build/cjs/cc/MultiCommandCC.js +234 -0
- package/build/cjs/cc/MultiCommandCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/cjs/cc/MultilevelSensorCC.js +856 -0
- package/build/cjs/cc/MultilevelSensorCC.js.map +7 -0
- package/build/cjs/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/cjs/cc/MultilevelSwitchCC.js +928 -0
- package/build/cjs/cc/MultilevelSwitchCC.js.map +7 -0
- package/build/cjs/cc/NoOperationCC.d.ts +9 -0
- package/build/cjs/cc/NoOperationCC.js +126 -0
- package/build/cjs/cc/NoOperationCC.js.map +7 -0
- package/build/cjs/cc/NodeNamingCC.d.ts +118 -0
- package/build/cjs/cc/NodeNamingCC.js +504 -0
- package/build/cjs/cc/NodeNamingCC.js.map +7 -0
- package/build/cjs/cc/NotificationCC.d.ts +479 -0
- package/build/cjs/cc/NotificationCC.js +1399 -0
- package/build/cjs/cc/NotificationCC.js.map +7 -0
- package/build/cjs/cc/PowerlevelCC.d.ts +82 -0
- package/build/cjs/cc/PowerlevelCC.js +657 -0
- package/build/cjs/cc/PowerlevelCC.js.map +7 -0
- package/build/cjs/cc/ProtectionCC.d.ts +325 -0
- package/build/cjs/cc/ProtectionCC.js +859 -0
- package/build/cjs/cc/ProtectionCC.js.map +7 -0
- package/build/cjs/cc/SceneActivationCC.d.ts +89 -0
- package/build/cjs/cc/SceneActivationCC.js +261 -0
- package/build/cjs/cc/SceneActivationCC.js.map +7 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js +473 -0
- package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +7 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js +526 -0
- package/build/cjs/cc/SceneControllerConfigurationCC.js.map +7 -0
- package/build/cjs/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js +2043 -0
- package/build/cjs/cc/ScheduleEntryLockCC.js.map +7 -0
- package/build/cjs/cc/Security2CC.d.ts +251 -0
- package/build/cjs/cc/Security2CC.js +1853 -0
- package/build/cjs/cc/Security2CC.js.map +7 -0
- package/build/cjs/cc/SecurityCC.d.ts +128 -0
- package/build/cjs/cc/SecurityCC.js +977 -0
- package/build/cjs/cc/SecurityCC.js.map +7 -0
- package/build/cjs/cc/SoundSwitchCC.d.ts +232 -0
- package/build/cjs/cc/SoundSwitchCC.js +853 -0
- package/build/cjs/cc/SoundSwitchCC.js.map +7 -0
- package/build/cjs/cc/SupervisionCC.d.ts +104 -0
- package/build/cjs/cc/SupervisionCC.js +398 -0
- package/build/cjs/cc/SupervisionCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/cjs/cc/ThermostatFanModeCC.js +495 -0
- package/build/cjs/cc/ThermostatFanModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/cjs/cc/ThermostatFanStateCC.js +252 -0
- package/build/cjs/cc/ThermostatFanStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatModeCC.d.ts +150 -0
- package/build/cjs/cc/ThermostatModeCC.js +559 -0
- package/build/cjs/cc/ThermostatModeCC.js.map +7 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js +248 -0
- package/build/cjs/cc/ThermostatOperatingStateCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/cjs/cc/ThermostatSetbackCC.js +366 -0
- package/build/cjs/cc/ThermostatSetbackCC.js.map +7 -0
- package/build/cjs/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/cjs/cc/ThermostatSetpointCC.js +792 -0
- package/build/cjs/cc/ThermostatSetpointCC.js.map +7 -0
- package/build/cjs/cc/TimeCC.d.ts +88 -0
- package/build/cjs/cc/TimeCC.js +635 -0
- package/build/cjs/cc/TimeCC.js.map +7 -0
- package/build/cjs/cc/TimeParametersCC.d.ts +72 -0
- package/build/cjs/cc/TimeParametersCC.js +413 -0
- package/build/cjs/cc/TimeParametersCC.js.map +7 -0
- package/build/cjs/cc/TransportServiceCC.d.ts +107 -0
- package/build/cjs/cc/TransportServiceCC.js +522 -0
- package/build/cjs/cc/TransportServiceCC.js.map +7 -0
- package/build/cjs/cc/UserCodeCC.d.ts +683 -0
- package/build/cjs/cc/UserCodeCC.js +1903 -0
- package/build/cjs/cc/UserCodeCC.js.map +7 -0
- package/build/cjs/cc/VersionCC.d.ts +469 -0
- package/build/cjs/cc/VersionCC.js +962 -0
- package/build/cjs/cc/VersionCC.js.map +7 -0
- package/build/cjs/cc/WakeUpCC.d.ts +150 -0
- package/build/cjs/cc/WakeUpCC.js +609 -0
- package/build/cjs/cc/WakeUpCC.js.map +7 -0
- package/build/cjs/cc/WindowCoveringCC.d.ts +315 -0
- package/build/cjs/cc/WindowCoveringCC.js +924 -0
- package/build/cjs/cc/WindowCoveringCC.js.map +7 -0
- package/build/cjs/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js +90 -0
- package/build/cjs/cc/ZWaveLongRangeCC.js.map +7 -0
- package/build/cjs/cc/ZWavePlusCC.d.ts +163 -0
- package/build/cjs/cc/ZWavePlusCC.js +362 -0
- package/build/cjs/cc/ZWavePlusCC.js.map +7 -0
- package/build/cjs/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/cjs/cc/ZWaveProtocolCC.js +1638 -0
- package/build/cjs/cc/ZWaveProtocolCC.js.map +7 -0
- package/build/cjs/cc/index.d.ts +132 -0
- package/build/cjs/cc/index.js +1180 -0
- package/build/cjs/cc/index.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js +76 -0
- package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +7 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +533 -0
- package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +7 -0
- package/build/cjs/index.d.ts +15 -0
- package/build/cjs/index.js +77 -0
- package/build/cjs/index.js.map +7 -0
- package/build/cjs/index_safe.d.ts +3 -0
- package/build/cjs/index_safe.js +25 -0
- package/build/cjs/index_safe.js.map +7 -0
- package/build/cjs/lib/API.d.ts +271 -0
- package/build/cjs/lib/API.js +413 -0
- package/build/cjs/lib/API.js.map +7 -0
- package/build/cjs/lib/CommandClass.d.ts +234 -0
- package/build/cjs/lib/CommandClass.js +692 -0
- package/build/cjs/lib/CommandClass.js.map +7 -0
- package/build/cjs/lib/CommandClassDecorators.d.ts +108 -0
- package/build/cjs/lib/CommandClassDecorators.js +181 -0
- package/build/cjs/lib/CommandClassDecorators.js.map +7 -0
- package/build/cjs/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js +71 -0
- package/build/cjs/lib/EncapsulatingCommandClass.js.map +7 -0
- package/build/cjs/lib/ICommandClassContainer.js +17 -0
- package/build/cjs/lib/ICommandClassContainer.js.map +7 -0
- package/build/cjs/lib/NotificationEventPayload.d.ts +10 -0
- package/build/cjs/lib/NotificationEventPayload.js +31 -0
- package/build/cjs/lib/NotificationEventPayload.js.map +7 -0
- package/build/cjs/lib/Security2/Extension.d.ts +106 -0
- package/build/cjs/lib/Security2/Extension.js +424 -0
- package/build/cjs/lib/Security2/Extension.js.map +7 -0
- package/build/cjs/lib/Security2/shared.js +69 -0
- package/build/cjs/lib/Security2/shared.js.map +7 -0
- package/build/cjs/lib/SetValueResult.js +65 -0
- package/build/cjs/lib/SetValueResult.js.map +7 -0
- package/build/cjs/lib/Values.d.ts +223 -0
- package/build/cjs/lib/Values.js +191 -0
- package/build/cjs/lib/Values.js.map +7 -0
- package/build/cjs/lib/_Types.js +1676 -0
- package/build/cjs/lib/_Types.js.map +7 -0
- package/build/cjs/lib/serializers.d.ts +34 -0
- package/build/cjs/lib/serializers.js +110 -0
- package/build/cjs/lib/serializers.js.map +7 -0
- package/build/cjs/lib/utils.d.ts +17 -0
- package/build/cjs/lib/utils.js +678 -0
- package/build/cjs/lib/utils.js.map +7 -0
- package/build/cjs/package.json +3 -0
- package/build/esm/cc/AlarmSensorCC.d.ts +194 -0
- package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -0
- package/build/esm/cc/AlarmSensorCC.js +490 -0
- package/build/esm/cc/AlarmSensorCC.js.map +1 -0
- package/build/esm/cc/AssociationCC.d.ts +253 -0
- package/build/esm/cc/AssociationCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationCC.js +847 -0
- package/build/esm/cc/AssociationCC.js.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts +230 -0
- package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -0
- package/build/esm/cc/AssociationGroupInfoCC.js +889 -0
- package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts +243 -0
- package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -0
- package/build/esm/cc/BarrierOperatorCC.js +751 -0
- package/build/esm/cc/BarrierOperatorCC.js.map +1 -0
- package/build/esm/cc/BasicCC.d.ts +191 -0
- package/build/esm/cc/BasicCC.d.ts.map +1 -0
- package/build/esm/cc/BasicCC.js +468 -0
- package/build/esm/cc/BasicCC.js.map +1 -0
- package/build/esm/cc/BatteryCC.d.ts +406 -0
- package/build/esm/cc/BatteryCC.d.ts.map +1 -0
- package/build/esm/cc/BatteryCC.js +578 -0
- package/build/esm/cc/BatteryCC.js.map +1 -0
- package/build/esm/cc/BinarySensorCC.d.ts +122 -0
- package/build/esm/cc/BinarySensorCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySensorCC.js +515 -0
- package/build/esm/cc/BinarySensorCC.js.map +1 -0
- package/build/esm/cc/BinarySwitchCC.d.ts +139 -0
- package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -0
- package/build/esm/cc/BinarySwitchCC.js +441 -0
- package/build/esm/cc/BinarySwitchCC.js.map +1 -0
- package/build/esm/cc/CRC16CC.d.ts +29 -0
- package/build/esm/cc/CRC16CC.d.ts.map +1 -0
- package/build/esm/cc/CRC16CC.js +187 -0
- package/build/esm/cc/CRC16CC.js.map +1 -0
- package/build/esm/cc/CentralSceneCC.d.ts +210 -0
- package/build/esm/cc/CentralSceneCC.d.ts.map +1 -0
- package/build/esm/cc/CentralSceneCC.js +541 -0
- package/build/esm/cc/CentralSceneCC.js.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts +177 -0
- package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -0
- package/build/esm/cc/ClimateControlScheduleCC.js +607 -0
- package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -0
- package/build/esm/cc/ClockCC.d.ts +47 -0
- package/build/esm/cc/ClockCC.d.ts.map +1 -0
- package/build/esm/cc/ClockCC.js +294 -0
- package/build/esm/cc/ClockCC.js.map +1 -0
- package/build/esm/cc/ColorSwitchCC.d.ts +339 -0
- package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/ColorSwitchCC.js +1274 -0
- package/build/esm/cc/ColorSwitchCC.js.map +1 -0
- package/build/esm/cc/ConfigurationCC.d.ts +396 -0
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/ConfigurationCC.js +2666 -0
- package/build/esm/cc/ConfigurationCC.js.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts +17 -0
- package/build/esm/cc/DeviceResetLocallyCC.d.ts.map +1 -0
- package/build/esm/cc/DeviceResetLocallyCC.js +138 -0
- package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -0
- package/build/esm/cc/DoorLockCC.d.ts +837 -0
- package/build/esm/cc/DoorLockCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockCC.js +1372 -0
- package/build/esm/cc/DoorLockCC.js.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts +77 -0
- package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -0
- package/build/esm/cc/DoorLockLoggingCC.js +414 -0
- package/build/esm/cc/DoorLockLoggingCC.js.map +1 -0
- package/build/esm/cc/EnergyProductionCC.d.ts +77 -0
- package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/esm/cc/EnergyProductionCC.js +289 -0
- package/build/esm/cc/EnergyProductionCC.js.map +1 -0
- package/build/esm/cc/EntryControlCC.d.ts +231 -0
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -0
- package/build/esm/cc/EntryControlCC.js +717 -0
- package/build/esm/cc/EntryControlCC.js.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts +359 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1311 -0
- package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -0
- package/build/esm/cc/HailCC.d.ts +6 -0
- package/build/esm/cc/HailCC.d.ts.map +1 -0
- package/build/esm/cc/HailCC.js +60 -0
- package/build/esm/cc/HailCC.js.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts +111 -0
- package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlModeCC.js +412 -0
- package/build/esm/cc/HumidityControlModeCC.js.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +60 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js +210 -0
- package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts +209 -0
- package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/HumidityControlSetpointCC.js +805 -0
- package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -0
- package/build/esm/cc/InclusionControllerCC.d.ts +42 -0
- package/build/esm/cc/InclusionControllerCC.d.ts.map +1 -0
- package/build/esm/cc/InclusionControllerCC.js +211 -0
- package/build/esm/cc/InclusionControllerCC.js.map +1 -0
- package/build/esm/cc/IndicatorCC.d.ts +338 -0
- package/build/esm/cc/IndicatorCC.d.ts.map +1 -0
- package/build/esm/cc/IndicatorCC.js +1455 -0
- package/build/esm/cc/IndicatorCC.js.map +1 -0
- package/build/esm/cc/IrrigationCC.d.ts +1496 -0
- package/build/esm/cc/IrrigationCC.d.ts.map +1 -0
- package/build/esm/cc/IrrigationCC.js +2239 -0
- package/build/esm/cc/IrrigationCC.js.map +1 -0
- package/build/esm/cc/LanguageCC.d.ts +101 -0
- package/build/esm/cc/LanguageCC.d.ts.map +1 -0
- package/build/esm/cc/LanguageCC.js +325 -0
- package/build/esm/cc/LanguageCC.js.map +1 -0
- package/build/esm/cc/LockCC.d.ts +73 -0
- package/build/esm/cc/LockCC.d.ts.map +1 -0
- package/build/esm/cc/LockCC.js +282 -0
- package/build/esm/cc/LockCC.js.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts +32 -0
- package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js +252 -0
- package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts +171 -0
- package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -0
- package/build/esm/cc/ManufacturerSpecificCC.js +404 -0
- package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -0
- package/build/esm/cc/MeterCC.d.ts +318 -0
- package/build/esm/cc/MeterCC.d.ts.map +1 -0
- package/build/esm/cc/MeterCC.js +1409 -0
- package/build/esm/cc/MeterCC.js.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts +241 -0
- package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelAssociationCC.js +1094 -0
- package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -0
- package/build/esm/cc/MultiChannelCC.d.ts +394 -0
- package/build/esm/cc/MultiChannelCC.d.ts.map +1 -0
- package/build/esm/cc/MultiChannelCC.js +1312 -0
- package/build/esm/cc/MultiChannelCC.js.map +1 -0
- package/build/esm/cc/MultiCommandCC.d.ts +27 -0
- package/build/esm/cc/MultiCommandCC.d.ts.map +1 -0
- package/build/esm/cc/MultiCommandCC.js +206 -0
- package/build/esm/cc/MultiCommandCC.js.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts +185 -0
- package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSensorCC.js +872 -0
- package/build/esm/cc/MultilevelSensorCC.js.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts +357 -0
- package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/MultilevelSwitchCC.js +935 -0
- package/build/esm/cc/MultilevelSwitchCC.js.map +1 -0
- package/build/esm/cc/NoOperationCC.d.ts +9 -0
- package/build/esm/cc/NoOperationCC.d.ts.map +1 -0
- package/build/esm/cc/NoOperationCC.js +92 -0
- package/build/esm/cc/NoOperationCC.js.map +1 -0
- package/build/esm/cc/NodeNamingCC.d.ts +118 -0
- package/build/esm/cc/NodeNamingCC.d.ts.map +1 -0
- package/build/esm/cc/NodeNamingCC.js +464 -0
- package/build/esm/cc/NodeNamingCC.js.map +1 -0
- package/build/esm/cc/NotificationCC.d.ts +479 -0
- package/build/esm/cc/NotificationCC.d.ts.map +1 -0
- package/build/esm/cc/NotificationCC.js +1481 -0
- package/build/esm/cc/NotificationCC.js.map +1 -0
- package/build/esm/cc/PowerlevelCC.d.ts +82 -0
- package/build/esm/cc/PowerlevelCC.d.ts.map +1 -0
- package/build/esm/cc/PowerlevelCC.js +611 -0
- package/build/esm/cc/PowerlevelCC.js.map +1 -0
- package/build/esm/cc/ProtectionCC.d.ts +325 -0
- package/build/esm/cc/ProtectionCC.d.ts.map +1 -0
- package/build/esm/cc/ProtectionCC.js +830 -0
- package/build/esm/cc/ProtectionCC.js.map +1 -0
- package/build/esm/cc/SceneActivationCC.d.ts +89 -0
- package/build/esm/cc/SceneActivationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActivationCC.js +223 -0
- package/build/esm/cc/SceneActivationCC.js.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts +120 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js +462 -0
- package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts +129 -0
- package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js +534 -0
- package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts +434 -0
- package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -0
- package/build/esm/cc/ScheduleEntryLockCC.js +2065 -0
- package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -0
- package/build/esm/cc/Security2CC.d.ts +251 -0
- package/build/esm/cc/Security2CC.d.ts.map +1 -0
- package/build/esm/cc/Security2CC.js +2041 -0
- package/build/esm/cc/Security2CC.js.map +1 -0
- package/build/esm/cc/SecurityCC.d.ts +128 -0
- package/build/esm/cc/SecurityCC.d.ts.map +1 -0
- package/build/esm/cc/SecurityCC.js +989 -0
- package/build/esm/cc/SecurityCC.js.map +1 -0
- package/build/esm/cc/SoundSwitchCC.d.ts +232 -0
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -0
- package/build/esm/cc/SoundSwitchCC.js +796 -0
- package/build/esm/cc/SoundSwitchCC.js.map +1 -0
- package/build/esm/cc/SupervisionCC.d.ts +104 -0
- package/build/esm/cc/SupervisionCC.d.ts.map +1 -0
- package/build/esm/cc/SupervisionCC.js +396 -0
- package/build/esm/cc/SupervisionCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts +141 -0
- package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanModeCC.js +463 -0
- package/build/esm/cc/ThermostatFanModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts +60 -0
- package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatFanStateCC.js +212 -0
- package/build/esm/cc/ThermostatFanStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatModeCC.d.ts +150 -0
- package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatModeCC.js +530 -0
- package/build/esm/cc/ThermostatModeCC.js.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts +61 -0
- package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js +208 -0
- package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts +46 -0
- package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetbackCC.js +333 -0
- package/build/esm/cc/ThermostatSetbackCC.js.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts +197 -0
- package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -0
- package/build/esm/cc/ThermostatSetpointCC.js +786 -0
- package/build/esm/cc/ThermostatSetpointCC.js.map +1 -0
- package/build/esm/cc/TimeCC.d.ts +88 -0
- package/build/esm/cc/TimeCC.d.ts.map +1 -0
- package/build/esm/cc/TimeCC.js +590 -0
- package/build/esm/cc/TimeCC.js.map +1 -0
- package/build/esm/cc/TimeParametersCC.d.ts +72 -0
- package/build/esm/cc/TimeParametersCC.d.ts.map +1 -0
- package/build/esm/cc/TimeParametersCC.js +385 -0
- package/build/esm/cc/TimeParametersCC.js.map +1 -0
- package/build/esm/cc/TransportServiceCC.d.ts +107 -0
- package/build/esm/cc/TransportServiceCC.d.ts.map +1 -0
- package/build/esm/cc/TransportServiceCC.js +523 -0
- package/build/esm/cc/TransportServiceCC.js.map +1 -0
- package/build/esm/cc/UserCodeCC.d.ts +683 -0
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -0
- package/build/esm/cc/UserCodeCC.js +1933 -0
- package/build/esm/cc/UserCodeCC.js.map +1 -0
- package/build/esm/cc/VersionCC.d.ts +469 -0
- package/build/esm/cc/VersionCC.d.ts.map +1 -0
- package/build/esm/cc/VersionCC.js +971 -0
- package/build/esm/cc/VersionCC.js.map +1 -0
- package/build/esm/cc/WakeUpCC.d.ts +150 -0
- package/build/esm/cc/WakeUpCC.d.ts.map +1 -0
- package/build/esm/cc/WakeUpCC.js +568 -0
- package/build/esm/cc/WakeUpCC.js.map +1 -0
- package/build/esm/cc/WindowCoveringCC.d.ts +315 -0
- package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/esm/cc/WindowCoveringCC.js +905 -0
- package/build/esm/cc/WindowCoveringCC.js.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts +4 -0
- package/build/esm/cc/ZWaveLongRangeCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveLongRangeCC.js +57 -0
- package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -0
- package/build/esm/cc/ZWavePlusCC.d.ts +163 -0
- package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -0
- package/build/esm/cc/ZWavePlusCC.js +328 -0
- package/build/esm/cc/ZWavePlusCC.js.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts +344 -0
- package/build/esm/cc/ZWaveProtocolCC.d.ts.map +1 -0
- package/build/esm/cc/ZWaveProtocolCC.js +1520 -0
- package/build/esm/cc/ZWaveProtocolCC.js.map +1 -0
- package/build/esm/cc/index.d.ts +132 -0
- package/build/esm/cc/index.d.ts.map +1 -0
- package/build/esm/cc/index.js +71 -0
- package/build/esm/cc/index.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +64 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js +79 -0
- package/build/esm/cc/manufacturerProprietary/Decorators.js.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +79 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js +489 -0
- package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -0
- package/build/esm/index.d.ts +15 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +14 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/index_safe.d.ts +3 -0
- package/build/esm/index_safe.d.ts.map +1 -0
- package/build/esm/index_safe.js +4 -0
- package/build/esm/index_safe.js.map +1 -0
- package/build/esm/lib/API.d.ts +271 -0
- package/build/esm/lib/API.d.ts.map +1 -0
- package/build/esm/lib/API.js +448 -0
- package/build/esm/lib/API.js.map +1 -0
- package/build/esm/lib/CommandClass.d.ts +234 -0
- package/build/esm/lib/CommandClass.d.ts.map +1 -0
- package/build/esm/lib/CommandClass.js +781 -0
- package/build/esm/lib/CommandClass.js.map +1 -0
- package/build/esm/lib/CommandClassDecorators.d.ts +108 -0
- package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -0
- package/build/esm/lib/CommandClassDecorators.js +229 -0
- package/build/esm/lib/CommandClassDecorators.js.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts +22 -0
- package/build/esm/lib/EncapsulatingCommandClass.d.ts.map +1 -0
- package/build/esm/lib/EncapsulatingCommandClass.js +56 -0
- package/build/esm/lib/EncapsulatingCommandClass.js.map +1 -0
- package/build/esm/lib/ICommandClassContainer.d.ts +2 -0
- package/build/esm/lib/ICommandClassContainer.d.ts.map +1 -0
- package/build/esm/lib/ICommandClassContainer.js +2 -0
- package/build/esm/lib/ICommandClassContainer.js.map +1 -0
- package/build/esm/lib/NotificationEventPayload.d.ts +10 -0
- package/build/esm/lib/NotificationEventPayload.d.ts.map +1 -0
- package/build/esm/lib/NotificationEventPayload.js +7 -0
- package/build/esm/lib/NotificationEventPayload.js.map +1 -0
- package/build/esm/lib/Security2/Extension.d.ts +106 -0
- package/build/esm/lib/Security2/Extension.d.ts.map +1 -0
- package/build/esm/lib/Security2/Extension.js +380 -0
- package/build/esm/lib/Security2/Extension.js.map +1 -0
- package/build/esm/lib/Security2/shared.d.ts +37 -0
- package/build/esm/lib/Security2/shared.d.ts.map +1 -0
- package/build/esm/lib/Security2/shared.js +40 -0
- package/build/esm/lib/Security2/shared.js.map +1 -0
- package/build/esm/lib/SetValueResult.d.ts +55 -0
- package/build/esm/lib/SetValueResult.d.ts.map +1 -0
- package/build/esm/lib/SetValueResult.js +53 -0
- package/build/esm/lib/SetValueResult.js.map +1 -0
- package/build/esm/lib/Values.d.ts +223 -0
- package/build/esm/lib/Values.d.ts.map +1 -0
- package/build/esm/lib/Values.js +169 -0
- package/build/esm/lib/Values.js.map +1 -0
- package/build/esm/lib/_Types.d.ts +1461 -0
- package/build/esm/lib/_Types.d.ts.map +1 -0
- package/build/esm/lib/_Types.js +1432 -0
- package/build/esm/lib/_Types.js.map +1 -0
- package/build/esm/lib/serializers.d.ts +34 -0
- package/build/esm/lib/serializers.d.ts.map +1 -0
- package/build/esm/lib/serializers.js +98 -0
- package/build/esm/lib/serializers.js.map +1 -0
- package/build/esm/lib/utils.d.ts +17 -0
- package/build/esm/lib/utils.d.ts.map +1 -0
- package/build/esm/lib/utils.js +847 -0
- package/build/esm/lib/utils.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/package.json +28 -23
- package/build/cc/AlarmSensorCC.d.ts +0 -194
- package/build/cc/AlarmSensorCC.d.ts.map +0 -1
- package/build/cc/AlarmSensorCC.js +0 -395
- package/build/cc/AlarmSensorCC.js.map +0 -1
- package/build/cc/AssociationCC.d.ts +0 -253
- package/build/cc/AssociationCC.d.ts.map +0 -1
- package/build/cc/AssociationCC.js +0 -732
- package/build/cc/AssociationCC.js.map +0 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +0 -230
- package/build/cc/AssociationGroupInfoCC.d.ts.map +0 -1
- package/build/cc/AssociationGroupInfoCC.js +0 -772
- package/build/cc/AssociationGroupInfoCC.js.map +0 -1
- package/build/cc/BarrierOperatorCC.d.ts +0 -243
- package/build/cc/BarrierOperatorCC.d.ts.map +0 -1
- package/build/cc/BarrierOperatorCC.js +0 -613
- package/build/cc/BarrierOperatorCC.js.map +0 -1
- package/build/cc/BasicCC.d.ts +0 -191
- package/build/cc/BasicCC.d.ts.map +0 -1
- package/build/cc/BasicCC.js +0 -393
- package/build/cc/BasicCC.js.map +0 -1
- package/build/cc/BatteryCC.d.ts +0 -406
- package/build/cc/BatteryCC.d.ts.map +0 -1
- package/build/cc/BatteryCC.js +0 -516
- package/build/cc/BatteryCC.js.map +0 -1
- package/build/cc/BinarySensorCC.d.ts +0 -122
- package/build/cc/BinarySensorCC.d.ts.map +0 -1
- package/build/cc/BinarySensorCC.js +0 -420
- package/build/cc/BinarySensorCC.js.map +0 -1
- package/build/cc/BinarySwitchCC.d.ts +0 -139
- package/build/cc/BinarySwitchCC.d.ts.map +0 -1
- package/build/cc/BinarySwitchCC.js +0 -365
- package/build/cc/BinarySwitchCC.js.map +0 -1
- package/build/cc/CRC16CC.d.ts +0 -29
- package/build/cc/CRC16CC.d.ts.map +0 -1
- package/build/cc/CRC16CC.js +0 -126
- package/build/cc/CRC16CC.js.map +0 -1
- package/build/cc/CentralSceneCC.d.ts +0 -210
- package/build/cc/CentralSceneCC.d.ts.map +0 -1
- package/build/cc/CentralSceneCC.js +0 -453
- package/build/cc/CentralSceneCC.js.map +0 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +0 -177
- package/build/cc/ClimateControlScheduleCC.d.ts.map +0 -1
- package/build/cc/ClimateControlScheduleCC.js +0 -469
- package/build/cc/ClimateControlScheduleCC.js.map +0 -1
- package/build/cc/ClockCC.d.ts +0 -47
- package/build/cc/ClockCC.d.ts.map +0 -1
- package/build/cc/ClockCC.js +0 -208
- package/build/cc/ClockCC.js.map +0 -1
- package/build/cc/ColorSwitchCC.d.ts +0 -339
- package/build/cc/ColorSwitchCC.d.ts.map +0 -1
- package/build/cc/ColorSwitchCC.js +0 -1152
- package/build/cc/ColorSwitchCC.js.map +0 -1
- package/build/cc/ConfigurationCC.d.ts +0 -396
- package/build/cc/ConfigurationCC.d.ts.map +0 -1
- package/build/cc/ConfigurationCC.js +0 -2458
- package/build/cc/ConfigurationCC.js.map +0 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +0 -17
- package/build/cc/DeviceResetLocallyCC.d.ts.map +0 -1
- package/build/cc/DeviceResetLocallyCC.js +0 -76
- package/build/cc/DeviceResetLocallyCC.js.map +0 -1
- package/build/cc/DoorLockCC.d.ts +0 -837
- package/build/cc/DoorLockCC.d.ts.map +0 -1
- package/build/cc/DoorLockCC.js +0 -1273
- package/build/cc/DoorLockCC.js.map +0 -1
- package/build/cc/DoorLockLoggingCC.d.ts +0 -77
- package/build/cc/DoorLockLoggingCC.d.ts.map +0 -1
- package/build/cc/DoorLockLoggingCC.js +0 -319
- package/build/cc/DoorLockLoggingCC.js.map +0 -1
- package/build/cc/EnergyProductionCC.d.ts +0 -77
- package/build/cc/EnergyProductionCC.d.ts.map +0 -1
- package/build/cc/EnergyProductionCC.js +0 -216
- package/build/cc/EnergyProductionCC.js.map +0 -1
- package/build/cc/EntryControlCC.d.ts +0 -231
- package/build/cc/EntryControlCC.d.ts.map +0 -1
- package/build/cc/EntryControlCC.js +0 -607
- package/build/cc/EntryControlCC.js.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +0 -359
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +0 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +0 -1145
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +0 -1
- package/build/cc/HailCC.d.ts +0 -6
- package/build/cc/HailCC.d.ts.map +0 -1
- package/build/cc/HailCC.js +0 -24
- package/build/cc/HailCC.js.map +0 -1
- package/build/cc/HumidityControlModeCC.d.ts +0 -111
- package/build/cc/HumidityControlModeCC.d.ts.map +0 -1
- package/build/cc/HumidityControlModeCC.js +0 -308
- package/build/cc/HumidityControlModeCC.js.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +0 -60
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +0 -1
- package/build/cc/HumidityControlOperatingStateCC.js +0 -140
- package/build/cc/HumidityControlOperatingStateCC.js.map +0 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +0 -209
- package/build/cc/HumidityControlSetpointCC.d.ts.map +0 -1
- package/build/cc/HumidityControlSetpointCC.js +0 -648
- package/build/cc/HumidityControlSetpointCC.js.map +0 -1
- package/build/cc/InclusionControllerCC.d.ts +0 -42
- package/build/cc/InclusionControllerCC.d.ts.map +0 -1
- package/build/cc/InclusionControllerCC.js +0 -136
- package/build/cc/InclusionControllerCC.js.map +0 -1
- package/build/cc/IndicatorCC.d.ts +0 -338
- package/build/cc/IndicatorCC.d.ts.map +0 -1
- package/build/cc/IndicatorCC.js +0 -1320
- package/build/cc/IndicatorCC.js.map +0 -1
- package/build/cc/IrrigationCC.d.ts +0 -1496
- package/build/cc/IrrigationCC.d.ts.map +0 -1
- package/build/cc/IrrigationCC.js +0 -2041
- package/build/cc/IrrigationCC.js.map +0 -1
- package/build/cc/LanguageCC.d.ts +0 -101
- package/build/cc/LanguageCC.d.ts.map +0 -1
- package/build/cc/LanguageCC.js +0 -246
- package/build/cc/LanguageCC.js.map +0 -1
- package/build/cc/LockCC.d.ts +0 -73
- package/build/cc/LockCC.d.ts.map +0 -1
- package/build/cc/LockCC.js +0 -200
- package/build/cc/LockCC.js.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +0 -32
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +0 -1
- package/build/cc/ManufacturerProprietaryCC.js +0 -204
- package/build/cc/ManufacturerProprietaryCC.js.map +0 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +0 -171
- package/build/cc/ManufacturerSpecificCC.d.ts.map +0 -1
- package/build/cc/ManufacturerSpecificCC.js +0 -318
- package/build/cc/ManufacturerSpecificCC.js.map +0 -1
- package/build/cc/MeterCC.d.ts +0 -318
- package/build/cc/MeterCC.d.ts.map +0 -1
- package/build/cc/MeterCC.js +0 -1312
- package/build/cc/MeterCC.js.map +0 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +0 -241
- package/build/cc/MultiChannelAssociationCC.d.ts.map +0 -1
- package/build/cc/MultiChannelAssociationCC.js +0 -1007
- package/build/cc/MultiChannelAssociationCC.js.map +0 -1
- package/build/cc/MultiChannelCC.d.ts +0 -394
- package/build/cc/MultiChannelCC.d.ts.map +0 -1
- package/build/cc/MultiChannelCC.js +0 -1130
- package/build/cc/MultiChannelCC.js.map +0 -1
- package/build/cc/MultiCommandCC.d.ts +0 -27
- package/build/cc/MultiCommandCC.d.ts.map +0 -1
- package/build/cc/MultiCommandCC.js +0 -145
- package/build/cc/MultiCommandCC.js.map +0 -1
- package/build/cc/MultilevelSensorCC.d.ts +0 -185
- package/build/cc/MultilevelSensorCC.d.ts.map +0 -1
- package/build/cc/MultilevelSensorCC.js +0 -756
- package/build/cc/MultilevelSensorCC.js.map +0 -1
- package/build/cc/MultilevelSwitchCC.d.ts +0 -357
- package/build/cc/MultilevelSwitchCC.d.ts.map +0 -1
- package/build/cc/MultilevelSwitchCC.js +0 -813
- package/build/cc/MultilevelSwitchCC.js.map +0 -1
- package/build/cc/NoOperationCC.d.ts +0 -9
- package/build/cc/NoOperationCC.d.ts.map +0 -1
- package/build/cc/NoOperationCC.js +0 -42
- package/build/cc/NoOperationCC.js.map +0 -1
- package/build/cc/NodeNamingCC.d.ts +0 -118
- package/build/cc/NodeNamingCC.d.ts.map +0 -1
- package/build/cc/NodeNamingCC.js +0 -348
- package/build/cc/NodeNamingCC.js.map +0 -1
- package/build/cc/NotificationCC.d.ts +0 -479
- package/build/cc/NotificationCC.d.ts.map +0 -1
- package/build/cc/NotificationCC.js +0 -1379
- package/build/cc/NotificationCC.js.map +0 -1
- package/build/cc/PowerlevelCC.d.ts +0 -82
- package/build/cc/PowerlevelCC.d.ts.map +0 -1
- package/build/cc/PowerlevelCC.js +0 -488
- package/build/cc/PowerlevelCC.js.map +0 -1
- package/build/cc/ProtectionCC.d.ts +0 -325
- package/build/cc/ProtectionCC.d.ts.map +0 -1
- package/build/cc/ProtectionCC.js +0 -672
- package/build/cc/ProtectionCC.js.map +0 -1
- package/build/cc/SceneActivationCC.d.ts +0 -89
- package/build/cc/SceneActivationCC.d.ts.map +0 -1
- package/build/cc/SceneActivationCC.js +0 -169
- package/build/cc/SceneActivationCC.js.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +0 -120
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneActuatorConfigurationCC.js +0 -377
- package/build/cc/SceneActuatorConfigurationCC.js.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +0 -129
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +0 -1
- package/build/cc/SceneControllerConfigurationCC.js +0 -449
- package/build/cc/SceneControllerConfigurationCC.js.map +0 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +0 -434
- package/build/cc/ScheduleEntryLockCC.d.ts.map +0 -1
- package/build/cc/ScheduleEntryLockCC.js +0 -1829
- package/build/cc/ScheduleEntryLockCC.js.map +0 -1
- package/build/cc/Security2CC.d.ts +0 -251
- package/build/cc/Security2CC.d.ts.map +0 -1
- package/build/cc/Security2CC.js +0 -1817
- package/build/cc/Security2CC.js.map +0 -1
- package/build/cc/SecurityCC.d.ts +0 -128
- package/build/cc/SecurityCC.d.ts.map +0 -1
- package/build/cc/SecurityCC.js +0 -803
- package/build/cc/SecurityCC.js.map +0 -1
- package/build/cc/SoundSwitchCC.d.ts +0 -232
- package/build/cc/SoundSwitchCC.d.ts.map +0 -1
- package/build/cc/SoundSwitchCC.js +0 -636
- package/build/cc/SoundSwitchCC.js.map +0 -1
- package/build/cc/SupervisionCC.d.ts +0 -104
- package/build/cc/SupervisionCC.d.ts.map +0 -1
- package/build/cc/SupervisionCC.js +0 -322
- package/build/cc/SupervisionCC.js.map +0 -1
- package/build/cc/ThermostatFanModeCC.d.ts +0 -141
- package/build/cc/ThermostatFanModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanModeCC.js +0 -362
- package/build/cc/ThermostatFanModeCC.js.map +0 -1
- package/build/cc/ThermostatFanStateCC.d.ts +0 -60
- package/build/cc/ThermostatFanStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatFanStateCC.js +0 -142
- package/build/cc/ThermostatFanStateCC.js.map +0 -1
- package/build/cc/ThermostatModeCC.d.ts +0 -150
- package/build/cc/ThermostatModeCC.d.ts.map +0 -1
- package/build/cc/ThermostatModeCC.js +0 -429
- package/build/cc/ThermostatModeCC.js.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +0 -61
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +0 -1
- package/build/cc/ThermostatOperatingStateCC.js +0 -138
- package/build/cc/ThermostatOperatingStateCC.js.map +0 -1
- package/build/cc/ThermostatSetbackCC.d.ts +0 -46
- package/build/cc/ThermostatSetbackCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetbackCC.js +0 -247
- package/build/cc/ThermostatSetbackCC.js.map +0 -1
- package/build/cc/ThermostatSetpointCC.d.ts +0 -197
- package/build/cc/ThermostatSetpointCC.d.ts.map +0 -1
- package/build/cc/ThermostatSetpointCC.js +0 -658
- package/build/cc/ThermostatSetpointCC.js.map +0 -1
- package/build/cc/TimeCC.d.ts +0 -88
- package/build/cc/TimeCC.d.ts.map +0 -1
- package/build/cc/TimeCC.js +0 -454
- package/build/cc/TimeCC.js.map +0 -1
- package/build/cc/TimeParametersCC.d.ts +0 -72
- package/build/cc/TimeParametersCC.d.ts.map +0 -1
- package/build/cc/TimeParametersCC.js +0 -303
- package/build/cc/TimeParametersCC.js.map +0 -1
- package/build/cc/TransportServiceCC.d.ts +0 -107
- package/build/cc/TransportServiceCC.d.ts.map +0 -1
- package/build/cc/TransportServiceCC.js +0 -426
- package/build/cc/TransportServiceCC.js.map +0 -1
- package/build/cc/UserCodeCC.d.ts +0 -683
- package/build/cc/UserCodeCC.d.ts.map +0 -1
- package/build/cc/UserCodeCC.js +0 -1699
- package/build/cc/UserCodeCC.js.map +0 -1
- package/build/cc/VersionCC.d.ts +0 -469
- package/build/cc/VersionCC.d.ts.map +0 -1
- package/build/cc/VersionCC.js +0 -865
- package/build/cc/VersionCC.js.map +0 -1
- package/build/cc/WakeUpCC.d.ts +0 -150
- package/build/cc/WakeUpCC.d.ts.map +0 -1
- package/build/cc/WakeUpCC.js +0 -441
- package/build/cc/WakeUpCC.js.map +0 -1
- package/build/cc/WindowCoveringCC.d.ts +0 -315
- package/build/cc/WindowCoveringCC.d.ts.map +0 -1
- package/build/cc/WindowCoveringCC.js +0 -783
- package/build/cc/WindowCoveringCC.js.map +0 -1
- package/build/cc/ZWaveLongRangeCC.d.ts +0 -4
- package/build/cc/ZWaveLongRangeCC.d.ts.map +0 -1
- package/build/cc/ZWaveLongRangeCC.js +0 -20
- package/build/cc/ZWaveLongRangeCC.js.map +0 -1
- package/build/cc/ZWavePlusCC.d.ts +0 -163
- package/build/cc/ZWavePlusCC.d.ts.map +0 -1
- package/build/cc/ZWavePlusCC.js +0 -270
- package/build/cc/ZWavePlusCC.js.map +0 -1
- package/build/cc/ZWaveProtocolCC.d.ts +0 -344
- package/build/cc/ZWaveProtocolCC.d.ts.map +0 -1
- package/build/cc/ZWaveProtocolCC.js +0 -1033
- package/build/cc/ZWaveProtocolCC.js.map +0 -1
- package/build/cc/index.d.ts +0 -132
- package/build/cc/index.d.ts.map +0 -1
- package/build/cc/index.js +0 -627
- package/build/cc/index.js.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.d.ts +0 -64
- package/build/cc/manufacturerProprietary/Decorators.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/Decorators.js +0 -83
- package/build/cc/manufacturerProprietary/Decorators.js.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +0 -79
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +0 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +0 -392
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +0 -1
- package/build/index.d.ts +0 -15
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -52
- package/build/index.js.map +0 -1
- package/build/index_safe.d.ts +0 -3
- package/build/index_safe.d.ts.map +0 -1
- package/build/index_safe.js +0 -20
- package/build/index_safe.js.map +0 -1
- package/build/lib/API.d.ts +0 -271
- package/build/lib/API.d.ts.map +0 -1
- package/build/lib/API.js +0 -458
- package/build/lib/API.js.map +0 -1
- package/build/lib/CommandClass.d.ts +0 -234
- package/build/lib/CommandClass.d.ts.map +0 -1
- package/build/lib/CommandClass.js +0 -788
- package/build/lib/CommandClass.js.map +0 -1
- package/build/lib/CommandClassDecorators.d.ts +0 -112
- package/build/lib/CommandClassDecorators.d.ts.map +0 -1
- package/build/lib/CommandClassDecorators.js +0 -243
- package/build/lib/CommandClassDecorators.js.map +0 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +0 -22
- package/build/lib/EncapsulatingCommandClass.d.ts.map +0 -1
- package/build/lib/EncapsulatingCommandClass.js +0 -61
- package/build/lib/EncapsulatingCommandClass.js.map +0 -1
- package/build/lib/ICommandClassContainer.d.ts.map +0 -1
- package/build/lib/ICommandClassContainer.js +0 -3
- package/build/lib/ICommandClassContainer.js.map +0 -1
- package/build/lib/NotificationEventPayload.d.ts +0 -10
- package/build/lib/NotificationEventPayload.d.ts.map +0 -1
- package/build/lib/NotificationEventPayload.js +0 -10
- package/build/lib/NotificationEventPayload.js.map +0 -1
- package/build/lib/Security2/Extension.d.ts +0 -106
- package/build/lib/Security2/Extension.d.ts.map +0 -1
- package/build/lib/Security2/Extension.js +0 -303
- package/build/lib/Security2/Extension.js.map +0 -1
- package/build/lib/Security2/shared.d.ts.map +0 -1
- package/build/lib/Security2/shared.js +0 -43
- package/build/lib/Security2/shared.js.map +0 -1
- package/build/lib/SetValueResult.d.ts.map +0 -1
- package/build/lib/SetValueResult.js +0 -60
- package/build/lib/SetValueResult.js.map +0 -1
- package/build/lib/Values.d.ts +0 -223
- package/build/lib/Values.d.ts.map +0 -1
- package/build/lib/Values.js +0 -172
- package/build/lib/Values.js.map +0 -1
- package/build/lib/_Types.d.ts.map +0 -1
- package/build/lib/_Types.js +0 -1443
- package/build/lib/_Types.js.map +0 -1
- package/build/lib/serializers.d.ts +0 -34
- package/build/lib/serializers.d.ts.map +0 -1
- package/build/lib/serializers.js +0 -107
- package/build/lib/serializers.js.map +0 -1
- package/build/lib/utils.d.ts +0 -17
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -860
- package/build/lib/utils.js.map +0 -1
- /package/build/{lib → cjs/lib}/ICommandClassContainer.d.ts +0 -0
- /package/build/{lib → cjs/lib}/Security2/shared.d.ts +0 -0
- /package/build/{lib → cjs/lib}/SetValueResult.d.ts +0 -0
- /package/build/{lib → cjs/lib}/_Types.d.ts +0 -0
|
@@ -0,0 +1,935 @@
|
|
|
1
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
+
var _, done = false;
|
|
7
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
+
var context = {};
|
|
9
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
+
if (kind === "accessor") {
|
|
14
|
+
if (result === void 0) continue;
|
|
15
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
+
}
|
|
20
|
+
else if (_ = accept(result)) {
|
|
21
|
+
if (kind === "field") initializers.unshift(_);
|
|
22
|
+
else descriptor[key] = _;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
+
done = true;
|
|
27
|
+
};
|
|
28
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
+
var useValue = arguments.length > 2;
|
|
30
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
+
}
|
|
33
|
+
return useValue ? value : void 0;
|
|
34
|
+
};
|
|
35
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
36
|
+
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
37
|
+
if (boundHasError()) {
|
|
38
|
+
throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const __assertType__number = $o => {
|
|
42
|
+
function _number($o) {
|
|
43
|
+
return typeof $o !== "number" ? {} : null;
|
|
44
|
+
}
|
|
45
|
+
return _number($o);
|
|
46
|
+
};
|
|
47
|
+
const __assertType__optional_su__string__2_eu = $o => {
|
|
48
|
+
function _string($o) {
|
|
49
|
+
return typeof $o !== "string" ? {} : null;
|
|
50
|
+
}
|
|
51
|
+
function _2($o) {
|
|
52
|
+
return !($o instanceof require("@zwave-js/core/safe").Duration) ? {} : null;
|
|
53
|
+
}
|
|
54
|
+
function su__string__2_eu($o) {
|
|
55
|
+
const conditions = [_string, _2];
|
|
56
|
+
for (const condition of conditions) {
|
|
57
|
+
const error = condition($o);
|
|
58
|
+
if (!error)
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
function optional_su__string__2_eu($o) {
|
|
64
|
+
if ($o !== undefined) {
|
|
65
|
+
const error = su__string__2_eu($o);
|
|
66
|
+
if (error)
|
|
67
|
+
return error;
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return optional_su__string__2_eu($o);
|
|
72
|
+
};
|
|
73
|
+
const __assertType__MultilevelSwitchCCStartLevelChangeOptions = $o => {
|
|
74
|
+
function _8($o) {
|
|
75
|
+
return $o !== "up" ? {} : null;
|
|
76
|
+
}
|
|
77
|
+
function _9($o) {
|
|
78
|
+
return $o !== "down" ? {} : null;
|
|
79
|
+
}
|
|
80
|
+
function su__8__9_eu($o) {
|
|
81
|
+
const conditions = [_8, _9];
|
|
82
|
+
for (const condition of conditions) {
|
|
83
|
+
const error = condition($o);
|
|
84
|
+
if (!error)
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return {};
|
|
88
|
+
}
|
|
89
|
+
function _2($o) {
|
|
90
|
+
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
91
|
+
return {};
|
|
92
|
+
if ("direction" in $o && $o["direction"] !== undefined) {
|
|
93
|
+
const error = su__8__9_eu($o["direction"]);
|
|
94
|
+
if (error)
|
|
95
|
+
return error;
|
|
96
|
+
}
|
|
97
|
+
else
|
|
98
|
+
return {};
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
function _true($o) {
|
|
102
|
+
return $o !== true ? {} : null;
|
|
103
|
+
}
|
|
104
|
+
function _number($o) {
|
|
105
|
+
return typeof $o !== "number" ? {} : null;
|
|
106
|
+
}
|
|
107
|
+
function _3($o) {
|
|
108
|
+
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
109
|
+
return {};
|
|
110
|
+
if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
|
|
111
|
+
const error = _true($o["ignoreStartLevel"]);
|
|
112
|
+
if (error)
|
|
113
|
+
return error;
|
|
114
|
+
}
|
|
115
|
+
else
|
|
116
|
+
return {};
|
|
117
|
+
if ("startLevel" in $o && $o["startLevel"] !== undefined) {
|
|
118
|
+
const error = _number($o["startLevel"]);
|
|
119
|
+
if (error)
|
|
120
|
+
return error;
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
function _string($o) {
|
|
125
|
+
return typeof $o !== "string" ? {} : null;
|
|
126
|
+
}
|
|
127
|
+
function _12($o) {
|
|
128
|
+
return !($o instanceof require("@zwave-js/core/safe").Duration) ? {} : null;
|
|
129
|
+
}
|
|
130
|
+
function su__string__12_eu($o) {
|
|
131
|
+
const conditions = [_string, _12];
|
|
132
|
+
for (const condition of conditions) {
|
|
133
|
+
const error = condition($o);
|
|
134
|
+
if (!error)
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
return {};
|
|
138
|
+
}
|
|
139
|
+
function _4($o) {
|
|
140
|
+
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
141
|
+
return {};
|
|
142
|
+
if ("duration" in $o && $o["duration"] !== undefined) {
|
|
143
|
+
const error = su__string__12_eu($o["duration"]);
|
|
144
|
+
if (error)
|
|
145
|
+
return error;
|
|
146
|
+
}
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
function si__2__3__4_ei($o) {
|
|
150
|
+
const conditions = [_2, _3, _4];
|
|
151
|
+
for (const condition of conditions) {
|
|
152
|
+
const error = condition($o);
|
|
153
|
+
if (error)
|
|
154
|
+
return error;
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
function _false($o) {
|
|
159
|
+
return $o !== false ? {} : null;
|
|
160
|
+
}
|
|
161
|
+
function _6($o) {
|
|
162
|
+
if (typeof $o !== "object" || $o === null || Array.isArray($o))
|
|
163
|
+
return {};
|
|
164
|
+
if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
|
|
165
|
+
const error = _false($o["ignoreStartLevel"]);
|
|
166
|
+
if (error)
|
|
167
|
+
return error;
|
|
168
|
+
}
|
|
169
|
+
else
|
|
170
|
+
return {};
|
|
171
|
+
if ("startLevel" in $o && $o["startLevel"] !== undefined) {
|
|
172
|
+
const error = _number($o["startLevel"]);
|
|
173
|
+
if (error)
|
|
174
|
+
return error;
|
|
175
|
+
}
|
|
176
|
+
else
|
|
177
|
+
return {};
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
function si__2__6__4_ei($o) {
|
|
181
|
+
const conditions = [_2, _6, _4];
|
|
182
|
+
for (const condition of conditions) {
|
|
183
|
+
const error = condition($o);
|
|
184
|
+
if (error)
|
|
185
|
+
return error;
|
|
186
|
+
}
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
function su_si__2__3__4_ei_si__2__6__4_ei_eu($o) {
|
|
190
|
+
const conditions = [si__2__3__4_ei, si__2__6__4_ei];
|
|
191
|
+
for (const condition of conditions) {
|
|
192
|
+
const error = condition($o);
|
|
193
|
+
if (!error)
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
return {};
|
|
197
|
+
}
|
|
198
|
+
return su_si__2__3__4_ei_si__2__6__4_ei_eu($o);
|
|
199
|
+
};
|
|
200
|
+
import { CommandClasses, Duration, MessagePriority, NOT_KNOWN, ValueMetadata, maybeUnknownToString, parseMaybeNumber, validatePayload, } from "@zwave-js/core/safe";
|
|
201
|
+
import { Bytes } from "@zwave-js/shared/safe";
|
|
202
|
+
import { getEnumMemberName, pick } from "@zwave-js/shared/safe";
|
|
203
|
+
import { CCAPI, POLL_VALUE, SET_VALUE, SET_VALUE_HOOKS, throwUnsupportedProperty, throwWrongValueType, } from "../lib/API.js";
|
|
204
|
+
import { CommandClass, getEffectiveCCVersion, } from "../lib/CommandClass.js";
|
|
205
|
+
import { API, CCCommand, ccValueProperty, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from "../lib/CommandClassDecorators.js";
|
|
206
|
+
import { V } from "../lib/Values.js";
|
|
207
|
+
import { LevelChangeDirection, MultilevelSwitchCommand, SwitchType, } from "../lib/_Types.js";
|
|
208
|
+
/**
|
|
209
|
+
* Translates a switch type into two actions that may be performed. Unknown types default to Down/Up
|
|
210
|
+
*/
|
|
211
|
+
function switchTypeToActions(switchType) {
|
|
212
|
+
if (!switchType.includes("/"))
|
|
213
|
+
switchType = SwitchType[0x02]; // Down/Up
|
|
214
|
+
return switchType.split("/", 2);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The property names are organized so that positive motions are at odd indices and negative motions at even indices
|
|
218
|
+
*/
|
|
219
|
+
const switchTypeProperties = Object.keys(SwitchType)
|
|
220
|
+
.filter((key) => key.includes("/"))
|
|
221
|
+
.map((key) => switchTypeToActions(key))
|
|
222
|
+
.reduce((acc, cur) => acc.concat(...cur), []);
|
|
223
|
+
export const MultilevelSwitchCCValues = Object.freeze({
|
|
224
|
+
...V.defineStaticCCValues(CommandClasses["Multilevel Switch"], {
|
|
225
|
+
...V.staticProperty("currentValue", {
|
|
226
|
+
...ValueMetadata.ReadOnlyLevel,
|
|
227
|
+
label: "Current value",
|
|
228
|
+
}),
|
|
229
|
+
...V.staticProperty("targetValue", {
|
|
230
|
+
...ValueMetadata.Level,
|
|
231
|
+
label: "Target value",
|
|
232
|
+
valueChangeOptions: ["transitionDuration"],
|
|
233
|
+
}),
|
|
234
|
+
...V.staticProperty("duration", {
|
|
235
|
+
...ValueMetadata.ReadOnlyDuration,
|
|
236
|
+
label: "Remaining duration",
|
|
237
|
+
}),
|
|
238
|
+
...V.staticProperty("restorePrevious", {
|
|
239
|
+
...ValueMetadata.WriteOnlyBoolean,
|
|
240
|
+
label: "Restore previous value",
|
|
241
|
+
states: {
|
|
242
|
+
true: "Restore",
|
|
243
|
+
},
|
|
244
|
+
}),
|
|
245
|
+
...V.staticPropertyWithName("compatEvent", "event", {
|
|
246
|
+
...ValueMetadata.ReadOnlyUInt8,
|
|
247
|
+
label: "Event value",
|
|
248
|
+
}, {
|
|
249
|
+
stateful: false,
|
|
250
|
+
autoCreate: (applHost, endpoint) => !!applHost.getDeviceConfig?.(endpoint.nodeId)?.compat
|
|
251
|
+
?.treatMultilevelSwitchSetAsEvent,
|
|
252
|
+
}),
|
|
253
|
+
...V.staticProperty("switchType", undefined, { internal: true }),
|
|
254
|
+
// TODO: Solve this differently
|
|
255
|
+
...V.staticProperty("superviseStartStopLevelChange", undefined, {
|
|
256
|
+
internal: true,
|
|
257
|
+
supportsEndpoints: false,
|
|
258
|
+
}),
|
|
259
|
+
}),
|
|
260
|
+
...V.defineDynamicCCValues(CommandClasses["Multilevel Switch"], {
|
|
261
|
+
...V.dynamicPropertyWithName("levelChangeUp",
|
|
262
|
+
// This is called "up" here, but the actual property name will depend on
|
|
263
|
+
// the given switch type
|
|
264
|
+
(switchType) => {
|
|
265
|
+
const switchTypeName = getEnumMemberName(SwitchType, switchType);
|
|
266
|
+
const [, up] = switchTypeToActions(switchTypeName);
|
|
267
|
+
return up;
|
|
268
|
+
}, ({ property }) => typeof property === "string"
|
|
269
|
+
&& switchTypeProperties.indexOf(property) % 2 === 1, (switchType) => {
|
|
270
|
+
const switchTypeName = getEnumMemberName(SwitchType, switchType);
|
|
271
|
+
const [, up] = switchTypeToActions(switchTypeName);
|
|
272
|
+
return {
|
|
273
|
+
...ValueMetadata.WriteOnlyBoolean,
|
|
274
|
+
label: `Perform a level change (${up})`,
|
|
275
|
+
valueChangeOptions: ["transitionDuration"],
|
|
276
|
+
states: {
|
|
277
|
+
true: "Start",
|
|
278
|
+
false: "Stop",
|
|
279
|
+
},
|
|
280
|
+
ccSpecific: { switchType },
|
|
281
|
+
};
|
|
282
|
+
}),
|
|
283
|
+
...V.dynamicPropertyWithName("levelChangeDown",
|
|
284
|
+
// This is called "down" here, but the actual property name will depend on
|
|
285
|
+
// the given switch type
|
|
286
|
+
(switchType) => {
|
|
287
|
+
const switchTypeName = getEnumMemberName(SwitchType, switchType);
|
|
288
|
+
const [down] = switchTypeToActions(switchTypeName);
|
|
289
|
+
return down;
|
|
290
|
+
}, ({ property }) => typeof property === "string"
|
|
291
|
+
&& switchTypeProperties.indexOf(property) % 2 === 0, (switchType) => {
|
|
292
|
+
const switchTypeName = getEnumMemberName(SwitchType, switchType);
|
|
293
|
+
const [down] = switchTypeToActions(switchTypeName);
|
|
294
|
+
return {
|
|
295
|
+
...ValueMetadata.WriteOnlyBoolean,
|
|
296
|
+
label: `Perform a level change (${down})`,
|
|
297
|
+
valueChangeOptions: ["transitionDuration"],
|
|
298
|
+
states: {
|
|
299
|
+
true: "Start",
|
|
300
|
+
false: "Stop",
|
|
301
|
+
},
|
|
302
|
+
ccSpecific: { switchType },
|
|
303
|
+
};
|
|
304
|
+
}),
|
|
305
|
+
}),
|
|
306
|
+
});
|
|
307
|
+
let MultilevelSwitchCCAPI = (() => {
|
|
308
|
+
let _classDecorators = [API(CommandClasses["Multilevel Switch"])];
|
|
309
|
+
let _classDescriptor;
|
|
310
|
+
let _classExtraInitializers = [];
|
|
311
|
+
let _classThis;
|
|
312
|
+
let _classSuper = CCAPI;
|
|
313
|
+
var MultilevelSwitchCCAPI = class extends _classSuper {
|
|
314
|
+
static { _classThis = this; }
|
|
315
|
+
static {
|
|
316
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
317
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
318
|
+
MultilevelSwitchCCAPI = _classThis = _classDescriptor.value;
|
|
319
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
320
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
321
|
+
}
|
|
322
|
+
supportsCommand(cmd) {
|
|
323
|
+
switch (cmd) {
|
|
324
|
+
case MultilevelSwitchCommand.Get:
|
|
325
|
+
return this.isSinglecast();
|
|
326
|
+
case MultilevelSwitchCommand.Set:
|
|
327
|
+
case MultilevelSwitchCommand.StartLevelChange:
|
|
328
|
+
case MultilevelSwitchCommand.StopLevelChange:
|
|
329
|
+
return true; // This is mandatory
|
|
330
|
+
case MultilevelSwitchCommand.SupportedGet:
|
|
331
|
+
return this.version >= 3 && this.isSinglecast();
|
|
332
|
+
}
|
|
333
|
+
return super.supportsCommand(cmd);
|
|
334
|
+
}
|
|
335
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
336
|
+
async get() {
|
|
337
|
+
this.assertSupportsCommand(MultilevelSwitchCommand, MultilevelSwitchCommand.Get);
|
|
338
|
+
const cc = new MultilevelSwitchCCGet({
|
|
339
|
+
nodeId: this.endpoint.nodeId,
|
|
340
|
+
endpointIndex: this.endpoint.index,
|
|
341
|
+
});
|
|
342
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
343
|
+
if (response) {
|
|
344
|
+
return pick(response, ["currentValue", "targetValue", "duration"]);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Sets the switch to a new value
|
|
349
|
+
* @param targetValue The new target value for the switch
|
|
350
|
+
* @param duration The duration after which the target value should be reached. Can be a Duration instance or a user-friendly duration string like `"1m17s"`. Only supported in V2 and above.
|
|
351
|
+
* @returns A promise indicating whether the command was completed
|
|
352
|
+
*/
|
|
353
|
+
async set(targetValue, duration) {
|
|
354
|
+
__assertType("targetValue", "number", __assertType__number.bind(void 0, targetValue));
|
|
355
|
+
__assertType("duration", undefined, __assertType__optional_su__string__2_eu.bind(void 0, duration));
|
|
356
|
+
this.assertSupportsCommand(MultilevelSwitchCommand, MultilevelSwitchCommand.Set);
|
|
357
|
+
const cc = new MultilevelSwitchCCSet({
|
|
358
|
+
nodeId: this.endpoint.nodeId,
|
|
359
|
+
endpointIndex: this.endpoint.index,
|
|
360
|
+
targetValue,
|
|
361
|
+
duration,
|
|
362
|
+
});
|
|
363
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
364
|
+
}
|
|
365
|
+
async startLevelChange(options) {
|
|
366
|
+
__assertType("options", "MultilevelSwitchCCStartLevelChangeOptions", __assertType__MultilevelSwitchCCStartLevelChangeOptions.bind(void 0, options));
|
|
367
|
+
this.assertSupportsCommand(MultilevelSwitchCommand, MultilevelSwitchCommand.StartLevelChange);
|
|
368
|
+
const cc = new MultilevelSwitchCCStartLevelChange({
|
|
369
|
+
nodeId: this.endpoint.nodeId,
|
|
370
|
+
endpointIndex: this.endpoint.index,
|
|
371
|
+
...options,
|
|
372
|
+
});
|
|
373
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
374
|
+
}
|
|
375
|
+
async stopLevelChange() {
|
|
376
|
+
this.assertSupportsCommand(MultilevelSwitchCommand, MultilevelSwitchCommand.StopLevelChange);
|
|
377
|
+
const cc = new MultilevelSwitchCCStopLevelChange({
|
|
378
|
+
nodeId: this.endpoint.nodeId,
|
|
379
|
+
endpointIndex: this.endpoint.index,
|
|
380
|
+
});
|
|
381
|
+
return this.host.sendCommand(cc, this.commandOptions);
|
|
382
|
+
}
|
|
383
|
+
async getSupported() {
|
|
384
|
+
this.assertSupportsCommand(MultilevelSwitchCommand, MultilevelSwitchCommand.SupportedGet);
|
|
385
|
+
const cc = new MultilevelSwitchCCSupportedGet({
|
|
386
|
+
nodeId: this.endpoint.nodeId,
|
|
387
|
+
endpointIndex: this.endpoint.index,
|
|
388
|
+
});
|
|
389
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
390
|
+
return response?.switchType;
|
|
391
|
+
}
|
|
392
|
+
get [SET_VALUE]() {
|
|
393
|
+
return async function ({ property }, value, options) {
|
|
394
|
+
// Enable restoring the previous non-zero value
|
|
395
|
+
if (property === "restorePrevious") {
|
|
396
|
+
property = "targetValue";
|
|
397
|
+
value = 255;
|
|
398
|
+
}
|
|
399
|
+
if (property === "targetValue") {
|
|
400
|
+
if (typeof value !== "number") {
|
|
401
|
+
throwWrongValueType(this.ccId, property, "number", typeof value);
|
|
402
|
+
}
|
|
403
|
+
const duration = Duration.from(options?.transitionDuration);
|
|
404
|
+
return this.set(value, duration);
|
|
405
|
+
}
|
|
406
|
+
else if (switchTypeProperties.includes(property)) {
|
|
407
|
+
// Since the switch only supports one of the switch types, we would
|
|
408
|
+
// need to check if the correct one is used. But since the names are
|
|
409
|
+
// purely cosmetic, we just accept all of them
|
|
410
|
+
if (typeof value !== "boolean") {
|
|
411
|
+
throwWrongValueType(this.ccId, property, "number", typeof value);
|
|
412
|
+
}
|
|
413
|
+
if (value) {
|
|
414
|
+
// The property names are organized so that positive motions are
|
|
415
|
+
// at odd indices and negative motions at even indices
|
|
416
|
+
const direction = switchTypeProperties.indexOf(property) % 2
|
|
417
|
+
=== 0
|
|
418
|
+
? "down"
|
|
419
|
+
: "up";
|
|
420
|
+
// Singlecast only: Try to retrieve the current value to use as the start level,
|
|
421
|
+
// even if the target node is going to ignore it. There might
|
|
422
|
+
// be some bugged devices that ignore the ignore start level flag.
|
|
423
|
+
const startLevel = this.tryGetValueDB()?.getValue(MultilevelSwitchCCValues.currentValue.endpoint(this.endpoint.index));
|
|
424
|
+
// And perform the level change
|
|
425
|
+
const duration = Duration.from(options?.transitionDuration);
|
|
426
|
+
return this.startLevelChange({
|
|
427
|
+
direction,
|
|
428
|
+
ignoreStartLevel: true,
|
|
429
|
+
startLevel: typeof startLevel === "number"
|
|
430
|
+
? startLevel
|
|
431
|
+
: undefined,
|
|
432
|
+
duration,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
return this.stopLevelChange();
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
throwUnsupportedProperty(this.ccId, property);
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
[SET_VALUE_HOOKS] = ({ property }, value, options) => {
|
|
445
|
+
// Enable restoring the previous non-zero value
|
|
446
|
+
if (property === "restorePrevious") {
|
|
447
|
+
property = "targetValue";
|
|
448
|
+
value = 255;
|
|
449
|
+
}
|
|
450
|
+
if (property === "targetValue") {
|
|
451
|
+
const duration = Duration.from(options?.transitionDuration);
|
|
452
|
+
const currentValueValueId = MultilevelSwitchCCValues.currentValue
|
|
453
|
+
.endpoint(this.endpoint.index);
|
|
454
|
+
return {
|
|
455
|
+
// Multilevel Switch commands may take some time to be executed.
|
|
456
|
+
// Therefore we try to supervise the command execution and delay the
|
|
457
|
+
// optimistic update until the final result is received.
|
|
458
|
+
supervisionDelayedUpdates: true,
|
|
459
|
+
supervisionOnSuccess: async () => {
|
|
460
|
+
// Only update currentValue for valid target values
|
|
461
|
+
if (typeof value === "number"
|
|
462
|
+
&& value >= 0
|
|
463
|
+
&& value <= 99) {
|
|
464
|
+
this.tryGetValueDB()?.setValue(currentValueValueId, value);
|
|
465
|
+
}
|
|
466
|
+
else if (value === 255) {
|
|
467
|
+
// We don't know the status now, so refresh the current value
|
|
468
|
+
try {
|
|
469
|
+
await this.get();
|
|
470
|
+
}
|
|
471
|
+
catch {
|
|
472
|
+
// ignore
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
supervisionOnFailure: async () => {
|
|
477
|
+
// The transition failed, so now we don't know the status - refresh the current value
|
|
478
|
+
try {
|
|
479
|
+
await this.get();
|
|
480
|
+
}
|
|
481
|
+
catch {
|
|
482
|
+
// ignore
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
optimisticallyUpdateRelatedValues: (_supervisedAndSuccessful) => {
|
|
486
|
+
// Only update currentValue for valid target values
|
|
487
|
+
if (typeof value === "number"
|
|
488
|
+
&& value >= 0
|
|
489
|
+
&& value <= 99) {
|
|
490
|
+
if (this.isSinglecast()) {
|
|
491
|
+
this.tryGetValueDB()?.setValue(currentValueValueId, value);
|
|
492
|
+
}
|
|
493
|
+
else if (this.isMulticast()) {
|
|
494
|
+
// Figure out which nodes were affected by this command
|
|
495
|
+
const affectedNodes = this.endpoint.node
|
|
496
|
+
.physicalNodes.filter((node) => node
|
|
497
|
+
.getEndpoint(this.endpoint.index)
|
|
498
|
+
?.supportsCC(this.ccId));
|
|
499
|
+
// and optimistically update the currentValue
|
|
500
|
+
for (const node of affectedNodes) {
|
|
501
|
+
this.host
|
|
502
|
+
.tryGetValueDB(node.id)
|
|
503
|
+
?.setValue(currentValueValueId, value);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
forceVerifyChanges: () => {
|
|
509
|
+
// If we don't know the actual value, we need to verify the change, regardless of the supervision result
|
|
510
|
+
return value === 255;
|
|
511
|
+
},
|
|
512
|
+
verifyChanges: () => {
|
|
513
|
+
if (this.isSinglecast()
|
|
514
|
+
// We generally don't want to poll for multicasts because of how much traffic it can cause
|
|
515
|
+
// However, when setting the value 255 (ON), we don't know the actual state
|
|
516
|
+
|| (this.isMulticast() && value === 255)) {
|
|
517
|
+
// We query currentValue instead of targetValue to make sure that unsolicited updates cancel the scheduled poll
|
|
518
|
+
this.schedulePoll(currentValueValueId, value === 255 ? undefined : value, { duration });
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
get [POLL_VALUE]() {
|
|
525
|
+
return async function ({ property }) {
|
|
526
|
+
switch (property) {
|
|
527
|
+
case "currentValue":
|
|
528
|
+
case "targetValue":
|
|
529
|
+
case "duration":
|
|
530
|
+
return (await this.get())?.[property];
|
|
531
|
+
default:
|
|
532
|
+
throwUnsupportedProperty(this.ccId, property);
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
return MultilevelSwitchCCAPI = _classThis;
|
|
538
|
+
})();
|
|
539
|
+
export { MultilevelSwitchCCAPI };
|
|
540
|
+
let MultilevelSwitchCC = (() => {
|
|
541
|
+
let _classDecorators = [commandClass(CommandClasses["Multilevel Switch"]), implementedVersion(4), ccValues(MultilevelSwitchCCValues)];
|
|
542
|
+
let _classDescriptor;
|
|
543
|
+
let _classExtraInitializers = [];
|
|
544
|
+
let _classThis;
|
|
545
|
+
let _classSuper = CommandClass;
|
|
546
|
+
var MultilevelSwitchCC = class extends _classSuper {
|
|
547
|
+
static { _classThis = this; }
|
|
548
|
+
static {
|
|
549
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
550
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
551
|
+
MultilevelSwitchCC = _classThis = _classDescriptor.value;
|
|
552
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
553
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
554
|
+
}
|
|
555
|
+
async interview(ctx) {
|
|
556
|
+
const node = this.getNode(ctx);
|
|
557
|
+
const endpoint = this.getEndpoint(ctx);
|
|
558
|
+
const api = CCAPI.create(CommandClasses["Multilevel Switch"], ctx, endpoint).withOptions({
|
|
559
|
+
priority: MessagePriority.NodeQuery,
|
|
560
|
+
});
|
|
561
|
+
ctx.logNode(node.id, {
|
|
562
|
+
endpoint: this.endpointIndex,
|
|
563
|
+
message: `Interviewing ${this.ccName}...`,
|
|
564
|
+
direction: "none",
|
|
565
|
+
});
|
|
566
|
+
if (api.version >= 3) {
|
|
567
|
+
// Find out which kind of switch this is
|
|
568
|
+
ctx.logNode(node.id, {
|
|
569
|
+
endpoint: this.endpointIndex,
|
|
570
|
+
message: "requesting switch type...",
|
|
571
|
+
direction: "outbound",
|
|
572
|
+
});
|
|
573
|
+
const switchType = await api.getSupported();
|
|
574
|
+
if (switchType != undefined) {
|
|
575
|
+
ctx.logNode(node.id, {
|
|
576
|
+
endpoint: this.endpointIndex,
|
|
577
|
+
message: `has switch type ${getEnumMemberName(SwitchType, switchType)}`,
|
|
578
|
+
direction: "inbound",
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
// requesting the switch type automatically creates the up/down actions
|
|
584
|
+
// We need to do this manually for V1 and V2
|
|
585
|
+
this.createMetadataForLevelChangeActions(ctx);
|
|
586
|
+
}
|
|
587
|
+
await this.refreshValues(ctx);
|
|
588
|
+
// Remember that the interview is complete
|
|
589
|
+
this.setInterviewComplete(ctx, true);
|
|
590
|
+
}
|
|
591
|
+
async refreshValues(ctx) {
|
|
592
|
+
const node = this.getNode(ctx);
|
|
593
|
+
const endpoint = this.getEndpoint(ctx);
|
|
594
|
+
const api = CCAPI.create(CommandClasses["Multilevel Switch"], ctx, endpoint).withOptions({
|
|
595
|
+
priority: MessagePriority.NodeQuery,
|
|
596
|
+
});
|
|
597
|
+
ctx.logNode(node.id, {
|
|
598
|
+
endpoint: this.endpointIndex,
|
|
599
|
+
message: "requesting current switch state...",
|
|
600
|
+
direction: "outbound",
|
|
601
|
+
});
|
|
602
|
+
await api.get();
|
|
603
|
+
}
|
|
604
|
+
setMappedBasicValue(ctx, value) {
|
|
605
|
+
this.setValue(ctx, MultilevelSwitchCCValues.currentValue, value);
|
|
606
|
+
return true;
|
|
607
|
+
}
|
|
608
|
+
createMetadataForLevelChangeActions(ctx,
|
|
609
|
+
// SDS13781: The Primary Switch Type SHOULD be 0x02 (Up/Down)
|
|
610
|
+
switchType = SwitchType["Down/Up"]) {
|
|
611
|
+
this.ensureMetadata(ctx, MultilevelSwitchCCValues.levelChangeUp(switchType));
|
|
612
|
+
this.ensureMetadata(ctx, MultilevelSwitchCCValues.levelChangeDown(switchType));
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
return MultilevelSwitchCC = _classThis;
|
|
616
|
+
})();
|
|
617
|
+
export { MultilevelSwitchCC };
|
|
618
|
+
let MultilevelSwitchCCSet = (() => {
|
|
619
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.Set), useSupervision()];
|
|
620
|
+
let _classDescriptor;
|
|
621
|
+
let _classExtraInitializers = [];
|
|
622
|
+
let _classThis;
|
|
623
|
+
let _classSuper = MultilevelSwitchCC;
|
|
624
|
+
var MultilevelSwitchCCSet = class extends _classSuper {
|
|
625
|
+
static { _classThis = this; }
|
|
626
|
+
static {
|
|
627
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
628
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
629
|
+
MultilevelSwitchCCSet = _classThis = _classDescriptor.value;
|
|
630
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
631
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
632
|
+
}
|
|
633
|
+
constructor(options) {
|
|
634
|
+
super(options);
|
|
635
|
+
this.targetValue = options.targetValue;
|
|
636
|
+
this.duration = Duration.from(options.duration);
|
|
637
|
+
}
|
|
638
|
+
static from(raw, ctx) {
|
|
639
|
+
validatePayload(raw.payload.length >= 1);
|
|
640
|
+
const targetValue = raw.payload[0];
|
|
641
|
+
let duration;
|
|
642
|
+
if (raw.payload.length >= 2) {
|
|
643
|
+
duration = Duration.parseReport(raw.payload[1]);
|
|
644
|
+
}
|
|
645
|
+
return new this({
|
|
646
|
+
nodeId: ctx.sourceNodeId,
|
|
647
|
+
targetValue,
|
|
648
|
+
duration,
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
targetValue;
|
|
652
|
+
duration;
|
|
653
|
+
serialize(ctx) {
|
|
654
|
+
this.payload = Bytes.from([
|
|
655
|
+
this.targetValue,
|
|
656
|
+
(this.duration ?? Duration.default()).serializeSet(),
|
|
657
|
+
]);
|
|
658
|
+
const ccVersion = getEffectiveCCVersion(ctx, this);
|
|
659
|
+
if (ccVersion < 2 && ctx.getDeviceConfig?.(this.nodeId)?.compat?.encodeCCsUsingTargetVersion) {
|
|
660
|
+
// When forcing CC version 1, only include the target value
|
|
661
|
+
this.payload = this.payload.subarray(0, 1);
|
|
662
|
+
}
|
|
663
|
+
return super.serialize(ctx);
|
|
664
|
+
}
|
|
665
|
+
toLogEntry(ctx) {
|
|
666
|
+
const message = {
|
|
667
|
+
"target value": this.targetValue,
|
|
668
|
+
};
|
|
669
|
+
if (this.duration) {
|
|
670
|
+
message.duration = this.duration.toString();
|
|
671
|
+
}
|
|
672
|
+
return {
|
|
673
|
+
...super.toLogEntry(ctx),
|
|
674
|
+
message,
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
return MultilevelSwitchCCSet = _classThis;
|
|
679
|
+
})();
|
|
680
|
+
export { MultilevelSwitchCCSet };
|
|
681
|
+
let MultilevelSwitchCCReport = (() => {
|
|
682
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.Report), ccValueProperty("targetValue", MultilevelSwitchCCValues.targetValue), ccValueProperty("duration", MultilevelSwitchCCValues.duration), ccValueProperty("currentValue", MultilevelSwitchCCValues.currentValue)];
|
|
683
|
+
let _classDescriptor;
|
|
684
|
+
let _classExtraInitializers = [];
|
|
685
|
+
let _classThis;
|
|
686
|
+
let _classSuper = MultilevelSwitchCC;
|
|
687
|
+
var MultilevelSwitchCCReport = class extends _classSuper {
|
|
688
|
+
static { _classThis = this; }
|
|
689
|
+
static {
|
|
690
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
691
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
692
|
+
MultilevelSwitchCCReport = _classThis = _classDescriptor.value;
|
|
693
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
694
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
695
|
+
}
|
|
696
|
+
constructor(options) {
|
|
697
|
+
super(options);
|
|
698
|
+
this.currentValue = options.currentValue;
|
|
699
|
+
this.targetValue = options.targetValue;
|
|
700
|
+
this.duration = Duration.from(options.duration);
|
|
701
|
+
}
|
|
702
|
+
static from(raw, ctx) {
|
|
703
|
+
validatePayload(raw.payload.length >= 1);
|
|
704
|
+
const currentValue =
|
|
705
|
+
// 0xff is a legacy value for 100% (99)
|
|
706
|
+
raw.payload[0] === 0xff
|
|
707
|
+
? 99
|
|
708
|
+
: parseMaybeNumber(raw.payload[0]);
|
|
709
|
+
let targetValue;
|
|
710
|
+
let duration;
|
|
711
|
+
if (raw.payload.length >= 3) {
|
|
712
|
+
targetValue = parseMaybeNumber(raw.payload[1]);
|
|
713
|
+
duration = Duration.parseReport(raw.payload[2]);
|
|
714
|
+
}
|
|
715
|
+
return new this({
|
|
716
|
+
nodeId: ctx.sourceNodeId,
|
|
717
|
+
currentValue,
|
|
718
|
+
targetValue,
|
|
719
|
+
duration,
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
targetValue;
|
|
723
|
+
duration;
|
|
724
|
+
currentValue;
|
|
725
|
+
serialize(ctx) {
|
|
726
|
+
this.payload = Bytes.from([
|
|
727
|
+
this.currentValue ?? 0xfe,
|
|
728
|
+
this.targetValue ?? 0xfe,
|
|
729
|
+
(this.duration ?? Duration.default()).serializeReport(),
|
|
730
|
+
]);
|
|
731
|
+
return super.serialize(ctx);
|
|
732
|
+
}
|
|
733
|
+
toLogEntry(ctx) {
|
|
734
|
+
const message = {
|
|
735
|
+
"current value": maybeUnknownToString(this.currentValue),
|
|
736
|
+
};
|
|
737
|
+
if (this.targetValue !== NOT_KNOWN && this.duration) {
|
|
738
|
+
message["target value"] = maybeUnknownToString(this.targetValue);
|
|
739
|
+
message.duration = this.duration.toString();
|
|
740
|
+
}
|
|
741
|
+
return {
|
|
742
|
+
...super.toLogEntry(ctx),
|
|
743
|
+
message,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
return MultilevelSwitchCCReport = _classThis;
|
|
748
|
+
})();
|
|
749
|
+
export { MultilevelSwitchCCReport };
|
|
750
|
+
let MultilevelSwitchCCGet = (() => {
|
|
751
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.Get), expectedCCResponse(MultilevelSwitchCCReport)];
|
|
752
|
+
let _classDescriptor;
|
|
753
|
+
let _classExtraInitializers = [];
|
|
754
|
+
let _classThis;
|
|
755
|
+
let _classSuper = MultilevelSwitchCC;
|
|
756
|
+
var MultilevelSwitchCCGet = class extends _classSuper {
|
|
757
|
+
static { _classThis = this; }
|
|
758
|
+
static {
|
|
759
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
760
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
761
|
+
MultilevelSwitchCCGet = _classThis = _classDescriptor.value;
|
|
762
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
763
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
return MultilevelSwitchCCGet = _classThis;
|
|
767
|
+
})();
|
|
768
|
+
export { MultilevelSwitchCCGet };
|
|
769
|
+
let MultilevelSwitchCCStartLevelChange = (() => {
|
|
770
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.StartLevelChange), useSupervision()];
|
|
771
|
+
let _classDescriptor;
|
|
772
|
+
let _classExtraInitializers = [];
|
|
773
|
+
let _classThis;
|
|
774
|
+
let _classSuper = MultilevelSwitchCC;
|
|
775
|
+
var MultilevelSwitchCCStartLevelChange = class extends _classSuper {
|
|
776
|
+
static { _classThis = this; }
|
|
777
|
+
static {
|
|
778
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
779
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
780
|
+
MultilevelSwitchCCStartLevelChange = _classThis = _classDescriptor.value;
|
|
781
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
782
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
783
|
+
}
|
|
784
|
+
constructor(options) {
|
|
785
|
+
super(options);
|
|
786
|
+
this.duration = Duration.from(options.duration);
|
|
787
|
+
this.ignoreStartLevel = options.ignoreStartLevel;
|
|
788
|
+
this.startLevel = options.startLevel ?? 0;
|
|
789
|
+
this.direction = options.direction;
|
|
790
|
+
}
|
|
791
|
+
static from(raw, ctx) {
|
|
792
|
+
validatePayload(raw.payload.length >= 2);
|
|
793
|
+
const ignoreStartLevel = !!((raw.payload[0] & 0b0_0_1_00000) >>> 5);
|
|
794
|
+
const direction = ((raw.payload[0] & 0b0_1_0_00000) >>> 6)
|
|
795
|
+
? "down"
|
|
796
|
+
: "up";
|
|
797
|
+
const startLevel = raw.payload[1];
|
|
798
|
+
let duration;
|
|
799
|
+
if (raw.payload.length >= 3) {
|
|
800
|
+
duration = Duration.parseSet(raw.payload[2]);
|
|
801
|
+
}
|
|
802
|
+
return new this({
|
|
803
|
+
nodeId: ctx.sourceNodeId,
|
|
804
|
+
ignoreStartLevel,
|
|
805
|
+
direction,
|
|
806
|
+
startLevel,
|
|
807
|
+
duration,
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
duration;
|
|
811
|
+
startLevel;
|
|
812
|
+
ignoreStartLevel;
|
|
813
|
+
direction;
|
|
814
|
+
serialize(ctx) {
|
|
815
|
+
const controlByte = (LevelChangeDirection[this.direction] << 6)
|
|
816
|
+
| (this.ignoreStartLevel ? 0b0010_0000 : 0);
|
|
817
|
+
this.payload = Bytes.from([
|
|
818
|
+
controlByte,
|
|
819
|
+
this.startLevel,
|
|
820
|
+
(this.duration ?? Duration.default()).serializeSet(),
|
|
821
|
+
]);
|
|
822
|
+
const ccVersion = getEffectiveCCVersion(ctx, this);
|
|
823
|
+
if (ccVersion < 2 && ctx.getDeviceConfig?.(this.nodeId)?.compat?.encodeCCsUsingTargetVersion) {
|
|
824
|
+
// When forcing CC version 1, omit the duration byte
|
|
825
|
+
this.payload = this.payload.subarray(0, -1);
|
|
826
|
+
}
|
|
827
|
+
return super.serialize(ctx);
|
|
828
|
+
}
|
|
829
|
+
toLogEntry(ctx) {
|
|
830
|
+
const message = {
|
|
831
|
+
startLevel: `${this.startLevel}${this.ignoreStartLevel ? " (ignored)" : ""}`,
|
|
832
|
+
direction: this.direction,
|
|
833
|
+
};
|
|
834
|
+
if (this.duration) {
|
|
835
|
+
message.duration = this.duration.toString();
|
|
836
|
+
}
|
|
837
|
+
return {
|
|
838
|
+
...super.toLogEntry(ctx),
|
|
839
|
+
message,
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
};
|
|
843
|
+
return MultilevelSwitchCCStartLevelChange = _classThis;
|
|
844
|
+
})();
|
|
845
|
+
export { MultilevelSwitchCCStartLevelChange };
|
|
846
|
+
let MultilevelSwitchCCStopLevelChange = (() => {
|
|
847
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.StopLevelChange), useSupervision()];
|
|
848
|
+
let _classDescriptor;
|
|
849
|
+
let _classExtraInitializers = [];
|
|
850
|
+
let _classThis;
|
|
851
|
+
let _classSuper = MultilevelSwitchCC;
|
|
852
|
+
var MultilevelSwitchCCStopLevelChange = class extends _classSuper {
|
|
853
|
+
static { _classThis = this; }
|
|
854
|
+
static {
|
|
855
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
856
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
857
|
+
MultilevelSwitchCCStopLevelChange = _classThis = _classDescriptor.value;
|
|
858
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
859
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
return MultilevelSwitchCCStopLevelChange = _classThis;
|
|
863
|
+
})();
|
|
864
|
+
export { MultilevelSwitchCCStopLevelChange };
|
|
865
|
+
let MultilevelSwitchCCSupportedReport = (() => {
|
|
866
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.SupportedReport), ccValueProperty("switchType", MultilevelSwitchCCValues.switchType)];
|
|
867
|
+
let _classDescriptor;
|
|
868
|
+
let _classExtraInitializers = [];
|
|
869
|
+
let _classThis;
|
|
870
|
+
let _classSuper = MultilevelSwitchCC;
|
|
871
|
+
var MultilevelSwitchCCSupportedReport = class extends _classSuper {
|
|
872
|
+
static { _classThis = this; }
|
|
873
|
+
static {
|
|
874
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
875
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
876
|
+
MultilevelSwitchCCSupportedReport = _classThis = _classDescriptor.value;
|
|
877
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
878
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
879
|
+
}
|
|
880
|
+
constructor(options) {
|
|
881
|
+
super(options);
|
|
882
|
+
this.switchType = options.switchType;
|
|
883
|
+
}
|
|
884
|
+
static from(raw, ctx) {
|
|
885
|
+
validatePayload(raw.payload.length >= 1);
|
|
886
|
+
const switchType = raw.payload[0] & 0b11111;
|
|
887
|
+
return new this({
|
|
888
|
+
nodeId: ctx.sourceNodeId,
|
|
889
|
+
switchType,
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
// This is the primary switch type. We're not supporting secondary switch types
|
|
893
|
+
switchType;
|
|
894
|
+
persistValues(ctx) {
|
|
895
|
+
if (!super.persistValues(ctx))
|
|
896
|
+
return false;
|
|
897
|
+
this.createMetadataForLevelChangeActions(ctx, this.switchType);
|
|
898
|
+
return true;
|
|
899
|
+
}
|
|
900
|
+
serialize(ctx) {
|
|
901
|
+
this.payload = Bytes.from([this.switchType & 0b11111]);
|
|
902
|
+
return super.serialize(ctx);
|
|
903
|
+
}
|
|
904
|
+
toLogEntry(ctx) {
|
|
905
|
+
return {
|
|
906
|
+
...super.toLogEntry(ctx),
|
|
907
|
+
message: {
|
|
908
|
+
"switch type": getEnumMemberName(SwitchType, this.switchType),
|
|
909
|
+
},
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
return MultilevelSwitchCCSupportedReport = _classThis;
|
|
914
|
+
})();
|
|
915
|
+
export { MultilevelSwitchCCSupportedReport };
|
|
916
|
+
let MultilevelSwitchCCSupportedGet = (() => {
|
|
917
|
+
let _classDecorators = [CCCommand(MultilevelSwitchCommand.SupportedGet), expectedCCResponse(MultilevelSwitchCCSupportedReport)];
|
|
918
|
+
let _classDescriptor;
|
|
919
|
+
let _classExtraInitializers = [];
|
|
920
|
+
let _classThis;
|
|
921
|
+
let _classSuper = MultilevelSwitchCC;
|
|
922
|
+
var MultilevelSwitchCCSupportedGet = class extends _classSuper {
|
|
923
|
+
static { _classThis = this; }
|
|
924
|
+
static {
|
|
925
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
926
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
927
|
+
MultilevelSwitchCCSupportedGet = _classThis = _classDescriptor.value;
|
|
928
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
929
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
return MultilevelSwitchCCSupportedGet = _classThis;
|
|
933
|
+
})();
|
|
934
|
+
export { MultilevelSwitchCCSupportedGet };
|
|
935
|
+
//# sourceMappingURL=MultilevelSwitchCC.js.map
|